Most database monitoring tools were built for simpler three-tier architectures, where a monolithic application interacted with a single database. These tools rely on metrics and logs, which offer some visibility but fail to capture how queries behave in complex, distributed environments.
So, how do we get more context about database platforms? It starts with tracing.
Distributed tracing adds missing context by tracking queries across services instead of treating the database as a black box. Tools like OpenTelemetry (OTel) provide a way to follow a transaction end-to-end, but they still require manual instrumentation for database queries.
This is where eBPF (Extended Berkeley Packet Filter) fills the gap. It allows engineers to:
Odigos is able to leverage eBPF to perform context propagation and fully trace database transactions without requiring intrusive logging or code modifications.
A distributed e-commerce application uses PostgreSQL for order management and MySQL for inventory tracking. Customers report slow checkouts, but:
Using eBPF and OpenTelemetry, we trace a single checkout transaction:
eBPF captures the exact PostgreSQL query causing the slowdown:
SELECT * FROM orders WHERE user_id = ?;
Expected execution time: 10-20ms
Observed execution time: 250ms under load
eBPF reveals that:
user_id
to eliminate full table scans.Result: Checkout latency drops from 250ms to 20ms.
Odigos solves the manual instrumentation problem by extending OpenTelemetry to automatically trace PostgreSQL and MySQL queries using eBPF.
Feature | Traditional APMs (Logs/Metrics) | Odigos (eBPF + OTel) |
---|---|---|
Query Visibility | Requires slow query logs | Automatically traces all queries |
Performance Overhead | High (log-based) | Minimal (kernel-level tracing) |
Distributed Tracing | Limited context | Full context propagation |
Setup Complexity | Manual instrumentation required | Zero-code deployment |
In distributed systems, databases no longer serve a single flow—they interact with multiple services in unpredictable ways. Traditional monitoring tools struggle because they weren't built for this complexity.
By combining eBPF and OpenTelemetry, Odigos brings full query-level visibility without code changes—enabling teams to trace performance issues across services instead of guessing.
Without query-level visibility, database slowdowns remain a mystery. Traditional monitoring solutions fall short because they lack deep query insights.
By combining Odigos with the capabilities of eBPF, and OpenTelemetry, developers can:
Try Odigos Today and see how real-time query observability can transform how you debug PostgreSQL and MySQL.