Skip to content

Commit 3e84946

Browse files
authored
Use exponential histograms in the quickstart sample (#387)
* update collector image to v1.115.1 * use exponential histograms in the quickstart-sample
1 parent a08a050 commit 3e84946

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/instrumentation-quickstart/docker-compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ services:
2121
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
2222
- OTEL_SERVICE_NAME=otel-quickstart-spring-boot
2323
- OTEL_METRIC_EXPORT_INTERVAL=5000
24+
- OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM
2425
volumes:
2526
- logs:/var/log:rw
2627
ports:
2728
- 8080
2829
depends_on:
2930
- "otelcol"
3031
otelcol:
31-
image: otel/opentelemetry-collector-contrib:0.107.0
32+
image: otel/opentelemetry-collector-contrib:0.115.1
3233
volumes:
3334
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro
3435
- logs:/var/log:ro

examples/instrumentation-quickstart/otel-collector-config.yaml

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

111111
service:
112+
telemetry:
113+
metrics:
114+
readers:
115+
- pull:
116+
exporter:
117+
prometheus:
118+
host: '0.0.0.0'
119+
port: 8888
112120
pipelines:
113121
traces:
114122
receivers: ["otlp"]

0 commit comments

Comments
 (0)