Class: Datadog::CI::NullSpan
Overview
Represents an ignored span when CI visibility is disabled. Replaces all methods with no-op.
Instance Attribute Summary
Attributes inherited from Span
Instance Method Summary collapse
- #failed!(exception: nil) ⇒ Object
- #finish ⇒ Object
- #get_tag(key) ⇒ Object
- #id ⇒ Object
-
#initialize ⇒ NullSpan
constructor
A new instance of NullSpan.
- #name ⇒ Object
- #passed! ⇒ Object
- #service ⇒ Object
- #set_default_tags ⇒ Object
- #set_environment_runtime_tags ⇒ Object
- #set_metric(key, value) ⇒ Object
- #set_tag(key, value) ⇒ Object
- #set_tags(tags) ⇒ Object
- #skipped!(exception: nil, reason: nil) ⇒ Object
- #span_type ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#failed!(exception: nil) ⇒ Object
31 32 |
# File 'lib/datadog/ci/null_span.rb', line 31 def failed!(exception: nil) end |
#finish ⇒ Object
46 47 |
# File 'lib/datadog/ci/null_span.rb', line 46 def finish end |
#get_tag(key) ⇒ Object
37 38 |
# File 'lib/datadog/ci/null_span.rb', line 37 def get_tag(key) end |
#id ⇒ Object
16 17 |
# File 'lib/datadog/ci/null_span.rb', line 16 def id end |
#name ⇒ Object
19 20 |
# File 'lib/datadog/ci/null_span.rb', line 19 def name end |
#passed! ⇒ Object
28 29 |
# File 'lib/datadog/ci/null_span.rb', line 28 def passed! end |
#service ⇒ Object
22 23 |
# File 'lib/datadog/ci/null_span.rb', line 22 def service end |
#set_default_tags ⇒ Object
55 56 |
# File 'lib/datadog/ci/null_span.rb', line 55 def end |
#set_environment_runtime_tags ⇒ Object
52 53 |
# File 'lib/datadog/ci/null_span.rb', line 52 def end |
#set_metric(key, value) ⇒ Object
43 44 |
# File 'lib/datadog/ci/null_span.rb', line 43 def set_metric(key, value) end |
#set_tag(key, value) ⇒ Object
40 41 |
# File 'lib/datadog/ci/null_span.rb', line 40 def set_tag(key, value) end |
#set_tags(tags) ⇒ Object
49 50 |
# File 'lib/datadog/ci/null_span.rb', line 49 def () end |
#skipped!(exception: nil, reason: nil) ⇒ Object
34 35 |
# File 'lib/datadog/ci/null_span.rb', line 34 def skipped!(exception: nil, reason: nil) end |
#span_type ⇒ Object
25 26 |
# File 'lib/datadog/ci/null_span.rb', line 25 def span_type end |
#to_s ⇒ Object
58 59 60 |
# File 'lib/datadog/ci/null_span.rb', line 58 def to_s self.class.to_s end |