-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration Cleanup for beta release (#495)
* First pass at documentation cleanup. This may be too aggressive, but I'm happy to discuss. Key changes include: - Remove public documentation of settings primarily geared toward repo authors - Split up exporter configurations into smaller sections and redirect to the SDK for all environment variables handled by the SDK. - Split up the .NET CLR Profiler table into two tables so it's very clear for users to copy/paste environment variable names * Apply suggestions from code review Commit Fabrizio's suggestions Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]> * Add a new file docs/internal/config.md to document configuration settings that are not public-facing * Combine the .NET Framework and .NET Core environment variable tables again but with improved environmnent variable keys * Update table columns from "Default" to "Default value" based on feedback * Add important environment variables to each exporter and add disclaimer about OTEL_EXPORTER_OTLP_PROTOCOL defaulting to protobuf * Update docs/internal/config.md Co-authored-by: Paulo Janotti <[email protected]> * Attempt to fix most markdown issues * Slight modifications to hopefully pass the linter Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]> Co-authored-by: Paulo Janotti <[email protected]>
- Loading branch information
1 parent
0e9ea15
commit 8ec1d72
Showing
3 changed files
with
90 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Configuration | ||
|
||
This document lists advanced configuration settings rarely changed by users. | ||
|
||
## Environment | ||
|
||
| Environment variable | Description | Default value | | ||
|-|-|-| | ||
| `OTEL_DOTNET_AUTO_AZURE_APP_SERVICES` | Set to indicate that the profiler is running in the context of Azure App Services. | `false` | | ||
|
||
## Diagnostics | ||
|
||
| Environment variable | Description | Default value | | ||
|-|-|-| | ||
| `OTEL_DOTNET_AUTO_DUMP_ILREWRITE_ENABLED` | Lets the profiler dump the IL original code and modification to the log. | `false` | | ||
|
||
## CLR Optimizations | ||
|
||
Bytecode instrumentations are implemented by registering a CLR Profiler, receiving | ||
notifications from the .NET runtime, and rewriting methods at runtime to invoke the | ||
appropriate instrumentation. The CLR Profiler components of this library have been | ||
authored to run with as much of the CLR optimizations enabled as possible, but under | ||
rare circumstances it is possible that the optimizations have caused rewriting | ||
not to run, resulting in missing spans. To determine whether CLR optimizations | ||
are affecting instrumentations, you may set the following configurations to | ||
modify CLR optimizations. | ||
|
||
| Environment variable | Description | Default value | | ||
|-|-|-| | ||
| `OTEL_DOTNET_AUTO_CLR_DISABLE_OPTIMIZATIONS` | Set to `true` to disable all JIT optimizations. | `false` | | ||
| `OTEL_DOTNET_AUTO_CLR_ENABLE_INLINING` | Set to `false` to disable JIT inlining. | `true` | | ||
| `OTEL_DOTNET_AUTO_CLR_ENABLE_NGEN` | Set to `false` to disable NGEN images. | `true` | |