Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[refactor] Introduce helper for creating map of spans #6406

Merged
merged 4 commits into from
Dec 25, 2024

Conversation

mahadzaryab1
Copy link
Collaborator

Description of the changes

  • Introduce a generic helper to create a map of spans given a ptrace.Traces and a key function.

How was this change tested?

  • Added unit tests

Checklist

Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner December 25, 2024 16:57
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Copy link

codecov bot commented Dec 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.25%. Comparing base (e51d1ae) to head (a154ef4).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6406      +/-   ##
==========================================
- Coverage   96.27%   96.25%   -0.03%     
==========================================
  Files         367      368       +1     
  Lines       20978    20979       +1     
==========================================
- Hits        20197    20193       -4     
- Misses        597      601       +4     
- Partials      184      185       +1     
Flag Coverage Δ
badger_v1 8.94% <0.00%> (-0.01%) ⬇️
badger_v2 1.84% <100.00%> (+<0.01%) ⬆️
cassandra-4.x-v1-manual 14.87% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-auto 1.78% <100.00%> (+<0.01%) ⬆️
cassandra-4.x-v2-manual 1.78% <100.00%> (+<0.01%) ⬆️
cassandra-5.x-v1-manual 14.87% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-auto 1.78% <100.00%> (+<0.01%) ⬆️
cassandra-5.x-v2-manual 1.78% <100.00%> (+<0.01%) ⬆️
elasticsearch-6.x-v1 18.55% <0.00%> (-0.01%) ⬇️
elasticsearch-7.x-v1 18.62% <0.00%> (-0.02%) ⬇️
elasticsearch-8.x-v1 18.78% <0.00%> (-0.02%) ⬇️
elasticsearch-8.x-v2 1.84% <100.00%> (+<0.01%) ⬆️
grpc_v1 10.60% <0.00%> (-0.01%) ⬇️
grpc_v2 8.11% <100.00%> (+<0.01%) ⬆️
kafka-2.x-v1 9.30% <0.00%> (-0.01%) ⬇️
kafka-2.x-v2 1.84% <100.00%> (+<0.01%) ⬆️
kafka-3.x-v1 9.30% <0.00%> (-0.01%) ⬇️
kafka-3.x-v2 1.84% <100.00%> (+<0.01%) ⬆️
memory_v2 1.83% <100.00%> (-0.01%) ⬇️
opensearch-1.x-v1 18.67% <0.00%> (-0.02%) ⬇️
opensearch-2.x-v1 18.68% <0.00%> (-0.01%) ⬇️
opensearch-2.x-v2 1.83% <100.00%> (+<0.01%) ⬆️
tailsampling-processor 0.46% <0.00%> (-0.01%) ⬇️
unittests 95.11% <100.00%> (-0.03%) ⬇️

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.

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.

nice cleanup!

@yurishkuro yurishkuro merged commit 0369bea into jaegertracing:main Dec 25, 2024
56 checks passed
Manik2708 pushed a commit to Manik2708/jaeger that referenced this pull request Jan 5, 2025
…6406)

## Description of the changes
- Introduce a generic helper to create a map of spans given a
`ptrace.Traces` and a key function.

## How was this change tested?
- Added unit 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: Mahad Zaryab <mahadzaryab1@gmail.com>
@mahadzaryab1 mahadzaryab1 deleted the span-map branch January 6, 2025 00:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants