-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtelemetry.properties
More file actions
29 lines (23 loc) · 855 Bytes
/
Copy pathtelemetry.properties
File metadata and controls
29 lines (23 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Service name
otel.service.name=demo
# Exporter configuration
# Option 1: OTLP (recommended for production)
otel.traces.exporter=otlp
otel.metrics.exporter=otlp
otel.logs.exporter=otlp
# OTLP endpoint (adjust to your collector/backend)
otel.exporter.otlp.endpoint=http://alloy:4317
# otel.exporter.otlp.protocol=http/protobuf
otel.exporter.otlp.protocol=grpc
# Option 2: Console exporter (for testing/debugging)
# otel.traces.exporter=logging
# otel.metrics.exporter=logging
# otel.logs.exporter=logging
# Option 3: Zipkin (alternative)
# otel.traces.exporter=zipkin
# otel.exporter.zipkin.endpoint=http://localhost:9411/api/v2/spans
# Resource attributes
otel.resource.attributes=service.name=demo,service.version=0.0.1-SNAPSHOT
# Instrumentation configuration
otel.instrumentation.spring-webmvc.enabled=true
otel.instrumentation.jdbc.enabled=true