Class Labels.Immutable

  • All Implemented Interfaces:
    Labels
    Enclosing interface:
    Labels

    public static class Labels.Immutable
    extends Labels.AbstractBase
    An immutable implementation of the Labels interface

    To publish a copy of Labels.Mutable in a thread-safe manner, all properties need to be final. That's why we can't share the exact same class.

    • Constructor Detail

      • Immutable

        public Immutable​(Labels labels)
    • Method Detail

      • getTransactionName

        @Nullable
        public java.lang.String getTransactionName()
      • getTransactionType

        @Nullable
        public java.lang.String getTransactionType()
      • getSpanType

        @Nullable
        public java.lang.String getSpanType()
      • getSpanSubType

        @Nullable
        public java.lang.String getSpanSubType()