DDChannel interface
The subset of a diagnostics channel this package relies on. Channels are taken from dd-trace itself rather than from node:diagnostics_channel so that publisher and subscriber are guaranteed to be the very same channel object the tracer's plugins subscribe to.
Signature:
export interface DDChannel
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
boolean |
Whether anything is listening. Checked before building a call context, so that a process with tracing disabled pays nothing per RPC beyond this read. |
Methods
|
Method |
Description |
|---|---|
|
Publishes an event to the subscribed plugins. Synchronous: subscribers run before this returns, which is what lets a plugin attach its span to the context the caller is about to use. |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.