Skip to content

Commit 73b45f3

Browse files
dashpoleiennae
andauthored
feat: update opentelemetry sample to use exponential histograms (#5073)
Signed-off-by: David Ashpole <[email protected]> Co-authored-by: Jennifer Davis <[email protected]>
1 parent 04304c8 commit 73b45f3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

opentelemetry/instrumentation/docker-compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ services:
77
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4318
88
- OTEL_SERVICE_NAME=otel-quickstart-go
99
- OTEL_GO_X_EXEMPLAR=true
10+
- OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM
1011
volumes:
1112
- logs:/var/log:rw
1213
depends_on:
1314
- "otelcol"
1415
otelcol:
15-
image: otel/opentelemetry-collector-contrib:0.105.0
16+
image: otel/opentelemetry-collector-contrib:0.115.1
1617
volumes:
1718
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro
1819
- logs:/var/log:ro

opentelemetry/instrumentation/otel-collector-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ processors:
9090
detectors: ["env", "gcp"]
9191

9292
service:
93+
telemetry:
94+
metrics:
95+
readers:
96+
- pull:
97+
exporter:
98+
prometheus:
99+
host: '0.0.0.0'
100+
port: 8888
93101
pipelines:
94102
traces:
95103
receivers: ["otlp"]

0 commit comments

Comments
 (0)