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 |
|---|---|---|---|
|
|
string |
Component tag reported on every span, | |
|
|
string |
Integration this plugin belongs to, | |
|
|
string |
Datadog span kind: this half handles calls. | |
|
|
string |
Operation half, | |
|
|
string |
Datadog span type — RPC over a queue is messaging. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Marks the span as failed. The span itself is finished by | ||
|
Finishes the span of a handled call. | ||
|
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.