Skip to content

[sdk-platform-java] Add "setSampledToLocalTracing" for Method Descriptor #12387

Description

@surbhigarg92

Is your feature request related to a problem? Please describe.
Customer is trying to use Spanner client and enabling gRPC OpenTelemetry Metrics. When trying to do so "Method" Attribute is always reported as "Other".

As per proposal A66 to get these methods to show up in metrics, setSampledToLocalTracing](https://github.com/grpc/grpc-java/blob/master/api/src/main/java/io/grpc/MethodDescriptor.java#L591) needs to set on the builder before registering the method.

Since the code for MethodDescriptor is autogenerated, generator should allow setting setSampledToLocalTracing

Describe the solution you'd like
Add setSampledToLocalTracing to the MethodDescriptor autogenerated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions