Skip to content

Commit a3c6582

Browse files
lachmattopentelemetrybotKielek
authored
Remove unsupported environment variables from configuration page (#5560)
Co-authored-by: opentelemetrybot <[email protected]> Co-authored-by: Piotr Kiełkowicz <[email protected]>
1 parent 5b80dbb commit a3c6582

File tree

3 files changed

+17
-25
lines changed

3 files changed

+17
-25
lines changed

content/en/docs/zero-code/net/_index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,13 @@ libraries. For a complete list, see [Instrumentations](./instrumentations).
281281

282282
## Troubleshooting
283283

284-
To see the telemetry from your application directly on the standard output, set
285-
the following environment variables to `true` before launching your application:
284+
To see the telemetry from your application directly on the standard output, add
285+
`console` to the following environment variables value before launching your
286+
application:
286287

287-
- `OTEL_DOTNET_AUTO_LOGS_CONSOLE_EXPORTER_ENABLED`
288-
- `OTEL_DOTNET_AUTO_METRICS_CONSOLE_EXPORTER_ENABLED`
289-
- `OTEL_DOTNET_AUTO_TRACES_CONSOLE_EXPORTER_ENABLED`
288+
- `OTEL_TRACES_EXPORTER`
289+
- `OTEL_METRICS_EXPORTER`
290+
- `OTEL_LOGS_EXPORTER`
290291

291292
For general troubleshooting steps and solutions to specific issues, see
292293
[Troubleshooting](./troubleshooting).

content/en/docs/zero-code/net/configuration.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,8 @@ path of the current user's
378378
[temporary folder](https://docs.microsoft.com/en-us/dotnet/api/System.IO.Path.GetTempPath?view=net-6.0)
379379
instead.
380380

381-
| Environment variable | Description | Default value | Status |
382-
| --------------------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------- | --------------------------------------------------------- |
383-
| `OTEL_DOTNET_AUTO_LOG_DIRECTORY` | Directory of the .NET Tracer logs. | _See the previous note on default paths_ | [Experimental](/docs/specs/otel/versioning-and-stability) |
384-
| `OTEL_LOG_LEVEL` | SDK log level. (supported values: `none`,`error`,`warn`,`info`,`debug`) | `info` | [Stable](/docs/specs/otel/versioning-and-stability) |
385-
| `OTEL_DOTNET_AUTO_TRACES_CONSOLE_EXPORTER_ENABLED` | Whether the traces console exporter is enabled or not. | `false` | [Deprecated](/docs/specs/otel/versioning-and-stability) |
386-
| `OTEL_DOTNET_AUTO_METRICS_CONSOLE_EXPORTER_ENABLED` | Whether the metrics console exporter is enabled or not. | `false` | [Deprecated](/docs/specs/otel/versioning-and-stability) |
387-
| `OTEL_DOTNET_AUTO_LOGS_CONSOLE_EXPORTER_ENABLED` | Whether the logs console exporter is enabled or not. | `false` | [Deprecated](/docs/specs/otel/versioning-and-stability) |
388-
| `OTEL_DOTNET_AUTO_LOGS_INCLUDE_FORMATTED_MESSAGE` | Whether the log state should be formatted. | `false` | [Experimental](/docs/specs/otel/versioning-and-stability) |
381+
| Environment variable | Description | Default value | Status |
382+
| ------------------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------- | --------------------------------------------------------- |
383+
| `OTEL_DOTNET_AUTO_LOG_DIRECTORY` | Directory of the .NET Tracer logs. | _See the previous note on default paths_ | [Experimental](/docs/specs/otel/versioning-and-stability) |
384+
| `OTEL_LOG_LEVEL` | SDK log level. (supported values: `none`,`error`,`warn`,`info`,`debug`) | `info` | [Stable](/docs/specs/otel/versioning-and-stability) |
385+
| `OTEL_DOTNET_AUTO_LOGS_INCLUDE_FORMATTED_MESSAGE` | Whether the log state should be formatted. | `false` | [Experimental](/docs/specs/otel/versioning-and-stability) |

content/en/docs/zero-code/net/getting-started.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,25 +158,19 @@ or PowerShell scripts.
158158
{{< tabpane text=true >}} {{% tab Unix-shell %}}
159159

160160
```sh
161-
export OTEL_TRACES_EXPORTER=none \
162-
OTEL_METRICS_EXPORTER=none \
163-
OTEL_LOGS_EXPORTER=none \
164-
OTEL_DOTNET_AUTO_TRACES_CONSOLE_EXPORTER_ENABLED=true \
165-
OTEL_DOTNET_AUTO_METRICS_CONSOLE_EXPORTER_ENABLED=true \
166-
OTEL_DOTNET_AUTO_LOGS_CONSOLE_EXPORTER_ENABLED=true
161+
export OTEL_TRACES_EXPORTER=console \
162+
OTEL_METRICS_EXPORTER=console \
163+
OTEL_LOGS_EXPORTER=console
167164
OTEL_SERVICE_NAME=RollDiceService
168165
. $HOME/.otel-dotnet-auto/instrument.sh
169166
```
170167

171168
{{% /tab %}} {{% tab PowerShell - Windows %}}
172169

173170
```powershell
174-
$env:OTEL_TRACES_EXPORTER="none"
175-
$env:OTEL_METRICS_EXPORTER="none"
176-
$env:OTEL_LOGS_EXPORTER="none"
177-
$env:OTEL_DOTNET_AUTO_TRACES_CONSOLE_EXPORTER_ENABLED="true"
178-
$env:OTEL_DOTNET_AUTO_METRICS_CONSOLE_EXPORTER_ENABLED="true"
179-
$env:OTEL_DOTNET_AUTO_LOGS_CONSOLE_EXPORTER_ENABLED="true"
171+
$env:OTEL_TRACES_EXPORTER="console"
172+
$env:OTEL_METRICS_EXPORTER="console"
173+
$env:OTEL_LOGS_EXPORTER="console"
180174
Register-OpenTelemetryForCurrentSession -OTelServiceName "RollDiceService"
181175
```
182176

0 commit comments

Comments
 (0)