class OpenCensus::Trace::Annotation
A text annotation with a set of attributes.
Attributes
attributes[R]
A set of attributes on the annotation.
@return [Hash<String, (TruncatableString
, Integer, Float, Boolean)>]
description[R]
A user-supplied message describing the event.
@return [TruncatableString]
dropped_attributes_count[R]
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.
@return [Integer]
Public Class Methods
new(description, attributes: {})
click to toggle source
Create an Annotation
object.
@private
Calls superclass method
# File lib/opencensus/trace/annotation.rb, line 52 def initialize description, attributes: {}, dropped_attributes_count: 0, time: nil super time: time @description = description @attributes = attributes @dropped_attributes_count = dropped_attributes_count end