New to Claude Skills? Learn how to install them →

langfuse on GitHub

Datadog Query Recipes

Free

Streamline your Langfuse telemetry research with Datadog.

by langfuse32.8k stars on langfuse/langfuse
2 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Datadog Query Recipes does

The Datadog Query Recipes skill is designed to assist developers and engineers in conducting thorough research on Langfuse production telemetry. It provides a structured approach to querying Datadog data, ensuring that users can effectively analyze tenant or project activity, API usage, queue behavior, spans, logs, and metrics across multiple production environments. By utilizing this skill, users can keep their findings evidence-based, including precise Datadog links or query shapes that substantiate their conclusions.

The skill operates across various production environments, including prod-us, prod-eu, prod-hipaa, and prod-jp. It defaults to the appropriate Datadog site for each environment, allowing for a seamless querying experience. Users are encouraged to verify data availability through small count or facet queries before concluding that an environment lacks data. The skill emphasizes the importance of loading relevant Datadog MCP guidance for the specific data domain being queried, such as traces, logs, or metrics.

The workflow is straightforward, guiding users through the identification of entities and signals, referencing necessary documentation, and starting with aggregate queries before diving deeper into raw data. This structured approach helps users to efficiently navigate the complexities of Datadog and extract meaningful insights. Additionally, it encourages the reporting of key metrics and caveats, ensuring that findings are comprehensive and actionable.

Overall, this skill is particularly valuable for teams working with Langfuse who require a reliable method for analyzing production telemetry data. It streamlines the process of gathering insights and supports informed decision-making based on real-time data analysis.

When to use it

Use this skill when you need to conduct research on Langfuse production telemetry and require structured Datadog queries.

When not to use it

This skill is not suitable for root-cause analysis or incident management; consider other skills for those purposes.

What you can build with it

Analyzing API Usage

When investigating API usage patterns, this skill helps in querying the relevant metrics from Datadog to identify trends.

Monitoring Queue Behavior

Use this skill to assess queue performance by querying queue metrics and consumer data across different environments.

Identifying Production Issues

When faced with production issues, leverage this skill to gather telemetry data that informs troubleshooting efforts.

How to install Datadog Query Recipes

View source

1. Install with the skills CLI

npx skills add langfuse/langfuse/datadog-query-recipes --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by langfuse

Datadog Query Recipes

Use this skill for Langfuse production telemetry research where the main work is finding the right Datadog data path. Keep findings evidence-based and include the exact Datadog links or query shapes that support the answer.

Required Scope

Unless the user explicitly narrows the scope, cover every production environment:

  • prod-us
  • prod-eu
  • prod-hipaa
  • prod-jp

Query both Datadog sites when needed. Default to the EU site for prod-eu and the US site for the other prod environments, but verify with a small count or facet query before concluding an environment has no data.

Before querying live Datadog, load the relevant Datadog MCP guidance for the data domain you need: traces, logs, metrics, and visualizations.

Workflow

  1. Identify the entity and signal: tenant ID, org ID, project ID, route, queue, service, error class, or metric.
  2. Read only the relevant reference:
  3. Start with aggregate queries, grouped by environment, service, route, queue, project, org, status, or error facets as appropriate.
  4. Fetch raw spans, logs, or traces only after aggregation identifies the cluster or sample you need.
  5. For tenant-specific HTTP usage, prefer trace correlation over single-span queries when tenant tags and route tags live on different spans.
  6. Report the windows, environments, sites, query links, and any sampling or missing-data caveats.

When To Use Other Skills

  • Use debug-issue-with-datadog when a Linear issue, GitHub issue, incident report, or monitor needs root-cause analysis and patch recommendations.
  • Use weekly-production-review when the user asks for a weekly engineering overview of production bugs, pages, and incidents.
  • Use incident-alert-tickets when the research is anchored to a named production alert or monitor: look up documented causes before measuring, and record new ones only after human approval.
  • Use linear-bug-triage only after a human approves sharing measured findings in Linear.

Output Expectations

Summarize what was checked, including:

  • Datadog site and env values covered.
  • Time windows.
  • Core filters or metrics used.
  • Count, rate, latency, queue depth, trace sample, or "No measurements found".
  • Datadog links or trace IDs that let the human rerun the query.

Frequently asked questions about Datadog Query Recipes

Similar skills