import asyncio
import strawberry.asgi
from strawberry.extensions import tracing
@strawberry.type
class Query:
@strawberry.field
def node(self) -> str:
return ''
schema = strawberry.Schema(Query, extensions=[tracing.ApolloTracingExtension])
app = strawberry.asgi.GraphQL(schema)
print(asyncio.run(schema.execute('{ node }')))
print(asyncio.run(schema.execute('{ node() }'))) # raises AttributeError
outputs
graphql.error.syntax_error.GraphQLSyntaxError: Syntax Error: Expected Name, found ')'.
GraphQL request:1:8
1 | { node() }
| ^
During handling of the above exception, another exception occurred:
...
AttributeError: 'ApolloTracingExtension' object has no attribute 'end_time'
And the message in GraphiQL is unexpected: "The string did not match the expected pattern."
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too