Skip to content

Commit bb06a8e

Browse files
committed
cleanups
1 parent b729a16 commit bb06a8e

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

sentry_sdk/integrations/strawberry.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def on_operation(self) -> "Generator[None, None, None]":
228228
if type(graphql_span) is StreamedSpan:
229229
if execution_context.operation_name:
230230
segment = graphql_span._segment
231-
segment.set_attribute("sentry.source", TransactionSource.COMPONENT)
231+
segment.set_attribute("sentry.span.source", TransactionSource.COMPONENT)
232232
segment.set_attribute("sentry.op", op)
233233
segment.name = execution_context.operation_name
234234
elif type(graphql_span) is Span:
@@ -327,7 +327,6 @@ async def resolve(
327327

328328
field_path = "{}.{}".format(info.parent_type, info.field_name)
329329

330-
<<<<<<< HEAD
331330
client = sentry_sdk.get_client()
332331
is_span_streaming_enabled = has_span_streaming_enabled(client.options)
333332
if is_span_streaming_enabled:
@@ -340,8 +339,6 @@ async def resolve(
340339
):
341340
return await self._resolve(_next, root, info, *args, **kwargs)
342341

343-
=======
344-
>>>>>>> master
345342
with sentry_sdk.start_span(
346343
op=OP.GRAPHQL_RESOLVE,
347344
name="resolving {}".format(field_path),
@@ -369,7 +366,6 @@ def resolve(
369366

370367
field_path = "{}.{}".format(info.parent_type, info.field_name)
371368

372-
<<<<<<< HEAD
373369
client = sentry_sdk.get_client()
374370
is_span_streaming_enabled = has_span_streaming_enabled(client.options)
375371
if is_span_streaming_enabled:
@@ -382,8 +378,6 @@ def resolve(
382378
):
383379
return _next(root, info, *args, **kwargs)
384380

385-
=======
386-
>>>>>>> master
387381
with sentry_sdk.start_span(
388382
op=OP.GRAPHQL_RESOLVE,
389383
name="resolving {}".format(field_path),

0 commit comments

Comments
 (0)