Ends the span. Must be called exactly once.
Records an exception on this span.
The error to record
Sets a single attribute on the span.
Attribute name
Attribute value
This span, for chaining
Sets multiple attributes on the span.
Key-value map of attributes
This span, for chaining
Returns the span's context (traceId, spanId, traceFlags).
Used by the middleware to inject the span's own traceparent into the
response header so downstream hops see this server span as the parent.
A span represents a single operation within a trace.
Since
0.2.0