config: self-trace is disabled by default for now

This commit is contained in:
Simon Cruanes 2023-12-20 16:07:29 -05:00
parent 133b6ad991
commit b830c3d1be
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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.

View file

@ -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