Traceability
Traceability is essential for debugging and support. Every AgentSync API response includes a unique request identifier that allows you to track and correlate requests across systems.
Available APIs: Traceability via
X-Trace-IDis currently available for the ProducerSync API. We're actively working to bring this capability to all AgentSync APIs. In the meantime, if you need to report an issue with the Contracting, Hierarchies, or Producer Profile APIs, include thetimestampandpathfrom the error response body when contacting support@agentsync.io.
Request Identifier
The identifier is returned in the X-Trace-ID response header:
X-Trace-ID: <trace-id>
Why It Matters
- Debugging: Helps pinpoint issues in logs and trace the lifecycle of a request.
- Support: Speeds up resolution when you provide the trace ID to AgentSync’s support team.
- Correlation: Enables linking API calls with internal monitoring or distributed tracing tools.
Best Practices
- Log the trace ID: Capture the
X-Trace-IDin your application logs for every API call. - Include in error reports: When exceptions occur, attach the trace ID to error messages.
- Provide to support: Always share the trace ID when opening a support ticket to expedite troubleshooting.
- Use in monitoring tools: Integrate the trace ID with observability platforms (e.g., Datadog, Splunk) for end‑to‑end request tracking.