Skip to content

feat: add OTLP profile forwarding mode - #6459

Merged
brancz merged 2 commits into
mainfrom
feat/otlp-profile-forwarding
Oct 30, 2026
Merged

brancz merged 2 commits into
mainfrom
feat/otlp-profile-forwarding

Conversation

@brancz

@brancz brancz commented Oct 30, 2026

Copy link
Copy Markdown
Member

Adds --mode=otlp-forwarder to convert scraped pprof profiles with the OpenTelemetry converter and export them to an OTLP-only upstream over gRPC.
Target and external labels become resource attributes, while labels inside pprof remain sample attributes, including when their names overlap.
The mode reuses the existing TLS, bearer authentication, and custom gRPC headers, without requiring upstream Parca APIs.
Static-target and Kubernetes examples map discovered metadata to OpenTelemetry semantic-convention attributes.

Verified targeted config, profile-store, scrape, and application tests, targeted race checks, go vet, and a binary build; the end-to-end test exercises discovery, relabeling, scraping, conversion, authentication, and OTLP export.
The repository-pinned formatter has also been applied.
The pinned converter currently rejects sample labels with multiple values; that limitation and a real Collector interoperability smoke test remain follow-up review items.
Full CI results are pending.

Convert scraped pprof profiles with the OpenTelemetry translator and export them over OTLP/gRPC. Preserve target labels as resource attributes and pprof labels as sample attributes, with semantic-convention configuration examples.

Amp-Thread-ID: https://ampcode.com/threads/T-01a18c4e-d681-71f4-8158-32d8026e071b
Co-authored-by: Amp <amp@ampcode.com>
@alwaysmeticulous

alwaysmeticulous Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

✅ Meticulous spotted 0 visual differences across 14 screens tested: view results.

Meticulous evaluated ~4 hours of user flows against your PR.

Expected differences? Click here. Last updated for commit 06325f8 docs: regenerate CLI help for OTLP forwarding. This comment will update as new commits are pushed.

@metalmatze metalmatze left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's go.
let's get it in and then do follow ups if we find something.

@brancz
brancz merged commit 0994001 into main Oct 30, 2026
33 checks passed
@brancz
brancz deleted the feat/otlp-profile-forwarding branch October 30, 2026 14:39

This branch was successfully deployed

1 active deployment
Preview – parca-ui — 06325f82 Deployed Oct 30, 2026 by vercel[bot]
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