Skip to content

feat: add graphql.processing.type attribute for programmatic span identification#64

Merged
PascalSenn merged 1 commit intomainfrom
pse/introduce-processing-span
Mar 4, 2026
Merged

feat: add graphql.processing.type attribute for programmatic span identification#64
PascalSenn merged 1 commit intomainfrom
pse/introduce-processing-span

Conversation

@PascalSenn
Copy link
Contributor

@PascalSenn PascalSenn commented Feb 26, 2026

Telemetry consumers currently have no reliable way to programmatically identify which span represents which processing activity (e.g. parsing vs execution) without relying on span name string matching.

Following the OTel semantic convention pattern established by messaging.operation.type and gen_ai.operation.name, this adds a graphql.processing.type enum attribute to all internal spans. Each span declares exactly one value (parse, validate, variable_coercion, plan, execute, step_execute, resolve, dataloader_dispatch, dataloader_batch), enabling consumers to filter and route spans by type using a single attribute query.

The server span is excluded as it is already identifiable via SpanKind.

@PascalSenn PascalSenn merged commit 24d9f67 into main Mar 4, 2026
2 checks passed
@PascalSenn PascalSenn deleted the pse/introduce-processing-span branch March 4, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant