File tree Expand file tree Collapse file tree
communication/src/main/java/datadog/communication/ddagent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import static datadog .communication .http .OkHttpUtils .msgpackRequestBodyOf ;
55import static datadog .communication .http .OkHttpUtils .prepareRequest ;
66import static datadog .communication .serialization .msgpack .MsgPackWriter .FIXARRAY ;
7+ import static datadog .trace .api .ProtocolVersion .V0_4 ;
78import static java .util .Collections .emptyMap ;
89import static java .util .Collections .emptySet ;
910import static java .util .Collections .singletonList ;
@@ -114,7 +115,7 @@ public DDAgentFeaturesDiscovery(
114115 this .client = client ;
115116 this .agentBaseUrl = agentUrl ;
116117 this .metricsEnabled = metricsEnabled ;
117- this .protocolVersion = protocolVersion ;
118+ this .protocolVersion = protocolVersion != null ? protocolVersion : V0_4 ;
118119 this .discoveryTimer = monitoring .newTimer ("trace.agent.discovery.time" );
119120 this .discoveryState = new State ();
120121 }
You can’t perform that action at this time.
0 commit comments