GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Set sampledToLocalTracing flag to true for all gRPC MethodDescriptors by lqiu96 · Pull Request #3874 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@lqiu96

@lqiu96 lqiu96 commented Jul 31, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

See b/416626151 for more information.

Problem: When the sampledToLocalTracing is set to false or not set, the gRPC specific metrics have the grpc.method attribute defined as other instead of the methodDescriptor's full name. This may be confusing to customers who may expect to see the full gRPC method name.

High Level: This flag enables captures for specific method names to help provide more detailed metrics. We do not expect any noticeable performance impact from this change.

This does not impact the method name that is already properly captured for Gax Metrics (e.g. Attempt Count, Operation Latency, etc). Specifically, the use must be using grpc-java telemetry module and be using GrpcOpenTelemetry instead of OpenTelemetry.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
lqiu96 added 3 commits July 30, 2025 19:14
@lqiu96
feat: Add setSampledToLocalTracing flag to gRPC MethodDescriptors
8f80565
@lqiu96
chore: Regenerate golden integration tests
d1576e5
@lqiu96
chore: Update showcase tests
9aafe21
@lqiu96
lqiu96 requested review from blakeli0 and zhumin8 July 31, 2025 18:02
@product-auto-label product-auto-label Bot added size: l Pull request size is large. samples Issues that are directly related to samples. labels Jul 31, 2025
@lqiu96
chore: Add comments for setting the sampledLocalTracing flag
2bb0ee0
@lqiu96 lqiu96 changed the title feat: Default sampledLocalTracing flag to true by for gRPC MethodDescriptors feat: Default sampledLocalTracing flag to true for all gRPC MethodDescriptors Jul 31, 2025
@lqiu96

lqiu96 commented Jul 31, 2025

Copy link
Copy Markdown
Member Author

Looks like sonatype is complaining about inadequate coverage for the generated showcase files. This should be a non-issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lqiu96
lqiu96 marked this pull request as ready for review July 31, 2025 18:56
@lqiu96 lqiu96 changed the title feat: Default sampledLocalTracing flag to true for all gRPC MethodDescriptors feat: Set sampledLocalTracing flag to true for all gRPC MethodDescriptors Jul 31, 2025
@lqiu96 lqiu96 changed the title feat: Set sampledLocalTracing flag to true for all gRPC MethodDescriptors feat: Set sampledToLocalTracing flag to true for all gRPC MethodDescriptors Jul 31, 2025
lqiu96 and others added 7 commits August 13, 2025 12:59
@lqiu96
chore: Add test case testing with GrpcOpenTelemetry
64ecb32
@lqiu96
chore: Add comments for the showcase test
7515a7c
@lqiu96
chore: Fix typos
8780414
@lqiu96
Merge branch 'main' into sampled-local-tracing
7759fb1
@cloud-java-bot
chore: generate libraries at Wed Aug 13 17:43:25 UTC 2025
eb68700
@lqiu96
chore: Uncomment out the test case
30017b4
@cloud-java-bot
chore: generate libraries at Wed Aug 13 18:05:25 UTC 2025
5dca5dc
blakeli0
blakeli0 reviewed Aug 14, 2025
View reviewed changes
Comment thread java-showcase/gapic-showcase/pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lqiu96
chore: Set grpc-opentelemetry dep to test scope
52b1333
blakeli0
blakeli0 reviewed Aug 14, 2025
View reviewed changes
Comment thread java-showcase/gapic-showcase/pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lqiu96
chore: Move grpc-opentelemetry in the pom
a8d6f9b
@sonarqubecloud

sonarqubecloud Bot commented Aug 14, 2025

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sonarqubecloud

sonarqubecloud Bot commented Aug 14, 2025

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'java_showcase_integration_tests'

Failed conditions
48.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

blakeli0
blakeli0 approved these changes Aug 15, 2025
View reviewed changes
@lqiu96
lqiu96 merged commit 592e899 into main Aug 15, 2025
@lqiu96
lqiu96 deleted the sampled-local-tracing branch August 15, 2025 15:05
@release-please release-please Bot mentioned this pull request Aug 15, 2025
chore(main): release 2.62.0 #3884
Merged
lqiu96 pushed a commit that referenced this pull request Aug 19, 2025
@release-please
chore(main): release 2.62.0 (#3884)
27fe524
🤖 I have created a release *beep* *boop*
---


<details><summary>2.62.0</summary>

##
[2.62.0](v2.61.0...v2.62.0)
(2025-08-19)


### Features

* Set sampledToLocalTracing flag to true for all gRPC MethodDescriptors
([#3874](#3874))
([592e899](592e899))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96 added a commit that referenced this pull request Aug 21, 2025
@lqiu96 @cloud-java-bot
feat: Set sampledToLocalTracing flag to true for all gRPC MethodDescr…
af9c9c1
…iptors (#3874)

See b/416626151 for more information.

Problem: When the sampledToLocalTracing is set to false or not set, the
gRPC specific metrics have the `grpc.method` attribute defined as
`other` instead of the methodDescriptor's full name. This may be
confusing to customers who may expect to see the full gRPC method name.

High Level: This flag enables captures for specific method names to help
provide more detailed metrics. We do not expect any noticeable
performance impact from this change.

This does not impact the method name that is already properly captured
for Gax Metrics (e.g. Attempt Count, Operation Latency, etc).
Specifically, the use must be using grpc-java telemetry module and be
using
[GrpcOpenTelemetry](https://grpc.github.io/grpc-java/javadoc/io/grpc/opentelemetry/GrpcOpenTelemetry.html)
instead of
[OpenTelemetry](https://github.com/open-telemetry/opentelemetry-java/blob/main/api/all/src/main/java/io/opentelemetry/api/OpenTelemetry.java).

---------

Co-authored-by: cloud-java-bot <[email protected]>
lqiu96 pushed a commit that referenced this pull request Aug 21, 2025
@release-please @lqiu96
chore(main): release 2.62.0 (#3884)
4115e06
🤖 I have created a release *beep* *boop*
---


<details><summary>2.62.0</summary>

##
[2.62.0](v2.61.0...v2.62.0)
(2025-08-19)


### Features

* Set sampledToLocalTracing flag to true for all gRPC MethodDescriptors
([#3874](#3874))
([592e899](592e899))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96 added a commit that referenced this pull request Aug 27, 2025
@lqiu96 @cloud-java-bot
feat: Set sampledToLocalTracing flag to true for all gRPC MethodDescr…
0fd7687
…iptors (#3874)

See b/416626151 for more information.

Problem: When the sampledToLocalTracing is set to false or not set, the
gRPC specific metrics have the `grpc.method` attribute defined as
`other` instead of the methodDescriptor's full name. This may be
confusing to customers who may expect to see the full gRPC method name.

High Level: This flag enables captures for specific method names to help
provide more detailed metrics. We do not expect any noticeable
performance impact from this change.

This does not impact the method name that is already properly captured
for Gax Metrics (e.g. Attempt Count, Operation Latency, etc).
Specifically, the use must be using grpc-java telemetry module and be
using
[GrpcOpenTelemetry](https://grpc.github.io/grpc-java/javadoc/io/grpc/opentelemetry/GrpcOpenTelemetry.html)
instead of
[OpenTelemetry](https://github.com/open-telemetry/opentelemetry-java/blob/main/api/all/src/main/java/io/opentelemetry/api/OpenTelemetry.java).

---------

Co-authored-by: cloud-java-bot <[email protected]>
lqiu96 pushed a commit that referenced this pull request Aug 27, 2025
@release-please @lqiu96
chore(main): release 2.62.0 (#3884)
96f0c78
🤖 I have created a release *beep* *boop*
---


<details><summary>2.62.0</summary>

##
[2.62.0](v2.61.0...v2.62.0)
(2025-08-19)


### Features

* Set sampledToLocalTracing flag to true for all gRPC MethodDescriptors
([#3874](#3874))
([592e899](592e899))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@release-please release-please Bot mentioned this pull request Dec 11, 2025
chore(protobuf-4.x-rc): release 2.65.0-rc1 #3999
Merged
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 24, 2026
@release-please
chore(main): release 2.62.0 (#3884)
d1a338a
🤖 I have created a release *beep* *boop*
---


<details><summary>2.62.0</summary>

##
[2.62.0](googleapis/sdk-platform-java@v2.61.0...v2.62.0)
(2025-08-19)


### Features

* Set sampledToLocalTracing flag to true for all gRPC MethodDescriptors
([#3874](googleapis/sdk-platform-java#3874))
([f0f520a](googleapis/sdk-platform-java@f0f520a))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@lqiu96 lqiu96 mentioned this pull request Jul 28, 2026
[sdk-platform-java] Add "setSampledToLocalTracing" for Method Descriptor googleapis/google-cloud-java#12387
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@zhumin8 zhumin8 Awaiting requested review from zhumin8
1 more reviewer
@blakeli0 blakeli0 blakeli0 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

samples Issues that are directly related to samples. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lqiu96 @blakeli0 @cloud-java-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.