Keep Test Events Out of Production Metrics with an Environment Contract
A staging build sends a synthetic checkout success to the production event destination. The payload is structurally valid, so the dashboard can count it as customer activity unless the pipeline has an explicit rule for that situation. A successful delivery has not proved that the event belongs in the report. Keep test and production analytics events separate through a contract covering origin, destination, allowed environment values and report eligibility. An environment label alone does not create isolation or prove where a record came from. 1. Describe the producer before you choose a filter OpenTelemetry's deployment environment convention defines deployment.environment.name and values such as staging and production. It also warns that this attribute does not change the service identity uniqueness rules. A familiar service name is therefore not enough to identify the intended environment. Its resources documentation describes attributes of the entity producing telemetry. T...