Module brave

Class MapPropagationFields<K,​V>

  • Type Parameters:
    K - Must be immutable to ensure copy-on-write is effective.
    V - Must be immutable to ensure copy-on-write is effective.

    public class MapPropagationFields<K,​V>
    extends PropagationFields<K,​V>
    Copy-on-write keeps propagation changes in a child context from affecting its parent.

    Type parameters must be immutable to ensure copy-on-write branch safety. For example, if they weren't, modifications by a child span could effect its parent and siblings.

    • Constructor Detail

      • MapPropagationFields

        protected MapPropagationFields()
      • MapPropagationFields

        protected MapPropagationFields​(java.util.Map<K,​V> parent)