Wrong current observation is set during DataFetcher execution #757
Labels
in: core
Issues related to config and core support
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Hi I’m trying out Micrometer Tracing with Spring GraphQL.
Schema:
Schema mappings:
TrackService
calls remote service via REST(Spring Cloud Feign)ArtistService
calls remote service via GRPCSpans with calls to remote services are children of ‘graphql query’ span but they fetch data for tracks and artists fields. I would expect some correlation between the field span and batched request.
If I use
@SchemaMapping
instead of@BatchMapping
and fetch tracks for each playlist individually the span which calls to trackService is still only child of ‘graphql field playlists’ and not ‘graphql field tracks’, which is kind of confusing to me.Trace with BatchMapping:

Trace with SchemaMapping:
Could you please clarify if this is intended behaviour? Thank you.
The text was updated successfully, but these errors were encountered: