Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(crons): Add thresholds to monitor config payload #2842

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

rjo100
Copy link
Contributor

@rjo100 rjo100 commented Dec 11, 2023

Adds failure_issue_threshold and recovery_threshold into MonitorConfig payload. Allows for SDKs to set thresholds programmatically via upsert.

@rjo100 rjo100 requested a review from a team as a code owner December 11, 2023 23:58
@rjo100 rjo100 requested a review from a team December 11, 2023 23:58
Comment on lines 111 to 115
failure_issue_threshold: Option<u64>,

/// How many consecutive OK check-ins it takes to resolve an issue
#[serde(default, skip_serializing_if = "Option::is_none")]
recovery_threshold: Option<u64>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure to add these to the develop.sentry.dev SDK docs as well.

Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

relay-monitors/src/lib.rs Outdated Show resolved Hide resolved
relay-monitors/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@olksdr olksdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to keep the naming consistent throughout the docs, checkin vs. check-in

relay-monitors/src/lib.rs Outdated Show resolved Hide resolved
rjo100 and others added 5 commits December 12, 2023 14:00
Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
Co-authored-by: Oleksandr <1931331+olksdr@users.noreply.github.com>
Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
@rjo100 rjo100 merged commit c3d5ead into master Dec 12, 2023
20 checks passed
@rjo100 rjo100 deleted the rjo100/add-monitor-thresholds branch December 12, 2023 22:38
jan-auer added a commit that referenced this pull request Dec 19, 2023
* master: (35 commits)
  fix(spans): Parse quotes in MySQL (#2846)
  ref(cardinality): Use a Lua script and in-memory cache for the cardinality limiter (#2849)
  fix(spans): Detect hex with fallback scrubber (#2868)
  release: 23.12.0
  Revert "ci: Update upload-artifact and download-artifact actions" (#2866)
  Revert "build: Update axum and http" (#2863)
  feat(spans): Allow resource.img spans (#2855)
  build: Update axum and http (#2844)
  fix(build): Add additional dependencies to the release build (#2858)
  ci: Update upload-artifact and download-artifact actions (#2861)
  feat(spans): Parse timestamps from strings (#2857)
  fix(spans): Scrub integer file extensions (#2856)
  feat(spans): Remove unused transaction tag from resource metrics (#2853)
  ref(cardinality): Recover buckets on cardinality limiter failure (#2852)
  feat(server): Org rate limit per metric bucket (#2836)
  ref(spans): List metric tags explicitly (#2834)
  feat(spans): Resource response sizes as measurements (#2845)
  feat(crons): Add thresholds to monitor config payload (#2842)
  feat(spans): Allow ingestion of metrics summary on spans (#2823)
  ref(crons): Add documentation to CheckInMessageType (#2840)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants