ImqClientPlugin class

Traces outgoing @imqueue RPC calls — the CLIENT half of the imq integration, producing the imq.request span.

Signature:

export declare class ImqClientPlugin extends TracingPlugin 

Extends: TracingPlugin

Remarks

Subscribes to apm:imq:request:{start,error,finish} — the channels the instrumentation in ./instrumentation publishes from the client's beforeCall/afterCall hooks.

Instantiated by the tracer through ImqPlugin, not directly. Switch it off with tracer.use('imq', { client: false }).

Properties

Property

Modifiers

Type

Description

component

static

string

Component tag reported on every span, 'imq'.

id

static

string

Integration this plugin belongs to, 'imq'.

kind

static

string

Datadog span kind: this half issues calls.

operation

static

string

Operation half, 'request' — the middle segment of the apm:imq:request:* channels this subscribes to.

type

static

string

Datadog span type — RPC over a queue is messaging.

Methods

Method

Modifiers

Description

error(ctx)

Marks the span as failed. The span itself is finished by finish(), which the instrumentation always publishes.

finish(ctx)

Finishes the span of a completed call.

start(ctx)

Starts the span for an outgoing call and injects the trace context into the carrier so the handling service can continue the trace.

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