ImqServerPlugin class

Traces incoming @imqueue RPC calls — the SERVER half of the imq integration, producing the imq.response span.

Signature:

export declare class ImqServerPlugin extends TracingPlugin 

Extends: TracingPlugin

Remarks

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

This is the half that continues a caller's trace, and the half whose span becomes the ambient parent for everything the service method does. Instantiated by the tracer through ImqPlugin, not directly; switch it off with tracer.use('imq', { server: 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 handles calls.

operation

static

string

Operation half, 'response' — the middle segment of the apm:imq:response:* 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 handled call.

start(ctx)

Starts the span for an incoming call, continuing the caller's trace when the request carries a propagated context.

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