Skip to content

Commit

Permalink
feat: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofurtado authored Dec 5, 2024
1 parent 5a7ae60 commit 3ee1b46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sdk/test/opentelemetry/sdk_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,13 @@
_(received_message).must_match(/unexpected configuration error due to unknown keyword: .*invalid_option/)
end
end

describe '#configure (sdk disabled)' do
it 'ignore configuration when sdk is disabled by env' do
config = OpenTelemetry::TestHelpers.with_env('OTEL_SDK_DISABLED' => 'true') do
OpenTelemetry::SDK.configure
end
_(config).must_equal nil
end
end
end

0 comments on commit 3ee1b46

Please sign in to comment.