Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]opentelemetrydotnet failed due to System.Diagnostics.StartActivity().Recorded property returns false with dotnet-sdk-10.0.100-alpha.1.25067.41 #6093

Open
CancanTang opened this issue Jan 23, 2025 · 0 comments · May be fixed by #6097
Labels
bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member pkg:OpenTelemetry.Exporter.Zipkin Issues related to OpenTelemetry.Exporter.Zipkin NuGet package

Comments

@CancanTang
Copy link

CancanTang commented Jan 23, 2025

Package

OpenTelemetry.Exporter.Zipkin

Package Version

Package Name Version
OpenTelemetry.Api 1.9.1
OpenTelemetry 1.9.1
OpenTelemetry.Exporter.Zipkin 1.9.1

Runtime Version

dotnet-sdk-10.0.100-alpha.1.25067.41

Description

When run the OpenTelemetry.Exporter.Zipkin.Tests against with dotnet-sdk-10.0.100-alpha.1.25067.41, there are 8 cases failed with error:
System.Collections.Generic.KeyNotFoundException : The given key '4630cad0-5365-4dd5-8ccb-496ffd04d672' was not present in the dictionary. After investigation, we found it is caused by System.Diagnostics.StartActivity().Recorded return false on dotnet-sdk-10.0.100-alpha.1.25067.41.

After investigation, it related the breaking change dotnet/docs#44282.

For more details, please refer to dotnet/runtime#111693

Steps to Reproduce

  1. Change the \App\opentelemetrydotnetTest01\OpenTelemetry.Exporter.Zipkin.Tests.runtimeconfig file to let the app run against with dotnet-sdk-10.0.100-alpha.1.25067.41:
"frameworks": [
      {
        "name": "Microsoft.NETCore.App",
        "version": "10.0.0-alpha.1.25067.10"
      }
    ]
  1. Open cmd.
  2. Cd to "\App\opentelemetrydotnetTest01".
  3. Run command "dotnet vstest OpenTelemetry.Exporter.Zipkin.Tests.dll".

Expected Result

All cases passed.

Actual Result

There are 8 cases failed with error:

System.Collections.Generic.KeyNotFoundException : The given key '4630cad0-5365-4dd5-8ccb-496ffd04d672' was not present in the dictionary.
  Stack Trace:
     at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNotFoundException(TKey key)
   at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
   at OpenTelemetry.Exporter.Zipkin.Tests.ZipkinExporterTests.IntegrationTest(Boolean useShortTraceIds, Boolean useTestResource, Boolean isRootSpan, StatusCode statusCode, String statusDescription, Boolean addErrorTag) in D:\opentelemetry-dotnet\test\OpenTelemetry.Exporter.Zipkin.Tests\ZipkinExporterTests.cs:line 409
   at InvokeStub_ZipkinExporterTests.IntegrationTest(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Additional Context

No response

@CancanTang CancanTang added bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member labels Jan 23, 2025
@github-actions github-actions bot added the pkg:OpenTelemetry.Exporter.Zipkin Issues related to OpenTelemetry.Exporter.Zipkin NuGet package label Jan 23, 2025
@CodeBlanch CodeBlanch linked a pull request Jan 23, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member pkg:OpenTelemetry.Exporter.Zipkin Issues related to OpenTelemetry.Exporter.Zipkin NuGet package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant