Class: ErrorTracking::SentryClient
- Inherits:
-
Object
- Object
- ErrorTracking::SentryClient
- Defined in:
- lib/error_tracking/sentry_client.rb,
lib/error_tracking/sentry_client/repo.rb,
lib/error_tracking/sentry_client/event.rb,
lib/error_tracking/sentry_client/issue.rb,
lib/error_tracking/sentry_client/token.rb,
lib/error_tracking/sentry_client/api_urls.rb,
lib/error_tracking/sentry_client/projects.rb,
lib/error_tracking/sentry_client/issue_link.rb,
lib/error_tracking/sentry_client/pagination_parser.rb
Defined Under Namespace
Modules: Event, Issue, IssueLink, PaginationParser, Projects, Repo Classes: ApiUrls, Token
Constant Summary collapse
- Error =
Class.new(StandardError)
- MissingKeysError =
Class.new(StandardError)
- InvalidFieldValueError =
Class.new(StandardError)
- ResponseInvalidSizeError =
Class.new(StandardError)
- RESPONSE_MEMORY_SIZE_LIMIT =
The bytes size of a JSON payload is different from what DeepSize calculates which is Ruby’s object size.
This factor accounts for the difference.
See gitlab.com/gitlab-org/gitlab/-/issues/393029#note_1289914133
RESPONSE_SIZE_LIMIT * 5
Constants included from Issue
Issue::BadRequestError, Issue::SENTRY_API_SORT_VALUE_MAP
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(api_url, token) ⇒ SentryClient
constructor
A new instance of SentryClient.
Methods included from IssueLink
Methods included from Repo
Methods included from Issue
#issue_details, #list_issues, #update_issue
Methods included from Projects
Methods included from Event
Constructor Details
#initialize(api_url, token) ⇒ SentryClient
Returns a new instance of SentryClient.
29 30 31 32 |
# File 'lib/error_tracking/sentry_client.rb', line 29 def initialize(api_url, token) @url = api_url @token = token end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
27 28 29 |
# File 'lib/error_tracking/sentry_client.rb', line 27 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
27 28 29 |
# File 'lib/error_tracking/sentry_client.rb', line 27 def url @url end |