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

Use Protobuf-based JSON output for sampling strategies #4173

Merged
merged 5 commits into from
Jan 24, 2023

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Jan 24, 2023

Which problem is this PR solving?

Related to open-telemetry/opentelemetry-specification#3126

Short description of the changes

  • changes the main /sampling endpoint to use Protobuf-based JSON marshaling instead of Thrift-based
  • adds unit tests to validate that the new endpoint is backwards compatible with Thrift-based serialization
  • opens the path to remove Thrift-based sampling data model throughout the codebase

Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro requested a review from a team as a code owner January 24, 2023 02:18
Signed-off-by: Yuri Shkuro <github@ysh.us>
@codecov
Copy link

codecov bot commented Jan 24, 2023

Codecov Report

Base: 97.10% // Head: 97.12% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (0c3b3e4) compared to base (17eefc5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4173      +/-   ##
==========================================
+ Coverage   97.10%   97.12%   +0.01%     
==========================================
  Files         296      297       +1     
  Lines       17501    17537      +36     
==========================================
+ Hits        16995    17032      +37     
+ Misses        407      406       -1     
  Partials       99       99              
Flag Coverage Δ
unittests 97.12% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/collector/app/handler/http_thrift_handler.go 100.00% <ø> (ø)
model/converter/json/sampling.go 100.00% <100.00%> (ø)
pkg/clientcfg/clientcfghttp/handler.go 100.00% <100.00%> (ø)
plugin/storage/integration/integration.go 76.33% <0.00%> (+0.38%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro merged commit 03e24ab into jaegertracing:main Jan 24, 2023
@yurishkuro yurishkuro deleted the proto-json-sampling branch January 24, 2023 17:59
shubbham1215 pushed a commit to shubbham1215/jaeger that referenced this pull request Feb 22, 2023
…#4173)

## Which problem is this PR solving?
Related to
open-telemetry/opentelemetry-specification#3126

## Short description of the changes
- changes the main `/sampling` endpoint to use Protobuf-based JSON
marshaling instead of Thrift-based
- adds unit tests to validate that the new endpoint is backwards
compatible with Thrift-based serialization
- opens the path to remove Thrift-based sampling data model throughout
the codebase

Signed-off-by: Yuri Shkuro <github@ysh.us>
shubbham1215 pushed a commit to shubbham1215/jaeger that referenced this pull request Mar 5, 2023
…#4173)

## Which problem is this PR solving?
Related to
open-telemetry/opentelemetry-specification#3126

## Short description of the changes
- changes the main `/sampling` endpoint to use Protobuf-based JSON
marshaling instead of Thrift-based
- adds unit tests to validate that the new endpoint is backwards
compatible with Thrift-based serialization
- opens the path to remove Thrift-based sampling data model throughout
the codebase

Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: shubbham1215 <sawaikershubham@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant