Adds a processor that creates a metric for spans count based on matching certain conditions. The purpose is to be able to debug whether spans that match a certain criteria make it to the platform and how many of them make it. Here's an example of the processor config:
When the collector receives spans that match the tenant, service and span attributes above, it will add the count of those spans to the otelcol_criteria_span_count metric.
Testing
Local testing and unit testing.
Checklist:
[✅ ] My changes generate no new warnings
[ ✅ ] I have added tests that prove my fix is effective or that my feature works
Description
Adds a processor that creates a metric for spans count based on matching certain conditions. The purpose is to be able to debug whether spans that match a certain criteria make it to the platform and how many of them make it. Here's an example of the processor config:
When the collector receives spans that match the tenant, service and span attributes above, it will add the count of those spans to the otelcol_criteria_span_count metric.
Testing
Local testing and unit testing.
Checklist: