newrelic_accept_distributed_trace_payload_httpsafe(string $httpsafe_payload, string $transport_type)
Accepts a distributed trace payload that includes an HTTPSafe (Base64 encoded) JSON string.
Requires PHP agent version 8.4 or higher.
Distributed tracing allows you to see the path that a request takes as it travels through a distributed system. This is useful, for example, when individual transactions occur in multiple services, and you want to examine them as a complete transaction trace.
With PHP agent version 9.10 or higher, the following JSON functions are now considered deprecated and will be removed in a future release:
Instead, use the API that is compatible with W3C Trace Context support, added in agent version 9.8. With this, the API for manually instrumenting applications has changed from the JSON payload related functions to the following header array forms:
Required. An HTTPSafe (Base64 encoded) JSON string representation of the payload.
Optional. A string overriding the default transport type.
true to indicate success, or
false if an error occurs.
For examples of how and when to use this API method, see the documentation to manually instrument applications and services.
If you need more help, check out these support and learning resources:
- Suggest a change and learn how to contribute to our PHP agent open source repository.
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.