Skip to content

Commit

Permalink
[mod] OpenTelemetry handler: auto register when otel-enabled?
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Aug 22, 2024
1 parent 44c8029 commit 66f441a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/taoensso/telemere/open_telemetry.clj
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@

(impl/on-init
(when impl/enabled:otel-mode?
(taoensso.telemere/add-handler! :default/open-telemetry (handler:open-telemetry))
(impl/signal!
{:kind :event
:level :debug ; < :info since runs on init
Expand Down

0 comments on commit 66f441a

Please sign in to comment.