Skip to content

Commit 09aa570

Browse files
committed
Re-add tracer_tests for name and version
1 parent ec04cac commit 09aa570

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

sdk/test/opentelemetry/sdk/trace/tracer_test.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
->(trace_id:, span_id:, parent_context:, links:, name:, kind:, attributes:) { Result.new(decision: Decision::RECORD) } # rubocop:disable Lint/UnusedBlockArgument
1919
end
2020

21+
describe '#name' do
22+
it 'reflects the name passed in' do
23+
_(Tracer.new('component', 'semver:1.0').name).must_equal('component')
24+
end
25+
end
26+
27+
describe '#version' do
28+
it 'reflects the version passed in' do
29+
_(Tracer.new('component', 'semver:1.0').version).must_equal('semver:1.0')
30+
end
31+
end
32+
2133
describe '#start_root_span' do
2234
it 'provides a default name' do
2335
_(tracer.start_root_span(nil).name).wont_be_nil

0 commit comments

Comments
 (0)