Skip to content

[bug] Debug.Assert failure in MetricReaderEx.cs #6300

Open
@martincostello

Description

@martincostello

Package

OpenTelemetry

Package Version

Package Name Version
OpenTelemetry 1.12.0

Runtime Version

net8.0 (probably all TFMs)

Description

Running dotnet test in the root of the repository, which uses the Debug configuration, a number of tests fail due to this assertion failing:

Debug.Assert(this.metricsCurrentBatch != null, "this.metricsCurrentBatch was null");

Steps to Reproduce

Run dotnet test from the root of the repository.

Expected Result

Assertion does not fire, tests pass.

Actual Result

Test run is interrupted by the failed assertion dialog being raised multiple times.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNew issues which have not been classified or triaged by a community memberpkg:OpenTelemetryIssues related to OpenTelemetry NuGet package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions