Function: inHandlerSpan()
inHandlerSpan<
T>(headers,name,attributes,fn):Promise<T>
Defined in: packages/messaging/src/trace.ts:172
The span around handling one message, parented by whatever traceparent arrived in
the headers, so it shares the sender's trace id. A message without one starts a
trace of its own.
Type Parameters
T
T
Parameters
headers
The headers the message arrived with.
name
string
handle <key>.
attributes
Attributes
Identifiers and codes only.
fn
(span) => Promise<T>
The handling.
Returns
Promise<T>
What fn returns.