Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OTEL_SDK_DISABLED env var to disable opentelemetry SDK. #2679

Merged
merged 19 commits into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ release.

### SDK Configuration

- Add the OTEL_SDK_ENABLED environment variable to the SDK configuration.
jmacd marked this conversation as resolved.
Show resolved Hide resolved
([2679](https://github.com/open-telemetry/opentelemetry-specification/pull/2679))

- Mark `OTEL_METRIC_EXPORT_INTERVAL`, `OTEL_METRIC_EXPORT_TIMEOUT`
environment variables as Stable
([#2658](https://github.com/open-telemetry/opentelemetry-specification/pull/2658))
Expand Down
3 changes: 2 additions & 1 deletion spec-compliance-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ Disclaimer: this list of features is still a work in progress, please refer to t
Note: Support for environment variables is optional.

|Feature |Go | Java |JS |Python|Ruby|Erlang|PHP|Rust|C++|.NET|Swift|
|--------------------------------------------------|---|------|---|------|----|------|---|----|---|----|-----|
|--------------------------------------------------|--|------|---|------|----|------|---|----|---|----|-----|
|OTEL_SDK_ENABLED | - | | - | - | - | - | - | - | - | - | - |
brunobat marked this conversation as resolved.
Show resolved Hide resolved
|OTEL_RESOURCE_ATTRIBUTES | + | + | + | + | + | + | + | + | + | + | - |
|OTEL_SERVICE_NAME | + | + | + | + | + | + | + | | | + | |
|OTEL_LOG_LEVEL | - | - | + | [-][py1059] | + | - | - | | - | - | - |
Expand Down
1 change: 1 addition & 0 deletions specification/sdk-environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ For example, the value `12000` indicates 12000 milliseconds, i.e., 12 seconds.

| Name | Description | Default | Notes |
| ------------------------ | ------------------------------------------------- | --------------------------------- | ----------------------------------- |
| OTEL_SDK_ENABLED | Activate/deactivate the SDK | true | If "false", disable the SDK. This will configure Noop SDK implementation providers for Tracing, Metrics, and Logs. Any other value or absence of the variable will have no effect.|
brunobat marked this conversation as resolved.
Show resolved Hide resolved
| OTEL_RESOURCE_ATTRIBUTES | Key-value pairs to be used as resource attributes | See [Resource semantic conventions](resource/semantic_conventions/README.md#semantic-attributes-with-sdk-provided-default-value) for details. | See [Resource SDK](./resource/sdk.md#specifying-resource-information-via-an-environment-variable) for more details. |
| OTEL_SERVICE_NAME | Sets the value of the [`service.name`](./resource/semantic_conventions/README.md#service) resource attribute | | If `service.name` is also provided in `OTEL_RESOURCE_ATTRIBUTES`, then `OTEL_SERVICE_NAME` takes precedence. |
| OTEL_LOG_LEVEL | Log level used by the SDK logger | "info" | |
Expand Down