Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate from deprecated functions #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

config :spandex_phoenix, tracer: TestTracer

Expand Down
2 changes: 1 addition & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Mix.Config
import Config

config :git_ops,
changelog_file: "CHANGELOG.md",
Expand Down
2 changes: 1 addition & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use Mix.Config
import Config
2 changes: 1 addition & 1 deletion lib/spandex_phoenix/plug/add_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/spandex_phoenix/plug/finish_trace.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/spandex_phoenix/plug/start_trace.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down