diff --git a/examples/kitchen-sink.yaml b/examples/kitchen-sink.yaml index d2d1329..9b458ec 100644 --- a/examples/kitchen-sink.yaml +++ b/examples/kitchen-sink.yaml @@ -12,6 +12,9 @@ file_format: "0.3" # Configure if the SDK is disabled or not. # If omitted or null, false is used. disabled: false +# Configure the log level of the internal logger used by the SDK. +# If omitted, info is used. +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 b6b25ad..bac3240 100644 --- a/examples/sdk-config.yaml +++ b/examples/sdk-config.yaml @@ -12,6 +12,9 @@ file_format: "0.3" # Configure if the SDK is disabled or not. # If omitted or null, false is used. disabled: false +# Configure the log level of the internal logger used by the SDK. +# If omitted, info is used. +log_level: info # Configure resource for all signals. # If omitted, the default resource is used. resource: diff --git a/examples/sdk-migration-config.yaml b/examples/sdk-migration-config.yaml index 372d8c6..d198de3 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 @@ -41,6 +40,9 @@ file_format: "0.3" # Configure if the SDK is disabled or not. # If omitted or null, false is used. disabled: ${OTEL_SDK_DISABLED:-false} +# Configure the log level of the internal logger used by the SDK. +# If omitted, info is used. +log_level: ${OTEL_LOG_LEVEL:-info} # Configure resource for all signals. # If omitted, the default resource is used. resource: diff --git a/schema/opentelemetry_configuration.json b/schema/opentelemetry_configuration.json index d8d4bab..5da0679 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" }, diff --git a/schema/type_descriptions.yaml b/schema/type_descriptions.yaml index a5d5ebc..0bf03a8 100644 --- a/schema/type_descriptions.yaml +++ b/schema/type_descriptions.yaml @@ -23,6 +23,10 @@ Configure if the SDK is disabled or not. If omitted or null, false is used. + log_level: > + Configure the log level of the internal logger used by the SDK. + + If omitted, info is used. resource: > Configure resource for all signals.