diff --git a/VERSION b/VERSION index 373f8c6f..72f9fa82 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.3 \ No newline at end of file +0.2.4 \ No newline at end of file diff --git a/config/config.exs b/config/config.exs index d89917c6..28f378d2 100644 --- a/config/config.exs +++ b/config/config.exs @@ -49,6 +49,7 @@ config :libcluster, ] ] + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{config_env()}.exs" diff --git a/lib/supavisor/otel.ex b/lib/supavisor/otel.ex new file mode 100644 index 00000000..e69de29b diff --git a/mix.exs b/mix.exs index 5868860d..cd23928b 100644 --- a/mix.exs +++ b/mix.exs @@ -61,7 +61,13 @@ defmodule Supavisor.MixProject do # pooller {:poolboy, "~> 1.5.2"}, {:syn, "~> 3.3"}, - {:pgo, "~> 0.13"} + {:pgo, "~> 0.13"}, + {:opentelemetry, "~> 1.3", targets: :otel}, + {:opentelemetry_api, "~> 1.2"}, + {:opentelemetry_exporter, "~> 1.4", targets: :otel}, + {:opentelemetry_phoenix, "~> 1.1", targets: :otel}, + {:opentelemetry_cowboy, "~> 0.2", targets: :otel}, + {:opentelemetry_ecto, "~> 1.1.1", targets: :otel} # TODO: add ranch deps ] end @@ -69,7 +75,8 @@ defmodule Supavisor.MixProject do def releases do [ supavisor: [ - include_erts: System.get_env("INCLUDE_ERTS", "true") == "true" + include_erts: System.get_env("INCLUDE_ERTS", "true") == "true", + applications: [opentelemetry: :temporary] ], supavisor_bin: [ steps: [:assemble, &Burrito.wrap/1],