返回 Skill 列表
extension
分类: 开发与工程无需 API Key

laminar-instrument-codebase

在一个现有的代码库中使用Laminar跟踪:选择要观察的函数,正确初始化Laminar,添加标签/元数据/会话ID,并验证跟踪。当用户请求添加Laminar跟踪、检测函数或将Laminar与TS/JS或Python代码库集成时使用。

person作者: jakexiaohubgithub

Laminar Instrument Codebase

Workflow

  1. Identify runtime and entrypoints; map critical flows and select functions to instrument.
  2. Initialize Laminar once, early in the app, and configure auto-instrumentation for the libraries in use.
  3. Add manual spans with observe around selected functions; attach tags, metadata, session/user IDs; suppress sensitive inputs/outputs.
  4. Run a representative flow, validate traces in the UI, and tune span granularity and tags.

References

  • references/function-selection.md for heuristics on what to instrument.
  • references/ts-instrumentation.md for TypeScript/JavaScript patterns and snippets.
  • references/python-instrumentation.md for Python patterns and snippets.