open-telemetry / opentelemetry.io

The OpenTelemetry website and documentation
https://opentelemetry.io
Creative Commons Attribution 4.0 International
520 stars 1.11k forks source link

New Blog Post: Transforming Traces into Metrics with OpenTelemetry #4132

Open set808 opened 6 months ago

set808 commented 6 months ago

This blog post guides you through the process of converting traces into metrics using the span metrics processor, and demonstrating a straightforward path to achieving long-lasting, valuable metrics from your trace data.

https://newrelic.com/blog/nerdlog/transforming-traces

Sponsor: @reese-lee

reese-lee commented 6 months ago

@set808 🥳 Can you include a link to the original NR post?

Note to Comms SIG: This a repost from the above and will include it as a canonical URL, but any content that is specific to New Relic will be removed for the OTel blog.

svrnm commented 6 months ago

thanks @reese-lee , @set808 happy to have this blog post. A few points:

set808 commented 6 months ago

That is completely understandable. I’ll keep the mentioned points in mind. Thanks for letting me know.

On Tue, Mar 12, 2024 at 02:50 Severin Neumann @.***> wrote:

thanks @reese-lee https://github.com/reese-lee , @set808 https://github.com/set808 happy to have this blog post. A few points:

  • We will not be able to publish this very soon, with KubeCon in front of us, so after you raised the PR it might happen that we will not review it swiftly
  • Double check if any of the content from your blog post should also be part of the official documentation. Having a section on the span metrics processor in our docs would be great.
  • And yes, all reference to New Relic needs to be removed.

— Reply to this email directly, view it on GitHub https://github.com/open-telemetry/opentelemetry.io/issues/4132#issuecomment-1991213141, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5ZFYOU2WDZILTEOA5C4DLYX3FXRAVCNFSM6AAAAABERDIIACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGIYTGMJUGE . You are receiving this because you were mentioned.Message ID: @.***>

austinlparker commented 6 months ago

I have a couple of concerns I'd like to see addressed.

First, spanmetrics is lossy; You're trading wire size for a reduction in cardinality/event detail. This isn't mentioned in your post, and would possibly surprise a user who blindly followed it only to discover that they were throwing away all details outside of span name, duration, http method, and status code. Since not everyone using OpenTelemetry is in a resource-metered environment, it would be good to have a more thorough discussion of these tradeoffs.

Second, I don't know if the blog is the best place for this kind of content. Given the tradeoffs I mentioned, I think it would possibly be more valuable to have this as a documentation page that went more in depth on the configuration and usage of spanmetrics, along with a more thorough discussion of configuring the connector.