@@ -206,20 +206,20 @@ def test_logs_message_params(sentry_init, capture_envelopes):
206206
207207
208208@minimum_python_37
209- def test_logs_tied_to_transactions (sentry_init , capture_envelopes ):
209+ def test_logs_tied_to_root_spans (sentry_init , capture_envelopes ):
210210 """
211- Log messages are also tied to transactions .
211+ Log messages are also tied to root spans .
212212 """
213213 sentry_init (_experiments = {"enable_sentry_logs" : True })
214214 envelopes = capture_envelopes ()
215215
216- with sentry_sdk .start_transaction (name = "test-transaction " ) as trx :
217- sentry_logger .warn ("This is a log tied to a transaction " )
216+ with sentry_sdk .start_span (name = "test-root-span " ) as root_span :
217+ sentry_logger .warn ("This is a log tied to a root span. " )
218218
219219 log_entry = envelopes [0 ].items [0 ].payload .json
220220 assert log_entry ["attributes" ][- 1 ] == {
221221 "key" : "sentry.trace.parent_span_id" ,
222- "value" : {"stringValue" : trx .span_id },
222+ "value" : {"stringValue" : root_span .span_id },
223223 }
224224
225225
@@ -231,7 +231,7 @@ def test_logs_tied_to_spans(sentry_init, capture_envelopes):
231231 sentry_init (_experiments = {"enable_sentry_logs" : True })
232232 envelopes = capture_envelopes ()
233233
234- with sentry_sdk .start_transaction (name = "test-transaction " ):
234+ with sentry_sdk .start_span (name = "test-root-span " ):
235235 with sentry_sdk .start_span (description = "test-span" ) as span :
236236 sentry_logger .warn ("This is a log tied to a span" )
237237
0 commit comments