@@ -149,8 +149,6 @@ def test_sentry_logs_warning(
149149 logs = envelopes_to_logs (envelopes )
150150
151151 attrs = logs [0 ]["attributes" ]
152- # no access to pre-formatted message atm, so template is already filled in
153- assert attrs ["sentry.message.template" ] == "this is just a template"
154152 assert "code.file.path" in attrs
155153 assert "code.line.number" in attrs
156154 assert attrs ["logger.name" ] == "tests.integrations.loguru.test_loguru"
@@ -299,11 +297,9 @@ def test_logging_errors(sentry_init, capture_envelopes, uninstall_integration, r
299297
300298 logs = envelopes_to_logs (envelopes )
301299 assert logs [0 ]["severity_text" ] == "error"
302- assert logs [0 ]["attributes" ]["sentry.message.template" ] == "test exc 1"
303300 assert "code.line.number" in logs [0 ]["attributes" ]
304301
305302 assert logs [1 ]["severity_text" ] == "error"
306- assert logs [1 ]["attributes" ]["sentry.message.template" ] == "error is %s"
307303 assert "code.line.number" in logs [1 ]["attributes" ]
308304
309305 assert len (logs ) == 2
@@ -416,7 +412,6 @@ def test_logger_with_all_attributes(
416412 assert attributes == {
417413 "logger.name" : "tests.integrations.loguru.test_loguru" ,
418414 "sentry.origin" : "auto.logger.loguru" ,
419- "sentry.message.template" : "log #1" ,
420415 "sentry.environment" : "production" ,
421416 "sentry.sdk.version" : VERSION ,
422417 "sentry.severity_number" : 13 ,
0 commit comments