Open aduncan314 opened 14 hours ago
Pinging code owners:
processor/probabilisticsampler: @jpkrohling @jmacd
See Adding Labels via Comments if you do not have permissions to add labels yourself.
You mentioned running OpenTelemetry Collector in Docker, make sure the Docker container can access the required network and ports. Confirm that the port mapping is correct, especially port 4317.
Or I think you can try servbay, which is more professional on Mac and supports more than docker
Component(s)
processor/probabilisticsampler
What happened?
Description
No matter how much I simplify the configuration, I cannot get any logs to pass through the probabilisitic sampler even when
sampling_percentage
is set to 100.Even if I'm making a mistake configuring the attributes, I would expect a percentage of 100 to pass every log.
Steps to Reproduce
Run the otel docker image (I tried with
latest
,0.103.1
, and0.102.1
) using this script with the simplified config shown belowand send logs or traces using
telemetrygen
, e.g.Our real config is obviously more complex, but I kept cutting it down until it was a minimal config in order to test this. I tried setting different values for
from_attribute
with no change in behavior.Expected Result
Some logs should be displayed by the
debug
exporter depending on thesampling_percentage
andattribute_source
/from_attribute
. Whensampling_percentage
is set to 100, I expect all logs to pass through even if the sampling attribute is constant across all logs.Actual Result
Sampling works as expected when sending traces with
telemetrygen
and logs are displayed when the sampler is not in the pipeline.When the sampler is in the logs pipeline, 0 logs display even when percentage is set to 100
Collector version
0.103.1, latest(0.112.0 I think), and 0.102.1
Environment information
Environment
OS: Mac
running docker images using Rancher.
OpenTelemetry Collector configuration
Log output
Additional context
No response