mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
config: self-trace is disabled by default for now
This commit is contained in:
parent
133b6ad991
commit
b830c3d1be
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue