Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/docs/monitoring/otel-collector-config.yaml
13389 views
1
# OpenTelemetry Collector configuration for Copilot Chat
2
# Receives OTLP from Copilot Chat and exports to multiple backends.
3
#
4
# Usage:
5
# docker compose -f docs/monitoring/docker-compose.yaml up -d
6
#
7
# Then set in VS Code or launch.json:
8
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
9
10
receivers:
11
otlp:
12
protocols:
13
http:
14
endpoint: 0.0.0.0:4318
15
grpc:
16
endpoint: 0.0.0.0:4317
17
18
processors:
19
batch:
20
timeout: 5s
21
send_batch_size: 256
22
23
exporters:
24
# Azure Application Insights via connection string
25
# Replace <your-connection-string> with your App Insights connection string
26
azuremonitor:
27
connection_string: "${APPLICATIONINSIGHTS_CONNECTION_STRING}"
28
29
# Debug exporter — prints to collector stdout (useful for troubleshooting)
30
debug:
31
verbosity: basic
32
33
# Local Jaeger for trace visualization
34
otlphttp/jaeger:
35
endpoint: http://jaeger:4318
36
37
service:
38
pipelines:
39
traces:
40
receivers: [otlp]
41
processors: [batch]
42
exporters: [azuremonitor, otlphttp/jaeger, debug]
43
metrics:
44
receivers: [otlp]
45
processors: [batch]
46
exporters: [azuremonitor, debug]
47
logs:
48
receivers: [otlp]
49
processors: [batch]
50
exporters: [azuremonitor, debug]
51
52