Skip to content

feat: add SendTracingContext option to httputil for OpenTelemetry tracing#546

Open
hweawer wants to merge 1 commit intofeat/tracing-writeback-executor-loggingfrom
feat/tracing-httputil-infrastructure
Open

feat: add SendTracingContext option to httputil for OpenTelemetry tracing#546
hweawer wants to merge 1 commit intofeat/tracing-writeback-executor-loggingfrom
feat/tracing-httputil-infrastructure

Conversation

@hweawer
Copy link
Collaborator

@hweawer hweawer commented Jan 26, 2026

Summary

Add SendTracingContext option to httputil to enable OpenTelemetry distributed tracing support for HTTP client calls. This is foundational infrastructure for end-to-end trace propagation across Kraken services.

Motivation

Currently, Kraken has limited observability for debugging slow/failed blob uploads and downloads across distributed services. Adding distributed tracing will enable:
End-to-end visibility of blob upload/download flows
Correlation of logs across proxy → origin → backend
Debugging performance bottlenecks with precise timing data
Linking asynchronous operations (e.g., writeback tasks) to original requests
This PR provides the core HTTP infrastructure needed for trace propagation.

@hweawer hweawer changed the title feat: add SendTracingContext option to httputil for OpenTelemetry tra… feat: add SendTracingContext option to httputil for OpenTelemetry tracing Jan 26, 2026
@hweawer hweawer self-assigned this Jan 26, 2026
retry retryOptions
transport http.RoundTripper
ctx context.Context
tracingContext bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need an option for it? Why not turn it on by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants