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
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_modeis enabled or when a valid Cosmo Cloud JWT token is provided. This makes it difficult to use ART in environments wheredev_modeis 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(andENABLE_ARTenvironment variable)engine.require_request_tracing_auth(andENGINE_REQUIRE_REQUEST_TRACING_AUTHenvironmen variable) to the router. When set totrue, this option enables Advanced Request Tracing (ART) and query plan headers independently ofdev_modeor the presence of a Cosmo Cloud JWT token.Describe alternatives you've considered
dev_modein staging/production, which is not recommended as it enables other development features and pretty logs that might not be desirable.Additional context
None