alloy icon indicating copy to clipboard operation
alloy copied to clipboard

[feature request] ability to filter/collect X slowest traces in tail sampling

Open vbichov opened this issue 2 years ago • 1 comments

Is your proposal related to a problem? we would like to be able to select only a subset (10) slowest/fastest transactions and save them into tempo

Describe the solution you'd like I would like to have topk/bottomk filter in tailsampling processors

Describe alternatives you've considered None, there's currently an ability to filter traces based on transaction time but the duration needs to be hardcoded and not relative to rest of the traces

Additional context none

vbichov avatar Sep 28 '22 08:09 vbichov

Hey there Vitaly 👋 This sounds like a potentially interesting feature. The Agent embeds the OpenTelemetry Collector for handling traces, so ideally the feature would be implemented there first. WDYT about opening an issue upstream and see if it gains any traction?

tpaschalis avatar Oct 03 '22 10:10 tpaschalis