domainspec-instrument-otel - Instrument backend code with OpenTelemetry metrics
Instruments backend code with OpenTelemetry metrics based on feature observability specs or report change requests.
Tags
Updated: 2026-09-17Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Read feature observability specifications
- Parse YAML instrument declarations
- Map instruments to code locations
- Insert OpenTelemetry metric recording calls
- Process report change requests
- Verify compilation using TypeScript compiler
Inputs
- Feature observability specifications
- Observability derivation rules and OTel conventions
- Aspect mapping documents
- Backend use-case and domain files
- Observability report change requests
- Command arguments and flags
Outputs
- Modified backend code files with OpenTelemetry metrics
- Feature-specific telemetry instrument files
- Compilation verification results
- Instrumentation summary report
Requirements
- TypeScript compiler (tsc)
- Allowed tools: Read, Write, Bash, Glob, Grep, Task
- OpenTelemetry backend telemetry infrastructure
