Supportability configuration options
Serverless Observability Stack APM Agent .NET
Sets the logging level for the agent.
Valid options: Critical, Error, Warning, Info, Debug, Trace and None (None disables the logging).
Important
The AddElasticApm() extension enables configuration, as is typical in an ASP.NET Core application. You must instead set the LogLevel for the internal APM logger under the Logging section of appsettings.json. More details, including a sample configuration file are available in Configuration on ASP.NET Core.
| Environment variable name | IConfiguration or Web.config key |
|---|---|
OTEL_LOG_LEVEL |
ElasticApm:LogLevel |
| Default | Type |
|---|---|
Error |
String |
Note
Although prefixed with OTEL_ we prefer OTEL_LOG_LEVEL, when present as this aligns with the configuration for EDOT .NET and OpenTelemetry SDKs, simplifying migrations.