diff --git a/config/config.exs b/config/config.exs index c45d2a4..a9c5368 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :spandex_phoenix, tracer: TestTracer diff --git a/config/dev.exs b/config/dev.exs index 42e9a13..35a6bf3 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :git_ops, changelog_file: "CHANGELOG.md", diff --git a/config/test.exs b/config/test.exs index d2d855e..becde76 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1 +1 @@ -use Mix.Config +import Config diff --git a/lib/spandex_phoenix/plug/add_context.ex b/lib/spandex_phoenix/plug/add_context.ex index 3a3c20c..d596c9b 100644 --- a/lib/spandex_phoenix/plug/add_context.ex +++ b/lib/spandex_phoenix/plug/add_context.ex @@ -5,7 +5,7 @@ defmodule SpandexPhoenix.Plug.AddContext do @default_opts [ customize_metadata: &SpandexPhoenix.default_metadata/1, - tracer: Application.get_env(:spandex_phoenix, :tracer) + tracer: Application.compile_env(:spandex_phoenix, :tracer) ] @impl Plug diff --git a/lib/spandex_phoenix/plug/finish_trace.ex b/lib/spandex_phoenix/plug/finish_trace.ex index 344e6c7..77708d0 100644 --- a/lib/spandex_phoenix/plug/finish_trace.ex +++ b/lib/spandex_phoenix/plug/finish_trace.ex @@ -4,7 +4,7 @@ defmodule SpandexPhoenix.Plug.FinishTrace do @behaviour Plug @default_opts [ - tracer: Application.get_env(:spandex_phoenix, :tracer) + tracer: Application.compile_env(:spandex_phoenix, :tracer) ] @impl Plug diff --git a/lib/spandex_phoenix/plug/start_trace.ex b/lib/spandex_phoenix/plug/start_trace.ex index 897ed83..e8f05b4 100644 --- a/lib/spandex_phoenix/plug/start_trace.ex +++ b/lib/spandex_phoenix/plug/start_trace.ex @@ -8,7 +8,7 @@ defmodule SpandexPhoenix.Plug.StartTrace do @default_opts [ filter_traces: &SpandexPhoenix.trace_all_requests/1, span_name: "request", - tracer: Application.get_env(:spandex_phoenix, :tracer) + tracer: Application.compile_env(:spandex_phoenix, :tracer) ] @impl Plug diff --git a/mix.exs b/mix.exs index 1b07935..d1e6446 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule SpandexPhoenix.MixProject do [ app: :spandex_phoenix, version: @version, - elixir: "~> 1.6", + elixir: "~> 1.10", elixirc_paths: elixirc_paths(Mix.env()), compilers: compilers(Mix.env()), start_permanent: Mix.env() == :prod,