UNPKG

@rxap/ngx-sentry

Version:

This package provides utilities for initializing Sentry in Angular applications. It includes functions to determine the Sentry environment and release based on the application's environment, and a function to initialize Sentry with these configurations. I

23 lines (12 loc) 658 B
[@rxap/ngx-sentry](../wiki/globals) / DetermineSentryEnvironment # Function: DetermineSentryEnvironment() > **DetermineSentryEnvironment**(`environment`): `undefined` \| `string` Defined in: [determine-sentry-environment.ts:14](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/sentry/src/lib/determine-sentry-environment.ts#L14) Determines the sentry environment based on the build info object. If the tier is local return undefined. If the tier is production determine the environment based on the tag and branch name. ## Parameters ### environment `Environment` ## Returns `undefined` \| `string`