Skip to content

Have a way to add an async metadata provider #98

Description

@arielb1

Currently, the IMDS metadata provider is special, since it runs in the async task, and therefore if it is stuck, it is stuck in the background, and therefore it only breaks profiling rather than the entire application.

Consider having a way for users to specify a similar async metadata provider, e.g. with a

fn with_async_metadata_provider(self: &mut ProfilerBuilder, provider: impl FnOnce() -> impl Future<Result<(), impl Error>>)

(yes I know this type does not compile, consider some variant on it that does compile).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions