# DDChannel interface · @imqueue/datadog

Source: https://imqueue.org/api/datadog/latest/datadog.ddchannel/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/datadog 3.2.0 — generated reference, not hand-written

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:**

```typescript
export interface DDChannel 
```

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [hasSubscribers](https://imqueue.org/api/datadog/latest/datadog.ddchannel.hassubscribers/) | `readonly` | 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 |
| --- | --- |
| [publish(ctx)](https://imqueue.org/api/datadog/latest/datadog.ddchannel.publish/) | 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. |

