Urgent.News

What's breaking now, across thousands of outlets.

Tech

Tail sampling rules in the OpenTelemetry Collector: cost and pitfalls

Your second-tier Collector keeps restarting, or your trace bill refuses to fall: either way, it is your tail sampling rules that need another look, well before you touch the traffic. Every rule you add changes what the processor holds in memory, what it discards and what reaches the backend. This is not a configuration detail. It is a budget you have to arbitrate. This article starts from the…

This article explains the importance of tail sampling rules in the OpenTelemetry Collector, and how they can impact memory usage and performance. The tail sampling processor holds spans in memory until a decision is made, which means the number and size of rules directly affect memory consumption. The article provides a step-by-step guide for sizing and tuning these rules, using memory and throughput measurements to determine the appropriate values for decision_wait, num_traces, and maximum_trace_size_bytes.

Three types of sampling rules are discussed: exclusions, safety nets, and the cost ceiling. Exclusions drop noise spans, safety nets keep important traces, and the cost ceiling limits the number of spans per second. The article also covers combining rules and the nuances of using the probabilistic policy, as well as potential production pitfalls such as late spans and the impact of multiple Collector instances.

Lastly, the article lists key metrics to monitor and suggests re-reading the documentation with each Collector upgrade to ensure the tail sampling rules continue to function as intended.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

From a database to a YouTube Short with Pillow and ffmpeg (no video editor)

Every night our server writes a plain-language post about the day's data and turns it into a short vertical video for YouTube Shorts, Instagram Reels and Facebook.

  • Python Pillow creates vertical slides with bold text
  • ffmpeg stitches slides into YouTube Shorts format
  • Open-source tools and free cloud VM power the process

The Smart Ring Goes to Church

From glowing crosses to voice-transcribed prayers, the Elah and Glorify rings are reimagining traditional faith rituals for the wearable era.

PausePal: A Privacy-First Break Buddy Built with Presage SmartSpectra

This is a submission for the Presage SmartSpectra SDK Challenge What I Built Pause Pal is an Android break buddy for students, developers and anyone who works or studies at a screen.

  • PausePal is a privacy-first break reminder app for screen-heavy users.
  • It monitors pulse, breathing, HRV, and personal baseline using phone's front camera.
  • The app offers guided breathing breaks and real-time breathing data feedback.

More from Friday 20 November →