opentelemetry-rust icon indicating copy to clipboard operation
opentelemetry-rust copied to clipboard

Check and disable duplicate internal logs in tests

Open cijothomas opened this issue 8 months ago • 2 comments

https://github.com/open-telemetry/opentelemetry-rust/pull/2833#discussion_r2005787465

cijothomas avatar Mar 20 '25 23:03 cijothomas

Hey @cijothomas , do you happen to have an example of this handy, so I have a thread to pull on? If not no worries I can grep through.

scottgerring avatar Apr 24 '25 15:04 scottgerring

https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-otlp/tests/integration_test/src/test_utils.rs#L51-L54 This is where we enable fmt layer to collect all SDK internal logs. This is not required if we already print logs to stdout in Test configuration.

cijothomas avatar Apr 24 '25 18:04 cijothomas