Skip to content

Why autosdk.TracerProvider do not have Shutdown method #7687

@sedyh

Description

@sedyh

Problem Statement

It seems counter-intuitive to me that auto/sdk.TracerProvider does not have a Shutdown() method, while it can be used alongside custom traces just like with *sdktrace.TracerProvider which requires Shutdown() for proper resource cleanup.

Can someone clarify the design reasoning behind this? Is there a recommended approach for handling shutdown in applications that combine autosdk with manual traces?

Proposed Solution

Use Shutdown everywhere or clarify the reason why do I don't needed even with custom metrics.

Note

I do not want to keep the global tracer provider cause I want to be able to turn it on and off with the config variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions