opentelemetry-erlang-contrib/examples/roll_dice/otel-collector-config.yaml
Marc Delagrammatikas c7edb8a48c
Dice game example (#173)
* generate a phoenix API only project

* adds /api/rolldice endpoint and opentelemetry configuration

* change span attribute name to match implementations in other langs

---------

Co-authored-by: Tristan Sloughter <t@crashfast.com>
2023-10-27 13:23:07 -06:00

48 lines
895 B
YAML

# OpenTelemetry Collector config that receives OTLP and exports to Zipkin
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
cors:
allowed_origins:
- "http://localhost:4000"
endpoint: "0.0.0.0:4318"
processors:
batch:
send_batch_size: 1024
timeout: 5s
exporters:
otlp:
endpoint: jaeger-all-in-one:4317
tls:
insecure: true
logging:
loglevel: debug
sampling_initial: 1
sampling_thereafter: 1
extensions:
zpages: {}
service:
telemetry:
logs:
level: "debug"
extensions: [zpages]
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, otlp]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [logging]
logs:
receivers: [otlp]
processors: [batch]
exporters: [logging]