datadog/serverless-integrations
| Use when adding, modifying, debugging, or reviewing dd-trace-js serverless platform integrations that create serverless integration, function invocation root span, Lambda runtime, Azure Functions, GCP Functions, type = 'serverless', DD_LAMBDA_HANDLER, datadog-lambda-js, deployed serverless verification, manual serverless test.
npx skills add https://github.com/DataDog/dd-trace-js --skill serverless-integrations
Use this skill for platform-boundary instrumentation where dd-trace-js owns the function invocation lifecycle.
Use apm-integrations instead for ordinary library instrumentation that runs inside a serverless function.
Classify the request before touching code:
| Request shape | Skill path | Span model |
| --- | --- | --- |
| Trace a third-party library call inside Lambda/Azure/GCP | apm-integrations | Child spans under the invocation |
| Trace the cloud function invocation itself | This skill | Root type = 'serverless' span |
| Trace an HTTP, queue, or event trigger | This skill plus trigger references | Root span plus context or links |
| Change AWS Lambda bootstrap or timeout behavior | This skill | Special-case runtime wrapper path |
Do not model ordinary library plugins after the Lambda bootstrap. Lambda is a compatibility/runtime wrapper path,
not the default architecture for new integrations.
static kind = 'server' and static type = 'serverless'.TracingPlugin unless a more specific local pattern clearly applies. Do not default to ServerPlugin justbecause the span kind is server.
timeout, and runtime shutdown when the platform exposes it.
batch span links.
published events even when the tracing plugin is disabled.
requires dynamic interception, and document why.
references/architecture.md to confirm whether the work is serverless-root or ordinary APM.references/reference-integrations.md and inspect at least one matching in-repo implementation.references/implementation-guide.md.references/testing-guide.md.packages/datadog-instrumentations/ when the runtime can be observed throughnormal hooks.
packages/datadog-plugin-<name>/ when spans are created from diagnostic-channelevents.
packages/dd-trace/src/plugins/index.js.packages/dd-trace/src/service-naming/schemas/*/serverless.js.surface changes.
web.patch, web.startServerlessSpanWithInferredProxy,and web.finishAll when they match the trigger model.
upstream contexts.
Take datadog/serverless-integrations from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.