Skip to content

Commit

Permalink
missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed May 8, 2024
1 parent 0a7375f commit 854d038
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/req/telemetry.ex
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
defmodule Req.Telemetry do
@moduledoc """
This Supervisor is responsible for starting the Telemetry poller and defining the metrics to be collected for Req (finch).
We poll the metrics every 60 seconds and send them to the `TelemetryMetricsSplunk` reporter.
"""

use Supervisor

alias Telemetry.Metrics

@doc """
Starts the supervisor.
"""
def start_link(arg) do
Supervisor.start_link(__MODULE__, arg, name: __MODULE__)
end

@doc """
Initializes the supervisor.
"""
def init(_arg) do
telemetry_metrics_splunk_config = Application.get_env(:dotcom, :telemetry_metrics_splunk)

Expand Down

0 comments on commit 854d038

Please sign in to comment.