Skip to content

[Feature]: decouple http dependency from OTEL http client #3148

@GlenDC

Description

@GlenDC

Related Problems?

Issues where custom HTTP Client was supported I suppose.

Describe the solution you'd like:

It is currently already possible to bring your own HTTP client.
However that client makes use of the http crate for its request and response.

So might be nice if we can also make that possible to customise, where the http client is not as dumb as just sending bytes, but more like a Request builder and instead of giving you a http response give you something more focussed on the content you really need. This way the underlying client implementation can do what it want without having to convert to/from the http crate types if it is not built around the http crate.

Considered Alternatives

One can just convert of course, but this is pretty wasteful. Not the end of the world, but neither something desired. It's akin to storing all your data as String values. Sure it is possible, but it would be frowned upon with suspicion.

Additional Context

I am willing to help implement this.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions