Skip to content

Commit

Permalink
perf: completely disable opentelemetry sdk unless config is given (#2124
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Ziinc authored Jul 5, 2024
1 parent bee38a0 commit 9508ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ config :grpc, start_server: true
config :logflare, Logflare.AlertsScheduler, init_task: {Logflare.Alerting, :init_alert_jobs, []}

config :opentelemetry,
sdk_disabled: true,
span_processor: :batch,
traces_exporter: :none

Expand Down
1 change: 1 addition & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ if System.get_env("LOGFLARE_OTEL_ENDPOINT") do
config :logflare, opentelemetry_enabled?: true

config :opentelemetry,
sdk_disabled: false,
traces_exporter: :otlp,
sampler:
{:parent_based,
Expand Down

0 comments on commit 9508ca8

Please sign in to comment.