File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
examples/self-diagnostics Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,12 @@ which the logs are simply discarded.
99## Filtering logs from external dependencies of OTLP Exporter:
1010
1111The example configures a tracing ` filter ` to restrict logs from external crates
12- (` hyper ` , ` tonic ` , and ` reqwest ` ) used by the OTLP Exporter to the ` error `
12+ (` hyper ` , ` tonic ` , and ` reqwest ` etc. ) used by the OTLP Exporter to the ` error `
1313level. This helps prevent an infinite loop of log generation when these crates
1414emit logs that are picked up by the tracing subscriber. This is only a
15- workaround until https://github.com/open-telemetry/opentelemetry-rust/issues/761
16- is resolved.
15+ workaround until [ the root
16+ issue] ( https://github.com/open-telemetry/opentelemetry-rust/issues/761 ) is
17+ resolved.
1718
1819## Filtering logs to be send to OpenTelemetry itself
1920
@@ -23,4 +24,5 @@ to OpenTelemetry, then enabling OpenTelemetry internal logs can also cause
2324infinite, recursive logging. You can filter out all OpenTelemetry internal logs
2425from being sent to [ OpenTelemetry Tracing
2526Appender] ( ../../opentelemetry-appender-tracing/README.md ) using a filter, like
26- "add_directive("opentelemetry=off".parse().unwrap())".
27+ "add_directive("opentelemetry=off".parse().unwrap())" being done for tracing's
28+ ` FmtSubscriber ` .
You can’t perform that action at this time.
0 commit comments