Skip to content

Conversation

AnmolxSingh
Copy link
Contributor

@AnmolxSingh AnmolxSingh commented Apr 9, 2025

Which problem is this PR solving?

Description of the changes

How was this change tested?

  • Ran writer tests

Checklist

Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
@AnmolxSingh AnmolxSingh marked this pull request as ready for review April 9, 2025 19:28
@AnmolxSingh AnmolxSingh requested a review from a team as a code owner April 9, 2025 19:28
@AnmolxSingh AnmolxSingh requested a review from jkowall April 9, 2025 19:28
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 95.34884% with 2 lines in your changes missing coverage. Please review.

Project coverage is 96.20%. Comparing base (1e691d5) to head (6b6d8ea).
Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
internal/storage/elasticsearch/config/config.go 95.12% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7006      +/-   ##
==========================================
+ Coverage   96.12%   96.20%   +0.07%     
==========================================
  Files         357      358       +1     
  Lines       21570    21596      +26     
==========================================
+ Hits        20735    20777      +42     
+ Misses        629      613      -16     
  Partials      206      206              
Flag Coverage Δ
badger_v1 9.90% <0.00%> (-0.03%) ⬇️
badger_v2 2.05% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.89% <0.00%> (-0.04%) ⬇️
cassandra-4.x-v2-auto 2.04% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 2.04% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.89% <0.00%> (-0.04%) ⬇️
cassandra-5.x-v2-auto 2.04% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 2.04% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 20.23% <53.48%> (+0.03%) ⬆️
elasticsearch-7.x-v1 20.31% <53.48%> (+0.03%) ⬆️
elasticsearch-8.x-v1 20.49% <53.48%> (+0.03%) ⬆️
elasticsearch-8.x-v2 2.05% <0.00%> (-0.01%) ⬇️
grpc_v1 11.44% <0.00%> (-0.03%) ⬇️
grpc_v2 2.05% <0.00%> (-0.01%) ⬇️
kafka-3.x-v1 10.17% <0.00%> (-0.03%) ⬇️
kafka-3.x-v2 2.05% <0.00%> (-0.01%) ⬇️
memory_v2 2.05% <0.00%> (-0.01%) ⬇️
opensearch-1.x-v1 20.36% <53.48%> (+0.03%) ⬆️
opensearch-2.x-v1 20.36% <53.48%> (+0.03%) ⬆️
opensearch-2.x-v2 2.05% <0.00%> (-0.01%) ⬇️
query 2.05% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.55% <0.00%> (-0.01%) ⬇️
unittests 95.02% <83.72%> (+0.08%) ⬆️

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.

@AnmolxSingh
Copy link
Contributor Author

@yurishkuro I just wanted to know about my direction at moment.

AnmolxSingh and others added 2 commits April 11, 2025 01:57
Signed-off-by: anmol7344 <anmol7344@gmail.com>
@AnmolxSingh AnmolxSingh force-pushed the metrics branch 2 times, most recently from f5011af to 17756d8 Compare April 11, 2025 19:04
AnmolxSingh and others added 2 commits April 12, 2025 00:35
Signed-off-by: anmol7344 <anmol7344@gmail.com>
AnmolxSingh and others added 2 commits April 11, 2025 20:23
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Anmol <166167480+AnmolxSingh@users.noreply.github.com>
AnmolxSingh and others added 2 commits April 14, 2025 01:12
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any unit tests validating that the expected metrics are being emitted

Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@AnmolxSingh
Copy link
Contributor Author

I don't see any unit tests validating that the expected metrics are being emitted

While writing the unit tests for emitted metrices I was thinking of simulating the .After() callback.
Is this approach correct?

@yurishkuro
Copy link
Member

I was thinking of simulating the

you can move the code of the callback into a top level function which you can call directly from the test

Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: anmol7344 <anmol7344@gmail.com>
@yurishkuro yurishkuro changed the title [Fix] ES metrics reintroduced [Fix] Restore ES metrics May 12, 2025
@yurishkuro yurishkuro added this pull request to the merge queue May 12, 2025
Merged via the queue into jaegertracing:main with commit 176aeed May 12, 2025
58 checks passed
iypetrov pushed a commit to iypetrov/jaeger that referenced this pull request May 14, 2025
## Which problem is this PR solving?
-  Resolves jaegertracing#6891 

## Description of the changes
- Reintroduced metrics which were lost during jaegertracing#6883 

## How was this change tested?
- Ran writer tests

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

---------

Signed-off-by: anmol7344 <anmol7344@gmail.com>
Signed-off-by: Anmol <166167480+AnmolxSingh@users.noreply.github.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <github@ysh.us>
@AnmolxSingh AnmolxSingh deleted the metrics branch May 16, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ES store metrics got lost
3 participants