New Features
- This change adds support for an optional trace JSON decoder that will attempt to parse a trace, even if the trace is partially misconformed, such as one having port numbers within the meta field, which would previously throw an error. Additionally, the change also adds a default parser of json.loads, which was originally used. The new parser can be used by specifying the <span class="title-ref">DD_SUPPRESS_TRACE_PARSE_ERRORS</span> env variable or by setting the flag <span class="title-ref">--suppress-trace-parse-errors</span>.
- Add session token to Remote Config endpoint.
- This change adds support for disabling / enabling proxying for a trace by sending the X-Datadog-Agent-Proxy-Disabled with a boolean value within a trace's headers. By default, proxying is enabled if the Test-Agent has an agent_url set.
- Improves APM Test-Agent debugging by improving Assertion error messages when verifying decoded traces. Also adds debug logging for the received request and request headers.
- This change improves APM Test Agent proxying in a few ways. Proxying is now done first when a trace is received, instead of waiting for Test Agent checks to complete. This means that a failing check will no longer prevent the trace(s) being proxied to the final destination. Additionally, proxying now has better handling of response types including byte, json and text/html responses.