Skip to content

Commit

Permalink
docs: fix up receiving context
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorelli25 committed Feb 19, 2021
1 parent d917d24 commit c9b17b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/tab-widgets/distributed-trace-receive.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ agent.startTransaction('my-service-b-transaction', { childOf: traceparent }) <2>
2. Begin a new transaction using the agent's public API. For example, use {apm-php-ref-v}/public-api.html#api-elasticapm-class-begin-current-transaction[`ElasticApm::beginCurrentTransaction`]
and pass the new `DistributedTracingData` object as a parameter.
This will create a new transaction or span as a child of the incoming trace context.
This will create a new transaction as a child of the incoming trace context.
3. Don't forget to eventually end the transaction on the server side.
Expand All @@ -141,6 +141,9 @@ $receiverTransaction = ElasticApm::beginCurrentTransaction( <1>
<1> Start a new transaction
<2> Pass in the new `DistributedTracingData` object

Once this new transaction has been created in the receiving service,
you can create child spans, or use any other agent API methods as you typically would.

// end::php[]

// ***************************************************
Expand Down

0 comments on commit c9b17b5

Please sign in to comment.