Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Fix disabling exporter traces (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rados13 authored Feb 13, 2023
1 parent f17cb28 commit c4b9678
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,16 @@ exporter =
{}
end

if otel_state != :purge,
do:
config(:opentelemetry,
processors: [
otel_batch_processor: %{
exporter: exporter
}
]
)
if otel_state != :purge do
config :opentelemetry,
processors: [
otel_batch_processor: %{
exporter: exporter
}
]
else
config :opentelemetry, traces_exporter: :none
end

config :membrane_videoroom_demo, VideoRoom.Repo,
database: System.get_env("DATABASE"),
Expand Down

0 comments on commit c4b9678

Please sign in to comment.