Skip to content

Switch the http_handler's Extension layer for metrics to a State fn #4448

Description

@jcjones

We could probably eliminate the Extension layer, storing the instruments on the middleware instead of on the request, by switching to https://docs.rs/axum/latest/axum/middleware/fn.from_fn_with_state.html

Originally posted by @divergentdave in #4426 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions