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

[refactor] Return start and end timestamps from FindTraceIDs in v2 api #6770

Merged
merged 10 commits into from
Feb 24, 2025

Conversation

mahadzaryab1
Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 commented Feb 23, 2025

Which problem is this PR solving?

Description of the changes

  • This PR changes the API of FindTraceIDs from returning []pcommon.TraceID to returning a FindTraceIDsChunk that contains the trace IDs along with Start and End fields that are meant to serve as hints for some storage backends (e.g Tempo) that can optimize the queries when given a time range.

How was this change tested?

  • CI

Checklist

Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.01%. Comparing base (f956540) to head (5e545f1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6770   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files         363      363           
  Lines       20675    20677    +2     
=======================================
+ Hits        19852    19854    +2     
  Misses        628      628           
  Partials      195      195           
Flag Coverage Δ
badger_v1 9.76% <0.00%> (-0.01%) ⬇️
badger_v2 1.82% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.81% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-auto 1.81% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.81% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.81% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-auto 1.81% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.81% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 19.15% <0.00%> (-0.01%) ⬇️
elasticsearch-7.x-v1 19.23% <0.00%> (-0.01%) ⬇️
elasticsearch-8.x-v1 19.40% <0.00%> (-0.01%) ⬇️
elasticsearch-8.x-v2 1.82% <0.00%> (-0.01%) ⬇️
grpc_v1 10.81% <0.00%> (-0.01%) ⬇️
grpc_v2 7.80% <0.00%> (-0.01%) ⬇️
kafka-3.x-v1 10.13% <0.00%> (-0.01%) ⬇️
kafka-3.x-v2 1.82% <0.00%> (-0.01%) ⬇️
memory_v2 1.82% <0.00%> (-0.01%) ⬇️
opensearch-1.x-v1 19.28% <0.00%> (-0.01%) ⬇️
opensearch-2.x-v1 19.28% <0.00%> (-0.01%) ⬇️
opensearch-2.x-v2 1.82% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.48% <0.00%> (-0.01%) ⬇️
unittests 94.90% <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.

Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
@mahadzaryab1 mahadzaryab1 changed the title [WIP][refactor] Return start and end timestamps from FindTraceIDs in v2 api [refactor] Return start and end timestamps from FindTraceIDs in v2 api Feb 23, 2025
@mahadzaryab1 mahadzaryab1 marked this pull request as ready for review February 23, 2025 17:04
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner February 23, 2025 17:04
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
@mahadzaryab1 mahadzaryab1 added this pull request to the merge queue Feb 24, 2025
Merged via the queue into jaegertracing:main with commit b207889 Feb 24, 2025
56 checks passed
renovate-bot pushed a commit to renovate-bot/jaegertracing-_-jaeger that referenced this pull request Feb 24, 2025
…mote storage api (jaegertracing#6772)

## Which problem is this PR solving?
- Towards jaegertracing#6629

## Description of the changes
- This is a copy of jaegertracing#6770
but for the v2 remote storage API

## How was this change tested?
- CI

## 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 <[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