Skip to content

Commit

Permalink
address nit
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Oct 24, 2024
1 parent 8a6e086 commit 919bb0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/datadog/tracing/tracer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@
end

context 'contains version and span.service is not equal to the default tracer service' do
let(:tracer_options) { { default_service: 'global-service', tags: { 'version' => '1.1.0' } } }
let(:tracer_options) { { default_service: 'global-service', tags: { version: '1.1.0' } } }
let(:service) { 'my-service' }
it 'does not set version on the span' do
expect(tracer.default_service).to eq('global-service')
expect(span.service).not_to eq('my-service')

expect(tracer.tags).to include('version' => '1.1.0')
expect(span.tags).not_to include('version')
expect(tracer.tags).to include(version: '1.1.0')
expect(span.tags).not_to include(:version)
end
end

Expand Down

0 comments on commit 919bb0e

Please sign in to comment.