Repository navigation
feat(cache): export OpenTelemetry client spans - #907
Draft
jasonkuhrt wants to merge 5 commits into
Draft
jasonkuhrt wants to merge 5 commits into
jasonkuhrt wants to merge 5 commits into
Conversation
Co-authored-by: OpenAI Codex (GPT-6) <noreply@openai.com>
Co-authored-by: OpenAI Codex (GPT-6) <noreply@openai.com>
Co-authored-by: OpenAI Codex (GPT-6) <noreply@openai.com>
Co-authored-by: OpenAI Codex (GPT-6) <noreply@openai.com>
Co-authored-by: OpenAI Codex (GPT-6) <noreply@openai.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This branch has not been deployed
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.
Motivation
An instrumented remote cache server currently receives requests from
vp runwithout an exported caller span or propagated trace context. Trace-based service maps therefore cannot show the native cache client or connect it to the server.Add optional OpenTelemetry HTTP client spans for remote-cache fetch, store and blob downloads. The run's session owns an OTLP exporter configured through standard
OTEL_*variables, propagates W3C trace context through the transport, and flushes before returning its exit status. The default service name isvite-task; operators can override it using standard resource configuration.The change uses the OpenTelemetry SDK for serialization, batching, export and shutdown. Download spans cover the streamed response, normal fetch misses stay non-errors, credentials and payloads stay out of span attributes, and export failures preserve the task result. Export stays off without an endpoint or when explicitly disabled.
Closes #906.