View Source Hummingbird (Hummingbird v1.0.0)
A plug for shipping events to honeycomb for tracing.
Assumes that incoming requests use the b3 propagation headers.
Add it to your endpoint:
defmodule MyAppWeb.Endpoint do use Phoenix.Endpoint, otp_app: :my_app plug Hummingbird
or under a branch of your router.
Add the telemetry genserver to your application:
children = [ .. Hummingbird.Telemetry, .. ]
Link to this section Summary
Link to this section Functions
Produces a list of headers for trace propagation given a conn
Produces a random span ID.
Produces a string of lowercase hex-encoded characters of length 16 by default.
Produces a random trace ID.
Follows the same generation rules as a span ID, but 32 characters are used instead of 16.