Skip to content

Conversation

@stevejgordon
Copy link
Contributor

@stevejgordon stevejgordon commented Dec 4, 2025

The following changes were introduced to improve the diagnostics logs to make it easier for customers to diagnose issues and gain support with EDOT .NET. We capture more information which is useful for us when investigating support cases.

  • Add more information in the logging premable.
  • Add logging of sources for env vars and the final effective values.
  • Fix missing debug logs from the OTel SDK events for zero-code use cases.
  • Update date formatting to capture additional resolution.
  • Introduce BootstrapLogger for detailed logging before main logger initialization, supporting automatic disposal after inactivity. This is potentially useful for support scenarios but is marked as experimental.
  • Refactor various classes to log public method invocations and configuration values to the bootstrap logger.
  • Add StackTraceLoggerExtensions for caller info logging and LoadedAssemblyLogHelper for assembly logging.

Closes #302
Fixes #309

@stevejgordon stevejgordon requested a review from a team as a code owner December 4, 2025 14:50
- Add more information in the logging premable.
- Add logging of sources for env vars and the final effective values.
- Introduce `BootstrapLogger` for detailed logging before main logger initialization, supporting automatic disposal after inactivity. This is potentially useful for support scenarios but is marked as experimental.
- Refactor various classes to log public method invocations and configuration values to the bootstrap logger.
- Add `StackTraceLoggerExtensions` for caller info logging and `LoadedAssemblyLogHelper` for assembly logging.
Copy link
Collaborator

@JeremyBessonElastic JeremyBessonElastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevejgordon stevejgordon merged commit 85b052e into main Dec 5, 2025
9 checks passed
@stevejgordon stevejgordon deleted the logging-preamble branch December 5, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EDOT logs don't seem to subscribe to debug messages from the SDK when using the profiler Refine and enhance logging preamble for support scenarios

3 participants