dt-setup-genai
БесплатноБез исполняемых скриптовНе проверенFramework-independent decision process for instrumenting a GenAI/LLM app (Python or TypeScript, any provider/agent SDK) so it emits OTel GenAI…
от Dynatrace★ 190 звёзд на GitHubОб этом скилле
Instrument a GenAI app for Dynatrace
This is the shared decision process behind the per-framework recipes in
dynatrace-oss/dynatrace-ai-agent-instrumentation-examples
— referred to throughout as the examples repo — factored out so it applies to an
SDK that repo doesn't cover yet. It tells you which recipe shape to reach for and why,
and what "done" looks like regardless of the SDK/language. Once spans are flowing, load
dt-obs-genai to analyze them.
When you should not use this skill
- Already instrumented, and you want to query/debug GenAI telemetry → dt-obs-genai.
- You already know the SDK's recipe and just want the copy-paste code → go straight to the examples repo; this skill decides which recipe shape applies, not replaces it.
- The app isn't Python or TypeScript → out of scope for this skill.
Where this skill must stop and ask
- Any edit to the customer's application code — show the diff, get a yes, first.
- Credentials — the customer creates the Dynatrace token and provider keys. Never print, log, or store a token value; reference it only via env var or secret store.
- Deploying an OpenPipeline pipeline to their tenant.
- Provider config this skill can't infer — Azure deployment name/API version, Ollama model tag, Bedrock region/profile.
- Adding a collector to their runtime — out of scope; infrastructure, not configuration.
- Enabling message-content capture — off by default; only enable it if the user asks.
Prompts/completions can carry PII or sensitive data, and the knob is SDK-specific:
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=truefor some instrumentors; a framework-native flag the env var does not control and that can default to on for others (e.g. pydantic-ai'sInstrumentationSettings(include_content=...)); OpenInference captures content by default; and Traceloop/OpenLLMetryopentelemetry-instrumentation-<sdk>packages readTRACELOOP_TRACE_CONTENT, default ON, ignoring the OTel-standard var. Check the SDK's actual toggle so you don't ship capture on unnoticed; agree on redaction if needed.
The four steps
detect ─▶ instrument ─▶ enrich ─▶ validate
│ │
└──────────── feedback loop ───────┘
(validate failure → fix in enrich or instrument)
1. Detect
Figure out what you're instrumenting before touching any code.
Inputs:
- Dependency manifest (
pyproject.toml/requirements.txt/package.json) — which LLM SDK(s), agent framework, or observability SDK are present (OpenAI, Anthropic, Bedrock, LangChain/LangGraph, CrewAI, MCP server/client, Langfuse, ...). An app can depend on more than one — see references/multi-sdk-apps.md. - Whether the host already runs Dynatrace OneAgent (
oneagentprocess/package present) — if so, OneAgent auto-instruments common HTTP/SDK calls with zero code changes, which changes everything downstream. - Whether the app already has any OTel wiring — an existing global
TracerProvider, an existingTraceloop.init()/instrumentor call, or existing custom span code.
Outputs: a routing key (framework/SDK, existing-instrumentation-state) per SDK
(see references/multi-sdk-apps.md if more than one), a
branch decision (below), and a native-OTel yes/no decision (step 2) per SDK.
How to decide native-OTel vs. fallback: prefer SDKs with a pure-OTel path (native
gen_ai.*). An SDK without one falls back to OpenInference — which closes the loop only if it
emits gen_ai.* (Python semconv dual-write, step 2), else it stops at a normalizer gate. Work
through these in order and stop at the first hit:
- Check
references/examples-index.mdfor the SDK. A listedopentelemetry/recipe is the fast path — use it. - If the SDK isn't listed, check the OpenTelemetry registry
and the vendor SDK's own docs for native OTel/
gen_ai.*support (e.g. anotelextra, aspan_exporter/tracer-provider hook, or built-in semconv attributes). Finding one → instrument it (step 2). - No native OTel path → OpenInference. Instrument with the matching
openinference-instrumentation-<sdk>package from an examples-repo recipe; if not even that exists, hand-write manualgen_ai.*spans (references/no-native-instrumentation.md). OpenInference closes the loop only when it emitsgen_ai.*— a Python instrumentor with semconv dual-write on (step 2). Otherwise (TS/node, older version, unset) spans stayllm.*/openinference.*and the skill stops at a normalizer gate (references/enrich-normalization.md), then resumes.
2. Instrument
Wire up span emission. **Prefer the pure-OTel
Установить dt-setup-genai в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dt-setup-genai?
Framework-independent decision process for instrumenting a GenAI/LLM app (Python or TypeScript, any provider/agent SDK) so it emits OTel GenAI semantic-convention (gen_ai.*) spans queryable in Dynatrace. Four steps: detect, instrument, enrich, validate. Decides which approach a given SDK needs; does not replace the concrete per-framework recipes in dynatrace-oss/dynatrace-ai-agent-instrumentation-examples. Trigger: "instrument this GenAI app", "add tracing to this LLM app", "how do I get gen_ai spans into Dynatrace", "onboard this agent app to AI Observability". Do NOT use for analyzing telemetry from an already-instrumented app (use dt-obs-genai) or for languages other than Python/TypeScript.
Как установить скилл dt-setup-genai?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dt-setup-genai запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic