Skip to content

Commit

Permalink
fix: disable otel trace exporting by default (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc authored Jun 5, 2024
1 parent a93db4a commit d177274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ config :logflare, Logflare.AlertsScheduler, init_task: {Logflare.Alerting, :init

config :opentelemetry,
span_processor: :batch,
traces_exporter: :otlp
traces_exporter: :none

import_config "#{Mix.env()}.exs"
3 changes: 3 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ config :libcluster,
if(System.get_env("LIBCLUSTER_TOPOLOGY") == "postgres", do: postgres_topology, else: [])

if System.get_env("LOGFLARE_OTEL_ENDPOINT") do
config :opentelemetry,
traces_exporter: :otlp

config :opentelemetry_exporter,
otlp_protocol: :grpc,
otlp_endpoint: System.get_env("LOGFLARE_OTEL_ENDPOINT"),
Expand Down

0 comments on commit d177274

Please sign in to comment.