DDChannel.publish() method

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.

Signature:

publish(ctx: unknown): void;

Parameters

Parameter

Type

Description

ctx

unknown

Returns:

void

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