Skip to content

Commit 71db6d6

Browse files
committed
compat for datadog-ci-rb
1 parent 38a46f9 commit 71db6d6

File tree

1 file changed

+26
-0
lines changed
  • lib/datadog/core/telemetry/http/adapters

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# frozen_string_literal: true
2+
3+
# datadog-ci-rb versions 1.15.0 and lower require this file and guard
4+
# the require with a rescue of StandardError. Unfortunately LoadError,
5+
# which would be raised if the file is missing, is not a subclass of
6+
# StandardError and thus would not be caught by the rescue.
7+
# We provide this file with a dummy class in it to avoid exceptions
8+
# in datadog-ci-rb until version 2.0 is released.
9+
#
10+
# Note that datadog-ci-rb patches telemetry transport to be "real" even when
11+
# webmock is used; this patching won't work with datadog-ci-rb versions
12+
# 1.15.0 and older and dd-trace-rb 2.16.0 and newer. There will be no
13+
# errors/exceptions reported but telemetry events will not be sent.
14+
15+
module Datadog
16+
module Core
17+
module Telemetry
18+
module Http
19+
module Adapters
20+
class Net
21+
end
22+
end
23+
end
24+
end
25+
end
26+
end

0 commit comments

Comments
 (0)