Skip to content

Create Client side metrics for redis#10271

Open
fosky94 wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
fosky94:main
Open

Create Client side metrics for redis#10271
fosky94 wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
fosky94:main

Conversation

@fosky94
Copy link
Copy Markdown

@fosky94 fosky94 commented May 19, 2026

Added a new sample code to log client side metrics and traces for redis. this will be added to the public docs once this sample code is posted

client libraries that need to be installed (added to pom.xml file):

redis.clients jedis 5.1.0 io.opentelemetry opentelemetry-api 1.36.0 io.opentelemetry opentelemetry-sdk 1.36.0 com.google.cloud.opentelemetry exporter-trace 0.28.0-alpha com.google.cloud.opentelemetry exporter-metrics 0.28.0-alpha

@fosky94 fosky94 requested review from a team and yoshi-approver as code owners May 19, 2026 23:06
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: memorystore labels May 19, 2026
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 introduces a new Java application, RedisTelemetryApp, demonstrating the integration of Redis with OpenTelemetry for tracing and metrics. Key feedback includes the need to fix the pom.xml file, which is currently invalid due to a missing root element and parent configuration. Additionally, the OpenTelemetry implementation requires updates to ensure spans are made current for proper trace nesting, and the application blocking latency metric should be adjusted to reflect meaningful business logic processing.

Comment thread memorystore/redis/client_side_metrics/pom.xml
Comment thread memorystore/redis/client_side_metrics/RedisTelemetryApp.java
Comment thread memorystore/redis/client_side_metrics/RedisTelemetryApp.java
Comment thread memorystore/redis/client_side_metrics/RedisTelemetryApp.java
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.

1 participant