Skip to content

Commit b1c5c96

Browse files
committed
Minor fixes to env vars in docs
1 parent 16b1f0d commit b1c5c96

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/reference/config-supportability.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ The `AddElasticApm()` extension enables configuration, as is typical in an ASP.N
2727

2828
| Environment variable name | IConfiguration or Web.config key |
2929
| --- | --- |
30-
| `ELASTIC_APM_LOG_LEVEL` | `ElasticApm:LogLevel` |
30+
| `OTEL_LOG_LEVEL` | `ElasticApm:LogLevel` |
3131

3232
| Default | Type |
3333
| --- | --- |
3434
| `Error` | String |
3535

36+
::::{note}
37+
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.
38+
::::

docs/reference/setup-auto-instrumentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ The default value is `warn`. More verbose log levels like `trace` and `debug` ca
392392
This takes precedence over the now deprecated `ELASTIC_APM_PROFILER_LOG` environment variable.
393393
394394
::::{note}
395-
Although prefixed with `OTEL_` we prefer `OTEL_LOG_LEVEL`, when present as this aligns with the configuration for OpenTelemetry SDKs, simplifying migrations.
395+
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.
396396
::::
397397
398398
`OTEL_DOTNET_AUTO_LOG_DIRECTORY` *(optional)*
@@ -411,7 +411,7 @@ The user account under which the profiler process runs must have permission to w
411411
::::
412412
413413
::::{note}
414-
Although prefixed with `OTEL_` we prefer `OTEL_LOG_LEVEL`, when present as this aligns with the configuration for OpenTelemetry SDKs, simplifying migrations.
414+
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.
415415
::::
416416
417417
`ELASTIC_OTEL_LOG_TARGETS` *(optional)*
@@ -421,7 +421,7 @@ Although prefixed with `OTEL_` we prefer `OTEL_LOG_LEVEL`, when present as this
421421
* stdout
422422
423423
424-
The default value is `file`, which logs to the directory specified by `ELASTIC_APM_PROFILER_LOG_DIR` environment variable.
424+
The default value is `file`, which logs to the directory specified by `OTEL_DOTNET_AUTO_LOG_DIRECTORY` environment variable.
425425
426426
This takes precedence over the now deprecated `ELASTIC_APM_PROFILER_LOG_TARGETS`
427427

0 commit comments

Comments
 (0)