Teleplug (teleplug v2.1.0)
View SourceSimple opentelementry instrumented plug.
Summary
Types
@type opts() :: [{:trace_propagation, trace_propagation_opt()}]
Configuration options for Teleplug
- trace_propagation_opt(default:
:as_parent) - configure how trace propagation works.
@type trace_propagation_opt() :: :as_parent | :as_link | :disabled
How to handle trace propagation headers:
:as_parentset the propagated trace span as a parent for the request handler span. Note that if the parent span doesn't exist your trace might be dropped by the opentelemetry collector. If that behaviour is undesirable(eg. when using a public endpoint) you should use the:as_linkoption.:as_linkcreate a link between the propagated span and the request handler span.:disableddisable trace propagation.