Skip to content

logging(app-context): adds more logging context for slack api errors #15557

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

Merged
merged 4 commits into from
Nov 13, 2019

Conversation

scefali
Copy link
Contributor

@scefali scefali commented Nov 12, 2019

Adding context will help debug some customer issues we have been facing with this error

@scefali scefali requested a review from a team November 12, 2019 21:42
@@ -242,7 +251,7 @@ def post(self, request):
self.open_resolve_dialog(data, group, integration)
defer_attachment_update = True
except client.ApiError as e:
return self.api_error(e)
return self.api_error(e, action_type, logging_data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, will we always have action_type here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manuzope There should be because we should never have an client.ApiError unless we've gone through at least one action. But I think it's safer to initialize action_type to None just to be more safe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put action_type = None before the try so that we know we always have it.

@scefali scefali merged commit 3c74719 into master Nov 13, 2019
@scefali scefali deleted the logging/slack-api-error branch November 13, 2019 17:54
jan-auer added a commit that referenced this pull request Nov 13, 2019
* master: (59 commits)
  fix(btn-group-break): quick fix for issues table nav items (#15585)
  feat(ui): Change `<SmartSearchBar>` to simulate "search" on En… (#15345)
  ref: Update semaphore to 0.4.61 (#15574)
  fix(api): Fix failing snuba test in Django 1.9
  chore(ts): convert sentry app component files (#15575)
  build(github-actions): RIP github actions (#15577)
  feat(ui): Adapt user-feedback page to lightweight organization context (#15551)
  ref(logo replacement): converted pngs to svgs (#15552)
  Remove unused animated-ellipsis (#15515)
  fix: Fix `get_participants` to use `__in` correctly.
  build(webpack): Remove `lodash-webpack-plugin` (#15521)
  moved the bulk of plugins from test_only_plugins into new_sentry_plugins (#15468)
  ref: Remove "store.save-event-skips-nodestore" option from code (#15568)
  logging(app-context): adds more logging context for slack api errors (#15557)
  build(babel): Remove `@babel/polyfill` (#15564)
  chore(ts): convert sentryApps (#15565)
  chore(ts): convert SentryAppIcon (#15569)
  fix: Avoid updating with None (#15549)
  feat(api): Project key creation rate limit params (#15366)
  fix(api): Fix failing snuba test in Django 1.9
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants