Skip to content

Commit

Permalink
Update telemetry dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fatboypunk committed Nov 8, 2024
1 parent 82e6e0f commit d2a62ac
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 31 deletions.
11 changes: 9 additions & 2 deletions lib/tracing.ex
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,14 @@ defmodule Tracing do

def setup_element(:aws), do: Tracing.AWSTelemetry.setup()
def setup_element(:chromic_pdf), do: Tracing.ChromicPDFTelemetry.setup()
def setup_element(:liveview), do: Tracing.LiveviewTelemetry.setup()
# def setup_element(:liveview), do: Tracing.LiveviewTelemetry.setup()
def setup_element(:oban), do: Tracing.ObanTelemetry.setup()
def setup_element(:phoenix), do: OpentelemetryPhoenix.setup()

def setup_element({:phoenix, options}) do
if Keyword.get(options, :adapter) == :cowboy2 do
:opentelemetry_cowboy.setup()
end

OpentelemetryPhoenix.setup(options)
end
end
21 changes: 15 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ defmodule Tracing.MixProject do
name: "Tracing",
version: "0.1.5",
elixir: "~> 1.16",
docs: docs(),
compilers: Mix.compilers(),
deps: deps(),
description: description(),
Expand Down Expand Up @@ -36,19 +37,27 @@ defmodule Tracing.MixProject do
{:decorator, "~> 1.4"},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:opentelemetry, "~> 1.3.0"},
{:opentelemetry_semantic_conventions, "~> 0.2.0"},
{:opentelemetry_api, "~> 1.2"},
{:opentelemetry, "~> 1.5"},
{:opentelemetry_semantic_conventions, "~> 1.27"},
{:opentelemetry_api, "~> 1.4"},
{:opentelemetry_ecto, "~> 1.1"},
{:opentelemetry_exporter, "~> 1.6"},
{:opentelemetry_phoenix, "~> 1.2"},
{:opentelemetry_telemetry, "~> 1.0.0"},
{:opentelemetry_exporter, "~> 1.8"},
{:opentelemetry_cowboy, "1.0.0-rc.1"},
{:opentelemetry_phoenix, "~> 2.0.0-rc.1"},
{:opentelemetry_telemetry, "~> 1.1"},
{:telemetry, "~> 1.0"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"}
]
end

defp docs do
[
main: "Tracing",
extras: ["README.md"]
]
end

defp description() do
"""
Standardized library for using OpenTelemetry / :telemetry in Elixir applications.
Expand Down
Loading

0 comments on commit d2a62ac

Please sign in to comment.