Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Tail sampling with OpenTelemetry and New Relic

Blog post from New Relic

Post Details
Company
Date Published
Author
Reese Lee, Senior Developer Relations Engineer
Word Count
2,341
Company Posts That Month
25
Language
English
Hacker News Points
-
Post removed?
No
Summary

Tail sampling is a method used in distributed systems to manage observability costs and focus on important data by sampling traces after all spans in a request are completed, contrasting with head-based sampling, which occurs at the beginning of a request. This approach allows for filtering based on specific criteria, such as error traces or latency, reducing the amount of data stored and processed. Implementing tail sampling in OpenTelemetry involves using the tail sampling processor, which relies on policies to determine which traces to sample, though it presents challenges such as unpredictable costs and the need for a suitable collector setup. New Relic's Infinite Tracing offers an alternative solution by simplifying the process through a trace observer that supports OpenTelemetry and New Relic's APM agents, enabling users to configure sampling rules without altering their existing infrastructure. Despite its advantages, tail sampling requires careful consideration of its limitations and potential issues, including resource allocation and the possibility of fragmented traces due to incomplete data collection.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 18 640 175 63 -11%
OpenTelemetry 17 170 26 16 +20%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.