ImqCallContext interface

Everything the plugins need to describe a call. Instances are created by the instrumentation in ./instrumentation and travel through the channels; the plugins add span to them and read it back when the call completes.

Signature:

export interface ImqCallContext 

Properties

Property

Modifiers

Type

Description

carrier?

Record<string, string>

(Optional) Carrier for the propagated trace context: the client writes into it, the server reads from it. It travels as request.metadata.clientSpan.

error?

any

(Optional) Error the call failed with, if any.

from?

string

(Optional) Queue name of the calling party, when the request carries one.

method

string

Name of the called method.

serviceName

string

Name of the imq service the call belongs to.

span?

any

(Optional) Span the plugin created for this call. Set by the plugin.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.