Skip to content

Commit 2e6a43d

Browse files
authored
Add opentelemetry::sdk::logs::config() for parity with open telemetry::sdk::trace::config() (open-telemetry#1197)
1 parent 79244e4 commit 2e6a43d

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

opentelemetry-sdk/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
casing
99
- Log warning if view is created with empty criteria (#1266)
1010
- Add exponential histogram support (#1267)
11+
- Add `opentelemetry::sdk::logs::config()` for parity with `opentelemetry::sdk::trace::config()` (#1197)
1112

1213
### Changed
1314

opentelemetry-sdk/src/logs/config.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ use std::borrow::Cow;
22

33
use crate::Resource;
44

5+
/// Default log configuration
6+
pub fn config() -> Config {
7+
Config::default()
8+
}
9+
510
/// Log emitter configuration.
611
#[derive(Debug, Default)]
712
pub struct Config {

opentelemetry-sdk/src/logs/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod config;
44
mod log_emitter;
55
mod log_processor;
66

7-
pub use config::Config;
7+
pub use config::{config, Config};
88
pub use log_emitter::{Builder, Logger, LoggerProvider};
99
pub use log_processor::{
1010
BatchConfig, BatchLogProcessor, BatchLogProcessorBuilder, BatchMessage, LogProcessor,

opentelemetry/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This release should been seen as 1.0-rc3 following 1.0-rc2 in v0.19.0. Refer to
2121
- Create tracer using a shared instrumentation library #1129
2222
- Add `Context::map_current` #1140
2323
- Add unit/doc tests for metrics #1213
24+
- Add `opentelemetry::sdk::logs::config()` for parity with `opentelemetry::sdk::trace::config()` (#1197)
2425

2526
### Changed
2627

0 commit comments

Comments
 (0)