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

Show how to incorporate rollbar error handler in a TerriaMap instance #432

Draft
wants to merge 1 commit into
base: mobx
Choose a base branch
from

Conversation

rowanwins
Copy link
Contributor

Show how to support rollbar in a terriamap#mobx instance.

Reliant on TerriaJS/terriajs#4149 being merged.

@@ -83,6 +84,10 @@ module.exports = terria.start({
// new GnafSearchProviderViewModel({terria})
];

// viewState.errorHandler = new RollbarErrorProvider({
Copy link
Contributor

Choose a reason for hiding this comment

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

In the instance of config being loaded from magda, have you checked whether configParameters correctly reflects the rollbarAccessToken after the terria.start call?

Copy link
Contributor

Choose a reason for hiding this comment

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

(I would think that yes it does but i'm not 100%)

@soyarsauce
Copy link
Contributor

The ideal state for this would be that it gets loaded in if it detects an access token, so that you can change it with config without needing code change.

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.

2 participants