From 487e57ea1186b869dd1cadbc316f53498b7867a7 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Tue, 13 Oct 2020 01:45:13 +0900 Subject: [PATCH] Add constants for message operations which are defined by spec. (#1783) --- .../trace/attributes/SemanticAttributes.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java b/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java index 27d485ef3bc..af5dc217493 100644 --- a/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java +++ b/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java @@ -229,6 +229,15 @@ public final class SemanticAttributes { */ public static final AttributeKey MESSAGING_OPERATION = stringKey("messaging.operation"); + /** The value for {@link #MESSAGING_OPERATION} for a send operation. */ + public static final String MESSAGING_OPERATION_SEND = "send"; + + /** The value for {@link #MESSAGING_OPERATION} for a receive operation. */ + public static final String MESSAGING_OPERATION_RECEIVE = "receive"; + + /** The value for {@link #MESSAGING_OPERATION} for a process operation. */ + public static final String MESSAGING_OPERATION_PROCESS = "process"; + /** * The name of an event describing an exception. *