スキル一覧に戻る
jvdomino

domino-genai-tracing

by jvdomino

A comprehensive Claude Code plugin providing coverage of the Domino Data Lab platform for AI-assisted development.

1🍴 1📅 2026年1月16日
GitHubで見るManusで実行

SKILL.md


name: domino-genai-tracing description: Trace and evaluate GenAI applications including LLM calls, agents, RAG pipelines, and multi-step AI systems in Domino. Uses the Domino SDK (@add_tracing decorator, DominoRun context) with MLflow 3.2.0. Captures token usage, latency, cost, tool calls, and errors. Supports LLM-as-judge evaluators and custom metrics. Use when building agents, debugging LLM applications, or needing audit trails for GenAI systems.

Domino GenAI Tracing Skill

This skill provides comprehensive knowledge for tracing and evaluating GenAI applications in Domino Data Lab, including LLM calls, agents, RAG pipelines, and multi-step AI systems.

Key Concepts

What GenAI Tracing Captures

The Domino SDK automatically captures:

  • Token usage - Input and output tokens per call
  • Latency - Time for each operation
  • Cost - Estimated cost per call
  • Tool calls - Function/tool invocations
  • Errors - Exceptions and failure modes
  • Model parameters - Temperature, max_tokens, etc.

Core Components

  1. @add_tracing decorator - Wraps functions to capture traces
  2. DominoRun context manager - Groups traces into runs with aggregation
  3. Evaluators - Custom functions to score outputs
  4. MLflow integration - View traces in Experiment Manager

Quick Start

1. Environment Setup

Requires MLflow 3.2.0 and Domino SDK with AI systems support:

RUN pip install mlflow==3.2.0
RUN pip install --no-cache-dir "git+https://github.com/dominodatalab/python-domino.git@master#egg=dominodatalab[data,aisystems]"

2. Basic Tracing

import mlflow
from domino.agents.tracing import add_tracing
from domino.agents.logging import DominoRun

@add_tracing(name="my_agent", autolog_frameworks=["openai"])
def my_agent(query: str) -> str:
    response = llm.invoke(query)
    return response

# Run with tracing
with DominoRun() as run:
    result = my_agent("What is machine learning?")

3. With Evaluators

def quality_evaluator(inputs, output):
    """Evaluate response quality."""
    return {"quality_score": assess_quality(output)}

@add_tracing(name="my_agent", evaluator=quality_evaluator)
def my_agent(query: str) -> str:
    return llm.invoke(query)

Framework Support

FrameworkAuto-log Command
OpenAImlflow.openai.autolog()
Anthropicmlflow.anthropic.autolog()
LangChainmlflow.langchain.autolog()

Viewing Traces

  1. Navigate to Experiments in your Domino project
  2. Select the experiment (format: tracing-{username})
  3. Select a run
  4. View the Traces tab for span tree visualization

Blueprint Reference

Official GenAI Tracing Tutorial: https://github.com/dominodatalab/GenAI-Tracing-Tutorial

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です