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 instrumentation_library : Proto.Common.instrumentation_scopeval global_attributes : 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 -> value -> unitAdd a global attribute
val merge_global_attributes_ :
Proto.Common.key_value list ->
Proto.Common.key_value listval default_span_kind : Proto.Trace.span_span_kind refDefault span kind in Span.create. This will be used in all spans that do not specify ~kind explicitly; it is set to "internal", following directions from the .proto file. It can be convenient to set "client" or "server" uniformly in here.
val mk_attributes :
?service_name:string ->
?attrs:
(string
* [< `Bool of bool
| `Float of float
| `Int of int
| `None
| `String of string ])
list ->
unit ->
Proto.Common.key_value list