You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should enable checkins to provide a environment string as part of the checkin payload.
This means that we will now associate a checkin to a MonitorEnvironment, we should dual write denormalized checkin details to the monitor environment table.
For now this association should be optional until we can backfill all the environments for ALL EXISTING CHECKINS.
We will need to call get_or_create during the checkin to ensure the environment exists.
The default environment should likely be production.
We will need to associate that environment in the MonitorEnvironment if we haven't already.
We should write the checkin status into the monitor environment as well as continue to write to the monitor.
You cannot update the environment of an already created checkin (this should be an error if it is different)
In a follow up we will start reading status from the monitor environment, see #42788
[NOTE!!]: We do not want this to be part of the API docs yet, that will be done in #45025
The text was updated successfully, but these errors were encountered:
The default environment should likely be production.
@wedamija and myself were looking at this with this query
selectse.name, count(*)
from sentry_monitor sm
inner join sentry_environmentproject sep onsep.project_id=sm.project_idjoin sentry_environment se onse.id=sep.environment_idwheresm.status not in (1,2,3)
group byse.nameorder bycount(*) desc
Which tells us what the common env names are for the projects with monitors.
Looks like the empty string is common followed by production and prod. I am guessing we’ll want to go with production since that’s what the SDKs will send by default? But I don’t know that we do that anywhere else in sentry, since the get_or_create actually uses the empty string.
This should enable checkins to provide a
environment
string as part of the checkin payload.This means that we will now associate a checkin to a
MonitorEnvironment
, we should dual write denormalized checkin details to the monitor environment table.For now this association should be optional until we can backfill all the environments for ALL EXISTING CHECKINS.
We will need to call
get_or_create
during the checkin to ensure the environment exists.The default environment should likely be
production
.We will need to associate that environment in the
MonitorEnvironment
if we haven't already.We should write the checkin status into the monitor environment as well as continue to write to the monitor.
You cannot update the environment of an already created checkin (this should be an error if it is different)
In a follow up we will start reading status from the monitor environment, see #42788
[NOTE!!]: We do not want this to be part of the API docs yet, that will be done in #45025
The text was updated successfully, but these errors were encountered: