Home / Companies / Honeycomb / Blog / Post Details
Content Deep Dive

Does OpenTelemetry in .NET Cause Performance Degradation?

Blog post from Honeycomb

Post Details
Company
Date Published
Author
Martin Thwaites
Word Count
1,667
Language
English
Hacker News Points
-
Summary

OpenTelemetry in .NET does lead to performance degradation, but the impact is negligible, particularly in the context of standard .NET applications. The article addresses common concerns about OpenTelemetry's effect on performance and provides evidence to show that the overhead introduced by instrumenting with Activity, adding attributes, and using OpenTelemetry SDKs is minimal, often measured in nanoseconds. The tests conducted demonstrate that while there is a slight increase in latency, such as 16 nanoseconds for adding an Activity and 470 nanoseconds when a TracerProvider listens to the response, these increments are trivial compared to the benefits of enhanced observability and debugging capabilities. Additionally, the use of custom processors in OpenTelemetry can introduce some performance impact, but with careful implementation, these effects can be mitigated. The overall conclusion is that the advantages of using OpenTelemetry for better context during errors outweigh the minor performance costs.