General Troubleshooting - .NET Distributed Application with OpenTelemetry
Write Open Telemetry Logging to Standard Out
From Open Telemetry’s documentation, to see the telemetry from your application directly on the standard output, set the following environment variables
before launching your application:
- OTEL_DOTNET_AUTO_LOGS_CONSOLE_EXPORTER_ENABLED=true
- OTEL_DOTNET_AUTO_METRICS_CONSOLE_EXPORTER_ENABLED=true
- OTEL_DOTNET_AUTO_TRACES_CONSOLE_EXPORTER_ENABLED=true
Enable Detailed Logging
From Open Telemetry’s documentation, to get detailed logs set the following environment variables
before launching your application:
- OTEL_LOG_LEVEL=debug
Enable Host Tracing
From Open Telemetry’s documentation, to get detailed information for solving issues around runtime, frameworks, and assemblies, set the following environment variables
before launching your application:
- COREHOST_TRACE=1
- COREHOST_TRACEFILE=corehost_verbose_tracing.log