Skip to content

[grpc][v2] Register gRPC v2 handler in remote-storage server #7037

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

Merged
merged 5 commits into from
Apr 16, 2025

Conversation

mahadzaryab1
Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 commented Apr 15, 2025

Which problem is this PR solving?

Description of the changes

  • Registers the v2 gRPC handler in the remote-storage server

How was this change tested?

  • CI

Checklist

@mahadzaryab1 mahadzaryab1 added the changelog:exprimental Change to an experimental part of the code label Apr 15, 2025
Signed-off-by: Mahad Zaryab <[email protected]>
Comment on lines 129 to 130
storage.RegisterTraceReaderServer(server, v2Handler)
storage.RegisterDependencyReaderServer(server, v2Handler)
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 sufficient to do this here. The v1 handler defines Register that accepts the health server as well. Is that necessary here?

func (s *GRPCHandler) Register(ss *grpc.Server, hs *health.Server) error {
	storage_v1.RegisterSpanReaderPluginServer(ss, s)
	storage_v1.RegisterSpanWriterPluginServer(ss, s)
	storage_v1.RegisterPluginCapabilitiesServer(ss, s)
	storage_v1.RegisterDependenciesReaderPluginServer(ss, s)
	storage_v1.RegisterStreamingSpanWriterPluginServer(ss, s)

	hs.SetServingStatus("jaeger.storage.v1.SpanReaderPlugin", grpc_health_v1.HealthCheckResponse_SERVING)
	hs.SetServingStatus("jaeger.storage.v1.SpanWriterPlugin", grpc_health_v1.HealthCheckResponse_SERVING)
	hs.SetServingStatus("jaeger.storage.v1.PluginCapabilities", grpc_health_v1.HealthCheckResponse_SERVING)
	hs.SetServingStatus("jaeger.storage.v1.DependenciesReaderPlugin", grpc_health_v1.HealthCheckResponse_SERVING)
	hs.SetServingStatus("jaeger.storage.v1.StreamingSpanWriterPlugin", grpc_health_v1.HealthCheckResponse_SERVING)
	grpc_health_v1.RegisterHealthServer(ss, hs)

	return nil
}

Copy link
Member

Choose a reason for hiding this comment

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

Yes it's useful. Are you missing registering the writer?

Signed-off-by: Mahad Zaryab <[email protected]>
Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.00%. Comparing base (0967b78) to head (3a4693d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7037      +/-   ##
==========================================
- Coverage   96.00%   96.00%   -0.01%     
==========================================
  Files         349      349              
  Lines       20666    20678      +12     
==========================================
+ Hits        19841    19852      +11     
  Misses        622      622              
- Partials      203      204       +1     
Flag Coverage Δ
badger_v1 9.98% <0.00%> (-0.49%) ⬇️
badger_v2 2.07% <0.00%> (-0.11%) ⬇️
cassandra-4.x-v1-manual 15.02% <0.00%> (-0.74%) ⬇️
cassandra-4.x-v2-auto 2.06% <0.00%> (-0.11%) ⬇️
cassandra-4.x-v2-manual 2.06% <0.00%> (-0.11%) ⬇️
cassandra-5.x-v1-manual 15.02% <0.00%> (-0.74%) ⬇️
cassandra-5.x-v2-auto 2.06% <0.00%> (-0.11%) ⬇️
cassandra-5.x-v2-manual 2.06% <0.00%> (-0.11%) ⬇️
elasticsearch-6.x-v1 19.88% <0.00%> (-0.97%) ⬇️
elasticsearch-7.x-v1 19.96% <0.00%> (-0.98%) ⬇️
elasticsearch-8.x-v1 20.13% <0.00%> (-0.99%) ⬇️
elasticsearch-8.x-v2 2.07% <0.00%> (-0.11%) ⬇️
grpc_v1 11.53% <100.00%> (-0.38%) ⬇️
grpc_v2 8.63% <100.00%> (-0.24%) ⬇️
kafka-3.x-v1 10.26% <0.00%> (-0.51%) ⬇️
kafka-3.x-v2 2.07% <0.00%> (-0.11%) ⬇️
memory_v2 2.07% <0.00%> (-0.11%) ⬇️
opensearch-1.x-v1 20.01% <0.00%> (-0.98%) ⬇️
opensearch-2.x-v1 20.01% <0.00%> (-0.98%) ⬇️
opensearch-2.x-v2 2.07% <0.00%> (-0.11%) ⬇️
tailsampling-processor 0.56% <0.00%> (-0.03%) ⬇️
unittests 94.77% <66.66%> (-0.05%) ⬇️

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.

@mahadzaryab1 mahadzaryab1 marked this pull request as ready for review April 15, 2025 23:54
@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner April 15, 2025 23:54
@mahadzaryab1 mahadzaryab1 requested a review from jkowall April 15, 2025 23:54
@yurishkuro yurishkuro added this pull request to the merge queue Apr 16, 2025
Merged via the queue into jaegertracing:main with commit 6882354 Apr 16, 2025
56 checks passed
@mahadzaryab1 mahadzaryab1 deleted the integrate-v2-handler branch April 17, 2025 00:47
amilbcahat pushed a commit to amilbcahat/jaeger that referenced this pull request May 4, 2025
…racing#7037)

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

## Description of the changes
- Registers the v2 gRPC handler in the remote-storage server

## 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]>
amilbcahat pushed a commit to amilbcahat/jaeger that referenced this pull request May 4, 2025
…racing#7037)

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

## Description of the changes
- Registers the v2 gRPC handler in the remote-storage server

## 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]>
Signed-off-by: amol-verma-allen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/storage changelog:exprimental Change to an experimental part of the code v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants