File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ impl LoggerProvider {
92
92
}
93
93
94
94
/// Log processors associated with this provider.
95
- pub fn log_processors ( & self ) -> & Vec < Box < dyn LogProcessor > > {
95
+ pub fn log_processors ( & self ) -> & [ Box < dyn LogProcessor > ] {
96
96
& self . inner . processors
97
97
}
98
98
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