Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions spec/spans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,18 @@ groups:
- Otherwise, this span SHOULD be a child of the `graphql.server`
span, or of the resolver execution span that triggered the batch dispatch.

The span SHOULD have links to all resolver execution spans that
contributed load requests to this batch, so that the causal
relationship between resolvers and the batch is preserved.
The span SHOULD have links to all `graphql.field.execution` spans
whose resolvers contributed load requests to this batch, so that
the causal relationship between resolvers and the batch is preserved.

Each link SHOULD include the following attributes:
- `graphql.selection.field.coordinate`: The coordinate of the field
that triggered the load request (e.g., `User.avatar`).

When the number of contributing resolvers exceeds a practical limit,
instrumentations MAY cap the number of links to a configurable
maximum. The `graphql.dataloader.batch.size` attribute still
reflects the true batch size regardless of link count.
attributes:
- ref: graphql.processing.type
requirement_level: required
Expand Down