hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.39k stars 4.43k forks source link

Configuring Envoy to initiate tracing #6645

Open marcosrmendezthd opened 5 years ago

marcosrmendezthd commented 5 years ago

There are a couple of ways of initiating traces when using envoy. I was wondering if there's a way to configure the random sampling or the start child span options. Is this something the envoy bootstrap template would solve?

By an external client via the x-client-trace-id header. By an internal service via the x-envoy-force-trace header. Randomly sampled via the random_sampling runtime setting. The router filter is also capable of creating a child span for egress calls via the start_child_span option.

https://www.envoyproxy.io/docs/envoy/v1.10.0/intro/arch_overview/tracing#arch-overview-tracing

porterctrlz commented 2 years ago

It would be very helpful if we could configure Envoy to initiate a trace root if x-client-trace-id is unspecified.