add-ai-integration
Installation
SKILL.md
Adding a New AI Integration
Conventions First
Span ops and attributes are specified outside this repo. Never invent or hardcode either:
- gen_ai attributes and gen_ai ops — normative; import from
@sentry/conventions/attributesand@sentry/conventions/op - RFC 0153 — why Sentry's gen-AI conventions diverge from the OTel gen-ai semconv
Derive the op with getGenAiSpanOp() from ai/core/utils.ts rather than picking one by hand. ai/core/gen-ai-attributes.ts is for gap-fillers only — keys with no @sentry/conventions equivalent — so check it last, not first.