@@ -139,6 +139,12 @@ To be released.
139139 code, the inbox URL, and the response body, making it easier to
140140 programmatically handle delivery errors. [[ #548 ] , [ #559 ]]
141141
142+ - Added ` traceId ` and ` spanId ` to LogTape context in federation middleware
143+ so that log records emitted during request handling and queue processing
144+ include the OpenTelemetry trace and span IDs in their properties. This
145+ enables the ` @fedify/debugger ` dashboard to display per-trace logs.
146+ [[ #561 ] , [ #564 ]]
147+
142148[ #280 ] : https://github.com/fedify-dev/fedify/issues/280
143149[ #366 ] : https://github.com/fedify-dev/fedify/issues/366
144150[ #376 ] : https://github.com/fedify-dev/fedify/issues/376
@@ -163,6 +169,8 @@ To be released.
163169[ #548 ] : https://github.com/fedify-dev/fedify/issues/548
164170[ #559 ] : https://github.com/fedify-dev/fedify/pull/559
165171[ #560 ] : https://github.com/fedify-dev/fedify/issues/560
172+ [ #561 ] : https://github.com/fedify-dev/fedify/issues/561
173+ [ #564 ] : https://github.com/fedify-dev/fedify/pull/564
166174
167175### @fedify/cli
168176
@@ -231,6 +239,38 @@ To be released.
231239[ #529 ] : https://github.com/fedify-dev/fedify/pull/529
232240[ #531 ] : https://github.com/fedify-dev/fedify/pull/531
233241
242+ ### @fedify/debugger
243+
244+ - Created the * @fedify/debugger * package, an embedded real-time ActivityPub
245+ debug dashboard for Fedify. It wraps an existing ` Federation ` object as
246+ a proxy, intercepting requests to a configurable path prefix (default
247+ ` /__debug__ ` ) and serving an SSR-based web UI. [[ #561 ] , [ #564 ]]
248+
249+ - Added ` createFederationDebugger() ` function that returns a
250+ ` Federation ` proxy with a built-in debug dashboard. When called
251+ without an ` exporter ` option, it automatically sets up OpenTelemetry
252+ tracing (creating ` MemoryKvStore ` , ` FedifySpanExporter ` ,
253+ ` BasicTracerProvider ` ) and registers it as the global tracer
254+ provider—no manual OTel configuration needed.
255+ - Traces list page showing trace IDs, activity types, activity counts,
256+ and timestamps, with auto-polling for real-time updates.
257+ - Trace detail page showing activity direction, type, actor, signature
258+ verification details, inbox URL, and expandable activity JSON.
259+ - JSON API endpoint at ` /__debug__/api/traces ` for programmatic access.
260+ - Added per-trace log collection using LogTape. The returned federation
261+ object now includes a ` sink ` property (a LogTape ` Sink ` function)
262+ that captures log records grouped by trace ID. In the simplified
263+ overload (without ` exporter ` ), LogTape is auto-configured.
264+ - Trace detail page now shows a “Logs” section with log level, timestamp,
265+ logger category, and message for each log record in the trace.
266+ - JSON API endpoint at ` /__debug__/api/logs/:traceId ` for retrieving
267+ log records for a specific trace.
268+ - Added optional ` auth ` configuration for protecting the debug dashboard
269+ with authentication. Supports three modes: password-only,
270+ username + password, and request-based (e.g., IP filtering).
271+ Each mode supports both static credentials and callback functions.
272+ Uses cookie-based sessions with HMAC-signed tokens.
273+
234274### @fedify/relay
235275
236276 - Created ActivityPub relay integration as the * @fedify/relay * package.
0 commit comments