Skip to content

Commit dfb1972

Browse files
committed
feat(ai): Add lambda rule for advice
1 parent 6ae02a1 commit dfb1972

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.claude/skills/apm-integrations/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Exit method:
121121

122122
- **No logger fields** in the Advice class or the Instrumentation class (loggers only in helpers/decorators)
123123
- **No code in the Advice constructor** — it is never called
124+
- **Do not use lambdas in advice methods** — they create synthetic classes that will be missing from helper declarations
124125
- **No references** to other methods in the same Advice class or in the InstrumenterModule class
125126
- **No `InstrumentationContext.get()`** outside of Advice code
126127
- **No `inline=false`** in production code (only for debugging; must be removed before committing)

0 commit comments

Comments
 (0)