investigating-tempo-latency-regressions

investigating-tempo-latency-regressions is a skill for Claude Code, Codex from talkops-ai/talkops-mcp. It costs 181 tokens per session (1,460 once invoked), scanned A, original, Apache-2.0.

A guide for investigating latency regressions in Grafana Tempo traces. A latency regression means requests have become slower than a previous baseline, and percentiles such as p95 and p99 show the slower end of the request distribution.

In plain words
What is it for?
Use it to compare latency cohorts, examine p50, p95, and p99 changes, find slow spans and critical paths, and compare trace structures across versions or periods.
Why use it?
It compares slow requests with normal ones instead of relying on a single average. This helps locate critical paths, self-time hotspots, and changes linked to services, hosts, databases, or asynchronous work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare latency cohorts, examine p50, p95, and p99 changes, find slow spans and critical paths, and compare trace structures across versions or periods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add talkops-ai/talkops-mcp --skill investigating-tempo-latency-regressions
Clone the repo
git clone --depth 1 https://github.com/talkops-ai/talkops-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for investigating-tempo-latency-regressions

README.md
[![agentmods](https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions/github.svg)](https://agentmods.dev/skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions)
Your own site
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for investigating-tempo-latency-regressions

Your own site · 80×15
<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/investigating-tempo-latency-regressions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 181 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00181 $0.01460
Opus 5.5 $0.00072 $0.00584
Sonnet 5.5 $0.00036 $0.00292
Haiku 4.5 $0.00018 $0.00146

Measured 11d ago against content hash 6232ec81106a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

investigating-tempo-latency-regressions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/analyze_otlp_trace_critical_path.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/tempo-mcp-server/skills/investigating-tempo-latency-regressions/SKILL.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Investigating Tempo Latency Regressions

Preconditions

  • Read tempo://server/capabilities, tempo://system/backends, and tempo://system/backends/{backend_id} via MCP resources to verify active backend features (traceql_metrics) before querying.
  • Discover attribute names with tempo_get_attribute_names (scope="resource" and scope="span") before filtering by route, pod, or deployment version.

Latency Investigation Checklist

  • Step 1 — Measure Latency Quantiles & Shape: Call tempo_analyze_service_red (service, since, baseline_offset, optional group_by) and classify the shift via latency-heuristics.md: Bimodal Tail Spike (p99 / p50 >= 5.0) vs Uniform Latency Shift (both p50 and p99 increased >= 50%, pointing to shared infrastructure saturation such as CPU throttling, GC/memory limits, or shared DB connection pool contention across k8s.pod.name / k8s.node.name / db.system).
  • Step 2 — Compare Slow vs Baseline Cohorts: Call tempo_compare_span_cohorts with base_query='{ resource.service.name = "<service>" && kind = server }' and selection='{ duration > <tail_threshold> }' matching the observed tail cutoff (e.g. { duration > 4s } when investigating a > 4s–5s tail spike, passing tenant on multi-tenant backends) to isolate skewed attributes (http.route, url.path, k8s.pod.name, k8s.node.name, service.version, flagd variants). If the entry service delegates to a slow child service (e.g. image-provider), also run tempo_compare_span_cohorts on that child service if needed.
  • Step 3 — Sample Baseline and Slow Traces:
    • Extract slow candidate traces via tempo_get_exemplar_traces (passing a valid TraceQL metrics query such as '{ resource.service.name = "<service>" && kind = server && duration > 1500ms } | rate()', NOT PromQL) or tempo_traceql_search (filters={"service": "<service>", "min_duration_ms": ...}, most_recent=True).
    • Fetch a fast baseline trace (filters={"service": "<service>", "max_duration_ms": ...}, most_recent=True) when baseline vs regression trace IDs are not already provided.
  • Step 4 — Inspect Critical Path, Self-Time Hotspots & Time Gaps:
    • Call tempo_summarize_trace on target trace IDs (or run scripts/analyze_otlp_trace_critical_path.py --json '<otlp_json>' / --file <path> when analyzing exported OTLP JSON payloads offline, merging overlapping parallel child intervals rather than naively summing child durations).
    • Apply latency-heuristics.md: distinguish Local Compute / GC Hotspot (self_time_ratio >= 0.40) from Downstream Wait (entry span duration_ms >= 80% of trace with self_time_ratio < 0.15 waiting on a slow leaf span).
    • Uninstrumented Time-Gap Guardrail (TRACE_TIME_GAPS): When has_time_gaps == True (critical_path_duration_ms < 0.5 * total_duration_ms or large unaccounted parent-to-child gap), NEVER prematurely blame CPU saturation—call tempo_get_diagnostics to rule out SPANS_DISCARDED and check thread-pool queue wait, DNS/connection pool stalls, or disabled OTel instrumentation (otel.enabled=false).
  • Step 5 — Find Related & Async Consumer Traces: Call tempo_find_related_traces (correlation_strategy="span_links", "temporal_neighbors", "same_endpoint", "downstream_cascade", or "same_service_errors") to follow OTLP span links across async Kafka/messaging hops and check whether slowness is systemic, then run tempo_summarize_trace on linked consumer traces.
  • Step 6 — Diff Baseline vs Regression Traces: Call tempo_compare_traces(backend_id=..., trace_id_a=<baseline_trace_id>, trace_id_b=<comparison_trace_id>). Interpret operation_diffs, only_in_comparison, duration_delta_ms, span_count_delta, error_count_delta, and attribute_diff using trace-diff-interpretation.md (N+1 Fan-Out comparison_count / baseline_count >= 3 with < 20% per-call delta vs Single-Operation Slowdown >= 60% of duration_delta_ms vs New Synchronous Dependency / Retry Amplification).
  • Step 7 — Validate Bottleneck Classification: [GATE] Confirm the exact bottleneck class before recommending flag rollbacks, batch RPC refactoring, async decoupling, or pod resource changes. Keep latency investigations bounded (<= 12 MCP calls): once RED deltas, cohort skew, and 1–2 trace summaries/diffs establish the root cause, synthesize findings immediately rather than issuing unbounded cross-pillar queries.

Read the full file on GitHub · 33 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 33 lines · 181 tokens per session scan A 6232ec81106a

Subscribe to this mod's changes

investigating-tempo-latency-regressions is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 181 tokens to every session and 1,460 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.

Related

investigating-tempo-latency-regressions compared with skills from other repositories

investigating-tempo-latency-regressions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
investigating-tempo-latency-regressionstalkops-ai/talkops-mcpSkill412d agoApache-2.0A181Claude Code, Codex
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60ktodayApache-2.0A31Claude Code
n8n-validation-expertczlonkowski/n8n-mcpSkill23k3d agoMITA91Claude Code, Codex
n8n-error-handlingczlonkowski/n8n-mcpSkill23k3d agoMITA128Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0k2d agoApache-2.0A52Claude Code, Codex
openlore-analyze-codebaseclay-good/OpenLoreSkill369todayMITA48Claude Code, Codex
flutter-mcp-toolkit-intentcall-migrationArenukvern/mcp_flutterSkill4013d agoMITA58Claude Code