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

[repo] Fix tests reliant on bugged sampling behavior #6097

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

CodeBlanch
Copy link
Member

@CodeBlanch CodeBlanch commented Jan 23, 2025

Fixes #6093

Changes

  • Adjusts sampling logic used in tests to work with upcoming .NET 10 behavior
  • Fixes tests which register ActivityListeners to clean up after themselves

Details

There is a bug fix coming in .NET 10: dotnet/runtime#111289

It seems some of our tests are reliant on the bugged behavior. What this PR does is correct the test logic so it will work now and with the correct behavior coming in .NET 10.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated

@CodeBlanch CodeBlanch requested a review from a team as a code owner January 23, 2025 22:30
@github-actions github-actions bot added pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package pkg:OpenTelemetry.Exporter.Zipkin Issues related to OpenTelemetry.Exporter.Zipkin NuGet package pkg:OpenTelemetry.Shims.OpenTracing Issues related to OpenTelemetry.Shims.OpenTracing NuGet package labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:OpenTelemetry.Exporter.OpenTelemetryProtocol Issues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package pkg:OpenTelemetry.Exporter.Zipkin Issues related to OpenTelemetry.Exporter.Zipkin NuGet package pkg:OpenTelemetry.Shims.OpenTracing Issues related to OpenTelemetry.Shims.OpenTracing NuGet package
Projects
None yet
1 participant