View Source Spandex.Plug.EndTrace (Spandex v3.2.0)

Finishes a trace, setting status and error based on the HTTP status.

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Accepts and validates opts for the plug, and underlying tracer.

Link to this section Functions

@spec call(conn :: Plug.Conn.t(), _opts :: Keyword.t()) :: Plug.Conn.t()

Callback implementation for Plug.call/2.

@spec init(opts :: Keyword.t()) :: Keyword.t()

Accepts and validates opts for the plug, and underlying tracer.


opts

Opts

  • tracer(:atom) Required: The tracing module to be used to start the trace.
  • tracer_opts(:keyword): Any opts to be passed to the tracer when starting or continuing the trace. - Default: []