HoneylixirTracing.Integrations.Plug (honeylixir_tracing v0.4.0) View Source

A Plug meant to be inserted into the pipeline for wrapping a request in a span.

Examples

defmodule SampleApp.Endpoint do
  use Phoenix.Endpoint, otp_app: :sample_app

  @session_options [
    store: :cookie,
    key: "_sample_app_key",
    signing_salt: "YouOKaKr"
  ]

  plug HoneylixirTracing.Integrations.Plug
  plug Plug.RequestId
  plug Plug.Telemetry, event_prefix: [:phoenix, :endpoint]

  # ... the rest of your plugs
end

Link to this section Summary

Link to this section Functions