Skip to content

fix: Use ServiceName + MethodName as the regex for Otel#2543

Merged
diegomarquezp merged 6 commits intomainfrom
otel-method_name
Mar 3, 2026
Merged

fix: Use ServiceName + MethodName as the regex for Otel#2543
diegomarquezp merged 6 commits intomainfrom
otel-method_name

Conversation

@lqiu96
Copy link
Member

@lqiu96 lqiu96 commented Mar 7, 2024

Fixes: #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.

@lqiu96 lqiu96 requested a review from a team March 7, 2024 18:25
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Mar 7, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Mar 7, 2024
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2024

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2024

Quality Gate Failed Quality Gate failed for 'java_showcase_integration_tests'

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 2024

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 2024

Quality Gate Failed Quality Gate failed for 'java_showcase_integration_tests'

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Quality Gate Failed Quality Gate failed for 'java_showcase_integration_tests'

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@diegomarquezp diegomarquezp merged commit b9ae73f into main Mar 3, 2026
53 of 57 checks passed
@diegomarquezp diegomarquezp deleted the otel-method_name branch March 3, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Otel's Method Name is different between gRPC and HttpJson

4 participants