Skip to content

Add http context in for all http based services #5774

@Xuanwo

Description

@Xuanwo

As part of #5480 changes, we will need to add useful context for our http client like Operation.

Add context is simple, we just need to add operation for every http call in services like:

+      // Inject operation to the request.
+      let req = req.extension(Operation::Stat);

       let req = req.body(Buffer::new()).map_err(new_request_build_error)?;

The whole change could be seen at #5791

All http based services will need this change.

Services

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions