Skip to content

Conversation

@pipiland2612
Copy link
Contributor

@pipiland2612 pipiland2612 commented Jul 10, 2025

Which problem is this PR solving?

Reference images:

Screenshot 2025-07-09 at 22 15 38

When compares to the working solution:
Screenshot 2025-07-09 at 22 15 32

Some other timestamp & service:
Screenshot 2025-07-07 at 22 27 31

Solution: Use lastNonNaNMap := make(map[string]float64) that tracks the lastNonNaN value associates with different labels key. When I rerun with this changes, the problem is now fixed:

Screenshot 2025-07-09 at 22 13 38

When compares to the working solution:

Screenshot 2025-07-09 at 22 13 48

Bug 2: Add 0 data point for service that don't return any data point for errorRate. This changes is made with zeroValue

Description of the changes

  • Add lastNonNaNmap to fix bug 1
  • Add zeroValue to fix bug 2

How was this change tested?

  • CI

Checklist

Signed-off-by: pipiland2612 <[email protected]>
@pipiland2612 pipiland2612 requested a review from a team as a code owner July 10, 2025 07:47
@pipiland2612 pipiland2612 requested a review from joe-elliott July 10, 2025 07:47
@pipiland2612 pipiland2612 changed the title Bug fixing [spm] Bug fix for metricstore/elasticsearch/processor.go Jul 10, 2025
@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.15%. Comparing base (6972da9) to head (a69d426).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7303      +/-   ##
==========================================
- Coverage   96.16%   96.15%   -0.02%     
==========================================
  Files         377      377              
  Lines       22863    22886      +23     
==========================================
+ Hits        21987    22006      +19     
- Misses        660      663       +3     
- Partials      216      217       +1     
Flag Coverage Δ
badger_v1 9.17% <ø> (ø)
badger_v2 1.75% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 11.91% <ø> (ø)
cassandra-4.x-v2-auto 1.74% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.74% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 11.91% <ø> (ø)
cassandra-5.x-v2-auto 1.74% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.74% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 16.66% <ø> (ø)
elasticsearch-7.x-v1 16.71% <ø> (ø)
elasticsearch-8.x-v1 16.87% <ø> (ø)
elasticsearch-8.x-v2 1.75% <0.00%> (-0.10%) ⬇️
grpc_v1 10.42% <ø> (ø)
grpc_v2 1.75% <0.00%> (-0.01%) ⬇️
kafka-3.x-v1 9.34% <ø> (ø)
kafka-3.x-v2 1.75% <0.00%> (-0.01%) ⬇️
memory_v2 1.75% <0.00%> (-0.01%) ⬇️
opensearch-1.x-v1 16.75% <ø> (ø)
opensearch-2.x-v1 16.75% <ø> (ø)
opensearch-2.x-v2 1.75% <0.00%> (-0.01%) ⬇️
query 1.75% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.48% <0.00%> (-0.01%) ⬇️
unittests 95.07% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: pipiland2612 <[email protected]>
@yurishkuro yurishkuro added the changelog:exprimental Change to an experimental part of the code label Jul 11, 2025
@yurishkuro yurishkuro added this pull request to the merge queue Jul 11, 2025
Merged via the queue into jaegertracing:main with commit acc2dca Jul 11, 2025
60 of 61 checks passed
@pipiland2612 pipiland2612 deleted the bug_fixing branch July 11, 2025 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug changelog:exprimental Change to an experimental part of the code storage/elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants