Get the context from a span.
The span to get the context from
Get the current session information.
Check if the observability client is initialized.
Parse headers to extract request context.
The headers to parse
Record an error with optional context.
The error to record
Optionalattributes: AttributesOptional additionalattributes
Optionaloptions: { span: Span }Optional span options
Record a log message.
The log message
The log level
Optionalattributes: AttributesOptional additional attributes
Record an up/down counter metric.
The up/down counter metric to record
Run a function with header context.
The span name
The headers
The callback function
Optionaloptions: SpanOptionsOptional span options
Start a new span without making it active.
The span name
Optionaloptions: SpanOptionsOptional span options
Optionalctx: ContextStart a span with header context.
The span name
The headers
Optionaloptions: SpanOptionsOptional span options
Stop the observability client.
Flush all pending telemetry data.