Skip to content

Revise dispose pattern in SpanProcessor/ActivityProcessor #769

@rajkumar-rangaraj

Description

@rajkumar-rangaraj

Dispose pattern in SimpleSpanProcessor, SimpleActivityProcessor, BatchingSpanProcessor and BatchingActivityProcessor needs to be revised. As @reyang mentioned ShutdownAsync is not thread safe, race condition could happen for this.stopping, and it would re-enter to re-execute the same code.

Raised as a part of PR: #755 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg: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