Class: OpenCensus::Trace::Annotation
- Defined in:
- lib/opencensus/trace/annotation.rb
Overview
A text annotation with a set of attributes.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String, (TruncatableString, Integer, Float, Boolean)>
readonly
A set of attributes on the annotation.
-
#description ⇒ TruncatableString
readonly
A user-supplied message describing the event.
-
#dropped_attributes_count ⇒ Integer
readonly
The number of attributes that were discarded.
Attributes inherited from TimeEvent
Instance Attribute Details
#attributes ⇒ Hash<String, (TruncatableString, Integer, Float, Boolean)> (readonly)
A set of attributes on the annotation.
36 37 38 |
# File 'lib/opencensus/trace/annotation.rb', line 36 def attributes @attributes end |
#description ⇒ TruncatableString (readonly)
A user-supplied message describing the event.
29 30 31 |
# File 'lib/opencensus/trace/annotation.rb', line 29 def description @description end |
#dropped_attributes_count ⇒ Integer (readonly)
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
45 46 47 |
# File 'lib/opencensus/trace/annotation.rb', line 45 def dropped_attributes_count @dropped_attributes_count end |