Skip to content

feat(datastore): Enable Otel metrics for custom Otel#12969

Merged
lqiu96 merged 10 commits intomainfrom
open-datastore-metrics
Apr 30, 2026
Merged

feat(datastore): Enable Otel metrics for custom Otel#12969
lqiu96 merged 10 commits intomainfrom
open-datastore-metrics

Conversation

@lqiu96
Copy link
Copy Markdown
Member

@lqiu96 lqiu96 commented Apr 30, 2026

Mark setMetricsEnabled(boolean enabled) as public in DatastoreOpenTelemetryOptions.

Some additional clean up about the Otel object and small fixes

@lqiu96 lqiu96 requested a review from jinseopkim0 April 30, 2026 16:24
@lqiu96 lqiu96 requested a review from a team as a code owner April 30, 2026 16:24
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a 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 refactors DatastoreOpenTelemetryOptions to ensure the OpenTelemetry instance is non-null by falling back to GlobalOpenTelemetry during the build process. It also makes setMetricsEnabled public, removes an obsolete test helper, and cleans up manual null checks in telemetry utilities. Review feedback suggests updating stale Javadoc, restoring @nonnull annotations with improved error messages, avoiding side effects in the builder's build() method, and removing redundant logic in the integration test teardown.

@lqiu96 lqiu96 enabled auto-merge (squash) April 30, 2026 20:16
@lqiu96 lqiu96 merged commit 1721e7c into main Apr 30, 2026
129 of 131 checks passed
@lqiu96 lqiu96 deleted the open-datastore-metrics branch April 30, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants