"Instrument an existing codebase with Laminar tracing: choose which functions to observe, initialize Laminar correctly, add tags/metadata/session IDs, and verify traces. Use when a user asks to add Laminar tracing, instrument functions, or integrate Laminar with a TS/JS or Python codebase."
Resources
1Install
npx skillscat add lmnr-ai/lmnr-skills/laminar-instrument-codebase Install via the SkillsCat registry.
SKILL.md
Laminar Instrument Codebase
Workflow
- Identify runtime and entrypoints; map critical flows and select functions to instrument.
- Initialize Laminar once, early in the app, and configure auto-instrumentation for the libraries in use.
- Add manual spans with
observearound selected functions; attach tags, metadata, session/user IDs; suppress sensitive inputs/outputs. - Run a representative flow, validate traces in the UI, and tune span granularity and tags.
References
references/function-selection.mdfor heuristics on what to instrument.references/ts-instrumentation.mdfor TypeScript/JavaScript patterns and snippets.references/python-instrumentation.mdfor Python patterns and snippets.