Class: OpenCensus::Trace::Annotation

Inherits:
TimeEvent
  • Object
show all
Defined in:
lib/opencensus/trace/annotation.rb

Overview

A text annotation with a set of attributes.

Instance Attribute Summary collapse

Attributes inherited from TimeEvent

#time

Instance Attribute Details

#attributesHash<String, (TruncatableString, Integer, Float, Boolean)> (readonly)

A set of attributes on the annotation.

Returns:



36
37
38
# File 'lib/opencensus/trace/annotation.rb', line 36

def attributes
  @attributes
end

#descriptionTruncatableString (readonly)

A user-supplied message describing the event.

Returns:



29
30
31
# File 'lib/opencensus/trace/annotation.rb', line 29

def description
  @description
end

#dropped_attributes_countInteger (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.

Returns:

  • (Integer)


45
46
47
# File 'lib/opencensus/trace/annotation.rb', line 45

def dropped_attributes_count
  @dropped_attributes_count
end