Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/docs/monitoring/docker-compose.yaml
13389 views
1
# Copilot Chat OTel monitoring stack
2
#
3
# Starts an OpenTelemetry Collector that accepts OTLP on :4318 (HTTP) and :4317 (gRPC),
4
# then forwards traces/metrics/logs to Azure Application Insights and a local Jaeger instance.
5
#
6
# Usage:
7
# # Set your App Insights connection string:
8
# export APPLICATIONINSIGHTS_CONNECTION_STRING="InstrumentationKey=...;IngestionEndpoint=..."
9
#
10
# # Start the stack:
11
# docker compose up -d
12
#
13
# # View traces in Jaeger:
14
# open http://localhost:16687
15
#
16
# # Then launch VS Code with:
17
# COPILOT_OTEL_ENABLED=true OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4328 code .
18
19
services:
20
otel-collector:
21
image: otel/opentelemetry-collector-contrib:latest
22
command: ["--config=/etc/otel-collector-config.yaml"]
23
volumes:
24
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml:ro
25
ports:
26
- "4327:4317" # OTLP gRPC (host:4327 → container:4317)
27
- "4328:4318" # OTLP HTTP (host:4328 → container:4318)
28
environment:
29
- APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_CONNECTION_STRING:-}
30
restart: unless-stopped
31
32
jaeger:
33
image: jaegertracing/jaeger:latest
34
ports:
35
- "16687:16686" # Jaeger UI (host:16687 to avoid conflict)
36
restart: unless-stopped
37
38