Initial distributed tracing instrumentation#48
Merged
Conversation
3342ece to
74dac2d
Compare
frzifus
reviewed
Jul 31, 2025
41fd565 to
216b818
Compare
8259996 to
19df391
Compare
e289ca2 to
89b9fc9
Compare
4 tasks
liu-cong
reviewed
Feb 14, 2026
| func (k *Indexer) GetPodScores(ctx context.Context, renderReq *preprocessing.ApplyChatTemplateRequest, prompt, modelName string, | ||
| podIdentifiers []string, | ||
| ) (map[string]float64, error) { | ||
| // Start tracing span for main operation |
Member
There was a problem hiding this comment.
+1 to get tracing encapsulated. Having some sparse inline tracing code is fine, but the bulk should be encapsulated. I would argue for keeping the inline bits, and wrap the indexer and scorer with tracing either in this PR or in a follow up. It's much cleaner that way without needing another refacor
|
Unsigned commits detected! Please sign your commits. For instructions on how to set up GPG/SSH signing and verify your commits, please see GitHub Documentation. |
liu-cong
reviewed
Feb 24, 2026
- Use global otel.Tracer() in library code for scheduler integration - Add telemetry initialization for standalone examples - Add gRPC interceptors for trace context propagation Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Signed-off-by: sallyom <somalley@redhat.com>
Signed-off-by: greg pereira <grpereir@redhat.com>
…ationName Pass ctx through the Score interface so traced scorer spans are children of the parent get_scores span instead of orphaned traces. Export a single telemetry.InstrumentationName constant used by all tracing wrappers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Signed-off-by: sallyom <somalley@redhat.com>
liu-cong
previously approved these changes
Feb 25, 2026
Member
liu-cong
left a comment
There was a problem hiding this comment.
/lgtm
/approve
I left a couple of nits for the naming
Signed-off-by: greg pereira <grpereir@redhat.com>
Member
|
/lgtm |
zdtsw
pushed a commit
to zdtsw-forking/llm-d-kv-cache
that referenced
this pull request
Mar 3, 2026
* Add OpenTelemetry manual instrumentation for distributed tracing - Use global otel.Tracer() in library code for scheduler integration - Add telemetry initialization for standalone examples - Add gRPC interceptors for trace context propagation Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * fix: resolve lint errors in tracing instrumentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * fix: use url.Parse in stripScheme for robustness Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * tracing: use block-level hit ratio instead of pod-level Signed-off-by: sallyom <somalley@redhat.com> * encapsulate the tracing logic Signed-off-by: greg pereira <grpereir@redhat.com> * Add context.Context to KVBlockScorer.Score and consolidate InstrumentationName Pass ctx through the Score interface so traced scorer spans are children of the parent get_scores span instead of orphaned traces. Export a single telemetry.InstrumentationName constant used by all tracing wrappers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * fix lint errors Signed-off-by: sallyom <somalley@redhat.com> * cong feedback about span naming conventions Signed-off-by: greg pereira <grpereir@redhat.com> --------- Signed-off-by: sallyom <somalley@redhat.com> Signed-off-by: greg pereira <grpereir@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: greg pereira <grpereir@redhat.com>
alexxfan
pushed a commit
to red-hat-data-services/llm-d-kv-cache
that referenced
this pull request
Mar 3, 2026
* Add OpenTelemetry manual instrumentation for distributed tracing - Use global otel.Tracer() in library code for scheduler integration - Add telemetry initialization for standalone examples - Add gRPC interceptors for trace context propagation Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * fix: resolve lint errors in tracing instrumentation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * fix: use url.Parse in stripScheme for robustness Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * tracing: use block-level hit ratio instead of pod-level Signed-off-by: sallyom <somalley@redhat.com> * encapsulate the tracing logic Signed-off-by: greg pereira <grpereir@redhat.com> * Add context.Context to KVBlockScorer.Score and consolidate InstrumentationName Pass ctx through the Score interface so traced scorer spans are children of the parent get_scores span instead of orphaned traces. Export a single telemetry.InstrumentationName constant used by all tracing wrappers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com> * fix lint errors Signed-off-by: sallyom <somalley@redhat.com> * cong feedback about span naming conventions Signed-off-by: greg pereira <grpereir@redhat.com> --------- Signed-off-by: sallyom <somalley@redhat.com> Signed-off-by: greg pereira <grpereir@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: greg pereira <grpereir@redhat.com>
guygir
pushed a commit
to guygir/llm-d-kv-cache-manager
that referenced
this pull request
Apr 20, 2026
fix: nodeport service overwritten
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Initial distributed tracing instrumentation