Skip to content

Commit

Permalink
consistent start_with; no "starts" to confuse readers
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Goldsmith <[email protected]>
  • Loading branch information
robbkidd and MikeGoldsmith committed Jun 5, 2024
1 parent cb64a06 commit 0043945
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
end
end

describe 'with a starts_with key predicate' do
let(:starts_with_processor) do
describe 'with a start_with? key predicate' do
let(:start_with_processor) do
OpenTelemetry::Processor::Baggage::BaggageSpanProcessor.new(
->(baggage_key) { baggage_key.start_with?('a') }
)
Expand All @@ -60,7 +60,7 @@
it 'only adds attributes that pass the keyfilter' do
span.expect(:add_attributes, span, [{ 'a_key' => 'a_value' }])

starts_with_processor.on_start(span, context_with_baggage)
start_with_processor.on_start(span, context_with_baggage)

span.verify
end
Expand Down

0 comments on commit 0043945

Please sign in to comment.