Skip to content
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

Optional user_context #55

Merged
merged 2 commits into from
Feb 22, 2017
Merged

Optional user_context #55

merged 2 commits into from
Feb 22, 2017

Conversation

travoltron
Copy link
Contributor

The current implementation assumes the default Laravel auth implementation. For anyone who uses auth schemes that aren't part of the core, this leaves lots of debris on the command line: sentry.breadcrumbs error=Auth guard driver [api] is not defined.

This change makes this optional behavior and doesn't alter it in any way.

Sets `breadcrumbs.user_context` state as a boolean.
The current implementation assumes the default Laravel auth implementation. For anyone who uses auth schemes that aren't part of the core, this leaves lots of debris on the command line: `sentry.breadcrumbs error=Auth guard driver [api] is not defined.`

This change makes this optional behavior and doesn't alter it in any way.
$client->user_context(array(
'id' => $user->getAuthIdentifier(),
));
if($user_config['breadcrumbs.user_context']) {
Copy link
Member

@dcramer dcramer Feb 21, 2017

Choose a reason for hiding this comment

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

we wouldnt want to call this breadcrumbs, but not sure if 'user_context' is descriptive enough.

maybe user_context.auto = True/False?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That works for me. If you'd like I can write up a little blurb on this feature.

@dcramer dcramer merged commit 16bfb8d into getsentry:master Feb 22, 2017
@dcramer
Copy link
Member

dcramer commented Feb 22, 2017

i made three changes:

  • make it work with lumen
  • change to 'user_context => true/false'
  • default to 'true'

@lintaba
Copy link

lintaba commented Mar 2, 2017

when will it be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants