Skip to content

Initial distributed tracing instrumentation #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sallyom
Copy link

@sallyom sallyom commented Jul 9, 2025

Initial distributed tracing instrumentation
Also, fix nil pointer dereference in KV Cache scorer initialization.

@sallyom sallyom force-pushed the tracing branch 2 times, most recently from 3342ece to 74dac2d Compare July 30, 2025 00:53
attribute.String(tracing.AttrOperationOutcome, tracing.OutcomeSuccess),
)
tracing.SetSpanError(findTokensSpan, nil)
findTokensSpan.End()
Copy link

Choose a reason for hiding this comment

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

Does it make sense to wrap the FindLongestContainedTokens operation to set the attributes move it to the actual implementation? Missing the End() in the future can be easy.


var hitRatio float64
if totalPods > 0 {
hitRatio = float64(len(podScores)) / float64(totalPods)
Copy link

Choose a reason for hiding this comment

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

What if podScores == 0?

- Add OpenTelemetry distributed tracing support to kv-cache-manager
- Instrument Redis operations with automatic OTel tracing and metrics

Co-Authored-By: Claude <[email protected]>
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