We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23fb133 + 871297f commit 1e58013Copy full SHA for 1e58013
lib/datadog/tracing/component.rb
@@ -6,6 +6,7 @@
6
require_relative 'sampling/span/rule_parser'
7
require_relative 'sampling/span/sampler'
8
require_relative 'diagnostics/environment_logger'
9
+require_relative 'contrib/component'
10
11
module Datadog
12
module Tracing
spec/loading_spec.rb
@@ -38,3 +38,25 @@
38
end
39
40
41
+
42
+RSpec.describe 'load core only and configure library' do
43
+ let(:code) do
44
+ <<-E
45
+ if defined?(Datadog)
46
+ unless Datadog.constants == [:VERSION]
47
+ exit 1
48
+ end
49
50
51
+ require 'datadog/core'
52
53
+ Datadog.configure do
54
55
+ E
56
57
58
+ it 'configures successfully' do
59
+ rv = system("ruby -e #{Shellwords.shellescape(code)}")
60
+ expect(rv).to be true
61
62
+end
0 commit comments