import asyncio
import strawberry
from strawberry.extensions import tracing
@strawberry.type
class Query:
@strawberry.field
def node(self) -> str:
return ''
schema = strawberry.Schema(Query, extensions=[tracing.ApolloTracingExtension])
for i in range(2):
result = asyncio.run(schema.execute('{ node }'))
assert result.extensions['tracing']['execution']['resolvers'], i # second time fails
outputs
assert result.extensions['tracing']['execution']['resolvers'], i # second time fails
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
AssertionError: 1
Only the first request populates resolvers
as expected. This worked in previous version.
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