Skip to content

Document DD_TRACE_ECHO_IGNORED_ROUTES #39746

Description

@Trighap52

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions