Publishing Trace Fragments to the APM Server

Trace fragments are published to the APM server via a REST API: Publish Trace Fragment

The REST service uses basic authentication, and therefore appropriate username and password details for a valid user will need to be supplied with the POST request.

The structure of the Trace fragment is also documented as part of the REST API documentation.