Skip to content

Can I call errorHandler.setUser() before errorHandler.start()? #112

@ZYinMD

Description

@ZYinMD
const errorHandler = new StackdriverErrorReporter();
errorHandler.setUser('some_user_id');
errorHandler.start({ ...config, service: 'some_service_name' });

README says setUser can be called "at any time", but I just want to confirm, can I call it before start()?

In my code, I call setUser() when user id becomes available, and call start() when service name becomes available, and I can't guarantee their order.

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions