Skip to content

Commit

Permalink
docs: adds section on beforeBreadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
DiederikvandenB committed Feb 26, 2020
1 parent 72b6b67 commit 1923195
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ const defaultOptions = {
* operations to pass. See PR #9 for more details.
*/
filter: (operation) => true,

/**
* Provide a callback function which receives an instance of this package's OperationBreadcrumb class
* Use it to modify the data that is added to the breadcrumb. Leave undefined if you want all
* data to be included. Very useful in combination with options like includeVariables and includeContextKeys.
*/
beforeBreadcrumb: (breadcrumb) => breadcrumb,
};
```

Expand Down

0 comments on commit 1923195

Please sign in to comment.