fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.25k stars 619 forks source link

Datadog tracing #772

Open ishworg opened 4 years ago

ishworg commented 4 years ago

Is tracing with datadog agent supported?

https://github.com/fabiolb/fabio/blob/master/fabio.properties#L1272

Fabio version: 1.5.12. Config:

# https://github.com/fabiolb/fabio/blob/master/fabio.properties
proxy.addr = :80;proto=grpc
proxy.strategy = rr
registry.backend = consul
registry.consul.register.enabled = true
registry.consul.addr = 127.0.0.1:8500
registry.consul.tagprefix = urlprefix-
registry.timeout = 60s
registry.consul.register.checkInterval = 1s
registry.consul.register.checkTimeout = 1s
registry.consul.register.checkDeregisterCriticalServiceAfter = 1m
registry.consul.serviceMonitors = 4
registry.consul.pollInterval = 1s
glob.cache.size = 10000
insecure = true
log.access.target = stdout
metrics.target = statsd
metrics.statsd.addr = 127.0.0.1:8125
metrics.prefix = lb
log.level = DEBUG
ui.addr = :8080
ui.color = light-blue
runtime.gomaxprocs = -1
tracing.TracingEnabled = true
tracing.CollectorType = http
tracing.ConnectString = http://127.0.0.1:8126/v0.1/spans
tracing.ServiceName = Fabiolb
tracing.SpanName = {{.Proto}} {{.Method}} {{.Path}}
tracing.TraceID128Bit = true
tracing.SamplerRate = 1

I sniffed on port 8126 (tcp) on loopback interface but i never see any traffic destined to 127.0.0.1:8126 (tcp). Datadog agent's tracer sits on 127.0.0.1:8126 (tcp). Datadog specifies they are opentracing compatible.

Thanks.

nathanejohnson commented 4 years ago

could you post some logs and possibly give a little more detail on what you did to sniff traffic on 8126?

ishworg commented 3 years ago

could you post some logs and possibly give a little more detail on what you did to sniff traffic on 8126?

what are you aiming to achieve by me giving you the log?

nathanejohnson commented 3 years ago

So if you're expecting to see tcp traffic, statsd backend at present is udp only.