Sampling
Sending only part of your traces to Confident AI
Sampling allows you to control what percentage of traces are sent to Confident’s observatory.
This is useful for high-volume applications where you may want to reduce the amount of data being sent while still maintaining visibility into your system’s performance.
Configure the sampling rate by setting the CONFIDENT_SAMPLE_RATE environment variable, which represents the proportion of traces that will be sent to the observatory.
Alternatively, you can set the sampling rate directly in code: