You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @esara, sorry for the delayed response—I was thinking about how best to approach this. I appreciate the contribution, but I’m not sure adding HTTP status codes to GraphQL spans is the right fit for the library. Since GraphQL operates over HTTP and often returns errors with 200 OK responses, logging HTTP status codes could be misleading. Errors are typically handled in the response body rather than the status code itself.
I’m open to further discussion if you have other ideas. Thanks again for your efforts!
the current otel trace instrumentation does not set the http status code for the graphql response
as it is condition required if received as per https://opentelemetry.io/docs/specs/semconv/http/http-spans/#common-attributes
The text was updated successfully, but these errors were encountered: