DataDog / dd-trace-java

Datadog APM client for Java
https://docs.datadoghq.com/tracing/languages/java
Apache License 2.0
593 stars 292 forks source link

Vertx asynchronous io.vertx.core.Future trace with @Trace annotation #2624

Open haingo-kenshjn opened 3 years ago

haingo-kenshjn commented 3 years ago

Hi,

When I annotate method which return a Vertx io.vertx.core.Future with @Trace then span finish immediately when return without waiting the future completed. Any idea how can I make @Trace work with io.vertx.core.Future and wait to track latency. Eg:

@Trace(operationName = "test", resourceName = "processData")
protected Future<Data> processData {
}
devinsba commented 3 years ago

Hi @haingo-kenshjn, thanks for the report. This looks like a feature that we will need to add. If it's possible for you to use Java CompletableFuture instead, we have support for that already