Skip to content

Make RPC system configurable per-client and per-method #4891

@coryan

Description

@coryan

When defining client metrics and traces we need to include the RPC system used by the underlying transport. Most client libraries use HTTP, but some use gRPC, and some use HTTP for most methods and gRPC for a few methods.

I think we will need to do one of two things:

  • Return the RPC system from the transport layer (aka T4) and use that in the annotations for the client layer (T3 and T2), or
  • Have the client library provider the RPC system as a RequestOptions extension, like we do for the URL template.

Could this duration be used on gRPC clients? If so, we should pass in the rpc system value (to new_with_provider?)

Originally posted by @westarle in #4881

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions