I recently encountered an issue where nearly every API request threw an exception after integrating Sentry with OpenTelemetry in my APIs. This issue only affected my environment, likely due to having "Just My Code" disabled in debugging options.
Upon investigation, I discovered that a null value was being passed to the Parse method in SentryTraceHeader.cs. The method was attempting to call .Split() on this null value, leading to an ArgumentNullException.
To address this, I added a null check in the Parse method before calling .Split().
Hey y'all,
I recently encountered an issue where nearly every API request threw an exception after integrating Sentry with OpenTelemetry in my APIs. This issue only affected my environment, likely due to having "Just My Code" disabled in debugging options.
Upon investigation, I discovered that a null value was being passed to the
Parse
method inSentryTraceHeader.cs
. The method was attempting to call.Split()
on this null value, leading to anArgumentNullException
.To address this, I added a null check in the
Parse
method before calling.Split()
.