Package brave.baggage

Class BaggageFields

    • Constructor Detail

      • BaggageFields

        public BaggageFields()
    • Method Detail

      • constant

        public static BaggageField constant​(String name,
                                            @Nullable
                                            String value)
        Creates a local baggage field based on a possibly null constant, such as an ENV variable.

        Ex.

        
         CLOUD_REGION = BaggageFields.constant("region", System.getEnv("CLOUD_REGION"));
         
        Since:
        5.11