Skip to content

Commit

Permalink
add spec for liveview option (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenichi authored Jan 24, 2025
1 parent b6c577b commit b610422
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit b610422

Please sign in to comment.