Closed kaylareopelle closed 3 weeks ago
@kaylareopelle since you folks have good ideas on how to move forward, are you opening a PR to change it?
Hi @joaopgrassi! I can open a PR to change it! This is my first time interacting with the semantic conventions repo, so I wasn't exactly sure about the process.
Perfect, thank you! I will assign this to you then. Feel free to reach out if you need help with anything.
Hi @joaopgrassi! I've opened a PR for this change: https://github.com/open-telemetry/semantic-conventions/pull/1389
Area(s)
area:graphql
Is your change request related to a problem? Please describe.
The Ruby SIG has some concerns about the cardinality of span names for the current GraphQL semantic convention.
@karmingc opened a PR on the opentelemetry-ruby-contrib repo to update the GraphQL span names.
This would update Ruby's existing name,
graphql.execute_query
, to the current semantic convention's format,<graphql.operation.type> <graphql.operation.name>
.During review, @robertlaurin raised a concern about unbounded cardinality for the span names if operation name and operation type are included:
The PR is currently blocked until we can come to a resolution about the appropriate span name.
Describe the solution you'd like
<graphql.operation.type>
seems sufficient, since the<graphql.operation.name>
is available in span attributes.Describe alternatives you've considered
The GraphQL semantic convention could also be updated to more closely match the DB span name, by adding a
SHOULD
instead of aMUST
for the name and/or add thelow_cardinality
caveat aboutdb.operation.name
.Additional context
This may be similar to https://github.com/open-telemetry/semantic-conventions/issues/182, but since the problem focuses specifically on the span name, I thought it warranted a new issue.