exporters/otlp/otlpprofile/otlpprofilehttp: add experimental OTLP/HTTP profile exporter #9546
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 372 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9546"
general
weight: 0.35
pellared
Part of #8449. Stacked on #9545 (the first three commits come from #9545; review the commits after
fef8d444bfor this PR).Adds the experimental
go.opentelemetry.io/otel/exporters/otlp/otlpprofile/otlpprofilehttpmodule implementingsdk/profile.Exporterover HTTP/protobuf usinggo.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development v0.4.1. Using the slim protobuf module keepsgoogle.golang.org/grpcandgithub.com/grpc-ecosystem/grpc-gateway/v2out of the HTTP exporter dependency graph.The shared OTLP transform template in
internal/shared/otlp/otlpprofile/transformbuilds a deduplicated, orphan-freeProfilesDictionarywith index-0 zero-value sentinels and dictionary string references (KeyStrindex/StringValueStrindex). The HTTP client posts to/v1development/profilesby default, sends theOTLP-Profiles-Development-Version: 1header, supportsOTEL_EXPORTER_OTLP_PROFILES_environment variables with fallback toOTEL_EXPORTER_OTLP_, gzip compression, retries withRetry-After, 64 MiB default request-size enforcement, and partial-success (rejected_profiles) handling.The follow-up PR stacked on this branch adds the OTLP/gRPC exporter (#9547).
Commits in this PR (on top of #9545):
internal/shared/otlp/otlpprofile: add shared OTLP profiles transform template: adds parameterizedgotmpltransform and conformance tests for slim and full OTLP profile protos.exporters/otlp/otlpprofile/otlpprofilehttp: add OTLP/HTTP profile exporter: adds the HTTP/protobuf exporter, generated internal helpers, tests, and end-to-endRuntimeProducerverification.75061f35b..3a2c13d8c): harden timeout/Retry-After bounds, header error redaction,WithProxy(nil), canonical wire-levelAttributeTablededuplication,Functioninvariant, nil/compression/zero-value guards, and expand test coverage.<details>
<summary>Benchmarks (539d1ef2c vs 3a2c13d8c)</summary>
Compared before (
539d1ef2c) vs after (3a2c13d8c):</details>