Skip to content

feat(sdk): RowSampledSketch OTLP wire transport for both grpc/http exporters - #540

Merged
zzylol merged 1 commit into
mainfrom
split/pr-otlp-row-sampled-transport
Jul 17, 2026
Merged

zzylol merged 1 commit into
mainfrom
split/pr-otlp-row-sampled-transport

Conversation

@zzylol

@zzylol zzylol commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Dispatches a RowSampledSketch metric point as a standard Gauge/NumberDataPoint with 3 reserved attributes (raw occurrence count, admission bitmask, sample_p) — no new proto message needed.
  • Both otlpmetricgrpc and otlpmetrichttp transform paths generated from the same shared metricdata.go.tmpl source, kept in sync.

Context

Third of the 5-PR split extracting #518's remaining unmerged scope (see #538, #539). Depends on #539's RowSampledSketch Aggregation, so this PR is based on split/pr-sdk-row-sampling-types, not main — stack it behind #538#539.

go.mod/go.sum were derived via go mod tidy against current main's dependency baseline rather than copied wholesale from feat/gos-unified-monitoring — that branch carries unrelated dependency-version drift from its own independent history unrelated to this feature. Only the new asap-precompute-go transitive dependency (pulled in via #539's sdk/metric change) and its local-module replace directives were added.

Test plan

  • go mod tidy && go build ./... && go vet ./... && go test ./... in both otlpmetricgrpc and otlpmetrichttp (via restore_all.sh) — all pass

🤖 Generated with Claude Code

…porters

Dispatches a RowSampledSketch metric point as a standard Gauge/
NumberDataPoint with 3 reserved attributes (raw occurrence count,
admission bitmask, and sample_p) — no new proto message needed, both
otlpmetricgrpc and otlpmetrichttp transform paths generated from the
same shared metricdata.go.tmpl source.

Depends on PR-B's RowSampledSketch Aggregation
(split/pr-sdk-row-sampling-types) — based on that branch.

go.mod/go.sum: derived via `go mod tidy` against current main's
dependency baseline rather than copied wholesale from
feat/gos-unified-monitoring, which carries unrelated dependency-version
drift from that branch's independent history. Only the new
asap-precompute-go transitive dependency (pulled in via PR-B's sdk/metric
change) and its local-module replace directives were added.

Extracted from #518 (stale base); wire-format logic sourced from
feat/gos-unified-monitoring, confirmed clean apply against current main.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@zzylol
zzylol force-pushed the split/pr-otlp-row-sampled-transport branch from 460b60b to 3eb0e29 Compare July 17, 2026 17:53
@zzylol
zzylol changed the base branch from split/pr-sdk-row-sampling-types to main July 17, 2026 17:55
@zzylol
zzylol merged commit 002e07e into main Jul 17, 2026
@zzylol
zzylol deleted the split/pr-otlp-row-sampled-transport branch July 17, 2026 17:59
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.

1 participant