Skip to content

Commit f537c70

Browse files
docs(otel): add sampling example and fix config key casing
Signed-off-by: Adrian Cole <[email protected]>
1 parent fd40b38 commit f537c70

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

documentation/docs/guides/config-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ GOOSE_SEARCH_PATHS:
9999
# Observability (OpenTelemetry)
100100
# Prefer ENV, which overrides this configuration and fully supports
101101
# OTel semantics. See the environment-variables guide for details.
102-
OTEL_EXPORTER_OTLP_ENDPOINT: "http://localhost:4318"
103-
OTEL_EXPORTER_OTLP_TIMEOUT: 20000
102+
otel_exporter_otlp_endpoint: "http://localhost:4318"
103+
otel_exporter_otlp_timeout: 20000
104104

105105
# Security Configuration
106106
SECURITY_PROMPT_ENABLED: true

documentation/docs/guides/environment-variables.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,10 @@ export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
479479

480480
# Debug traces to console (no collector needed)
481481
export OTEL_TRACES_EXPORTER="console"
482+
483+
# Sample 10% of traces (reduce volume in production)
484+
export OTEL_TRACES_SAMPLER="parentbased_traceidratio"
485+
export OTEL_TRACES_SAMPLER_ARG="0.1"
482486
```
483487

484488
[otel-env]: https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/

0 commit comments

Comments
 (0)