java-observability-tracing

Implement distributed tracing across microservices with OpenTelemetry and W3C Trace Context.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/HZeroxium/cursorkit --skill java-observability-tracing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-observability-tracing
Source: https://github.com/HZeroxium/cursorkit/tree/main/lib/skills/java-backend/java-observability-tracing
Command: npx skills add https://github.com/HZeroxium/cursorkit --skill java-observability-tracing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement distributed tracing across microservices using OpenTelemetry to visualize request flows, diagnose latency, and identify bottlenecks across async boundaries.

Core Features & Use Cases

  • OpenTelemetry tracing setup (SDK or agent) for baseline coverage and fast adoption.
  • Context propagation across services using W3C Trace Context and baggage policy.
  • Span naming and attributes aligned with semantic conventions (HTTP, DB, messaging).
  • Sampling strategies to balance telemetry cost and visibility in production.
  • Correlation with logs and metrics to enable end-to-end observability across services.

Quick Start

Install and run the OpenTelemetry Java agent in your services and enable basic tracing to produce the first end-to-end trace.

Frequently Asked Questions about java-observability-tracing

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

FAQPage Schema
How do I implement distributed tracing for microservices using OpenTelemetry?

Implement distributed tracing for microservices using OpenTelemetry by installing the Java agent or SDK to propagate W3C Trace Context across services, producing end-to-end traces that visualize request flows and diagnose latency bottlenecks across HTTP and messaging boundaries.

What is W3C Trace Context propagation and when do I need it for observability?

W3C Trace Context propagation passes trace identifiers across service boundaries so spans link into a single end-to-end request flow. You need it in multi-service architectures to maintain observability across HTTP, messaging, and async boundaries.

How do I control sampling strategies to balance telemetry cost and visibility in production?

Configure sampling strategies in OpenTelemetry to control the volume of exported traces, balancing telemetry cost against visibility. Adjustable sampling rules let you capture representative request flows in production without overwhelming OTLP exporters.

Does OpenTelemetry tracing work across async and messaging boundaries?

OpenTelemetry tracing works across async and messaging boundaries by propagating trace context and baggage through message headers. This maintains span correlation across HTTP requests, message queues, and asynchronous task execution for continuous observability.

What's the best way to correlate logs and metrics with distributed traces?

Correlate logs and metrics with distributed traces by injecting trace and span identifiers into log entries and metric attributes. This aligns telemetry signals using semantic conventions, enabling end-to-end observability and faster root-cause analysis across services.

Can I use the OpenTelemetry Java agent for quick tracing setup without code changes?

You can use the OpenTelemetry Java agent for quick tracing setup by attaching it to your services at startup, enabling baseline coverage and automatic instrumentation for HTTP, database, and messaging spans without modifying application code.