is_sampled
function. The is_sampled
function should return as true
if you want to send data to Thundra, and should return as false
if you want to omit the data.thundra_agent_lambda_metric_sample_sampler_countAware_countFreq
environment variable in AWS Lambda.thundra_agent_lambda_metric_sample_sampler_timeAware_timeFreq
environment variable in AWS Lambda.Sampler
using the specified composition operation (and
or or
).TimeAwareSampler
and CountAwareSampler
with or can be seen below:set_sampler
function from thundra.plugins.metric.metric_support
.thundra_agent_lambda_sampler_countAware_countFreq
and thundra_agent_lambda_sampler_timeAware_timeFreq
environment variables. You can also set your own custom sampler to be the preferred method over default configuration.thundra.samplers.CountAwareSampler
and set it as the sampler using the set_sampler
function from thundra.plugins.metric.metric_support
. See the example below:thundra_agent_lambda_metric_sample_sampler_countAware_countFreq
environment variable in AWS Lambda.thundra.samplers.TimeAwareSampler
and set it as the sampler using the set_sampler
function from thundra.plugins.metric.metric_support
. See the example below:thundra_agent_lambda_metric_sample_sampler_timeAware_timeFreq
environment variable in AWS Lambda.set_sampler
function from thundra.plugins.log.log_support
.set_sampler
function from thundra.plugins.trace.trace_support
.set_sampler
function from thundra.plugins.trace.trace_support
.