Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[jptrace] Add SpanIter helper function #6407

Merged
merged 4 commits into from
Dec 30, 2024

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Dec 25, 2024

This will be especially useful once we upgrade to Go 1.23, where we'd be able to do

var tr ptrace.Traces
for _, span := range jptrace.SpanIter(tr) {
}

Signed-off-by: Yuri Shkuro <[email protected]>
Copy link

codecov bot commented Dec 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.27%. Comparing base (7117fa8) to head (4c6d8a5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6407   +/-   ##
=======================================
  Coverage   96.27%   96.27%           
=======================================
  Files         368      369    +1     
  Lines       21032    21048   +16     
=======================================
+ Hits        20248    20264   +16     
  Misses        600      600           
  Partials      184      184           
Flag Coverage Δ
badger_v1 10.53% <0.00%> (-0.02%) ⬇️
badger_v2 2.59% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 16.41% <0.00%> (-0.03%) ⬇️
cassandra-4.x-v2-auto 2.52% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 2.52% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 16.41% <0.00%> (-0.03%) ⬇️
cassandra-5.x-v2-auto 2.52% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 2.52% <0.00%> (-0.04%) ⬇️
elasticsearch-6.x-v1 20.13% <0.00%> (-0.04%) ⬇️
elasticsearch-7.x-v1 20.22% <0.00%> (-0.03%) ⬇️
elasticsearch-8.x-v1 20.37% <0.00%> (-0.05%) ⬇️
elasticsearch-8.x-v2 2.58% <0.00%> (-0.01%) ⬇️
grpc_v1 12.19% <0.00%> (-0.02%) ⬇️
grpc_v2 8.97% <0.00%> (-0.02%) ⬇️
kafka-3.x-v1 10.37% <0.00%> (-0.02%) ⬇️
kafka-3.x-v2 2.59% <0.00%> (-0.01%) ⬇️
memory_v2 2.59% <0.00%> (+<0.01%) ⬆️
opensearch-1.x-v1 20.26% <0.00%> (-0.03%) ⬇️
opensearch-2.x-v1 20.26% <0.00%> (-0.04%) ⬇️
opensearch-2.x-v2 2.58% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.39% <0.00%> (-0.01%) ⬇️
unittests 95.13% <100.00%> (+<0.01%) ⬆️

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.

@mahadzaryab1 mahadzaryab1 changed the title Add SpanIter helper [jptrace] Add SpanIter helper function Dec 30, 2024
@mahadzaryab1 mahadzaryab1 marked this pull request as ready for review December 30, 2024 02:37
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner December 30, 2024 02:38
@yurishkuro yurishkuro merged commit fc518ce into jaegertracing:main Dec 30, 2024
55 of 56 checks passed
@yurishkuro yurishkuro deleted the spaniter branch December 30, 2024 02:51
Manik2708 pushed a commit to Manik2708/jaeger that referenced this pull request Jan 5, 2025
This will be especially useful once we upgrade to Go 1.23, where we'd be
able to do
```
var tr ptrace.Traces
for _, span := range jptrace.SpanIter(tr) {
}
```

---------

Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Co-authored-by: Mahad Zaryab <[email protected]>
Co-authored-by: Mahad Zaryab <[email protected]>
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.

2 participants