open_telemetry_decorator icon indicating copy to clipboard operation
open_telemetry_decorator copied to clipboard

Option to always add PID as a span attribute

Open leggebroten opened this issue 9 months ago • 0 comments

It would be nice to have option to always add the PID as an attribute

When correlating inter-process spans, it would be very helpful to always have PID as an attribute. For instance, if I had a with_span on a process' init call, you could correlate all spans made by that process instance.

Seems like there would be two options:

  • General config.exs where you turn it on for all spans
  • A special :pid option (similar to :result) in the include: list.

leggebroten avatar Oct 06 '23 17:10 leggebroten