-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The error metrics is not shown with GraphQL::ExecutionError #2245
Comments
You can either manually in your |
Thanks for the information. I tried to set But, errors are not yet available in error tracking. So, I would like to set It seems already I guess we can trace I saw the documentation but could not find a way to get How do we get |
Root span is accessible normally in java. I don't know why it was removed from ruby sdk, inconvenient, but there is not much of a choice. |
Thanks for suggestion! I tried to set it. Rails.logger.info("active span id is #{Datadog::Tracing.active_span&.id}")
Rails.logger.info("root span id is #{Datadog::Tracing.active_trace&.active_span&.id}") I thought that if https://www.rubydoc.info/github/DataDog/dd-trace-rb/Datadog/Tracing#active_trace-class_method Therefore, there may be no way to access root_span. |
If there are no extra |
I see. Thanks for the explanation. |
Chiming in a bit late to provide what I have before digging too deep into this. In order to make error tracking work, datadog expect the error to be tagged at the service entry span (in short, the first span on flamegraph with change of colour.). According to the snapshot provided, it seems like the implementation is tagging the error on the second span instead of the first one. I was also surprised that the active span in GraphQL endpoint is advised to return 200 response with |
👋 Hi @shnmorimoto , it looks like the issue have been clarified, do you think we could close the issue for now? |
Yeah, we can close this ticket. |
Current behaviour
When we raise
GraphQL::ExecutionError
like the below document, the error metrics (trace.execute.graphql.errors
) is not shown in Datadog.Error Handling
If other error (ex. StandardError) is raised instead of
GraphQL::ExecutionError
, the metrics was shown.Expected behaviour
When we raise
GraphQL::ExecutionError
, the error metrics is shown in DatadogSteps to reproduce
Set up the graphql tracing manually.
Raise
GraphQL::ExecutionError
inrescure_from
How does
ddtrace
help you?Environment
Datadog.configure ...
):see steps to reproduceThe text was updated successfully, but these errors were encountered: