Skip to content

Commit

Permalink
config: self-trace is disabled by default for now
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 20, 2023
1 parent 133b6ad commit b830c3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client-ocurl/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let pp out self =

let make ?(debug = !debug_) ?(url = get_url ()) ?(headers = get_headers ())
?(batch_timeout_ms = 2_000) ?(bg_threads = 4) ?(ticker_thread = true)
?(ticker_interval_ms = 500) ?(self_trace = true) () : t =
?(ticker_interval_ms = 500) ?(self_trace = false) () : t =
let bg_threads = max 2 (min bg_threads 32) in
{
debug;
Expand Down
2 changes: 1 addition & 1 deletion src/client-ocurl/config.mli
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type t = private {
Default 500.
@since NEXT_RELEASE *)
self_trace: bool;
(** If true, the OTEL library will also emit its own spans.
(** If true, the OTEL library will also emit its own spans. Default [false].
@since NEXT_RELEASE *)
}
(** Configuration.
Expand Down
2 changes: 1 addition & 1 deletion tests/bin/emit1.ml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ let () =
Arg.parse opts (fun _ -> ()) "emit1 [opt]*";

let config =
Opentelemetry_client_ocurl.Config.make ~debug:!debug
Opentelemetry_client_ocurl.Config.make ~debug:!debug ~self_trace:true
?bg_threads:
(let n = !n_bg_threads in
if n = 0 then
Expand Down

0 comments on commit b830c3d

Please sign in to comment.