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

Switch v1 receivers to use v2 write path #6532

Merged
merged 11 commits into from
Jan 15, 2025

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Jan 12, 2025

Which problem is this PR solving?

Description of the changes

  • Hook up OTLP and Zipkin receivers into v2 write path in the SpanProcessor.
  • Add unit tests to validate that ptrace.Traces object is being received by the SpanProcessor.

How was this change tested?

Copy link

codecov bot commented Jan 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.23%. Comparing base (cec5ae1) to head (28a7be2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6532      +/-   ##
==========================================
+ Coverage   96.21%   96.23%   +0.02%     
==========================================
  Files         372      372              
  Lines       21363    21371       +8     
==========================================
+ Hits        20554    20567      +13     
+ Misses        616      612       -4     
+ Partials      193      192       -1     
Flag Coverage Δ
badger_v1 10.65% <ø> (ø)
badger_v2 2.78% <ø> (ø)
cassandra-4.x-v1-manual 16.55% <ø> (ø)
cassandra-4.x-v2-auto 2.71% <ø> (ø)
cassandra-4.x-v2-manual 2.71% <ø> (ø)
cassandra-5.x-v1-manual 16.55% <ø> (ø)
cassandra-5.x-v2-auto 2.71% <ø> (ø)
cassandra-5.x-v2-manual 2.71% <ø> (ø)
elasticsearch-6.x-v1 20.33% <ø> (-0.01%) ⬇️
elasticsearch-7.x-v1 20.41% <ø> (+<0.01%) ⬆️
elasticsearch-8.x-v1 20.57% <ø> (ø)
elasticsearch-8.x-v2 2.77% <ø> (ø)
grpc_v1 12.16% <ø> (-0.01%) ⬇️
grpc_v2 9.04% <ø> (+<0.01%) ⬆️
kafka-3.x-v1 10.33% <ø> (ø)
kafka-3.x-v2 2.78% <ø> (ø)
memory_v2 2.78% <ø> (ø)
opensearch-1.x-v1 20.46% <ø> (+<0.01%) ⬆️
opensearch-2.x-v1 20.46% <ø> (ø)
opensearch-2.x-v2 2.77% <ø> (-0.01%) ⬇️
tailsampling-processor 0.51% <ø> (ø)
unittests 95.11% <100.00%> (+0.02%) ⬆️

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.

@yurishkuro yurishkuro marked this pull request as ready for review January 13, 2025 05:02
@yurishkuro yurishkuro requested a review from a team as a code owner January 13, 2025 05:02
@dosubot dosubot bot added the v2 label Jan 13, 2025
func TestConsumerHelper_Consume_Error(t *testing.T) {
consumerHelper := &consumerHelper{
batchConsumer: newBatchConsumer(zaptest.NewLogger(t),
&mockSpanProcessor{expectedError: errors.New("mock error")},
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can leverage assert.AnError here

Signed-off-by: Yuri Shkuro <[email protected]>
@yurishkuro yurishkuro enabled auto-merge (squash) January 15, 2025 02:34
@yurishkuro yurishkuro merged commit 0b5f8b1 into jaegertracing:main Jan 15, 2025
54 checks passed
@yurishkuro yurishkuro deleted the otlp-receivers-to-v2 branch January 15, 2025 02:51
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.

Optimizing the write path for mixed storage v1/v2 state
2 participants