Class StructuredMetadataMarker

    • Constructor Detail

      • StructuredMetadataMarker

        public StructuredMetadataMarker​(java.util.function.Supplier<java.util.Map<java.lang.String,​java.lang.String>> metadata)
    • Method Detail

      • getName

        public java.lang.String getName()
      • of

        public static StructuredMetadataMarker of​(java.util.function.Supplier<java.util.Map<java.lang.String,​java.lang.String>> metadata)
        Creates a Marker containing a set of key-value pairs, passed to Loki as structured metadata.
        Parameters:
        metadata - Key-value pairs will be created at time when they are first accessed (i.e. deferred creation).
      • of

        public static StructuredMetadataMarker of​(java.lang.String key,
                                                  java.util.function.Supplier<java.lang.String> value)
        Creates a Marker containing a key-value pair, passed to Loki as structured metadata.
        Parameters:
        key - Key of the label (assumed to be static).
        value - Value od the label will be created at time when it is first accessed (i.e. deferred creation).