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

Add breadcrumbs functionality #141

Merged
merged 11 commits into from
Mar 12, 2021
Merged

Add breadcrumbs functionality #141

merged 11 commits into from
Mar 12, 2021

Conversation

shalvah
Copy link
Contributor

@shalvah shalvah commented Mar 11, 2021

Status

READY

Description

Implementation of #140

Went with config keys of breadcrumbs.enabled and breadcrumbs.keep.

Also auto-add breadcrumb for notice events, in line with other libraries.

Related PRs

@shalvah shalvah mentioned this pull request Mar 11, 2021
7 tasks
Copy link
Member

@joshuap joshuap left a comment

Choose a reason for hiding this comment

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

Looks good to me! I left a few comments.

*
* @param string $message A brief description of the event represented by this breadcrumb, for example "Email Sent".
* @param array $metadata A map of contextual data about the event. This must be a simple key-value array at one level (no nesting allowed).
* @param string $category A key for grouping related events. You can use anything here, but we recommend following the list at https://docs.honeybadger.io/lib/ruby/getting-started/breadcrumbs.html#categories.
Copy link
Member

Choose a reason for hiding this comment

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

We can change this to a PHP docs link once we add a similar breadcrumbs guide for PHP.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed the link; adding the content 👍

@joshuap
Copy link
Member

joshuap commented Mar 12, 2021

Success!

image

@shalvah shalvah merged commit 208d282 into master Mar 12, 2021
@shalvah shalvah deleted the breadcrumbs branch March 12, 2021 19:27
@shalvah
Copy link
Contributor Author

shalvah commented Mar 12, 2021

One question: @joshuap : should the breadcrumbs limit (40) really be user-configurable? Or is 40 the maximum allowed?

@joshuap
Copy link
Member

joshuap commented Mar 15, 2021

One question: @joshuap : should the breadcrumbs limit (40) really be user-configurable? Or is 40 the maximum allowed?

Sorry, missed this. It's configurable in honeybadger.js, but it's fixed in the Ruby gem. Maybe we should just make it the max and skip the option to configure for now?

@shalvah
Copy link
Contributor Author

shalvah commented Mar 15, 2021

Yeah, I think that'll be good.

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