lib/opencensus/trace/message_event.rb in opencensus-0.3.1 vs lib/opencensus/trace/message_event.rb in opencensus-0.4.0
- old
+ new
@@ -10,24 +10,34 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
require "opencensus/trace/time_event"
module OpenCensus
module Trace
##
# An event describing a message sent/received between Spans.
#
class MessageEvent < TimeEvent
- # Unknown event type.
+ ##
+ # An event type, indicating the type is unknown.
+ # @return [Symbol]
+ #
TYPE_UNSPECIFIED = :TYPE_UNSPECIFIED
- # Indicates a sent message.
+ ##
+ # An event type, indicating a sent message.
+ # @return [Symbol]
+ #
SENT = :SENT
- # Indicates a received message.
+ ##
+ # An event type, indicating a received message.
+ # @return [Symbol]
+ #
RECEIVED = :RECEIVED
##
# The type of MessageEvent. Indicates whether the message was sent or
# received. You should use the type constants provided by this class.