Skip to main content

Can AI instrument OpenTelemetry?

23
tasks
11
languages
14
models
Updated

Distributed tracing requires stitching together distinct user journeys across complex microservices, rather than just writing isolated functions. We tested whether top models can successfully instrument applications with OpenTelemetry to see if they are actually ready to handle real-world Site Reliability Engineering tasks.

Read our blog post introducing OTelBench: Benchmarking OpenTelemetry: Can AI trace your failed login?

Model ranking

1
Anthropicclaude-opus-4.5
29%
2
OpenAIgpt-5.2
26%
3
Anthropicclaude-sonnet-4.5
22%
6
OpenAIgpt-5.2-codex
16%
7
OpenAIgpt-5.1
14%
8
Z.aiglm-4.7
13%
9
DeepSeekdeepseek-v3.2
12%
12
Anthropicclaude-haiku-4.5
6%
13
Grokgrok-4
4%

Models ranked by their success rate in modifying code to correctly emit telemetry data. The table includes total cost and time for the full benchmark run to help contextualize performance. See our full methodology for validation details.

View all models

Instrumentation tasks

The benchmark covers a diverse set of coding challenges across languages including .NET, C++, Erlang, Go, Java, JavaScript, PHP, Python, Ruby, Rust, and Swift. We sort these by difficulty, where tasks with a 0% pass rate represent currently unsolved problems in automated instrumentation.

View all tasks

Performance by language

37%
C++3 tasks
20%
Go7 tasks
17%
JavaScript1 task
15%
Python2 tasks
10%
.NET1 task
6%
PHP2 tasks
1%
Rust2 tasks
0%
Erlang1 task
0%
Java2 tasks
0%
Ruby1 task
0%
Swift1 task

Average pass rate across all models for each programming language. Languages with more training data and mature OpenTelemetry libraries tend to be easier for AI models to instrument correctly.

Model-task matrix

0%
100%unsolved

A detailed view of which tasks each model solved or failed. This helps identify models that handle specific instrumentation patterns well, even if their overall score is lower.

Cost efficiency

We map total API cost against success rate. The Pareto frontier (blue line) highlights the most cost-efficient models for a given performance level.

Pareto frontier

Speed vs quality

This chart compares accuracy against average generation time, helping identify models that balance solution quality with response latency.

Performance over time

We plot model pass rates against their release dates to track performance changes over time. This timeline shows how capability on observability tasks compares across model generations.

Pareto frontier

ModelPass RateReleased
Grokgrok-44%
Jul 25
Anthropicclaude-sonnet-4.522%
Sept 25
Anthropicclaude-opus-4.529%
Nov 25

For reproducibility, we open-sourced the full benchmark at QuesmaOrg/otel-bench. Built on the Harbor framework, you can verify our findings, test new models and agents; see our Migrating CompileBench to Harbor: standardizing AI agent evals.

uv tool install harbor
git clone [email protected]:QuesmaOrg/otel-bench.git
cd otel-bench

We welcome contributions of new tasks. See the repository for details.