Skip to content

Commit fc8cd48

Browse files
committed
Merge branch 'master' into feat/span-first
2 parents 7fa913a + adcd90c commit fc8cd48

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

scripts/build_aws_lambda_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LayerBuilder:
1818
def __init__(
1919
self,
2020
base_dir: str,
21-
out_zip_filename: "Optional[str]"=None,
21+
out_zip_filename: "Optional[str]" = None,
2222
) -> None:
2323
self.base_dir = base_dir
2424
self.python_site_packages = os.path.join(self.base_dir, PYTHON_SITE_PACKAGES)

sentry_sdk/_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class SDKInfo(TypedDict):
351351
"max_runtime": int,
352352
"failure_issue_threshold": int,
353353
"recovery_threshold": int,
354+
"owner": str,
354355
},
355356
total=False,
356357
)

tests/test_crons.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,22 @@ def test_monitor_config(sentry_init, capture_envelopes):
262262
assert "monitor_config" not in check_in
263263

264264

265+
def test_monitor_config_with_owner(sentry_init, capture_envelopes):
266+
sentry_init()
267+
envelopes = capture_envelopes()
268+
269+
monitor_config = {
270+
"schedule": {"type": "crontab", "value": "0 0 * * *"},
271+
"owner": "team:6",
272+
}
273+
274+
capture_checkin(monitor_slug="abc123", monitor_config=monitor_config)
275+
check_in = envelopes[0].items[0].payload.json
276+
277+
assert check_in["monitor_slug"] == "abc123"
278+
assert check_in["monitor_config"]["owner"] == "team:6"
279+
280+
265281
def test_decorator_monitor_config(sentry_init, capture_envelopes):
266282
sentry_init()
267283
envelopes = capture_envelopes()

0 commit comments

Comments
 (0)