Skip to content

strawberry Instrumentation is incomplete #4715

@Speedy1991

Description

@Speedy1991

How do you use Sentry?

Self-hosted/on-premise

Version

sentry-sdk = { extras = ["django"], version = "2.34.1" }

Steps to Reproduce

I use strawberry-graphql = "0.272.1" with an async schema and

from sentry_sdk.integrations.strawberry import StrawberryIntegration
...
sentry_sdk.init(
    dsn: ...,
    integrations=[DjangoIntegration(cache_spans=True), StrawberryIntegration(async_execution=True)],
    environment='production',
    attach_stacktrace=True,
    traces_sample_rate=0.02,
    profile_session_sample_rate=0.02,
    profile_lifecycle='trace',
Image

Expected Result

This spans should show up in sentry:

span.set_data("graphql.field_name", info.field_name)
span.set_data("graphql.parent_type", info.parent_type.name)
span.set_data("graphql.field_path", field_path)
span.set_data("graphql.path", ".".join(map(str, info.path.as_list())))

Actual Result

I already confirmed/debugged, that this code is called

span.set_data("graphql.field_name", info.field_name)

It looks like these spans are never sent to the server?

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions