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(o11y): introduce `gcp.client.repo` and `gcp.client.artifact` attributes by diegomarquezp · Pull Request #4120 · googleapis/sdk-platform-java

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

Conversation

@diegomarquezp

@diegomarquezp diegomarquezp commented Feb 25, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This PR introduces the ability to include repository and artifact name metadata in generated GAPIC libraries.

Changes

GAX (Google API Extensions)

  • LibraryMetadata: Introduced a new internal class to hold repository and artifactName.
  • StubSettings & ClientContext: Added LibraryMetadata to these classes to carry the metadata through the client lifecycle.
  • Observability/Tracing: Updated ApiTracerContext and ObservabilityAttributes to support these new attributes, enabling them to be included in exported traces.

GAPIC Generator

  • Support for repo and artifact flags, passed down to generate a method in [Service]StubSettings that builds an instance of LibraryMetadata.

Hermetic Build

  • Support for repo and artifact to be passed down to generate_library.sh. The flags reuse the existing logic that determines the values.

Verification Results

image

Note on java-bigtable downstream check

Since SkipTrailersTest mocks the tracer factory, the EndpointContext call to apiTracerFactory.withContext() returns a null factory, causing a null pointer exception when building the client context.
We expect the test to be adjusted with this change with the next release.

Sorry, something went wrong.

Uh oh!

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

All reactions
diegomarquezp and others added 30 commits February 4, 2026 14:34
@diegomarquezp
feat: introduce minimal implementation of OTel tracing
7082247
@diegomarquezp
chore: avoid new public methods
bfe6a6d
@diegomarquezp
feat: add api tracer context
ea6cb18
@diegomarquezp
Merge remote-tracking branch 'origin/main' into observability/initial…
97bec08
…-tracing-impl
@diegomarquezp
chore: concise comment
097f701
@diegomarquezp
fix: use internal span kind for operations
f547e5a
@diegomarquezp
chore: remove unnecessary inScope implementation
b7b9e31
@diegomarquezp
Revert "chore: remove unnecessary inScope implementation"
556c84c
This reverts commit b7b9e31.
@diegomarquezp
test: add test for inScope()
0359b7d
@diegomarquezp
Merge remote-tracking branch 'origin/main' into observability/initial…
402cb89
…-tracing-impl
@diegomarquezp
chore: use suggested server address resolution impl
420278b
@diegomarquezp
fix: use concurrent hash map
6de9fb6
@diegomarquezp
chore: remove default impl for startSpan with parent
a61dacf
@diegomarquezp
chore: add opentelemery-context to tests
b000d52
@diegomarquezp
test: increase coverage for TracingTracerTest
9ce0c34
@diegomarquezp
deps: include opentelemetry context in gax
9c6c737
@diegomarquezp
chore: simplify and remove error handling
e77de58
@diegomarquezp
chore: review refactor
8f07f61
 - Rename SpanHandle to GaxSpan
 - Simplify adding op and attempt attributes
 - Use HashMap instead of ConcurrentHashMap
 - Remove error handling (for now)
@diegomarquezp
chore: make TracingTracerFactory(recorder, opAtts, atAtts) package pr…
2cfcd68
…ivate
@diegomarquezp
chore: remove unnecessary inScope
2415c6b
@diegomarquezp
chore: rename startSpan to createSpan
0f5e9b5
@diegomarquezp
chore: use server address instead of endpoint context
0c3bd22
@diegomarquezp
chore: rename classes
bdeb291
@diegomarquezp
chore: add javadoc for tracer
5c07a3c
@diegomarquezp
chore: rename to TraceSpan, improve javadocs
ff1d45d
@diegomarquezp
chore: format
043ce62
@diegomarquezp @gemini-code-assist
Update gax-java/gax/src/main/java/com/google/api/gax/tracing/AppCentr…
dbc5f41
…icTracer.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@diegomarquezp
chore: handle ipv6 in endpoint context
b4bce0d
@diegomarquezp
Merge branch 'observability/initial-tracing-impl' of https://github.c…
6e95cf4
…om/googleapis/sdk-platform-java into observability/initial-tracing-impl
@diegomarquezp
chore: add language tests
e873904
diegomarquezp added 3 commits February 25, 2026 13:51
@diegomarquezp
feat: generate LibraryMetata in StubSettings
61f19cb
@diegomarquezp
chore: regenerate goldens
17bd10c
@diegomarquezp
chore: regenerate showcase
24df7b8
@product-auto-label product-auto-label Bot added the size: xl Pull request size is extra large. label Feb 25, 2026
@gemini-code-assist

gemini-code-assist Bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @diegomarquezp, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces new gcp.client.repo and gcp.client.artifact attributes to enhance observability within client libraries. It modifies the GAPIC generator to accept and propagate these attributes, ensuring that generated client settings classes include this metadata. This change provides better insights into the client library's origin and identity during tracing, which is crucial for monitoring and debugging.

Highlights

  • Observability Attributes: Introduced new gcp.client.repo and gcp.client.artifact attributes to enhance observability within client libraries, providing more context about the client's origin and identity.
  • GAPIC Generator Updates: Modified the GAPIC generator to accept and propagate these new repo and artifact parameters, ensuring that generated client settings classes include this metadata.
  • Core Library Integration: Integrated LibraryMetadata into gax-java's ClientContext and ApiTracerContext to automatically include repository and artifact information in tracing spans.
  • Build Process Enhancements: Updated the library generation build scripts and Dockerfile to support passing and processing the new repo and artifact arguments during code generation.
Changelog
  • .cloudbuild/library_generation/library_generation.Dockerfile
    • Updated Maven install command with additional flags to skip enforcer and format checks.
  • gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java
    • Imported LibraryMetadata for use in generated settings.
    • Modified createClassMethods to accept GapicContext for metadata access.
    • Added createGetLibraryMetadataMethod to generate the getLibraryMetadata override in settings classes.
  • gapic-generator-java/src/main/java/com/google/api/generator/gapic/model/GapicContext.java
    • Added abstract methods repo() and artifact() to GapicContext.
    • Included setRepo and setArtifact methods in the GapicContext.Builder.
  • gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java
    • Added parsing for repo and artifact from the code generator request.
    • Set the parsed repo and artifact values in the GapicContext builder.
  • gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/PluginArgumentParser.java
    • Defined new constant keys KEY_REPO and KEY_ARTIFACT.
    • Added static methods parseRepo and parseArtifact to extract these arguments.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/ServiceStubSettingsClassComposerTest.java
    • Added a new parameterized test to verify ServiceStubSettings generation with repo and artifact metadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettingsMetadata.golden
    • Added a new golden file reflecting the generated ApiVersionTestingStubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettingsMetadata.golden
    • Added a new golden file reflecting the generated DeprecatedServiceStubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettingsMetadata.golden
    • Added a new golden file reflecting the generated EchoServiceSelectiveGapicStubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettingsMetadata.golden
    • Added a new golden file reflecting the generated EchoStubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettingsMetadata.golden
    • Added a new golden file reflecting the generated JobServiceStubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettingsMetadata.golden
    • Added a new golden file reflecting the generated LoggingServiceV2StubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettingsMetadata.golden
    • Added a new golden file reflecting the generated PublisherStubSettings with LibraryMetadata.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to return a default LibraryMetadata instance.
  • gapic-generator-java/src/test/java/com/google/api/generator/gapic/protoparser/PluginArgumentParserTest.java
    • Added new unit tests parseRepo and parseArtifact to verify correct parsing of new plugin arguments.
  • gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/GrpcRestTestProtoLoader.java
    • Added constants ECHO_SERVICE_REPOSITORY and ECHO_SERVICE_ARTIFACT.
    • Updated parseShowcaseEcho and parseShowcaseWicked to set these new attributes in the GapicContext.
  • gapic-generator-java/src/test/java/com/google/api/generator/test/protoloader/TestProtoLoader.java
    • Added constants ECHO_SERVICE_REPOSITORY and ECHO_SERVICE_ARTIFACT.
    • Updated parseShowcaseEcho to set these new attributes in the GapicContext.
  • gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientContext.java
    • Modified the create method to include LibraryMetadata in the ApiTracerContext.
  • gax-java/gax/src/main/java/com/google/api/gax/rpc/LibraryMetadata.java
    • Added a new LibraryMetadata class with repository and artifactName fields, using AutoValue for immutability.
  • gax-java/gax/src/main/java/com/google/api/gax/rpc/StubSettings.java
    • Added a protected getLibraryMetadata method to StubSettings to provide library-specific metadata.
  • gax-java/gax/src/main/java/com/google/api/gax/tracing/ApiTracerContext.java
    • Modified ApiTracerContext to include LibraryMetadata.
    • Updated getAttemptAttributes to add REPO_ATTRIBUTE and ARTIFACT_ATTRIBUTE from LibraryMetadata to tracing spans.
  • gax-java/gax/src/main/java/com/google/api/gax/tracing/ObservabilityAttributes.java
    • Added new constants REPO_ATTRIBUTE and ARTIFACT_ATTRIBUTE for observability tracing.
  • gax-java/gax/src/main/java/com/google/api/gax/tracing/SpanTracerFactory.java
    • Updated the constructor to use ApiTracerContext.empty() for initialization.
  • gax-java/gax/src/test/java/com/google/api/gax/tracing/ApiTracerContextTest.java
    • Added a new test file for ApiTracerContext to verify the inclusion of LibraryMetadata attributes in tracing.
  • gax-java/gax/src/test/java/com/google/api/gax/tracing/SpanTracerFactoryTest.java
    • Updated test cases to use ApiTracerContext.empty() for consistency.
  • gax-java/gax/src/test/java/com/google/api/gax/tracing/SpanTracerTest.java
    • Updated test cases to use ApiTracerContext.empty() for consistency.
  • hermetic_build/library_generation/generate_composed_library.py
    • Renamed __construct_effective_arg to _construct_effective_arg.
    • Updated _construct_effective_arg to accept generation_config and library parameters.
    • Added --repo and --artifact arguments to the effective arguments passed to the GAPIC generator.
  • hermetic_build/library_generation/generate_library.sh
    • Added --repo and --artifact options for the script.
    • Initialized repo and artifact variables.
    • Passed repo and artifact to the get_gapic_opts function.
  • hermetic_build/library_generation/tests/generate_library_unit_tests.py
    • Imported necessary classes for testing GapicConfig, GapicInputs, GenerationConfig, and LibraryConfig.
    • Added a new unit test test_construct_effective_arg_confirm_repo_and_artifact to verify the correct construction of arguments including repo and artifact.
  • hermetic_build/library_generation/tests/generate_library_unit_tests.sh
    • Updated calls to get_gapic_opts in unit tests to include the new repo and artifact parameters.
  • hermetic_build/library_generation/utils/utilities.py
    • Added a new function get_library_repository to determine the repository identifier based on library configuration.
    • Refactored generate_postprocessing_prerequisite_files to use get_library_repository.
  • hermetic_build/library_generation/utils/utilities.sh
    • Modified get_gapic_opts function to accept repo and artifact as parameters and include them in the generated options string.
  • java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java
    • Imported LibraryMetadata.
    • Overrode the getLibraryMetadata method to include specific artifact and repository names.
  • java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/ITOtelTracing.java
    • Added constants SHOWCASE_REPO and SHOWCASE_ARTIFACT for tracing tests.
    • Updated tracing tests to assert the presence and correctness of REPO_ATTRIBUTE and ARTIFACT_ATTRIBUTE.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

All reactions

Sorry, something went wrong.

Uh oh!

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

gemini-code-assist[bot]
gemini-code-assist Bot reviewed Feb 25, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces new observability attributes gcp.client.repo and gcp.client.artifact to tracing spans, which is a valuable addition for client library telemetry. The changes are well-integrated throughout the codebase, from the generator arguments and models to the GAX runtime and build scripts. The inclusion of tests at various levels, including new golden files and integration tests, ensures the correctness of this new feature. I've found one minor issue in a test file, which I've commented on.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread ...or-java/src/test/java/com/google/api/generator/test/protoloader/GrpcRestTestProtoLoader.java Resolved

Uh oh!

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

@diegomarquezp
fix: remove unwanted golden files
0309aea
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Feb 25, 2026
@diegomarquezp
fix: use correct argument for setArtifact
03ba037
diegomarquezp
diegomarquezp commented Feb 25, 2026
View reviewed changes
Comment thread ...va/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden

@diegomarquezp diegomarquezp Feb 25, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm only passing repo and artifact to the showcase service protos. I believe it's fine to observe both when the arguments were passend and when they were not.

Sorry, something went wrong.

Uh oh!

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

All reactions
diegomarquezp added 2 commits February 25, 2026 15:43
@diegomarquezp
test: update generator IT goldens
0654ba6
@diegomarquezp
chore: remove comment
45f2c09
@diegomarquezp
diegomarquezp marked this pull request as ready for review February 25, 2026 21:19
blakeli0
blakeli0 reviewed Feb 25, 2026
View reviewed changes
Comment thread gax-java/gax/src/main/java/com/google/api/gax/rpc/StubSettings.java Resolved

Uh oh!

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

Comment thread gax-java/gax/src/main/java/com/google/api/gax/tracing/ApiTracerContext.java
@InternalApi
@AutoValue
public abstract class ApiTracerContext {
@Nullable

@blakeli0 blakeli0 Feb 25, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these two attributes could be null?

Sorry, something went wrong.

Uh oh!

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

All reactions

@diegomarquezp diegomarquezp Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing/SpanTracerFactory.java

Lines 52 to 55 in 45f2c09

/** Creates a SpanTracerFactory */
public SpanTracerFactory(TraceManager traceManager) {
this(traceManager, ApiTracerContext.empty());
}

Users may provide a factory without an ApiTracerContext, so we need an empty one here with null values.

Sorry, something went wrong.

Uh oh!

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

All reactions

@diegomarquezp diegomarquezp Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may change later with feature enablement but for now I believe it's necessary.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread gax-java/gax/src/main/java/com/google/api/gax/tracing/ApiTracerContext.java Resolved

Uh oh!

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

Comment thread gax-java/gax/src/test/java/com/google/api/gax/tracing/ApiTracerContextTest.java Resolved

Uh oh!

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

Comment thread hermetic_build/library_generation/utils/utilities.py
:return: string representing the repository
"""
if config.contains_common_protos():
repo = SDK_PLATFORM_JAVA

@blakeli0 blakeli0 Feb 25, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may have to change this hardcode value to google-cloud-java once sdk-platform-java is migrated to google-cloud-java.

Sorry, something went wrong.

Uh oh!

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

diegomarquezp reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
diegomarquezp added 3 commits February 26, 2026 11:01
@diegomarquezp
fix: return empty metadata in base getter
b2b8463
@diegomarquezp
test: test each attribute separately
279acc2
@diegomarquezp
fix: non-nullable LibraryMetadata
d68ac98
@sonarqubecloud

sonarqubecloud Bot commented Feb 26, 2026

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
97.6% 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 Feb 26, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'java_showcase_integration_tests'

Failed conditions
63.6% 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 Feb 26, 2026
View reviewed changes
@diegomarquezp
diegomarquezp merged commit 105f644 into main Feb 26, 2026
57 of 61 checks passed

Uh oh!

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

@diegomarquezp
diegomarquezp deleted the observability/tracing-attr/repo-artifact branch February 26, 2026 19:03
@release-please release-please Bot mentioned this pull request Feb 26, 2026
chore(main): release 2.68.0 #4123
Merged
@diegomarquezp diegomarquezp mentioned this pull request Mar 13, 2026
chore(observability/tracing-attr/gcp.client.version-2): release 2.68.0 #4141
Closed
lqiu96 pushed a commit that referenced this pull request Mar 17, 2026
@release-please
chore(main): release 2.68.0 (#4123)
7eca195
🤖 I have created a release *beep* *boop*
---


<details><summary>2.68.0</summary>

##
[2.68.0](v2.67.0...v2.68.0)
(2026-03-17)


### Features

* Add client request duration metric.
([#4132](#4132))
([6a76397](6a76397))
* Add more attributes to golden signals metrics.
([#4135](#4135))
([59d0624](59d0624))
* **gax-httpjson:** add HttpJsonErrorParser utility
([#4137](#4137))
([a1b7565](a1b7565))
* **generator:** add extra allowed modules that will not be removed from
the monorepo if they are present
([#4124](#4124))
([774fe6e](774fe6e))
* **o11y:** introduce `gcp.client.repo` and `gcp.client.artifact`
attributes
([#4120](#4120))
([105f644](105f644))
* **o11y:** Introduce `rpc.system.name` and `rpc.method` in gRPC
([#4121](#4121))
([7ab6d2e](7ab6d2e))
* **o11y:** introduce server.port attribute
([#4128](#4128))
([56aa343](56aa343))


### Bug Fixes

* add null checks for ApiTracerFactory in ClientContext
([#4122](#4122))
([4b3dbe2](4b3dbe2))
* Decrease log level for directpath warnings outside GCE
([#4139](#4139))
([c9651e7](c9651e7))
* **gax-grpc:** add pick_first fallback to direct path service config
([#4143](#4143))
([b150fe9](b150fe9))
* Populate method level attributes in metrics recording
([#4149](#4149))
([7b7e6c9](7b7e6c9))
* suppress warnings in generated projects for non-idiomatic durations
([#4119](#4119))
([4206e6e](4206e6e))
* Use ServiceName + MethodName as the regex for Otel
([#2543](#2543))
([b9ae73f](b9ae73f))


### Documentation

* **hermetic_build:** fix config field name in readme
([#4130](#4130))
([a0c8f67](a0c8f67))
</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>
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 20, 2026
@release-please
chore(main): release 2.68.0 (#4123)
a0fb119
🤖 I have created a release *beep* *boop*
---


<details><summary>2.68.0</summary>

##
[2.68.0](googleapis/sdk-platform-java@v2.67.0...v2.68.0)
(2026-03-17)


### Features

* Add client request duration metric.
([#4132](googleapis/sdk-platform-java#4132))
([487650e](googleapis/sdk-platform-java@487650e))
* Add more attributes to golden signals metrics.
([#4135](googleapis/sdk-platform-java#4135))
([bc82dcb](googleapis/sdk-platform-java@bc82dcb))
* **gax-httpjson:** add HttpJsonErrorParser utility
([#4137](googleapis/sdk-platform-java#4137))
([6fe2446](googleapis/sdk-platform-java@6fe2446))
* **generator:** add extra allowed modules that will not be removed from
the monorepo if they are present
([#4124](googleapis/sdk-platform-java#4124))
([6a440da](googleapis/sdk-platform-java@6a440da))
* **o11y:** introduce `gcp.client.repo` and `gcp.client.artifact`
attributes
([#4120](googleapis/sdk-platform-java#4120))
([4954de5](googleapis/sdk-platform-java@4954de5))
* **o11y:** Introduce `rpc.system.name` and `rpc.method` in gRPC
([#4121](googleapis/sdk-platform-java#4121))
([3593c30](googleapis/sdk-platform-java@3593c30))
* **o11y:** introduce server.port attribute
([#4128](googleapis/sdk-platform-java#4128))
([1b10e02](googleapis/sdk-platform-java@1b10e02))


### Bug Fixes

* add null checks for ApiTracerFactory in ClientContext
([#4122](googleapis/sdk-platform-java#4122))
([ded1922](googleapis/sdk-platform-java@ded1922))
* Decrease log level for directpath warnings outside GCE
([#4139](googleapis/sdk-platform-java#4139))
([5151f34](googleapis/sdk-platform-java@5151f34))
* **gax-grpc:** add pick_first fallback to direct path service config
([#4143](googleapis/sdk-platform-java#4143))
([4934ad8](googleapis/sdk-platform-java@4934ad8))
* Populate method level attributes in metrics recording
([#4149](googleapis/sdk-platform-java#4149))
([69aabf8](googleapis/sdk-platform-java@69aabf8))
* suppress warnings in generated projects for non-idiomatic durations
([#4119](googleapis/sdk-platform-java#4119))
([8a0c565](googleapis/sdk-platform-java@8a0c565))
* Use ServiceName + MethodName as the regex for Otel
([#2543](googleapis/sdk-platform-java#2543))
([8196b8f](googleapis/sdk-platform-java@8196b8f))


### Documentation

* **hermetic_build:** fix config field name in readme
([#4130](googleapis/sdk-platform-java#4130))
([0d98c37](googleapis/sdk-platform-java@0d98c37))
</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>
This was referenced Mar 23, 2026
java: pass repo and distribution name to gapic-generator-java googleapis/librarian#4773
Closed
feat(internal/librarian/java): pass repo and artifact to gapic-generator-java googleapis/librarian#4775
Merged
zhumin8 added a commit to googleapis/librarian that referenced this pull request Mar 24, 2026
@zhumin8
feat(internal/librarian/java): pass repo and artifact to gapic-genera…
64a09f2
…tor-java (#4775)

Pass repo and artifact (distribution name) as parameter to
gapic-generator-java. This is new feature to support o11y features.
Context googleapis/sdk-platform-java#4120.

Fix #4773
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
@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

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

@diegomarquezp @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.