smallrye-graphql icon indicating copy to clipboard operation
smallrye-graphql copied to clipboard

Tracing of GraphQL operation containing multiple queries

Open mskacelik opened this issue 2 years ago • 0 comments

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

mskacelik avatar Apr 14 '23 10:04 mskacelik