tsuga-analyze-trace-latency

Compute p95 latency per span.name to identify slow trace operations.

2|Updated May 28, 2026
One-click install
npx skills add https://github.com/tsuga-dev/agent-plugins --skill tsuga-analyze-trace-latency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsuga-analyze-trace-latency
Source: https://github.com/tsuga-dev/agent-plugins/tree/main/plugins/tsuga/skills/tsuga-analyze-trace-latency
Command: npx skills add https://github.com/tsuga-dev/agent-plugins --skill tsuga-analyze-trace-latency

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you identify which operations are driving a service’s slow requests by analyzing trace latency across a chosen time window and separating transient spikes from sustained degradation.

Core Features & Use Cases

  • Operation-level latency ranking: Computes p95 latency grouped by span.name and highlights the slowest operations.
  • Sustained vs transient diagnosis: Determines whether latency remains elevated across consecutive 5-minute windows.
  • Evidence-based correlation with errors: Searches logs for ERROR events during the worst latency window to support (or refute) error-related causes, and can optionally correlate via trace_id when both traces and logs exist.

Quick Start

Use tsuga-analyze-trace-latency for service checkout-api over the last 2 hours to find which operations have the worst p95 latency and whether it is sustained.

Frequently Asked Questions about tsuga-analyze-trace-latency

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find which trace operations are causing high latency in my service?

To find trace operations causing high latency, compute p95 duration per span.name over a time window to rank the slowest operations. This approach highlights peak intervals and separates sustained degradation from transient latency spikes for specific services.

What is the best way to diagnose transient latency spikes versus sustained performance regressions?

Diagnosing latency spikes involves checking whether p95 latency remains elevated across consecutive 5-minute windows. This distinguishes sustained performance regressions from transient spikes by analyzing trace duration trends over the selected time window.

How do I correlate ERROR log events with trace latency peaks during troubleshooting?

Correlating ERROR log events with trace latency peaks requires searching logs for errors during the worst latency window. This helps support or refute error-related causes, optionally linking logs and traces via trace_id if both data sources exist.

Can I use tsuga aggregation timeseries to analyze p95 span latency for a specific service?

Yes, you can use tsuga aggregation timeseries to analyze p95 span latency. It computes latency and span counts over time windows, while tsuga services list verifies trace availability to ensure the target service has the required data.

Does this approach to trace latency analysis work for troubleshooting slow requests across any time window?

Yes, trace latency analysis works for troubleshooting slow requests across any chosen time window. By computing p95 duration per span.name and selecting peak slow operations, it identifies performance bottlenecks regardless of the analyzed period.