문제

Sentry provides nice graphs to show message frequency, but little information about what do they actually show.

enter image description here

Are these messages per minute? 5 minutes? 15 minute? hour?

도움이 되었습니까?

해결책

This chart are by minute. This is the model reponsible to store the data for that graph.

https://github.com/getsentry/sentry/blob/15c0291074087408c6f66ac1619365b148b9084c/src/sentry/models/groupcountbyminute.py

To give you a more detailed explanation:

The main chart has a DOM attribute data-api-url that points to sentry-api-chart view that returns the data from Project model from a ProjectManager mixed with this class:

https://github.com/getsentry/sentry/blob/15c0291074087408c6f66ac1619365b148b9084c/src/sentry/manager.py#L117

That class fetch the related time span from the previous model and returns the data.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top