I Built a Small OpenTelemetry Lab. Here’s What I Learned
Nandan Jadhav
Why I built this lab
Application monitoring can be done in numerous ways, but I believe good observability setups should be flexible and, wherever possible, vendor-neutral.
To test this out, I built a small OpenTelemetry lab using Python and FastAPI.
After working on observability and monitoring for quite some time, I realised there is a difference between understanding a technology and actually putting all its pieces together.
You can understand metrics, logs, traces, and dashboards individually. But what happens when an application request moves between services? How do you follow that request when something goes wrong? And how do you use telemetry to understand where the problem occurred?
I wanted to explore these questions by building something myself rather than just reading about it.
What I built
The lab consists of two small Python applications built using FastAPI. One acts as an order service, while the other checks inventory.
When a request comes into the order service, it makes a call to the inventory service. With OpenTelemetry instrumentation in place, I can follow the request across both services and examine the spans generated during that flow.
The telemetry is sent to an OpenTelemetry Collector, which forwards the traces to Grafana Tempo. Grafana provides the interface to explore and inspect those traces.

The setup uses:
- FastAPI: To build the two sample applications.
- OpenTelemetry: To instrument the applications and generate traces.
- OpenTelemetry Collector: To receive and forward telemetry.
- Grafana Tempo: To store and query traces.
- Grafana: To explore the traces and understand the request flow.
The applications themselves are deliberately simple. The goal wasn’t to build a production application, but to understand how these components work together.
You can find the code and setup instructions in the GitHub repository.
Following a request in Grafana
Once the components were connected and traces were flowing into Tempo, I used Grafana to explore what happened when a request moved through the application.
The trace view makes it possible to follow the request from the order service into the inventory service and inspect the individual spans.

This is where the setup became more useful than simply confirming that telemetry was being generated. I could inspect the operations, their duration, and the attributes attached to the spans to get a clearer picture of what happened during a request.
Breaking things intentionally
One of the most useful parts of this exercise was introducing failures on purpose.
I added a few simple scenarios to simulate different application behaviours, including a failed request and requests that take longer than expected.
This helped me move beyond simply confirming that telemetry was being collected.
I could look at a trace, follow the request through the services, inspect the spans and their attributes, and understand what happened during execution.

It also reinforced something important: collecting telemetry is only one part of the job. Being able to interpret it and use it to investigate a problem is just as important.
A trace is much more useful when it helps answer practical questions about a request, rather than simply showing that the application generated telemetry.
Grafana Traces Drilldown
On the Grafana Traces Drilldown dashboard, you can get a consolidated view of span rates, durations, and errors. This can be a useful starting point for troubleshooting after tracing helps you identify an issue. From there, you can explore individual traces to understand what happened across the services.

What I learned
A few things stood out during this exercise.
1. Understanding the flow matters more than the tools.
Before looking at a dashboard or trace visualisation, it helps to understand how the application works and which services call each other. Once that flow is clear, the telemetry becomes much easier to interpret.
2. Instrumentation is only the starting point.
Generating spans is one thing. Making sure they are collected, exported, stored, and available for investigation requires several components to work together. A small configuration issue anywhere in that path can make troubleshooting more difficult.
3. Distributed tracing provides useful context.
When a request crosses service boundaries, looking at each service independently can leave gaps in the picture. Traces help connect those operations and provide a better understanding of the overall request flow.
4. Breaking things is a good way to learn.
A successful request proves that the happy path works. Introducing a failure or delay helps reveal what the telemetry actually tells you when things don’t go as expected. This is where the real learning happens.
5. Vendor neutrality is worth exploring.
OpenTelemetry provides a standard way to instrument applications and export telemetry. Keeping instrumentation separate from the backend gives you flexibility in how that telemetry is collected and analysed.
What’s next?
This is a small lab, not a production-ready architecture. There is plenty more to explore, including logs, metrics, trace context propagation, and how telemetry can be used together to investigate an issue.
For now, the main takeaway is simple: the best way to learn something in IT infrastructure is to build it yourself, break it intentionally, and then try to fix it using what you’ve learned.
Reading documentation and understanding concepts are important, but putting the pieces together gives you a different perspective.
That’s what I wanted to get out of this exercise, and it was worth doing.