Skip to content

Conversation

tsheinen
Copy link

@tsheinen tsheinen commented Mar 3, 2025

Foundations uses Hyper types in it's public API for TelemetryServerRoute which means any users will need to add an explicit dependency on the same version of hyper and ensure it stays matching. Re-exporting the types will allow users to explicitly use the same types as foundations is using.

@TheJokr TheJokr force-pushed the thea/reexport-http-method branch from 0c23ef9 to cd81124 Compare August 27, 2025 10:46
Foundations uses Hyper types in it's public API for
`TelemetryServerRoute` which means any users will need to add an
explicit dependency on the same version of hyper and ensure it stays
matching. Re-exporting the types will allow users to explicitly use the
same types as foundations is using.

For simplicity, we re-export the entire `hyper` crate under a new
`foundations::telemetry::reexports` module.
@TheJokr TheJokr force-pushed the thea/reexport-http-method branch from cd81124 to 379000f Compare August 27, 2025 10:47
@TheJokr
Copy link
Collaborator

TheJokr commented Aug 27, 2025

Rebased and altered the PR slightly. The hyper 1.x bump meant that body handling got quite a bit more complicated, so we would need to export more types. Instead, I chose to re-export all of hyper under a new telemetry::reexports module and introduce an alias for the BoxBody type from http-body-util.

@TheJokr TheJokr merged commit 8e61b18 into cloudflare:main Aug 27, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants