setTags() function can be used to give tags for any occurring errors. Tags can contain some important error information like release stage, plan, date. Using these tags, you can easily access specific errors.

Syntax

atatus.setTags(tags)

Parameter

Parameter Type Description
tags String array (Required) List of tag names.

Example

You can pass the tag object to the config call() as follows.

copy
icon/buttons/copy
atatus.config('YOUR_API_KEY', { tags: ['production', 'premium'] }).install();

The setTags() function can be set a as follows.

copy
icon/buttons/copy
atatus.setTags(['production', 'premium']);

On notify call:

You can pass tag as a third parameter during a notify call.

copy
icon/buttons/copy
atatus.notify(err, null, ['production', 'premium']);