This documentation reflects Honeycomb Refinery 3.0, the latest major release.If you’re using a previous version of Refinery, we recommend that you migrate to Refinery 3.0 or later to take advantage of new and improved features.
500 status code and were also served from a cache.
For more structured learning, check out the Introduction to Refinery course from Honeycomb Academy.
Refinery’s tail-based sampling capabilities
Refinery support several kinds of tail sampling:- Dynamic sampling - This sampling type configures a key based on a trace’s set of fields and automatically increases or decreases the sampling rate based on how frequently each unique value of that key occurs. For example, using a key based on
http.status_code, you can include in your sampled data:- one out of every 1,000 traces for requests that return
2xx - one out of every 10 traces for requests that return
4xx - every request that returns
5xx
- one out of every 1,000 traces for requests that return
- Rules-based sampling - This sampling type enables you to define sampling rates for well-known conditions. For example, in your sampled data, you can keep 100% of traces with an error and then apply dynamic sampling to all other traffic.
- Throughput-based sampling - This sampling type enables you to sample traces based on a fixed upper-bound for the number of spans per second. The sampler will dynamically sample traces with a goal of keeping the throughput below the specified limit.
- Deterministic probability sampling - This sampling type consistently applies sampling decisions without considering the contents of the trace other than its trace ID. For example, you can include 1 out of every 12 traces in the sampled data sent to Honeycomb. This kind of sampling can also be done using head sampling, and if you use both, Refinery takes that into account.
- Supports OpenTelemetry traces and logs signals - Handles both OpenTelemetry trace and log data signals. Log records associated with traces are sampled as part of the trace. Unassociated log events are forwarded directly to Honeycomb.