Live data from Hacker News

Benchmarking OpenTelemetry: Can AI trace your failed login?

quesma.com

21–30 of 85 posts

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#22
This is very confusingly written.

From the post I expected that the tasks were about analysing traces, but all the tasks in the repository are about adding instrumentation to code!

Some of the instructions don't give any guidance how to do it, some specify which libraries to use.

"Use standard OTEL patterns" ... that's about as useful as saying "go write some code". There are a lot of ways to do instrumentation....

I'd be very curious HOW exactly the models fail.

Are the test sets just incredibly specific about what output they except, and you get a lot of failures because of tiny subtle mismatches? Or do they just get the instrumentation categorically wrong?

Also important: do the models have access to a web search tool to read the library docs? Otel libraries are often complicated to use... without reading latest docs or source code this would be quite tricky.

Some models have gotten better at adding dependencies, installing them and then reading the code from the respective directory where dependencies get stored, but many don't do well with this.

All in all, I'm very skeptical that this is very useful as a benchmark as is.

I'd be much more interested in tasks like:

Here are trace/log outputs , here is the source code, find and fix the bug.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#23
post #5

If everyone else is the problem... maybe you are the problem. To me this says more about OTel than AI.

But not everyone else is the problem? OTel works fine for humans. Sometimes AIs are just shit

It's not a new thing to bring up that OTel is difficult to get correct. This was a criticism levied before the AI era.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#24
post #4

If everyone else is the problem... maybe you are the problem. To me this says more about OTel than AI.

Can you help me understand where you are coming from? Is it that you think the benchmark is flawed or overly harsh? Or that you interpret the tone as blaming AI for failing a task that is inherently tricky or poorly specified? My takeaway was more "maybe AI coding assistants today aren’t yet good at this specific, realistic engineering task"....

In my experience many OTEL libraries are aweful to use and most of the "official" ones are the worst offenders as the are largely codegened. That typically makes them feel clunky to use and they exhibit code patterns that are non-native to the language used, which would an explanation of why AI systems struggle with the benchmark.

I think you would see similar results if tasking an AI to e.g. write GRPC/Protobuf systems using only the builtin/official protobuf codegen languages.

Where I think the benchmark is quite fair is in the solutions. It looks like for each of the languages (at least the ones I'm familiar with), the "better" options were chosen, e.g. using `tracing-opentelemtry` rather than `opentelemetry-sdk` directly in Rust.

However the one-shot nature of the benchmark also isn't that reflective of the actual utility. In my experience, if you have the initial framework setup done in your repo + a handful of examples, they do a great job of applying OTEL tracing to the majority of your project.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#25

Original title: Benchmarking OpenTelemetry: Can AI trace your failed login? HN Editorialized: OTelBench: AI struggles with simple SRE tasks (Opus 4.5 scores only 29%) The task: > Your task is: Add OTEL tracing to all microservices. > Requirements: > Instrumentation should match conventions and well-known good practices. > Instrumentation must match the business domain of the microservices. > Traces must be sent to th…

As someone whos job is support more than SWE, I agree with this.

I've had to work in systems where events didn't share correlation IDs, I had to go in and filter entries down to microseconds to get a small enough number of entries that I could trace what actually happened between a set of services.

From what I've seen in the enterprise software side of the world is a lot of companies are particularly bad at SRE and there isn't a great amount of standardization.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#26

This is very confusingly written. From the post I expected that the tasks were about analysing traces, but all the tasks in the repository are about adding instrumentation to code! Some of the instructions don't give any guidance how to do it, some specify which libraries to use. "Use standard OTEL patterns" ... that's about as useful as saying "go write some code". There are a lot of ways to do instrumentation.... I…

>Some of the instructions don't give any guidance how to do it, some specify which libraries to use.

In supporting a piece of cloud software with a lot of microservices I think this is a more generalized problem for humans. The app I work with demanded some logging requirements like the library to use. But that was it, different parts by different teams ended up with all kinds of different behaviors.

As for the AI side, this is something where I see our limited context sizes causing issues when developing architecture across multiple products.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#27

This is a little damning of the way Google does things honestly. >When an app runs on a single machine, you can often trace an error by scrolling through a log file. But when it runs across 50 microservices, that single request gets scattered into a chaotic firehose of disconnected events. Yep this is about Google. It's painful for humans to debug and it's also an extremely bespoke issue to deal with. No one else has…

isn't that what trace IDs are for?

Yeah I don't know their stack but I have a service that is a collection of microservices and Opus can debug them fine by aggregating the logs tied to the same faulty request ID.

In general for those tasks though the question is more "How would a human do it". If it's impossible for a human because your tooling is so bad you can't even get the logs across services for a single ID, that seems like a pretty serious design issue.

In general looking at the prompt though, this is also not very representative. You don't have an SOP that you can share with your agent? How do you expect new hires to onboard?

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#28
The prompts for this are pretty sparse. This could 100% be accomplished with better prompting. Even with the current prompts, it's likely I could complete the task with a follow up request specifying what it did correctly and incorrectly. In fact, this could probably be entirely automated with multiple agents checking each other.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#29

This is a little damning of the way Google does things honestly. >When an app runs on a single machine, you can often trace an error by scrolling through a log file. But when it runs across 50 microservices, that single request gets scattered into a chaotic firehose of disconnected events. Yep this is about Google. It's painful for humans to debug and it's also an extremely bespoke issue to deal with. No one else has…

isn't that what trace IDs are for?

Much like nested errors, management of trace IDs becomes difficult under scale as you will start getting multiple correlation references in complex systems.

Re: Benchmarking OpenTelemetry: Can AI trace your failed login?

#30

Original title: Benchmarking OpenTelemetry: Can AI trace your failed login? HN Editorialized: OTelBench: AI struggles with simple SRE tasks (Opus 4.5 scores only 29%) The task: > Your task is: Add OTEL tracing to all microservices. > Requirements: > Instrumentation should match conventions and well-known good practices. > Instrumentation must match the business domain of the microservices. > Traces must be sent to th…

Having done app support across many environments, um - yes, multiple microservices is usually pretty simple. Just look at the open file/network handles and go from there. It's absolutely maddening to watch these models flail in trying to do something basic as, "check if the port is open" or "check if the process is running... and don't kill firefox this time".

These aren't challenging things to do for an experienced human at all. But it's such a huge pain point for these models! It's hard for me to wrap my head around how these models can write surprisingly excellent code but fail down in these sorts of relatively simple troubleshooting paths.

Post reply on HN