From 0043945fb4a9547475b1d56b5863f04fb512e951 Mon Sep 17 00:00:00 2001 From: Robb Kidd Date: Wed, 5 Jun 2024 11:33:53 -0400 Subject: [PATCH] consistent start_with; no "starts" to confuse readers Co-authored-by: Mike Goldsmith --- .../processor/baggage/baggage_span_processor_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/baggage/test/opentelemetry/processor/baggage/baggage_span_processor_test.rb b/processor/baggage/test/opentelemetry/processor/baggage/baggage_span_processor_test.rb index 03a94ccbf..78dfd8674 100644 --- a/processor/baggage/test/opentelemetry/processor/baggage/baggage_span_processor_test.rb +++ b/processor/baggage/test/opentelemetry/processor/baggage/baggage_span_processor_test.rb @@ -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') } ) @@ -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