Attribute values may be any non-nullish primitive value except an object.
null or undefined attribute values are invalid and will result in undefined behavior.
Serializable Metadata defined by the W3C baggage specification. It currently has no special meaning defined by the OpenTelemetry or W3C.
The observable callback for a batch of Observable instruments.
string or an object with one of (message or name or code) and optional stack
Defines High-Resolution Time.
The first number, HrTime, is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970. The second number, HrTime, represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds. For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150. The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds: HrTime = Math.trunc(1609504210150 / 1000) = 1609504210. The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime, to nanoseconds: HrTime = Number((1609504210.150 - HrTime).toFixed(9)) * 1e9 = 150000000. This is represented in HrTime format as [1609504210, 150000000].
The observable callback for Observable instruments.
hrtime, epoch milliseconds, performance.now() or Date
The root context is used as the default parent context when there is no active context
Entrypoint for context API
Entrypoint for Diag API. Defines Diagnostic handler used for internal diagnostic logging operations. The default provides a Noop DiagLogger implementation which may be changed via the diag.setLogger(logger: DiagLogger) function.
Entrypoint for metrics API
Entrypoint for propagation API
Entrypoint for trace API
Create a serializable BaggageEntryMetadata object from a string.
string metadata. Format is currently not defined by the spec and has no special meaning.
Get a key to uniquely identify a context value
Create a no-op Meter
Generated using TypeDoc