Star us on GitHub
Star
Menu

Environments

Environments can be assigned to sessions and errors by setting the environment option in H.init(). With the assignment, you can know search and filter sessions and errors based on the environment they come from.

Environments are also used to determine whether Alerts are created.

Example
H.init('<YOUR_PROJECT_ID>', { environment: process.env.ENVIRONMENT, })
Copy