opentelemetry-dotnet-instrumentation icon indicating copy to clipboard operation
opentelemetry-dotnet-instrumentation copied to clipboard

Use OTel SDK's self-diagnostics - managed code

Open pellared opened this issue 2 years ago • 1 comments

We should use OTel SDK's self-diagnostics for internal logging.

pellared avatar Jul 20 '22 18:07 pellared

One thing that I do not like about this approach, based on the current functionality in that feature, is that it requires someone to drop a file in a particular location to get the log files generated. The problems that I have seen people experience with that approach are the following.

  1. Figuring out which directory to place this special file in
  2. Having enough permissions to get a file added to that directory

If we had the ability to control these log files via environment variables, I think that would improve the experience, and simplify things for us and our users.

nrcventura avatar Jul 22 '22 19:07 nrcventura

Only describe in troubleshooting doc how to do it.

Kielek avatar Jan 19 '23 09:01 Kielek

SdkSelfDiagnosticsEventListener fulfills similar purpose. I think with recent logging improvements to internal logger, this is no longer needed.

lachmatt avatar Mar 23 '23 10:03 lachmatt

Closing per previous comment.

Kielek avatar Mar 23 '23 10:03 Kielek