Skip to content

feat(memorystore): migrate Redis client-side metrics sample to OTLP - #14686

Merged
iennae merged 1 commit into
GoogleCloudPlatform:mainfrom
fosky94:otlp-migration
Oct 26, 2026
Merged

iennae merged 1 commit into
GoogleCloudPlatform:mainfrom
fosky94:otlp-migration

Conversation

@fosky94

@fosky94 fosky94 commented Oct 26, 2026

Copy link
Copy Markdown
Member

Migrates the Memorystore for Redis client-side metrics sample from deprecated Cloud Monitoring exporters to standard OpenTelemetry OTLP exporters targeting telemetry.googleapis.com:443, per b/575558307.

@fosky94
fosky94 requested review from a team as code owners October 26, 2026 17:52
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: memorystore labels Oct 26, 2026

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

Copy link
Copy Markdown
Contributor

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 transitions the Redis client-side metrics implementation from GCP-specific OpenTelemetry exporters to standard OTLP exporters over gRPC, incorporating Google Cloud authentication and resource detection. It also updates the associated tests and dependencies, and replaces force-flush calls with proper shutdowns. The review feedback correctly identifies that the OTLP exporter endpoints should not include the 'https://' scheme, as gRPC handles transport security via channel credentials and the scheme can cause connection failures.

Comment thread memorystore/redis/client_side_metrics/main.py Outdated
Comment thread memorystore/redis/client_side_metrics/main.py Outdated
@fosky94
fosky94 force-pushed the otlp-migration branch 3 times, most recently from f3a4ff8 to 9ce9d28 Compare October 26, 2026 18:57

@iennae iennae left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@iennae
iennae merged commit 3513c17 into GoogleCloudPlatform:main Oct 26, 2026
10 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: memorystore samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants