Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/reference/config-supportability.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ The `AddElasticApm()` extension enables configuration, as is typical in an ASP.N

| Environment variable name | IConfiguration or Web.config key |
| --- | --- |
| `ELASTIC_APM_LOG_LEVEL` | `ElasticApm:LogLevel` |
| `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.
::::
6 changes: 3 additions & 3 deletions docs/reference/setup-auto-instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ The default value is `warn`. More verbose log levels like `trace` and `debug` ca
This takes precedence over the now deprecated `ELASTIC_APM_PROFILER_LOG` environment variable.

::::{note}
Although prefixed with `OTEL_` we prefer `OTEL_LOG_LEVEL`, when present as this aligns with the configuration for OpenTelemetry SDKs, simplifying migrations.
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.
::::

`OTEL_DOTNET_AUTO_LOG_DIRECTORY` *(optional)*
Expand All @@ -411,7 +411,7 @@ The user account under which the profiler process runs must have permission to w
::::

::::{note}
Although prefixed with `OTEL_` we prefer `OTEL_LOG_LEVEL`, when present as this aligns with the configuration for OpenTelemetry SDKs, simplifying migrations.
Although prefixed with `OTEL_` we prefer `OTEL_DOTNET_AUTO_LOG_DIRECTORY`, when present as this aligns with the configuration for EDOT .NET and OpenTelemetry SDKs, simplifying migrations.
::::

`ELASTIC_OTEL_LOG_TARGETS` *(optional)*
Expand All @@ -421,7 +421,7 @@ Although prefixed with `OTEL_` we prefer `OTEL_LOG_LEVEL`, when present as this
* stdout


The default value is `file`, which logs to the directory specified by `ELASTIC_APM_PROFILER_LOG_DIR` environment variable.
The default value is `file`, which logs to the directory specified by `OTEL_DOTNET_AUTO_LOG_DIRECTORY` environment variable.

This takes precedence over the now deprecated `ELASTIC_APM_PROFILER_LOG_TARGETS`

Expand Down