Relocate the ~6k-file docs tree from the repo root into plugins/document-navigator/docs/ so the plugin is self-contained and portable. docs/superpowers/ (specs and plans) stays at the repo root. Moved via cp+rm rather than git mv because directory rename() fails with EPERM on this WSL /mnt DrvFs mount; git rename-detection pairs the identical-content files at commit time. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4.3 KiB
4.3 KiB
@suaveplan/events-otel - OpenTelemetry tracing companion for @suaveplan/events: wraps each dispatch in a span, propagates W3C Trace Context, and records listener exceptions as span errors.
Summary
OpenTelemetry tracing companion for @suaveplan/events. Wraps each dispatch in a span, propagates W3C Trace Context, and records listener exceptions as span errors.
Documentation tree
- attach-event-tracing — (no submodules)
- attach-event-tracing — (no submodules)
- trace-context — (no submodules)
- trace-context — (no submodules)
- sampling-rule — (no submodules)
- sampling-rule — (no submodules)
Quick Start
import { EventBus } from "@suaveplan/events";
import { attachEventTracing } from "@suaveplan/events-otel";
const bus = new EventBus();
const handle = attachEventTracing(bus);
await bus.emitAsync("user.created", { id: "u-1" });
handle.detach();
Modules
src/core/attach-event-tracing/attach-event-tracing—attachEventTracing,EventTracingHandle,EventTracingOptionssrc/propagation/trace-context/trace-context—serializeTraceContext,deserializeTraceContextsrc/sampling/sampling-rule/sampling-rule—SamplingRule,shouldSample,SamplingRuleSchema