Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Oct 17, 2024
1 parent 308e030 commit e789ecf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/client-cohttp-lwt/opentelemetry_client_cohttp_lwt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ let create_backend ?(stop = Atomic.make false) ?(config = Config.make ()) () =

let setup_ ?stop ?config () =
let backend = create_backend ?stop ?config () in
let (module B : OT.Collector.BACKEND) = backend in
OT.Collector.set_backend backend;
OT.Collector.remove_backend

Expand Down
2 changes: 1 addition & 1 deletion src/client-ocurl/opentelemetry_client_ocurl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ let setup_ticker_thread ~stop ~sleep_ms (module B : Collector.BACKEND) () =

let setup_ ?(stop = Atomic.make false) ?(config : Config.t = Config.make ()) ()
=
let ((module B) as backend) = create_backend ~stop ~config () in
let backend = create_backend ~stop ~config () in
Opentelemetry.Collector.set_backend backend;

Atomic.set Self_trace.enabled config.self_trace;
Expand Down

0 comments on commit e789ecf

Please sign in to comment.