newrelic / elixir_agent

New Relic's Open Source Elixir Agent
https://hex.pm/packages/new_relic_agent
Apache License 2.0
254 stars 97 forks source link

Add generic handlers of distributed trace headers #412

Closed nickdichev-firework closed 6 months ago

nickdichev-firework commented 1 year ago

Adds handlers for "generic" (I see this term used elsewhere in this module) tracestate and traceparent headers for the non-HTTP path of associating a trace.

My use case is associating these headers when my app consumes them off a Kafka message. The current API seems flexible enough for me to basically tell the agent they came from HTTP -- but this PR makes things a little more generic.

Should address #265

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.