io.thundra.agent.core.sample.Sampler
, which is the interface where data (such as trace, metric, log, or other data, depending on what your sampler is designed to use) that makes sampling decisions is located.CountAwareSampler
100
, but it can be configured using the thundra_agent_sampler_countAware_countFreq
environment variable.500
, data will be sampled with every 500
Lambda invocations. Here is the configuration:TimeAwareSampler
300,000
milliseconds (5
minutes), but it can be configured using the thundra_agent_sampler_timeAware_timeFreq
environment variable.60,000
, data will be sampled every 60
seconds (10
minutes) within consecutive Lambda invocations. Here is the configuration:CompositeSampler
AND
or OR
).io.thundra.agent.trace.TraceSupport
class, which samples traces (spans).DurationAwareThundraSpanSampler
1
second (1000
milliseconds). Here is the configuration:ErrorAwareThundraSpanSampler
setMetricSampler
static method of the io.thundra.agent.metric.MetricSupport
class, which is used for sampling metrics (stats).100
invocations or 5
minutes, whichever comes first. Default invocation count and time frequencies can be configured with the thundra_agent_sampler_countAware_countFreq
and thundra_agent_sampler_timeAware_timeFreq
environment variables. You can also set your custom sampler over MetricSampler, as described above.setLogSampler
static method of the io.thundra.agent.log.LogSupport
class, which is used for sampling logs.