-
Notifications
You must be signed in to change notification settings - Fork 91
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): Pass-through minimal sdk
field
#2073
feat(crons): Pass-through minimal sdk
field
#2073
Conversation
relay-monitors/src/lib.rs
Outdated
@@ -113,6 +124,9 @@ struct CheckIn { | |||
/// Status of this check-in. Defaults to `"unknown"`. | |||
status: CheckInStatus, | |||
|
|||
/// monitor configuration to support upserts. | |||
sdk: MinimalClientSdkInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old SDKs won't send this, right? So I think this needs to be optional, otherwise deserialization will fail. Make sure to also add a test case to verify this.
sdk: MinimalClientSdkInfo, | |
#[serde(default, skip_serializing_if = "Option::is_none")] | |
sdk: Option<MinimalClientSdkInfo>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old SDKs don’t support sending monitor checkins however
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we not release an SDK version already with this? If not we can skip this, but if we did, we should make this optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chatted w/ @jan-auer I'll go ahead and make this optional
2ae7a6f
to
bd46d80
Compare
relay-monitors/src/lib.rs
Outdated
@@ -113,6 +124,9 @@ struct CheckIn { | |||
/// Status of this check-in. Defaults to `"unknown"`. | |||
status: CheckInStatus, | |||
|
|||
/// monitor configuration to support upserts. | |||
sdk: MinimalClientSdkInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we not release an SDK version already with this? If not we can skip this, but if we did, we should make this optional.
* master: (178 commits) ref(crons): Allow `_` in monitor slugs (#2100) fix(span-metrics): Scrub subdomains in metric tags (#2103) feat(normalization): Scrub span description URLs (#2095) feat(dynamic-sampling): Add possibility to run dynamic sampling from `sentry-relay` (#2091) ref(dynamic-config): Remove transaction metrics allowlist from Sentry (#2092) feat(protocol): Support old effective-directory format (#2048) ref(spans): Add more tags to span metrics (#2090) fix(server): Support HTTP half-close connections (#2089) ref(spans): Use transactions namespace with `span` prefix (#2087) ref(spans): Update span metrics feature flag name (#2086) feat(metrics): Extract more metrics from spans (#2080) build: Bump tempfile to remove flagged dependency (#2085) feat(filter): Add document_uri csp filter (#2059) build: Use jemalloc on Linux (#2084) ci(gha): add debugging for "Couldn'\''t write tracker file" issue (#2081) feat(crons): Pass-through minimal `sdk` field (#2073) fix(quota): Parse large limits (#2079) instr(server): More details on unexpected envelope drop (#2077) fix(ci): Skip flaky integration test (#2076) feat(dynamic-sampling): Add support for `trace.replay_id` in matching rules (#2070) ...
We would like to collect more information about where cron checkins are coming from. Since we're not using
metastructure
yet we can't use theClientSdkInfo
structrelay/relay-general/src/protocol/clientsdk.rs
Lines 18 to 65 in 3ffdaf1
#skip-changelog