Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion samples/instrumentation-quickstart/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ services:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4318
- OTEL_SERVICE_NAME=otel-quickstart-python
- OTEL_METRIC_EXPORT_INTERVAL=5000
- OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=base2_exponential_bucket_histogram
volumes:
- logs:/var/log:rw
depends_on:
- "otelcol"
ports:
- 8080
otelcol:
image: otel/opentelemetry-collector-contrib:0.92.0
image: otel/opentelemetry-collector-contrib:0.115.1
volumes:
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro
- logs:/var/log:ro
Expand Down
12 changes: 10 additions & 2 deletions samples/instrumentation-quickstart/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ receivers:
exporters:
# Export logs and traces using the standard googelcloud exporter
googlecloud:
project: $GOOGLE_CLOUD_PROJECT
project: ${GOOGLE_CLOUD_PROJECT}
log:
default_log_name: "opentelemetry.io/collector-exported-log"
# Export metrics to Google Managed service for Prometheus
googlemanagedprometheus:
project: $GOOGLE_CLOUD_PROJECT
project: ${GOOGLE_CLOUD_PROJECT}

processors:
# Batch telemetry together to more efficiently send to GCP
Expand All @@ -111,6 +111,14 @@ processors:
detectors: ["env", "gcp"]

service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: '0.0.0.0'
port: 8888
pipelines:
traces:
receivers: ["otlp"]
Expand Down
20 changes: 10 additions & 10 deletions samples/instrumentation-quickstart/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Dependencies require for the instrumentation sample
flask==3.0.2
requests==2.31.0
opentelemetry-api==1.24.0
opentelemetry-sdk==1.24.0
opentelemetry-exporter-otlp-proto-http==1.24.0
opentelemetry-instrumentation-flask==0.45b0
opentelemetry-instrumentation-requests==0.45b0
opentelemetry-instrumentation-logging==0.45b0
python-json-logger==2.0.7
gunicorn==22.0.0
flask==3.1.0
requests==2.32.3
opentelemetry-api==1.29.0
opentelemetry-sdk==1.29.0
opentelemetry-exporter-otlp-proto-http==1.29.0
opentelemetry-instrumentation-flask==0.50b0
opentelemetry-instrumentation-requests==0.50b0
opentelemetry-instrumentation-logging==0.50b0
python-json-logger==3.2.0
gunicorn==23.0.0
Loading