4 ms·
OpenTelemetry: Escape Hatch from the Observability Cartel
- csomar 11mo agoWhat the author doesn't realize is that OpenTelemetry has fundamental problems. I experienced this firsthand two years ago working with Otel in Rust, and just today I spent an entire afternoon debugging what turned out to be an otel package update breaking react-router links. Since the bug showed up with several other package updates at once, otel was in the bottom of my suspicion list. The core issue is that, with otel, observability platforms become just a UI layer over a database. No one wants to invest in proper instrumentation, which is a difficult problem, so we end up with a tragedy of the commons where the instrumentation layer itself gets neglected as there is no money to be made there.
- hu3 11mo agoI would add that in most cases, it's just a web UI displaying a lot of noise disguised as data. Making sense out of so much data is why datadog and sentry make so much money.
- csomar 11mo agoYou still have to do that work yourself. I am using honeycomb (the free tier) but their pricing makes little sense. Their margins must be something like x100.
- carefulfungi 11mo agoHaving shipped free-tier observability products, your comment that you aren't paying them but think their margins are 100x is a perfect irony.
- cstrahan 11mo agoIt sure sounds like the problem is subsidizing the free tier by making the paid tiers excessively expensive. That in turn drives people to squeeze as much out of the free tier as they can, complain online, and jump ship to either a different service or self hosting. So... maybe don't do that?
- ehnto 11mo agoThe trade off is worth it in this case. Those are technical hurdles, when the issue we are trying to solve is data sovereignty then those hurdles become incidental complexity. Of course you could also roll your own telemtry, which is generally no that difficult in a lot of frameworks. You don't always need something like OTEL.
- andrewstuart2 11mo agoI'd just like to point out that you've said OTel has fundamental problems, and then you pointed out a couple examples of one-time-fixable transient problems. These are issues you'd experience with anything that spans your stack as a custom telemetry library would.
- csomar 11mo agoIt's more than a couple. The fundamental issue is not the bugs themselves (these are expected) but that, from my perspective, otel is at odds with the observability business because these actors have little interest to contribute back to telemetry agents since anyone can reap the rewards of that. So instead they'd focus more on their platforms and the agents/libraries get neglected. It's a great idea, in principle, but unless it gets strong backing from big tech, I think it'll fail. I'd love to be proven wrong.
- andrewstuart2 11mo agoThat's kind of how open source works, though. Of course the backend vendors won't care about anything that doesn't affect the backend somehow. But the people, i.e. users, who do want to be able to easily switch away from bad vendors, have incentives to keep things properly decoupled and working. The license is the key enabler for all of this. The vendors can't be all that sneaky in the code they contribute without much higher risk of being caught. Sure, they will focus on the funnel that brings more data to them, but that leaves others more time to work on the other parts.
- zja 11mo ago> otel is at odds with the observability business because these actors have little interest to contribute back to telemetry agents since anyone can reap the rewards of that. But all major vendors _do_ contribute to OTEL.
- kchoudhu 11mo agoThere is very much an alternative. Looking at the execution of your code should never alter its fundamental performance the way otel is built to do. This was a solved problem at least a decade and a half ago, but the cool kids decided to reinvent the wheel, poorly. https://news.ycombinator.com/item?id=45845889 https://news.ycombinator.com/item?id=45845889
- sweetgiorni 11mo ago> The core issue is that, with otel, observability platforms become just a UI layer over a database. No one wants to invest in proper instrumentation, which is a difficult problem, so we end up with a tragedy of the commons where the instrumentation layer itself gets neglected as there is no money to be made there. I don't think it's fair to say "no one wants to invest in proper instrumentation" - the OpenTelemetry community has built a massive amount of instrumentation in a relatively short period of time. Yes, OpenTelemetry is still young and unstable, but it's getting better every day. As the article notes, the OpenTelemetry Collector has plugins can convert nearly any telemetry format to OTLP and back. Many of the plugins are "official" and maintained by employees of Splunk, Datadog, Snowflake, etc. Not only does it break the lock-in, but it allows you to reuse all the great instrumentation that's been built up over the years. > The core issue is that, with otel, observability platforms become just a UI layer over a database. I think this is a good thing - when everyone is on the same playing field (I can use Datadog instrumentation, convert it to OTel, then export it to Grafana Cloud/Prometheus), vendors will have to compete on performance and UX instead of their ability to lock us in with "golden handcuffs" instrumentation libraries.
- tbrownaw 11mo ago> instrumentation layer itself gets neglected It needs to be treated as an integral part of whatever framework is being instrumented. And maintained by those same people.
- PunchyHamster 11mo agoMost languages have pretty mature ecosystem, I used it in Go and it was mostly problem free, with biggest annoyance being a bit of boilerplate that had to be added
- kchoudhu 11mo agoOpenTelemetry won observability mindshare, but it is entirely the wrong architectural choice: by buying into its ethos your code is held hostage by the least stable otel monitoring library for your dependencies. Sadly, there was always an alternative that no one took: dtrace. Add USDTs to your code and then monitor progress by instrumenting it externally, sending the resulting traces to wherever you want. My sincere hope is that the renewed interest in ebpf makes this a reality soon: I never want to have to do another from opentelemetry.<whatever> import <whatever> ever again.
- jitl 11mo agoIf some tracing plug in is shitting up your code with its monkeypatching, rip it out and instrument it yourself. We do this a lot. I’d say Otel packages are no better or worse quality wise than any other stuff in node_modules. Not otel’s fault that Code in general has Bugs and is Bad.
- rixed 11mo agoI'm not familiar with usdt, but my understanding is that it covers only the lower level of Opentelemetry. Is there an equivalent of OTLP for dtrace?
- kchoudhu 11mo agoI cannot believe it can be too hard to write something that takes the output of dtrace and shoves it into a span collector.
- jitl 11mo agoDoes any OpenTelemetry vendor have a dashboard / graph product in the same level of usability as Datadog? Honeycomb is decent at what it has, but very limited offerings for dashboard. Coming from Datadog, Grafana is such a bad experience I want to cry every time I try to build out a service dashboard. So much more friction to get anything done like adding transform functions / operators, do smoothing or extrapolation, even time shifting is like pulling teeth. Plus they just totally broke all our graphs with formulas for like 2 days. Grafana is to Datadog what Bugzilla is to Linear.
- MrBuddyCasino 11mo agodash0 is a brand new player, and wants to be "simple", perhaps check it out. Former colleagues of mine so I'm biased, but they do know what they're doing - they built the APM tool Instana, which sold to IBM for $400M.
- jitl 11mo agoYou can make a tool that’s both powerful and usable. Datadog did it. Adobe did it. There is no downside to usability.
- nijave 11mo agoI thought New Relic was pretty good but their per seat license cost is super high They have a SQL like query language that I think can do most of what you're describing
- jitl 11mo agoI want improvements like “dropdown menu of tags not limited to 50 items” and “one button forecast on any graph”. Unsure if any SQL query language will solve my annoyance that stuff in Datadog was one click, and in Grafana is 14 clicks or impossible without referencing a Book of the Arcane. Heck I’m dying for “I can copy a graph between dashboards”. Grafana allows this but if any variable is in the graph but doesn’t exist in the destination, pasting just creates an empty graph.
- greatgib 11mo agoI was always turned down to use more Otel by how verbose it is and how heavy are the telemetry payload compared to simple adhoc alternatives. Am I wrong?
- MrBuddyCasino 11mo agoNo, the spec isn't great and makes it hard to implement a performant solution.
- PunchyHamster 11mo agoIt is designed to get insights into dozen(s) connected systems. It will always be overkill for just an app or two talking with eachother... till you grow, then it won't be overkill any more. But still might be worth getting into it on smaller apps just thanks to wealth of tools available.
- greatgib 11mo agoBut my point is, especially for a big system, the performance impact of just the telemetry should be huge.
- jitl 11mo agoThe JavaScript Otel packages are implemented with 34 layers of extra abstraction. We wrote our own implementation of tracing for Cloudflare Workers and it performs much better with 0 layers of abstraction. I’ve seen a few other services switching over to our lightweight tracer. The emitted JSON is still chunky but removing all the incidental complexity helped a lot.
- mvf4z7 11mo agoCan you share a link to your implementation?
- jitl 11mo agoIt's private code in our monorepo EDIT: we actually have two. The one we use for Node, the author plans to open source it eventually. That one is drop in replacement for Span and Trace classes and Just Works with upstream Otel. Main blocker is that we have some patch-package to fix other performance issues with upstream, and need to make our stuff work with non-patched upstream. The one we use for Workers is more janky and doesn’t make sense to open source. It’s like 100 total LoC but doesn’t have compatibility with existing Otel libraries.
- ramon156 11mo agoOTel has been slow as hell since release. we tried using it for tracing last week and the app was significantly slower. We just use prometheus+grafana now. Yes, this technically also slows the app down, but OTel was unbearably slow. I'm sure im doing a million and one things wrong, but i can't be arsed to set something up just to see some performance metrics. Deadlocks can be found using transaction metrics, that's all you need. Edit: I now read in the comments the JS ver is a bad impl, I guess this might be part of the reason.
- nijave 11mo agoYou might be able to use big telemetry vendor libraries for instrumentation. Iirc you can use ddtrace Python library and have it send to otel collector which will convert from DD span format to otel. I haven't tried but it's probably possible to do the same with JS I think Sentry was also expanding into tracing--might be worth a look to see if they're doing something that works better in their library
- phillipcarter 11mo agoWould be curious about this in more detail since I’ve not normally seen a JS app be significantly slower due to adding autoinstrumentation over the years. There’s obviously an overhead but aside from the occasional bug I’ve never seen it be significant to impact user experiences or cost to serve. That said if your goal is basic performance metrics and nothing more, then tracing is overkill. Don’t even need an SDK, just monitor the compute nodes async with some basic system metrics. But if your goal is to narrow down behaviors within your app on a per-request basis there really is no way around tracing if you value your sanity.
- schainks 11mo agoSay more about what you did to instrument? I am willing to bet architectural choices are that slowness, not OTel itself.
- ViewTrick1002 11mo agoWhat is the preferred setup for deploying OpenTelemetry on a Kubernetes cluster? Is OpenTelemetry the choice today? I am running a few projects on a minimal Hetzner K3S cluster and just want some cheap easy observability to store logs, reduce log noise and instead rely on counters/metrics without paying an arm and a leg. Languages used are Rust, Javascript and Python mostly.
- nijave 11mo agoNot sure about preferred but Jaeger is pretty simple for tracing only. Hyperdx looks interesting but brings in both Mongo and Clickhouse which imo is pretty heavy Native k8s logs + Prometheus is probably more on the lighter weight side but you don't get traces. You could find some middle ground using the otel collector to extract trace metrics so you get RED metrics but you wouldn't have full traces
- jitl 11mo agoOtel collector or complete Otel stack with data storage and ui etc? The collector is a helm chart, someone on my project added it to our K8s clusters last week. It was like 30 lines of YAML/Terraform in total. Logs, trace forwarding, Prometheus scraping. That bit is easy. Idk about deploying the ui/storage. I’ve used Grafana Loki stuff in Docker Compose locally without much head scratching for local development. https://github.com/grafana/docker-otel-lgtm https://github.com/grafana/docker-otel-lgtm
- ViewTrick1002 11mo agoWas thinking storage and UI. Making something useful of the work spent collecting the information!
- mohammadv184 11mo agoThere is an un-marketed reality: OTel is not simple. The learning curve is steep, the documentation can be a maze of specs, and the SDKs (especially for metrics and logs) can feel over-engineered. You will get frustrated.
- pas 11mo agothe problem is not simple either, and the same (or very similar) SDKs are used by the very fancy platforms too, no? compared to dumping logs to a file (or a single instance Prometheus scraping /metrics) everything is frustrating, because there are so many moving parts anyway, you want to query stuff and correlate, but for that you need to propagate the trace id, and emit and store spans, and take care to properly handle async workers, and you want historical comparisons, and downsampling for retention, and of course auto-discovery/registration/labeling from k8s pods (or containers or whatever) and source code upload and release tagging from CI, and ...
- arccy 11mo agonearly all the sdks are wild pieces of overengineering designed to conform to a design-by-committee api that's native to no language. half the things you list aren't even part of the sdks, they're part of the collector.
- pas 11mo agoyes, and that's why it's usually better to put the spans where you actually need them instead of depending on monkey patching. still, it's the same whether you use DataDog or Sentry (or OTel).
- secondcoming 11mo agoThe C++ SDK is a masterpiece of over-engineering.
- pan69 11mo agoSo is the JavaScript/TypeScript one. Very steep learning curve, very fragmented but clearly also very powerful once you know how to use it.
- nijave 11mo agoI guess I'm the contrarian but I've had good success with otel. It's especially powerful being able to plug and play components like take ddtrace Python instrumentation library and hook it up to otel collector and dump into Jaeger. I can run a full tracing stack locally for dev use with minimal config.
- pandemic_region 11mo agoSadly, few people remember Zipkin, the spiritual father of tracing that Otel stabbed in the back for its own profit
- adrianfcole 11mo agosome of us still remember ;)
- r3tr0 11mo agoOTel's real bottleneck isn't the spec. It's the fact that it requires you to instrument the app itself. That couples your performance to the maturity of the least stable SDK you depend on. eBPF solves this by reversing the model: instrument the system, not the application. Turn it on / off dynamically, zero redeploys, minimal overhead. The missing piece is accessibility. Kernel-level observability exists; "normal engineers can use it" and good DX does not.
- dengolius 11mo agoMay I suggest trying VictoriaMetrics Observability Stack?