Relative Content

Tag Archive for open-telemetry

Filelog receiver to drop logs if file exceeded maxSize

At work, they asked me to use https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver inside our opentelemtry collector agent. The problem is they are asking for a feature to skip log files if their size increased unreasonably.

How to exclude certain Otel spans from being exported (programatically in Python)?

My application processes messages from rabbit queue. Lots of the messages are inappropriate for processing (not ideal, but for a valid reason), so the application is just rejecting them upon reading without re-queuing them.
As the messaging library (aio_pika) is otel instrumented, it generates loads of unnecessary spans that are exported. What is the best way to exclude these spans from being exported?