Skip to content

Commit

Permalink
Fix port used for APM track spans submission
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-tkachenko-datadog committed Jan 31, 2024
1 parent a6c0b71 commit eb301c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ private void sendSpansToApm(Collection<Payload> spans) {
}
byte[] payload = jsonTraces.toString().getBytes(StandardCharsets.UTF_8);

String tracesUrl = String.format("http://%s:%d/v0.3/traces", hostname, port);
String tracesUrl = String.format("http://%s:%d/v0.3/traces", hostname, traceCollectionPort);
client.put(tracesUrl, Collections.emptyMap(), "application/json", payload, Function.identity());

} catch (InterruptedException e) {
Expand Down

0 comments on commit eb301c8

Please sign in to comment.