smallrye-graphql
smallrye-graphql copied to clipboard
Tracing of GraphQL operation containing multiple queries
When working with multiple queries in one operation the hierarchy of spans (relations of the queries) tend to have non deterministic results. GraphQLApi class:
@WithSpan
@Query
public List<Product> getProducts() {
return Product.listAll();
}
@WithSpan
@Query
public List<ShopOrder> getOrders() {
return ShopOrder.listAll();
}
GraphQL request:
query {
orders {
id
}
products {
id
}
}
After executing the request application returns:
WARN [io.qua.ope.run.QuarkusContextStorage] (vert.x-worker-thread-1) Context in storage not the expected context, Scope.close was not called correctly