View Source Hummingbird (Hummingbird v1.0.2)

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

Functions

Produces a list of headers for trace propagation given a conn

Produces a random span ID.

Produces a random trace ID.

Link to this section Functions

Link to this function

propagation_headers(conn)

View Source

Produces a list of headers for trace propagation given a conn

Link to this function

random_span_id(length \\ 16)

View Source

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.