Skip to content

Commit

Permalink
Add constants for message operations which are defined by spec. (#1783)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal authored Oct 12, 2020
1 parent 2d7f7f0 commit 487e57e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ public final class SemanticAttributes {
*/
public static final AttributeKey<String> 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.
*
Expand Down

0 comments on commit 487e57e

Please sign in to comment.