Send events from staging/test environments to staging Snowplow
What does this MR do and why?
This change removes a feature flag and replaces it with automatic environment detection for routing Snowplow events.
Previously, the system used a manual toggle to decide whether to send tracking data to staging or production servers. Now it automatically detects if the application is running in a non-production environment (either GitLab's staging environment or test environments with specific hostname patterns) and routes the data accordingly.
The MR also appends "_staging" to application identifiers when in non-production environments to help distinguish the data source. The tests were updated to verify this new automatic detection works correctly across different environment configurations.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #543148 (closed)