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

[remote-storage][v2] Add proto definition for GetTraces rpc #6730

Merged
merged 10 commits into from
Feb 15, 2025

Conversation

mahadzaryab1
Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 commented Feb 14, 2025

Which problem is this PR solving?

Description of the changes

  • This PR creates a protobuf definition in traces_storage.proto that will contain the API for all methods pertaining to the traces storage.

How was this change tested?

  • CI

Checklist

import "google/protobuf/timestamp.proto";
import "opentelemetry/proto/trace/v1/trace.proto";

option go_package = "storage_v2";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@yurishkuro do we want the package name to be this? or should it just be storage?

Copy link
Member

@yurishkuro yurishkuro Feb 14, 2025

Choose a reason for hiding this comment

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

package jaeger.storage.v2; is the important thing. Go package doesn't matter much, but you would want it to be something that will result in a sensible location of the generated file.

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.02%. Comparing base (ce0f543) to head (19abc06).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6730      +/-   ##
==========================================
- Coverage   96.06%   96.02%   -0.04%     
==========================================
  Files         364      364              
  Lines       20696    20696              
==========================================
- Hits        19881    19873       -8     
- Misses        622      628       +6     
- Partials      193      195       +2     
Flag Coverage Δ
badger_v1 9.76% <ø> (ø)
badger_v2 1.82% <ø> (ø)
cassandra-4.x-v1-manual 14.81% <ø> (ø)
cassandra-4.x-v2-auto 1.81% <ø> (ø)
cassandra-4.x-v2-manual 1.81% <ø> (ø)
cassandra-5.x-v1-manual 14.81% <ø> (ø)
cassandra-5.x-v2-auto 1.81% <ø> (ø)
cassandra-5.x-v2-manual 1.81% <ø> (ø)
elasticsearch-6.x-v1 19.20% <ø> (+0.05%) ⬆️
elasticsearch-7.x-v1 19.33% <ø> (+0.10%) ⬆️
elasticsearch-8.x-v1 19.40% <ø> (ø)
elasticsearch-8.x-v2 1.82% <ø> (ø)
grpc_v1 10.81% <ø> (ø)
grpc_v2 7.80% <ø> (ø)
kafka-3.x-v1 10.13% <ø> (ø)
kafka-3.x-v2 1.82% <ø> (ø)
memory_v2 1.82% <ø> (ø)
opensearch-1.x-v1 19.38% <ø> (+0.10%) ⬆️
opensearch-2.x-v1 19.38% <ø> (+0.10%) ⬆️
opensearch-2.x-v2 1.82% <ø> (-0.12%) ⬇️
tailsampling-processor 0.48% <ø> (ø)
unittests 94.91% <ø> (-0.04%) ⬇️

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 marked this pull request as ready for review February 14, 2025 21:55
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner February 14, 2025 21:55
@@ -0,0 +1,47 @@
syntax = "proto3";
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to have a folder for this file

- internal/storage/v2/grpc/proto/traces_storage.proto
+ internal/storage/v2/grpc/trace_storage.proto

also, we use singular tracestorage in the package name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@yurishkuro is it fine for these files to sit with the storage implementation?

Copy link
Member

Choose a reason for hiding this comment

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

ok for now. We may want to move the proto file into jaeger-idl in the future.

@yurishkuro
Copy link
Member

some minor nits

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.

lgtm

@yurishkuro yurishkuro enabled auto-merge February 15, 2025 00:10
@yurishkuro yurishkuro added this pull request to the merge queue Feb 15, 2025
Merged via the queue into jaegertracing:main with commit 23d2254 Feb 15, 2025
55 checks passed
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