Add otel tracing instrumentation#506
Conversation
|
This PR is marked as stale after 21d of inactivity. After an additional 14d of inactivity (7d to become rotten, then 7d more), it will be closed. To prevent this PR from being closed, add a comment or remove the |
9c56950 to
c55c5a6
Compare
884c096 to
8c4a03d
Compare
|
The GAIE entry request span PR is kubernetes-sigs/gateway-api-inference-extension#2057 |
24dc5b9 to
15eb137
Compare
| func (s *Server) chatCompletionsHandler(w http.ResponseWriter, r *http.Request) { | ||
| requestStart := time.Now() | ||
| tracer := telemetry.Tracer() | ||
| ctx, span := tracer.Start(r.Context(), "llm_d.pd_proxy.request", |
There was a problem hiding this comment.
read the proposal part seem iit has decided to use llm_d.pd_proxy.
not for this PR, but should we change the folder to pkg/pd/proxy than pkg/sidecar/proxy for better naming?
There was a problem hiding this comment.
Down the road we may have the sidecar proxy handle more than P/D disagg so I would suggest not renaming.
There was a problem hiding this comment.
ok leaving as/is for this PR
Add centralized telemetry package and custom spans
following the llm-d distributed tracing proposal.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
Signed-off-by: sallyom <somalley@redhat.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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Signed-off-by: sallyom <somalley@redhat.com>
Commits show as verified now - I had to add a new signing key. wrt the linting error, the test is complaining about the package name |
|
/approve |
|
@sallyom thanks for following through on the feedback.
The PR adds the I'm looking at the signature requirement:
$ git fetch upstream pull/506/head:pr-506
$ git checkout pr-506
$ git log --pretty="%H %s" --show-signature 2>/dev/null
No signature
693a0294eb5801e2715e815f7b15483dd68c33d1 remove extra comments from sidecar spans
No signature
9aedcc978cb9c85200eb73217985c6746b56cd53 test: add edge case tests for StripScheme
No signature
5ddef7a5831272d6c906bb92693f68d807676eff fix: address review nits for tracing PR
No signature
104f3c8cc7c689c750a165adabf2587d9c8753c2 fix: avoid os.Exit bypassing defer in main
No signature
da3c41640860e0d1b47f6947fd9bf3830bc87f14 tracing: remove extra success results & startup spans and cleanup
No signature
3a31c9d5999e263f814a477a52548d182fadcdb0 update Dockerfile.sidecar
No signature
4cf00716d55c55bc5286481a2ba2474bd66b28bc Add opentelemetry tracing
gpg: Signature made Thu Feb 19 19:28:16 2026 IST
gpg: using RSA key B5690EEEBB952194
gpg: Can't check signature: No public key
... |
|
worked around the signing verification be reruning the test after deleting "the found unsigned commits" comment (perhaps there was some left over state - who knows :-)). |
Signed-off-by: sallyom <somalley@redhat.com>
Signed-off-by: greg pereira <grpereir@redhat.com>
protect against segfault on tests
* Add opentelemetry tracing
Add centralized telemetry package and custom spans
following the llm-d distributed tracing proposal.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* update Dockerfile.sidecar
Signed-off-by: sallyom <somalley@redhat.com>
* tracing: remove extra success results & startup spans and cleanup
Signed-off-by: sallyom <somalley@redhat.com>
* fix: avoid os.Exit bypassing defer in main
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* fix: address review nits for tracing PR
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* test: add edge case tests for StripScheme
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* remove extra comments from sidecar spans
Signed-off-by: sallyom <somalley@redhat.com>
* fix lint error
Signed-off-by: sallyom <somalley@redhat.com>
* protect against segfault on tests
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 <noreply@anthropic.com>
Co-authored-by: greg pereira <grpereir@redhat.com>
(cherry picked from commit 1519a28)
* Add opentelemetry tracing
Add centralized telemetry package and custom spans
following the llm-d distributed tracing proposal.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* update Dockerfile.sidecar
Signed-off-by: sallyom <somalley@redhat.com>
* tracing: remove extra success results & startup spans and cleanup
Signed-off-by: sallyom <somalley@redhat.com>
* fix: avoid os.Exit bypassing defer in main
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* fix: address review nits for tracing PR
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* test: add edge case tests for StripScheme
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* remove extra comments from sidecar spans
Signed-off-by: sallyom <somalley@redhat.com>
* fix lint error
Signed-off-by: sallyom <somalley@redhat.com>
* protect against segfault on tests
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 <noreply@anthropic.com>
Co-authored-by: greg pereira <grpereir@redhat.com>
(cherry picked from commit 1519a28)
(cherry picked from commit 215658e)
* Add opentelemetry tracing
Add centralized telemetry package and custom spans
following the llm-d distributed tracing proposal.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* update Dockerfile.sidecar
Signed-off-by: sallyom <somalley@redhat.com>
* tracing: remove extra success results & startup spans and cleanup
Signed-off-by: sallyom <somalley@redhat.com>
* fix: avoid os.Exit bypassing defer in main
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* fix: address review nits for tracing PR
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* test: add edge case tests for StripScheme
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: sallyom <somalley@redhat.com>
* remove extra comments from sidecar spans
Signed-off-by: sallyom <somalley@redhat.com>
* fix lint error
Signed-off-by: sallyom <somalley@redhat.com>
* protect against segfault on tests
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 <noreply@anthropic.com>
Co-authored-by: greg pereira <grpereir@redhat.com>
This PR satisfies the llm-d distributed tracing proposal llm-d/llm-d#119 implementation plan.