# APM distributed trace: how to?

**URL:** <https://discuss.elastic.co/t/apm-distributed-trace-how-to/193646>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [August 3, 2019, 5:39pm UTC](https://discuss.elastic.co/t/apm-distributed-trace-how-to/193646 "2019-08-03T17:39:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ffknob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ffknob/32/37008_2.png) [@ffknob](https://discuss.elastic.co/u/ffknob)\
**Post date:** [August 7, 2019, 11:40pm UTC](https://discuss.elastic.co/t/apm-distributed-trace-how-to/193646/6 "2019-08-07T23:40:17Z")

</div>

I was wondering why the Node.js agent doesn't seem to have the startTransactionWithRemoteParent() method like the Java one...

> [@APM manual distributed tracing](https://discuss.elastic.co/t/apm-manual-distributed-tracing/192532):
>
> Problem Description I have a client application that makes http get request to server. With auto instrumentation, I am getting this as a single trace. But with manual instrumentation, I am getting 2 different traces. How to capture everything in one trace? #my client side code Transaction transaction = ElasticApm.startTransaction(); Span span = ElasticApm.currentSpan() .startSpan("external", "http", null) .setName("Myspan"); try (final Sco…

---

_[View the full topic](https://discuss.elastic.co/t/apm-distributed-trace-how-to/193646)._
