> at a time when, as a world, we are trying to reduce our carbon emissions.
From my perspective, that is not quite the correct way to put it. Because honestly we are not even trying.
---
I find those "Olympic swimming pool type" comparisons very tiring, to be honest. They certainly don’t help my grasp anything. "23 atomic bombs of energy" yeah okay
It sounds really dramatic. Even worse, unlike an olympic swimming pool, nuclear bombs vary drastically in terms of energy output. Like, several orders of magnitude. If they mean 18GW as mentioned later in the article, that's about the energy consumption rate (total, not just electricity) of a city like Houston.
if the prices of domestic and international flights were cheap, people would be flying a lot more, I saw a girl say stop using generative ai because it hurts the environment as a caption on her trip to Iceland, the irony is staggering.
One thing that make absolutely no fucking sense for me is that in places of Europe, for intra country (so good train network and dense population and no so long distance) train is quite more expensive that (subsidized) plane.
its the costs. Trains are heavily subsidised because they have to be.
1. Trains need tracks for the full length of the journey. This is a lot to maintain. Plans just need a runway each end and air in between.
2. They are slower so staff have to be paid for longer hours.
However, for many journeys trains can still work out cheaper because they can take you closer to where you want to go from closer to your starting point, so the cost of the complete journey can be lower.
Trains have to deal with thicker atmosphere (closer to the ground) and have tracks that need maintenance. Planes only need a few square miles of tarmac.
Why it doesn't. Running trains is simply expensive regardless of country. Swiss have excellent network and its very expensive to use even for locals (I live here and use it for daily commute), for tourists its prohibitive. Other places have often much less quality / reliability / reach and prices are still high.
Cheap train network is a proper pipe dream, not possible. Much better to have fully self driving electric taxi cars (so not that joke with driver constantly needing to be aware if your tesla wants to steer you to standing ambulance / firefighter trucks on highway, I mean no driver setup to push prices to very low levels).
IIRC, rebuilds to GCC outputs are/were only recommended when the compiler "profile" changes. So basically whenever the ABI could no longer be guaranteed.
My (single) Homepod Mini reacts to voice commands from any room in my 86 square meter apartment. When the doors are open, I can talk to it basically through the wall, without raising my voice.
Well yes. But just in case this wasn't clear: this is a crime, and you will get your money back in most cases. It's on the merchant to ensure a Direct Debit Mandate is actually valid.
I just don’t get this sentiment. How would you represent metrics as traces? You cannot. Even reconstructing traces from logs would be challenging at best. How would you get, say, Garbage Collector metrics from logs or traces? You cannot.
There is no magic bullet. Observability isn’t something you can just slap on and call it a day. While traces and logs might share superficial similarities, they are not the same. And metrics are something else altogether. Trying to somehow unify them would be a prime example of "wrong abstraction".
> “The next time something like this occurs again, please save me a trace.”
The building blocks for this exist. The observability platform must simply (haha) implement the pattern detectors and use them for sampling decisions.
I am not sure if this is what they mean, but e.g. with Micrometer in Java you can instrument your code once with observations that produces observation events, then you can register handlers that can turn them into metrics, or logs, or traces without having to instrument your code three times.
Logs and metrics are both derived from events. A log takes the whole event and records it somewhere. A metric takes some numeric value from the event, aggregates it over time, and records it periodically. You can reconstruct a metric from logs for the underlying events.
A trace is a period of execution between two events. You could record a trace as a pair of log entries, or one log entry at the end. You can then reconstruct a trace from those log entries. If you want to associate multiple spans, and separate log entries, within a trace, you use a shared ID, which is just the same as a context entry for logging.
All three of these pillars are just ways of looking at events. They are not fundamentally different at all. This is a mistaken idea in "Observability 1.0" whose correction is the basis of "Observability 2.0".
The pillars still have their uses, but the choice between them is really a non-functional one - storing a log entry for every event might be too expensive, so just store metrics instead, and index every log entry so it can be correlated with nearby ones might be too expensive, so just store specific traces instead.
This is the literally the "everything is a graph" argument from database architecture. The conceptual abstraction fails badly because it has to be implemented on real silicon that imposes constraints not considered in the abstraction.
Logs, metrics, and traces are all derived from raw events but none of them are intrinsically discrete events in a systems engineering sense. They are all different data models with different patterns of traversal over raw events. As data model, you need to build secondary indexes over the raw metrics to reflect the orthogonal data access patterns depending on if you are evaluating them as logs, metrics, or traces. This famously has poor scalability and performance.
In analytical processing we largely manage the inherent performance and scalability issues using denormalization, which allows processing pipelines with very different requirements to be optimized independently. Or in this context, treating logs, metrics, and traces as unrelated things with independent infrastructure.
"Observability 2.0" deeply embeds an architectural assumption that all systems are small. It is not a tractable architecture in high-scale or high-performance systems.
Real silicon has a long history of destroying beautiful conceptual abstractions in software engineering.
You are conflating the challenges of ingesting and querying at large scale with the what the original comment is about, which is emitting them more easily.
I don't see them as separate issues. Emitting them directly runs into the inherently poor memory locality (and potentially concurrency) of trying to produce logs, metrics, and traces from the same underlying event data representation.
It is only "easy" if performance and scalability don't matter.
> Logs and metrics are both derived from events. A log takes the whole event and records it somewhere. A metric takes some numeric value from the event, aggregates it over time, and records it periodically. You can reconstruct a metric from logs for the underlying events.
No, metric is just value. Some are derived from events (like histogram/rate of given event duration) but others are wholly independent (like returning app's CPU/memory usage)
The app's memory usage is an aggregation of the alloc/free events. I think the original point was that all of the metrics, traces and logs are conceptually the same but for efficiency, we store less data in each place, not the full history. Personally, for the systems I work on, having an easy way to turn logs into metrics and vice versa, without deciding up front, would be a slight benefit.
Technically, you can use the same places in the code where you stop/start/fork traces to also be the places where you increment the counters/gauges, etc. Which I think the GP was alluding to when describing the micrometer solution. Similarly, you can derive metrics for log lines without having to emit the actual log lines.
Then separately you can have log levels or verbosity levels that control to which level you actually emit traces/logs and/or roll up metrics.
At that point you almost might as well just log everything. The decision logic is likely about as complex as just doing it. Then I suppose you have a watchdog task that fires off every, say, 15 minutes or an hour or something, looks at the collected data, and either decides to keep it or trash it while recording a tiny "nothing interesting" datapoint.
No... Adaptive sampling is a family of statistical methods to choose an appropriate decimation strategy for arbitrary events based on real-world occurrence distributions.
It can be applied to tracing, metrics, logging ("sampling") and profiling.
In the code define everything as a span with a name, scope (start-end), description and tags... and then you can easily dynamically produce traces, spans, logs or metrics based on what you need.
When I visit an article on a popular German tech news website, it interrupts music playback on my iPad (the website takes audio focus). I bet they do something similar.
From my perspective, that is not quite the correct way to put it. Because honestly we are not even trying.
---
I find those "Olympic swimming pool type" comparisons very tiring, to be honest. They certainly don’t help my grasp anything. "23 atomic bombs of energy" yeah okay
reply