Skip to content

Resolve "Add a GraphQL query for Error Tracking - Stack trace"

Sean Arnold requested to merge 35896-graphql-error-stack-trace into master

**Note: ** This is current dependant on !21802 (merged) but can be reviewed independently.

What does this MR do?

This adds the sentry error stack trace into Graphql. This is part of our migration from REST to Graphql.

Rest endpoint: https://gitlab.com/gitlab-org/gitlab/blob/35896-graphql-error-stack-trace/app/controllers/projects/error_tracking/stack_traces_controller.rb#L10

To do this I created 3 types:

  • SentryErrorStackTraceType - The parent object for the stack trace entries
  • SentryErrorStackTraceEntryType - A single stack trace entry, contains data on the function, col, line, file_name and trace context
  • SentryErrorStackTraceContextType - A trace context object which holds a line number and code

Does this MR meet the acceptance criteria?

Conformity

Closes #35896 (closed)

Edited by Sean Arnold

Merge request reports

Loading