api-tracing-otel
SKILL.md
OpenTelemetry Tracing
Purpose
Generate command/query handlers and services with OpenTelemetry instrumentation for distributed tracing, including span creation, attributes, and error recording.
When to Use
- Adding observability to CQRS handlers
- Creating instrumented services
- Implementing distributed tracing
- Performance monitoring
What It Generates
Instrumented Handler Template
apps/api/src/modules/{feature}/commands/{operation}/{operation}.handler.ts
apps/api/src/modules/{feature}/services/{feature}.service.ts
Patterns Enforced
Span Creation
All handlers create spans:
- Span name:
{feature}.{operation} - Attributes: tenantId, actorId, operation, resource
- Error recording on exceptions
Span Attributes
Standard attributes:
tenant.id- Tenant IDactor.id- User performing actionoperation.name- Operation nameoperation.type- command/query/eventresource.id- Resource being operated onerror.type- Error type (on failure)
Span Status
- OK on success
- Error on failure (with error recording)
Usage Example
/skill tracing-otel --name=CreateUser --type=command
Related Files
- Feature CQRS - CQRS handlers with tracing
- Cache Redis - Cache operations with tracing
Weekly Installs
1
Repository
rimthan-lab/rim…-pluginsGitHub Stars
1
First Seen
6 days ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1