Is this your first time working with distributed tracing?
Start with our Distributed Tracing guide for a general overview.
Distributed tracing allows you to follow a single request as it travels through all the different microservices and components of your system. By visualizing the entire journey of a request in one place, you can instantly pinpoint performance bottlenecks, identify errors, and understand the complex interactions within your application.
Better Stack unifies logs, metrics, and traces, the three pillars of observability, into a single platform. This means you can seamlessly navigate from a slow trace to the exact logs and metrics generated during that request, giving you the full context you need to resolve issues faster.
Start with our Distributed Tracing guide for a general overview.
Better Stack ingests trace data using the OpenTelemetry Protocol (OTLP), the open standard for telemetry data. The easiest way to send traces is by using the Better Stack collector or configuring OpenTelemetry directly.
Once your traces arrive, you can explore them in Live tail. Just make sure to select a source marked as spans
.
The main view provides a list of recent traces, allowing you to quickly see the most important information at a glance.
Clicking on any trace will take you to the detailed trace view, which displays a waterfall chart of all the spans within that trace. You can expand further details by clicking on the spans within. This visualization helps you understand the timing and parent-child relationships between different operations.
From Live tail, you can search and filter traces for example by:
HTTP GET /users/:id
In the Attributes tab, you can hover over or click on individual spans to inspect their metadata, including HTTP status codes, database queries, and any custom attributes you've added.
You can use the Live tail query language for matching your spans.
The real power of Better Stack lies in its ability to connect traces with logs and metrics automatically. When your logs and traces include the same trace_id
, Better Stack links them together.
From the trace detail view, you can instantly pivot to the logs associated with a specific span or the entire trace in the Logs & events. This gives you the full context needed for debugging, showing you the exact log messages generated during that request.
This unified view eliminates the need to manually search for logs that match a specific request, saving you valuable time during an incident.
Similarly as with your logs or incident, you can add comments to whole traces or even spans in the Comments tab.
Use @
to mention your team mates, making sure they get notified about it.
You can use the built-in LLM to summarize the trace or span for you - try it out by accessing the Explain with AI tab!
Use the waterfall view to identify which service, database query, or API call is taking the longest. The visual breakdown makes it easy to spot inefficiencies in your system.
When an error occurs, a trace can show you the exact path the request took and which service returned the error. By correlating this with logs, you can see the error message and stack trace, leading to a faster resolution.
Visualize the end-to-end flow of requests to understand how your services interact. This is invaluable for onboarding new engineers, refactoring code, or planning new features.
Please let us know at hello@betterstack.com. We're happy to help! 🙏