File tree 2 files changed +12
-8
lines changed
crates/stackable-telemetry 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,11 @@ All notable changes to this project will be documented in this file.
12
12
- Bump GitHub workflow actions ([ #772 ] ).
13
13
- Revert ` zeroize ` version bump ([ #772 ] ).
14
14
15
+ ### Fixed
16
+
17
+ - Prevent infinite events being exported via OTLP, as described in [ open-telemetry/opentelemetry-rust #761 ] ([ #796 ] ).
18
+
15
19
[ #772 ] : https://github.com/stackabletech/operator-rs/pull/772
16
20
[ #782 ] : https://github.com/stackabletech/operator-rs/pull/782
21
+ [ #796 ] : https://github.com/stackabletech/operator-rs/pull/796
22
+ [ open-telemetry/opentelemetry-rust#761 ] : https://github.com/open-telemetry/opentelemetry-rust/issues/761
Original file line number Diff line number Diff line change @@ -149,7 +149,9 @@ impl Tracing {
149
149
if self . otlp_log_config . enabled {
150
150
let env_filter_layer = EnvFilter :: builder ( )
151
151
. with_default_directive ( self . otlp_log_config . level_filter . into ( ) ) // TODO (@NickLarsenNZ): support Directives
152
- . from_env_lossy ( ) ;
152
+ . from_env_lossy ( )
153
+ // TODO (@NickLarsenNZ): Remove this directive once https://github.com/open-telemetry/opentelemetry-rust/issues/761 is resolved
154
+ . add_directive ( "h2=off" . parse ( ) . expect ( "invalid directive" ) ) ;
153
155
154
156
let log_exporter = opentelemetry_otlp:: new_exporter ( ) . tonic ( ) ;
155
157
let otel_log =
@@ -173,13 +175,9 @@ impl Tracing {
173
175
if self . otlp_trace_config . enabled {
174
176
let env_filter_layer = EnvFilter :: builder ( )
175
177
. with_default_directive ( self . otlp_trace_config . level_filter . into ( ) ) // TODO (@NickLarsenNZ): support Directives
176
- . from_env_lossy ( ) ;
177
- // .add_directive("hyper=info".parse().expect("invalid directive"))
178
- // .add_directive("tonic=warn".parse().expect("invalid directive"))
179
- // .add_directive("tokio_util=warn".parse().expect("invalid directive"))
180
- // .add_directive("hyper=info".parse().expect("invalid directive"))
181
- // .add_directive("h2=info".parse().expect("invalid directive"))
182
- // .add_directive("tower=info".parse().expect("invalid directive"));
178
+ . from_env_lossy ( )
179
+ // TODO (@NickLarsenNZ): Remove this directive once https://github.com/open-telemetry/opentelemetry-rust/issues/761 is resolved
180
+ . add_directive ( "h2=off" . parse ( ) . expect ( "invalid directive" ) ) ;
183
181
184
182
let trace_exporter = opentelemetry_otlp:: new_exporter ( ) . tonic ( ) ;
185
183
let otel_tracer = opentelemetry_otlp:: new_pipeline ( )
You can’t perform that action at this time.
0 commit comments