@@ -46,17 +46,17 @@ static BaggageSpanProcessor createBaggageSpanProcessor(ConfigProperties config)
4646 return createBaggageSpanProcessor (spanKeys (config ));
4747 }
4848
49- static List <String > spanKeys (ConfigProperties config ) {
50- return config .getList (SPAN_PREFIX + "copy-from-baggage.include" );
51- }
52-
5349 static BaggageSpanProcessor createBaggageSpanProcessor (List <String > keys ) {
5450 if (matchAll (keys )) {
5551 return BaggageSpanProcessor .allowAllBaggageKeys ();
5652 }
5753 return new BaggageSpanProcessor (keys ::contains );
5854 }
5955
56+ static List <String > spanKeys (ConfigProperties config ) {
57+ return config .getList (SPAN_PREFIX + "copy-from-baggage.include" );
58+ }
59+
6060 private static void addLogRecordProcessor (
6161 SdkLoggerProviderBuilder sdkLoggerProviderBuilder , ConfigProperties config ) {
6262 if (logKeys (config ).isEmpty ()) {
@@ -70,17 +70,17 @@ static BaggageLogRecordProcessor createBaggageLogRecordProcessor(ConfigPropertie
7070 return createBaggageLogRecordProcessor (logKeys (config ));
7171 }
7272
73- static List <String > logKeys (ConfigProperties config ) {
74- return config .getList (LOG_PREFIX + "copy-from-baggage.include" );
75- }
76-
7773 static BaggageLogRecordProcessor createBaggageLogRecordProcessor (List <String > keys ) {
7874 if (matchAll (keys )) {
7975 return BaggageLogRecordProcessor .allowAllBaggageKeys ();
8076 }
8177 return new BaggageLogRecordProcessor (keys ::contains );
8278 }
8379
80+ static List <String > logKeys (ConfigProperties config ) {
81+ return config .getList (LOG_PREFIX + "copy-from-baggage.include" );
82+ }
83+
8484 private static boolean matchAll (List <String > keys ) {
8585 return keys .size () == 1 && keys .get (0 ).equals ("*" );
8686 }
0 commit comments