What problem does it solve?
Adding a new library instrumentation to Datadog's dd-trace-java agent involves many project-specific conventions — module layout, muzzle directives, decorator patterns, advice rules, config registration, and CI checks — that are easy to get wrong without deep familiarity with the codebase.
Core Features & Use Cases
- End-to-end instrumentation authoring: Guides creation of the InstrumenterModule, Decorator, Advice classes, context-propagation adapters, and tests following dd-trace-java conventions.
- Reference-driven rules: Bundled references cover advice-class pitfalls, context-tracking vs span-creating instrumentations, muzzle directive patterns, naming conventions, supported-configurations registration, and test requirements.
- Verification workflow: Prescribes the exact Gradle commands (muzzle, test, latestDepTest, config checks, spotlessApply) plus a completion checklist and a retrospective step that improves the skill itself.
- Use Case: Ask to add tracing for a new HTTP client library; the skill locates a similar existing integration, scaffolds the module, writes advice and tests, registers config keys, and runs the full verification suite.
Quick Start
Ask the agent to add a new APM instrumentation for a specific Java library, providing the framework name, minimum supported version, and target classes or methods to instrument.