Class MetricsTag


  • public class MetricsTag
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  MetricsTag.TagValue  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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.
    • Constructor Detail

      • MetricsTag

        public MetricsTag()
    • 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)