What needs documenting
DataDog/dd-trace-go#5139 adds a new Echo v4 tracer environment variable: DD_TRACE_ECHO_IGNORED_ROUTES.
Suggested docs details
The variable accepts comma-separated entries in the form METHOD /pattern, for example:
DD_TRACE_ECHO_IGNORED_ROUTES=GET /ready,POST /health
The middleware matches each entry against the request method and the route pattern registered by Echo. It does not match the request URL, so parameterized routes should use the registered pattern, for example GET /users/:id rather than GET /users/123.
Malformed entries are ignored and logged. Ignored routes skip the Echo middleware span and also skip AppSec monitoring performed by that middleware, matching the existing WithIgnoreRequest behavior.
Related PR
DataDog/dd-trace-go#5139
What needs documenting
DataDog/dd-trace-go#5139 adds a new Echo v4 tracer environment variable:
DD_TRACE_ECHO_IGNORED_ROUTES.Suggested docs details
The variable accepts comma-separated entries in the form
METHOD /pattern, for example:DD_TRACE_ECHO_IGNORED_ROUTES=GET /ready,POST /healthThe middleware matches each entry against the request method and the route pattern registered by Echo. It does not match the request URL, so parameterized routes should use the registered pattern, for example
GET /users/:idrather thanGET /users/123.Malformed entries are ignored and logged. Ignored routes skip the Echo middleware span and also skip AppSec monitoring performed by that middleware, matching the existing
WithIgnoreRequestbehavior.Related PR
DataDog/dd-trace-go#5139