You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "DanielLeens (via GitHub)" <gi...@apache.org> on 2026/04/10 02:40:16 UTC
Re: [I] [STIP-21] [Feature][Core] Support Traffic Dyeing (Sampling) and Context-Aware Metrics [seatunnel]
DanielLeens commented on issue #10305:
URL: https://github.com/apache/seatunnel/issues/10305#issuecomment-4219672173
Thanks for keeping this as a STIP tracker.
I checked the current code and the previous implementation attempt in PR #10434. From today's repo state, this is still a design-level enhancement rather than something that can be finished by a small metrics-only patch.
The main reason is that the current framework only exposes generic `MetricsContext` counters/meters, and the source/sink writer contexts do not carry any record-level trace or sampling context. So if we want system-level sampled-traffic propagation, we are really talking about a cross-cutting engine/data-path design:
1. a row-level context carrier or trace payload
2. propagation across queue / transform / sink boundaries
3. a metrics-routing or external trace-analysis model
4. serialization and compatibility boundaries
There is already a broader prototype in closed PR #10434, but it goes much further than this issue title alone and is not in a review-ready state today. I also do not see an active dev PR linked to this issue right now.
My suggestion would be to keep this issue as the design tracker, but split implementation into smaller slices if we continue:
1. first agree whether the primary goal is trace collection, metric routing, or both
2. then start with the minimal engine-side context-propagation slice
3. keep collector / UI / external storage as follow-up work unless they are strictly required in phase 1
If someone wants to revive this direction, a small focused PR linked back to STIP-21 would be much easier for the community to review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org