Module Octez_telemetry.Opentelemetry_config

type gc_telemetry = {
  1. enable : bool;
  2. filter : (Runtime_events.runtime_phase -> bool) option;
  3. min_duration_ms : float option;
}
type t = {
  1. enable : bool;
    (*

    When this is false, opentelemetry should not be enabled.

    *)
  2. instance_id : string option;
    (*

    User provided instance identifier for opentelemetry traces.

    *)
  3. environment : string option;
    (*

    Deployment environment used for Datadog tagging.

    *)
  4. config : Opentelemetry_client_cohttp_lwt.Config.t;
    (*

    The actual configuration to use for opentelemetry when enable = true.

    *)
  5. gc_telemetry : gc_telemetry;
    (*

    Configuration to enable telemetry traces for GC events.

    *)
}

Type for opentelemetry configuration.

val default : t

Default config, disabled.

Encoding, to be used in configuration files.

val enable : t -> bool -> t

Set enable field.