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
Optional
attributes: AttributesOptional additionalattributes
Optional
options: { span: Span }Optional span options
Record a log message.
The log message
The log level
Optional
attributes: 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
Optional
options: SpanOptionsOptional span options
Start a new span without making it active.
The span name
Optional
options: SpanOptionsOptional span options
Start a span with header context.
The span name
The headers
Optional
options: SpanOptionsOptional span options
Stop the observability client.
Flush all pending telemetry data.