opentelemetry-collector
opentelemetry-collector copied to clipboard
Add ingoing and outgoing counts to processorhelper
Description
Implements ingoing and outgoing counts as described in https://github.com/open-telemetry/opentelemetry-collector/issues/10708.
Codecov Report
Attention: Patch coverage is 92.20779% with 6 lines in your changes missing coverage. Please review.
Project coverage is 92.21%. Comparing base (
35024cf) to head (96867af). Report is 3 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #10910 +/- ##
==========================================
- Coverage 92.21% 92.21% -0.01%
==========================================
Files 414 414
Lines 19718 19792 +74
==========================================
+ Hits 18183 18251 +68
- Misses 1165 1168 +3
- Partials 370 373 +3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Any thoughts on this, @open-telemetry/collector-contrib-approvers?
A contrib test failed, but I think it expected with this change:
=== Failed
=== FAIL: . TestFilterMetricProcessorTelemetry (0.00s)
make[3]: *** [../../Makefile.Common:128: test] Error 1
generated_component_telemetry_test.go:55:
Error Trace: /tmp/opentelemetry-collector-contrib/processor/filterprocessor/generated_component_telemetry_test.go:55
/tmp/opentelemetry-collector-contrib/processor/filterprocessor/metrics_test.go:423
Error: Not equal:
make[2]: *** [Makefile:187: processor/filterprocessor] Error 2
make[1]: *** [Makefile:127: gotest] Error 2
make: *** [Makefile:260: check-contrib] Error 2
expected: 1
actual : 3
Test: TestFilterMetricProcessorTelemetry
=== FAIL: . TestFilterMetricProcessorTelemetry (re-run 1) (0.00s)
generated_component_telemetry_test.go:55:
Error Trace: /tmp/opentelemetry-collector-contrib/processor/filterprocessor/generated_component_telemetry_test.go:55
/tmp/opentelemetry-collector-contrib/processor/filterprocessor/metrics_test.go:423
Error: Not equal:
expected: 1
actual : 3
Test: TestFilterMetricProcessorTelemetry
A contrib test failed, but I think it expected with this change:
=== Failed === FAIL: . TestFilterMetricProcessorTelemetry (0.00s) make[3]: *** [../../Makefile.Common:128: test] Error 1 generated_component_telemetry_test.go:55: Error Trace: /tmp/opentelemetry-collector-contrib/processor/filterprocessor/generated_component_telemetry_test.go:55 /tmp/opentelemetry-collector-contrib/processor/filterprocessor/metrics_test.go:423 Error: Not equal: make[2]: *** [Makefile:187: processor/filterprocessor] Error 2 make[1]: *** [Makefile:127: gotest] Error 2 make: *** [Makefile:260: check-contrib] Error 2 expected: 1 actual : 3 Test: TestFilterMetricProcessorTelemetry === FAIL: . TestFilterMetricProcessorTelemetry (re-run 1) (0.00s) generated_component_telemetry_test.go:55: Error Trace: /tmp/opentelemetry-collector-contrib/processor/filterprocessor/generated_component_telemetry_test.go:55 /tmp/opentelemetry-collector-contrib/processor/filterprocessor/metrics_test.go:423 Error: Not equal: expected: 1 actual : 3 Test: TestFilterMetricProcessorTelemetry
The test is likely a failure of the new metrics being emitted and the original test not expecting them to be there. Please open a PR to update the test as a follow up
Thanks for the review @codeboten. I created https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/35073 to update the contrib test.