Package io.temporal.serviceclient
Class MetricsTag
- java.lang.Object
-
- io.temporal.serviceclient.MetricsTag
-
public class MetricsTag extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MetricsTag.TagValue
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTIVITY_TYPE
static java.lang.String
DEFAULT_VALUE
static java.lang.String
EXCEPTION
static io.grpc.CallOptions.Key<java.lang.Boolean>
HISTORY_LONG_POLL_CALL_OPTIONS_KEY
Indicates to interceptors that GetWorkflowExecutionHistory is a long poll.static io.grpc.CallOptions.Key<com.uber.m3.tally.Scope>
METRICS_TAGS_CALL_OPTIONS_KEY
Used to pass metrics scope to the interceptorstatic java.lang.String
NAMESPACE
static java.lang.String
OPERATION_NAME
static java.lang.String
QUERY_TYPE
static java.lang.String
SIGNAL_NAME
static java.lang.String
STATUS_CODE
static java.lang.String
TASK_QUEUE
static java.lang.String
UPDATE_NAME
static java.lang.String
WORKER_TYPE
static java.lang.String
WORKFLOW_TYPE
-
Constructor Summary
Constructors Constructor Description MetricsTag()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>
defaultTags(java.lang.String namespace)
Returns a set of default metric tags for a given namespace.static com.uber.m3.tally.Scope
tagged(com.uber.m3.tally.Scope scope, MetricsTag.TagValue tagValue)
static com.uber.m3.tally.Scope
tagged(com.uber.m3.tally.Scope scope, java.lang.String tagName, java.lang.String tagValue)
-
-
-
Field Detail
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
TASK_QUEUE
public static final java.lang.String TASK_QUEUE
- See Also:
- Constant Field Values
-
WORKER_TYPE
public static final java.lang.String WORKER_TYPE
- See Also:
- Constant Field Values
-
ACTIVITY_TYPE
public static final java.lang.String ACTIVITY_TYPE
- See Also:
- Constant Field Values
-
WORKFLOW_TYPE
public static final java.lang.String WORKFLOW_TYPE
- See Also:
- Constant Field Values
-
SIGNAL_NAME
public static final java.lang.String SIGNAL_NAME
- See Also:
- Constant Field Values
-
QUERY_TYPE
public static final java.lang.String QUERY_TYPE
- See Also:
- Constant Field Values
-
UPDATE_NAME
public static final java.lang.String UPDATE_NAME
- See Also:
- Constant Field Values
-
STATUS_CODE
public static final java.lang.String STATUS_CODE
- See Also:
- Constant Field Values
-
EXCEPTION
public static final java.lang.String EXCEPTION
- See Also:
- Constant Field Values
-
OPERATION_NAME
public static final java.lang.String OPERATION_NAME
- See Also:
- Constant Field Values
-
METRICS_TAGS_CALL_OPTIONS_KEY
public static final io.grpc.CallOptions.Key<com.uber.m3.tally.Scope> METRICS_TAGS_CALL_OPTIONS_KEY
Used to pass metrics scope to the interceptor
-
HISTORY_LONG_POLL_CALL_OPTIONS_KEY
public static final io.grpc.CallOptions.Key<java.lang.Boolean> HISTORY_LONG_POLL_CALL_OPTIONS_KEY
Indicates to interceptors that GetWorkflowExecutionHistory is a long poll.
-
DEFAULT_VALUE
public static final java.lang.String DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultTags
public static java.util.Map<java.lang.String,java.lang.String> defaultTags(java.lang.String namespace)
Returns a set of default metric tags for a given namespace.
-
tagged
public static com.uber.m3.tally.Scope tagged(com.uber.m3.tally.Scope scope, java.lang.String tagName, java.lang.String tagValue)
-
tagged
public static com.uber.m3.tally.Scope tagged(com.uber.m3.tally.Scope scope, MetricsTag.TagValue tagValue)
-
-