Skip to content

TraceContinuationStrategy=restart_external without TraceParent header causes NullReferenceException #1802

@Vaahik

Description

@Vaahik

APM Agent version

elastic_apm_profiler_1.17.0-beta.1.zip

Environment

Operating system and version:
CentOS Stream 8

.NET Framework/Core name and version
Host (useful for support):
Version: 5.0.17
Commit: 6a98414363

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Application Target Framework(s) (netcoreapp5.0):

Describe the bug

+-> Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Elastic.Apm.Model.Transaction..ctor(IApmLogger logger, String name, String type, Sampler sampler, DistributedTracingData distributedTracingData, IPayloadSender sender, IConfiguration configuration, ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer, IApmServerInfo apmServerInfo, BreakdownMetricsProvider breakdownMetricsProvider, Boolean ignoreActivity, Nullable1 timestamp, String id, String traceId, IEnumerable1 links) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1797\apm-agent-dotnet\src\Elastic.Apm\Model\Transaction.cs:line 319
at Elastic.Apm.Api.Tracer.StartTransactionInternal(String name, String type, DistributedTracingData distributedTracingData, Boolean ignoreActivity, Nullable1 timestamp, String id, String traceId, IEnumerable1 links) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1797\apm-agent-dotnet\src\Elastic.Apm\Api\Tracer.cs:line 87
at Elastic.Apm.Api.Tracer.StartTransaction(String name, String type, DistributedTracingData distributedTracingData, Boolean ignoreActivity, IEnumerable`1 links) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1797\apm-agent-dotnet\src\Elastic.Apm\Api\Tracer.cs:line 66
at Elastic.Apm.AspNetCore.WebRequestTransactionCreator.StartTransactionAsync(HttpContext context, IApmLogger logger, ITracer tracer, IConfiguration configuration) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1797\apm-agent-dotnet\src\Elastic.Apm.AspNetCore\WebRequestTransactionCreator.cs:line 86

elastic_apm_profiler_1.16.1-beta.1.zip - working done

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions