Attaching a Parent Span to a Runtime

Is there a way to attach a parent span to a runtime / managed runtime?

In the context of a GraphQL server, all the resolvers must return promises, so we pass a runtime via the GraphQL context and use it in each resolver to run the effect. In the example in the thread, if I ask to resolve both Foo and Bar in one query, I will see 2 traces ("foo" and "bar"). I would like to group them all under one parent trace using the GraphQL operation name. But I cannot find the right way to do it on the runtime directly.

Note that in the snippet I am using a ManagedRuntime because it makes the setup easier, but my question is really about Runtime (which is what I pass in my context in real life).
Was this page helpful?