Module context

Source
Expand description

Invocation context support

Structs§

Attribute
An attribute of a span
AttributeChain
A chain of attribute values, the first element representing the most recent value
InvocationContext
Represents an invocation context wich allows querying the stack of attributes created by automatic and user-defined spans.
Span
Represents a unit of work or operation

Enums§

AttributeValue
Possible span attribute value types

Functions§

allow_forwarding_trace_context_headers
Allows or disallows forwarding of trace context headers in outgoing HTTP requests
current_context
Gets the current invocation context
start_span
Starts a new span with the given name, as a child of the current invocation context

Type Aliases§

Datetime
SpanId
The span represented by a 8 bytes hexadecimal string
TraceId
The trace represented by a 16 bytes hexadecimal string