1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [sampling](<https://delaparra-services.nl/knowledge-hub/sampling>)

  

Category: Observability 

# sampling

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is sampling?

 

sampling: Keeping only a fraction of traces/logs to control cost. Head sampling decides up front; tail sampling decides after seeing the whole trace. Sampling means keeping only part of your traces or logs to control cost and volume. Storing every trace from a busy service can be very expensive, and most of them look the same.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about sampling

  

### How is sampling used in practice?

 

Head sampling decides at the start of a request, for example keeping one percent. It is cheap but random, so it may drop the rare interesting ones. Tail sampling decides after the request finishes, so you can keep every error and every slow request while sampling the normal ones.

    

### What should you keep in mind with sampling?

 

A practical rule is to keep all errors and slow requests, and a small share of healthy traffic. The OpenTelemetry Collector supports tail sampling. Metrics should not be sampled this way; they are cheap and you want complete numbers. Make sure dashboards that count from traces account for the sample rate.

    

### What does an example of sampling look like?

 

```
sample 100% of errors, 1% of healthy traces
```

 

## At a glance

   CategoryObservability Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Observability terms

 

- [Prometheus](<https://delaparra-services.nl/knowledge-hub/prometheus>) 
- [PromQL](<https://delaparra-services.nl/knowledge-hub/promql>) 
- [RED method](<https://delaparra-services.nl/knowledge-hub/red-method>) 
- [SLA](<https://delaparra-services.nl/knowledge-hub/sla>) 
- [SLI](<https://delaparra-services.nl/knowledge-hub/sli>) 
- [SLO](<https://delaparra-services.nl/knowledge-hub/slo>)

 

[All terms starting with S](<https://delaparra-services.nl/knowledge-hub#letter-s>)

 

## Skills

 

- ### Distributed Tracing

 

Implement distributed tracing with Jaeger and Tempo to track requests across microservices and identify performance bottlenecks. Use when debugging microservices, analyzing request flows, or implementing observability for distributed systems.

 [View skill](<https://delaparra-services.nl/skills/distributed-tracing>) [Download zip](<https://delaparra-services.nl/skills/distributed-tracing/download>) 
- ### Prometheus Configuration

 

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.

 [View skill](<https://delaparra-services.nl/skills/prometheus-configuration>) [Download zip](<https://delaparra-services.nl/skills/prometheus-configuration/download>) 
- ### Grafana Dashboards

 

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

 [View skill](<https://delaparra-services.nl/skills/grafana-dashboards>) [Download zip](<https://delaparra-services.nl/skills/grafana-dashboards/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/sampling/skills.zip>)

 

## Manuals

 

- [Logging and monitoring for your app](<https://delaparra-services.nl/manuals/logging-en-monitoring>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/sampling)
