Opentelemetry.GlobalsProcess-wide metadata, environment variables, etc.
val service_name : string refMain service name metadata
val service_namespace : string option refNamespace for the service
val service_instance_id : string option refUnique identifier for the service
val service_version : string option refVersion for the service
val instrumentation_library :
Opentelemetry_core.Common_.Proto.Common.instrumentation_scopeval global_attributes :
Opentelemetry_core.Common_.Proto.Common.key_value list refGlobal attributes, initially set via OTEL_RESOURCE_ATTRIBUTES and modifiable by the user code. They will be attached to each outgoing metrics/traces.
val add_global_attribute : string -> Opentelemetry_core.Value.t -> unitAdd a global attribute
val merge_global_attributes_ :
Opentelemetry_core.Common_.Proto.Common.key_value list ->
Opentelemetry_core.Common_.Proto.Common.key_value listval default_span_kind : Opentelemetry_core.Span_kind.t refAttributes about the OCaml runtime. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/process.md#process-runtimes
val mk_attributes :
?service_name:string ->
?attrs:
(string
* [< `Bool of bool
| `Float of float
| `Int of int
| `None
| `String of string ])
list ->
unit ->
Opentelemetry_core.Common_.Proto.Common.key_value listBuild main global attributes, to be used in resource attributes (shared by all spans/metrics/logs in each outgoing batch)
val tick_cbs_ : (unit -> unit) Opentelemetry_util.Alist.tGlobal tick callback registry. Callbacks are run periodically by the SDK ticker. Other modules register here to avoid depending on Sdk.
module Enricher : sig ... end