This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit a6e02b2 committed May 10, 2024 · 16 / 18
File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 28
28
- After ` shutdown ` , ` LogProcessor ` will not process any new logs
29
29
- Moving LogRecord implementation to the SDK. [ 1702] ( https://github.com/open-telemetry/opentelemetry-rust/pull/1702 ) .
30
30
- Relocated ` LogRecord ` struct to SDK, as an implementation for the trait in the API.
31
- - - ** BREAKING** Remove ` logs_level_enabled ` feature flag as the feature is not part of the specs.
31
+ - ** Breaking** [ #1729 ] ( https://github.com/open-telemetry/opentelemetry-rust/pull/1729 )
32
+ - Update the return type of ` TracerProvider.span_processors() ` from ` &Vec<Box<dyn SpanProcessor>> ` to ` &[Box<dyn SpanProcessor>] ` .
33
+ - Update the return type of ` LoggerProvider.log_processors() ` from ` &Vec<Box<dyn LogProcessor>> ` to ` &[Box<dyn LogProcessor>] ` .
34
+ - ** BREAKING** Remove ` logs_level_enabled ` feature flag as the feature is not part of the specs.
32
35
[ #1736 ] ( https://github.com/open-telemetry/opentelemetry-rust/pull/1736/files )
33
36
34
37
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl LoggerProvider {
91
91
}
92
92
93
93
/// Log processors associated with this provider.
94
- pub fn log_processors ( & self ) -> & Vec < Box < dyn LogProcessor > > {
94
+ pub fn log_processors ( & self ) -> & [ Box < dyn LogProcessor > ] {
95
95
& self . inner . processors
96
96
}
97
97
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl TracerProvider {
62
62
}
63
63
64
64
/// Span processors associated with this provider
65
- pub fn span_processors ( & self ) -> & Vec < Box < dyn SpanProcessor > > {
65
+ pub fn span_processors ( & self ) -> & [ Box < dyn SpanProcessor > ] {
66
66
& self . inner . processors
67
67
}
68
68
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ impl Span {
219
219
data. end_time = opentelemetry:: time:: now ( ) ;
220
220
}
221
221
222
- match provider. span_processors ( ) . as_slice ( ) {
222
+ match provider. span_processors ( ) {
223
223
[ ] => { }
224
224
[ processor] => {
225
225
processor. on_end ( build_export_data (
You can’t perform that action at this time.
0 commit comments