2020-01-31 21:08:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
module ErrorTracking
|
|
|
|
class SentryErrorStackTraceType < ::Types::BaseObject
|
|
|
|
graphql_name 'SentryErrorStackTrace'
|
2020-09-16 06:09:24 +00:00
|
|
|
description 'An object containing a stack trace entry for a Sentry error'
|
2020-01-31 21:08:52 +00:00
|
|
|
|
|
|
|
authorize :read_sentry_issue
|
|
|
|
|
|
|
|
field :issue_id, GraphQL::STRING_TYPE,
|
|
|
|
null: false,
|
2021-01-22 21:09:10 +00:00
|
|
|
description: 'ID of the Sentry error.'
|
2020-01-31 21:08:52 +00:00
|
|
|
field :date_received, GraphQL::STRING_TYPE,
|
|
|
|
null: false,
|
2021-01-22 21:09:10 +00:00
|
|
|
description: 'Time the stack trace was received by Sentry.'
|
2020-01-31 21:08:52 +00:00
|
|
|
field :stack_trace_entries, [Types::ErrorTracking::SentryErrorStackTraceEntryType],
|
|
|
|
null: false,
|
2021-01-22 21:09:10 +00:00
|
|
|
description: 'Stack trace entries for the Sentry error.'
|
2020-01-31 21:08:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|