File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed
main/java/com/datadoghq/trace/propagation
test/java/com/datadoghq/trace/propagation Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ jobs:
1414
1515 - run :
1616 name : Run Tests
17- command : . /gradlew clean check --parallel --stacktrace
17+ command : GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx1G -Xms512M" . /gradlew clean check --parallel --stacktrace --no-daemon --max-workers=3
1818
1919 - run :
2020 name : Verify Version Scan
21- command : ./gradlew verifyVersionScan --parallel --stacktrace
21+ command : ./gradlew verifyVersionScan --parallel --stacktrace --no-daemon
2222
2323 - save_cache :
2424 paths :
5858 -PbintrayUser=${BINTRAY_USER} \
5959 -PbintrayApiKey=${BINTRAY_API_KEY} \
6060 -PbuildInfo.build.number=${CIRCLE_BUILD_NUM} \
61- artifactoryPublish --max-workers=1 --stacktrace
61+ artifactoryPublish --max-workers=1 --stacktrace --no-daemon
6262 fi
Original file line number Diff line number Diff line change @@ -38,15 +38,16 @@ public DDSpanContext extract(final TextMap carrier) {
3838
3939 for (final Map .Entry <String , String > entry : carrier ) {
4040
41- if (entry .getKey ().equals (TRACE_ID_KEY )) {
41+ final String key = entry .getKey ().toLowerCase ();
42+ if (key .equalsIgnoreCase (TRACE_ID_KEY )) {
4243 traceId = Long .parseLong (entry .getValue ());
43- } else if (entry . getKey (). equals (SPAN_ID_KEY )) {
44+ } else if (key . equalsIgnoreCase (SPAN_ID_KEY )) {
4445 spanId = Long .parseLong (entry .getValue ());
45- } else if (entry . getKey () .startsWith (OT_BAGGAGE_PREFIX )) {
46+ } else if (key .startsWith (OT_BAGGAGE_PREFIX )) {
4647 if (baggage .isEmpty ()) {
4748 baggage = new HashMap <>();
4849 }
49- baggage .put (entry . getKey () .replace (OT_BAGGAGE_PREFIX , "" ), decode (entry .getValue ()));
50+ baggage .put (key .replace (OT_BAGGAGE_PREFIX , "" ), decode (entry .getValue ()));
5051 }
5152 }
5253 DDSpanContext context = null ;
Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ public void shoudReadHttpHeaders() {
5656 final Map <String , String > actual =
5757 new HashMap <String , String >() {
5858 {
59- put (TRACE_ID_KEY , "1" );
60- put (SPAN_ID_KEY , "2" );
61- put (OT_BAGGAGE_PREFIX + "k1" , "v1" );
62- put (OT_BAGGAGE_PREFIX + "k2" , "v2" );
59+ put (TRACE_ID_KEY . toUpperCase () , "1" );
60+ put (SPAN_ID_KEY . toUpperCase () , "2" );
61+ put (OT_BAGGAGE_PREFIX . toUpperCase () + "k1" , "v1" );
62+ put (OT_BAGGAGE_PREFIX . toUpperCase () + "k2" , "v2" );
6363 }
6464 };
6565
You can’t perform that action at this time.
0 commit comments