diff --git a/config/test.exs b/config/test.exs index 62ed10e..9415c16 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,5 +1,5 @@ import Config config :opentelemetry, - tracer: :otel_tracer_default, - processors: [{:otel_batch_processor, %{scheduled_delay_ms: 1}}] + traces_exporter: :none, + processors: [{:otel_simple_processor, %{}}] diff --git a/mix.exs b/mix.exs index fbc6653..e56b690 100644 --- a/mix.exs +++ b/mix.exs @@ -27,7 +27,7 @@ defmodule Teleplug.MixProject do [ {:opentelemetry_api, "~> 1.1"}, {:plug, "~> 1.11"}, - {:telemetry, "~> 0.4 or ~> 1.0.0"} + {:telemetry, "~> 0.4 or ~> 1.0.0 or ~> 1.1.0"} ] ++ dev_deps() end diff --git a/mix.lock b/mix.lock index 7b53387..b9d15e7 100644 --- a/mix.lock +++ b/mix.lock @@ -25,6 +25,6 @@ "plug": {:hex, :plug, "1.14.0", "ba4f558468f69cbd9f6b356d25443d0b796fbdc887e03fa89001384a9cac638f", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "bf020432c7d4feb7b3af16a0c2701455cbbbb95e5b6866132cb09eb0c29adc14"}, "plug_crypto": {:hex, :plug_crypto, "1.2.3", "8f77d13aeb32bfd9e654cb68f0af517b371fb34c56c9f2b58fe3df1235c1251a", [:mix], [], "hexpm", "b5672099c6ad5c202c45f5a403f21a3411247f164e4a8fab056e5cd8a290f4a2"}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"}, - "telemetry": {:hex, :telemetry, "1.0.0", "0f453a102cdf13d506b7c0ab158324c337c41f1cc7548f0bc0e130bbf0ae9452", [:rebar3], [], "hexpm", "73bc09fa59b4a0284efb4624335583c528e07ec9ae76aca96ea0673850aec57a"}, + "telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"}, "tls_certificate_check": {:hex, :tls_certificate_check, "1.16.0", "45b05e3b993dbace2e4ebccb666eadbd038f1da8f4db9691f4f34a274dfb0bd7", [:rebar3], [{:ssl_verify_fun, "1.1.6", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm", "3dc0508c749619b8d6a5e21aca4d719c184f065541795b0556398c8e574a3064"}, } diff --git a/test/teleplug_test.exs b/test/teleplug_test.exs index 0df2aa1..5b29ffc 100644 --- a/test/teleplug_test.exs +++ b/test/teleplug_test.exs @@ -12,7 +12,7 @@ defmodule TeleplugTest do setup do flush_mailbox() - :otel_batch_processor.set_exporter(:otel_exporter_pid, self()) + :otel_simple_processor.set_exporter(:otel_exporter_pid, self()) :ok end