diff --git a/examples/kitchen-sink.yaml b/examples/kitchen-sink.yaml index fd56325..ba4a4c4 100644 --- a/examples/kitchen-sink.yaml +++ b/examples/kitchen-sink.yaml @@ -15,6 +15,11 @@ file_format: "0.1" # Environment variable: OTEL_SDK_DISABLED disabled: false +# Configure the log level used by the SDK logger +# +# Environment variable: OTEL_LOG_LEVEL +log_level: info + # Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits. attribute_limits: # Configure max attribute value size. diff --git a/examples/sdk-config.yaml b/examples/sdk-config.yaml index 9675500..3b90d1b 100644 --- a/examples/sdk-config.yaml +++ b/examples/sdk-config.yaml @@ -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. diff --git a/examples/sdk-migration-config.yaml b/examples/sdk-migration-config.yaml index 26bdaac..45208ef 100644 --- a/examples/sdk-migration-config.yaml +++ b/examples/sdk-migration-config.yaml @@ -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 @@ -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. diff --git a/schema/opentelemetry_configuration.json b/schema/opentelemetry_configuration.json index 2f955cb..3d1a8dc 100644 --- a/schema/opentelemetry_configuration.json +++ b/schema/opentelemetry_configuration.json @@ -11,6 +11,9 @@ "disabled": { "type": ["boolean", "null"] }, + "log_level": { + "type": ["string", "null"] + }, "attribute_limits": { "$ref": "#/$defs/AttributeLimits" },