@@ -46,17 +46,17 @@ static BaggageSpanProcessor createBaggageSpanProcessor(ConfigProperties config)
46
46
return createBaggageSpanProcessor (spanKeys (config ));
47
47
}
48
48
49
- static List <String > spanKeys (ConfigProperties config ) {
50
- return config .getList (SPAN_PREFIX + "copy-from-baggage.include" );
51
- }
52
-
53
49
static BaggageSpanProcessor createBaggageSpanProcessor (List <String > keys ) {
54
50
if (matchAll (keys )) {
55
51
return BaggageSpanProcessor .allowAllBaggageKeys ();
56
52
}
57
53
return new BaggageSpanProcessor (keys ::contains );
58
54
}
59
55
56
+ static List <String > spanKeys (ConfigProperties config ) {
57
+ return config .getList (SPAN_PREFIX + "copy-from-baggage.include" );
58
+ }
59
+
60
60
private static void addLogRecordProcessor (
61
61
SdkLoggerProviderBuilder sdkLoggerProviderBuilder , ConfigProperties config ) {
62
62
if (logKeys (config ).isEmpty ()) {
@@ -70,17 +70,17 @@ static BaggageLogRecordProcessor createBaggageLogRecordProcessor(ConfigPropertie
70
70
return createBaggageLogRecordProcessor (logKeys (config ));
71
71
}
72
72
73
- static List <String > logKeys (ConfigProperties config ) {
74
- return config .getList (LOG_PREFIX + "copy-from-baggage.include" );
75
- }
76
-
77
73
static BaggageLogRecordProcessor createBaggageLogRecordProcessor (List <String > keys ) {
78
74
if (matchAll (keys )) {
79
75
return BaggageLogRecordProcessor .allowAllBaggageKeys ();
80
76
}
81
77
return new BaggageLogRecordProcessor (keys ::contains );
82
78
}
83
79
80
+ static List <String > logKeys (ConfigProperties config ) {
81
+ return config .getList (LOG_PREFIX + "copy-from-baggage.include" );
82
+ }
83
+
84
84
private static boolean matchAll (List <String > keys ) {
85
85
return keys .size () == 1 && keys .get (0 ).equals ("*" );
86
86
}
0 commit comments