File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/datadog/trace/civisibility/writer/ddintake Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ dependencies {
6161 api project(' :dd-trace-api' )
6262 api project(' :communication' )
6363 api project(' :internal-api' )
64+ implementation project(' :components:json:json-io' )
6465 implementation project(' :components:json:json-path' )
6566 implementation project(' :utils:container-utils' )
6667 implementation project(' :utils:socket-utils' )
Original file line number Diff line number Diff line change 22
33import static datadog .communication .http .OkHttpUtils .gzippedMsgpackRequestBodyOf ;
44import static datadog .communication .http .OkHttpUtils .msgpackRequestBodyOf ;
5+ import static datadog .json .buffer .JsonMapper .toJson ;
56
67import datadog .communication .serialization .GrowableBuffer ;
78import datadog .communication .serialization .Writable ;
2021import datadog .trace .core .CoreSpan ;
2122import datadog .trace .core .Metadata ;
2223import datadog .trace .core .MetadataConsumer ;
23- import datadog .trace .util .Strings ;
2424import java .io .IOException ;
2525import java .nio .ByteBuffer ;
2626import java .nio .channels .WritableByteChannel ;
@@ -357,7 +357,7 @@ public void accept(Metadata metadata) {
357357 if (!(value instanceof Iterable )) {
358358 writable .writeObjectString (value , null );
359359 } else {
360- String serializedValue = Strings . toJson ((Iterable <String >) value );
360+ String serializedValue = toJson ((Iterable <String >) value );
361361 writable .writeString (serializedValue , null );
362362 }
363363 }
You can’t perform that action at this time.
0 commit comments