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) 620 B
[@rxap/ngx-sentry](../wiki/globals) / DetermineSentryRelease # Function: DetermineSentryRelease() > **DetermineSentryRelease**(`environment`): `undefined` \| `string` Defined in: [determine-sentry-release.ts:11](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/sentry/src/lib/determine-sentry-release.ts#L11) Determines the sentry release based on the build info object. If the tier is local return undefined. If the tier is production return the tag value as release or undefined. ## Parameters ### environment `Environment` ## Returns `undefined` \| `string`