Skip to content

michalzubkowicz/angular2-stackdriver-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular2-stackdriver-typescript

Angular 2-6 stackdriver reporting class written in TypeScript Based on: https://github.com/GoogleCloudPlatform/stackdriver-errors-js

This class can be used with Angular Error handler to report errors to Google Stackdriver.

At first in ErrorHandler create instance of class

constructor(injector: Injector) {
        this.errorReportingInstance = new StackdriverErrorReporterSSR({
                key: STACKDRIVER_API_KEY,
                projectId: STACKDRIVER_PROJECT_ID,
                service: STACKDRIVER_SERVICE,
            }, injector.get(HttpClient));
    }

then you can report errors with:

this.errorReportingInstance.report()

Then go to https://console.cloud.google.com/errors to see errors.

About

Angular 2-6 stackdriver reporting class written in typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published