gapic-generator-java
gapic-generator-java copied to clipboard
fix: Use ServiceName + MethodName as the regex for Otel
Fixes: https://github.com/googleapis/sdk-platform-java/issues/2502
Use a consistent Regex matching pattern for both gRPC and HttpJson. Copy the pattern used for gRPC into HttpJson.
Looking at the Method Descriptor for HttpJson (Compute as an example), the full method name does not match service.resource.action: https://github.com/googleapis/google-cloud-java/blob/1f9e63224424327a08e3663985773546b3f7808b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServicesStub.java#L85
It seems to match ServiceName/MethodName.
