Skip to content

Idea: allow using custom reqwest client for transport #130

@vorner

Description

@vorner

The reqwest client that is used by default starts something like 5 background threads. That's quite a lot, considering sentry just sits there doing nothing most of the time (at least if there are no errors to report, which should be the case).

However, if the application already has a reqwest client around, it could be shared ‒ cloning the client only creates another handle to the background handle. Would it be possible to create another transport factory that creates the RequestTransport, but with the provided client?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions