Skip to content

Independent configuration for Advanced Request Tracing (ART) #2555

@ekroon

Description

@ekroon

Component(s)

router

Is your feature request related to a problem? Please describe.

Currently, Advanced Request Tracing (ART) and query plan headers are only available when dev_mode is enabled or when a valid Cosmo Cloud JWT token is provided. This makes it difficult to use ART in environments where dev_mode is not appropriate (e.g., staging or production-like environments), because we want JSON output for logging.

Describe the solution you'd like

Add a new configuration option enable_art (and ENABLE_ART environment variable) engine.require_request_tracing_auth (and ENGINE_REQUIRE_REQUEST_TRACING_AUTH environmen variable) to the router. When set to true, this option enables Advanced Request Tracing (ART) and query plan headers independently of dev_mode or the presence of a Cosmo Cloud JWT token.

Describe alternatives you've considered

  • Enabling dev_mode in staging/production, which is not recommended as it enables other development features and pretty logs that might not be desirable.
  • Using Cosmo Cloud JWT tokens, which might not be feasible for all users or in all environments.

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions