Repository navigation
feat(metrics): destVersion label on per-destination transform metrics - #5319
Conversation
|
Warning Review limit reached
More reviews will be available in 24 minutes and 15 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Note
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5319 +/- ##
========================================
Coverage 92.70% 92.70%
========================================
Files 700 700
Lines 37970 37970
Branches 8863 8904 +41
========================================
Hits 35199 35199
+ Misses 2561 2543 -18
- Partials 210 228 +18 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
e06cd71 to
282e23c
Compare
00617d5 to
8758e9a
Compare
…est_destination (#5318) ## What The data-plane half of integration definition-versioning in the transformer — carry the **integration major** on the destination and dispatch on it, plus a dev-only destination that exercises it end-to-end. No production destination grows a real per-major branch here. ### INT-6495 — version on the `Destination` type + dispatch idiom - `version?: number` on the `Destination` type (mirrors Go `DestinationT.Version`). Optional because it can be undefined — `0` / `undefined` / `1` all dispatch as v1 (`Number(undefined)` is `NaN`), so existing destinations behave identically. - `destinationVersion?: number` received on the proxy/dataDelivery payload (`ProxyV0/V1Request` + zod schemas) — the proxy route carries no destination object, so the major arrives as a sibling field. - Dispatch idiom documented in `CONTRIBUTING.md` and the `code-structure` Claude skill (in-file branch by default; sibling-module escalation; never route majors through `getDestHandler`). ### INT-6492 — dev-only `test_destination` (v1 only) - `src/v0/destinations/test_destination/` dispatches on `Number(destination.version)` in `transform`/`processRouterDest` and on `destinationVersion` in `networkHandler`; `major >= 2` throws not-implemented (only v1 is built). - Processor / router / dataDelivery integration fixtures (v1, no-version, v2-rejection) + a co-located unit test. - Router capability registered in `features.ts`. Clearly labelled **"DEV-ONLY — NOT A REAL DESTINATION"**; uses the reserved `.invalid` endpoint. Control-plane exposure is gated to dev only (other repos). ## Out of scope - No real per-major branch for any production destination (rollout milestone). - `test_destination` v2 path — stubbed to throw; only v1 implemented. ## Testing - `test_destination` unit 4/4 · component (processor/router/dataDelivery) 7/7 - `webhook` smoke 23/23 · `misc` (getFeatures) 2/2 — no regression - Full pre-commit suite (`test:ts` + `test:js` + lint) green. ## References - Linear: [INT-6495](https://linear.app/rudderstack/issue/INT-6495) (version on the `Destination` type + dispatch idiom) · [INT-6492](https://linear.app/rudderstack/issue/INT-6492) (dev-only `test_destination`) - Paired (data plane sender): rudderlabs/rudder-server#7125 — carries `version` on `DestinationT`; sends `destination.version` (transform/router) + top-level `destinationVersion` (proxy). - Stacked follow-up: #5319 — [INT-6576](https://linear.app/rudderstack/issue/INT-6576) `destVersion` metric label.
…rics INT-6576 — emit the integration major (destination.version) as a low-cardinality `destVersion` label on the dest_transform_input_events / dest_transform_output_events histograms (processor + router), and register it in the prometheus labelset. The value is read through getDestinationVersion, so a missing/0 major (workspace config without a version stamped) normalizes to 1 — dashboards never see a bogus destVersion=0. Stacked on INT-6495 (version on the Destination type + getDestinationVersion). Source: data-plane LLD §5 (DP.12). Scanned-by: gitleaks 8.30.0
8758e9a to
de80f07
Compare
|



What
Low-cardinality observability follow-up (INT-6576) — emit the integration major as a
destVersionlabel on the per-destination transform metrics, so adoption / per-version error & latency / retirement-readiness are sliceable by major. Label-wiring only, no data-path change.destVersionlabel ondest_transform_input_events+dest_transform_output_events(processor + router paths), read fromevents[0]?.destination?.version.src/util/prometheus.js) — prom-client rejects labels absent from a metric's initial labelset.Scope
Scoped to the two transform-event histograms (where
destination.versionis in scope in the controller). The other candidates were deliberately left out:event_transform_success/failureandoutgoing_request_*need cross-cutting threading throughgetTags/MetaTransferObject/network.js;tf_proxy_*,transformer_proxy_*,dest_transform_requests, andv0_transformation_timeare defined but never emitted.Stacked on
Built on top of #5318 (INT-6495 —
version?on theDestinationtype). Base branch is that PR's branch; this metric reads the field it adds. Review/merge #5318 first.Testing
test_destinationcomponent run: histograms emit withdestVersion; prom-client raises no "label not in initial labelset" error.webhooksmoke 23/23 (no regression).test:ts+test:js+ lint) green.References
versionmetric label on per-destination metrics.destination.version.