8000 fix more tests · getsentry/sentry-python@cd5ddd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd5ddd5

Browse files
committed
fix more tests
1 parent 1d2253b commit cd5ddd5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sentry_sdk/logger.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ def _capture_log(severity_text, severity_number, template, **kwargs):
1919
for k, v in kwargs.items():
2020
attrs[f"sentry.message.parameters.{k}"] = (
2121
v
22-
if (isinstance(v, str) or isinstance(v, int) or isinstance(v, bool))
22+
if (
23+
isinstance(v, str)
24+
or isinstance(v, int)
25+
or isinstance(v, bool)
26+
or isinstance(v, float)
27+
)
2328
else repr(v)
2429
)
2530

tests/test_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def test_logs_tied_to_spans(sentry_init, capture_envelopes):
254254
envelopes = capture_envelopes()
255255

256256
with sentry_sdk.start_transaction(name="test-transaction"):
257-
with sentry_sdk.start_span(description="test-span") as span:
257+
with sentry_sdk.start_span(name="test-span") as span:
258258
sentry_sdk.logger.warning("This is a log tied to a span")
259259

260260
get_client().flush()

0 commit comments

Comments
 (0)
0