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 log_level configuration #121

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ file_format: "0.1"
# Environment variable: OTEL_SDK_DISABLED
disabled: false

# Configure the log level used by the SDK logger
jack-berg marked this conversation as resolved.
Show resolved Hide resolved
codeboten marked this conversation as resolved.
Show resolved Hide resolved
#
# Environment variable: OTEL_LOG_LEVEL
log_level: info
codeboten marked this conversation as resolved.
Show resolved Hide resolved

codeboten marked this conversation as resolved.
Show resolved Hide resolved
# Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits.
attribute_limits:
# Configure max attribute value size.
Expand Down
3 changes: 3 additions & 0 deletions examples/sdk-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ file_format: "0.1"
# Configure if the SDK is disabled or not.
disabled: false

# Configure the log level used by the SDK logger
log_level: info

# Configure resource for all signals.
resource:
# Configure resource attributes.
Expand Down
4 changes: 3 additions & 1 deletion examples/sdk-migration-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# for more information. The following spec defined env vars are NOT referenced and are thus
# ignored:
#
# - OTEL_LOG_LEVEL
# - OTEL_PROPAGATORS
# - OTEL_TRACES_SAMPLER
# - OTEL_TRACES_SAMPLER_ARG
Expand Down Expand Up @@ -42,6 +41,9 @@ file_format: "0.1"
# Configure if the SDK is disabled or not.
disabled: ${OTEL_SDK_DISABLED:-false}

# Configure the log level used by the SDK logger
log_level: ${OTEL_LOG_LEVEL:-info}

# Configure resource for all signals.
resource:
# Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.
Expand Down
3 changes: 3 additions & 0 deletions schema/opentelemetry_configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"disabled": {
"type": ["boolean", "null"]
},
"log_level": {
"type": ["string", "null"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could, though without a resolution on open-telemetry/opentelemetry-specification#2039, we may be jumping ahead of the spec

},
"attribute_limits": {
"$ref": "#/$defs/AttributeLimits"
},
Expand Down
Loading