Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,17 @@ defmodule OpentelemetryPhoenix do
@tracer_id __MODULE__

@typedoc "Setup options"
@type opts :: [endpoint_prefix() | adapter()]
@type opts :: [endpoint_prefix() | adapter() | liveview()]

@typedoc "The endpoint prefix in your endpoint. Defaults to `[:phoenix, :endpoint]`"
@type endpoint_prefix :: {:endpoint_prefix, [atom()]}

@typedoc "The phoenix server adapter being used. Required"
@type adapter :: {:adapter, :cowboy2 | :bandit}

@typedoc "Attach LiveView handlers. Optional"
@type liveview :: {:liveview, boolean()}

@doc """
Initializes and configures the telemetry handlers.
"""
Expand Down
Loading