Skip to content
@archipel/platform-analytics Auto-generated

@breadstone/archipel-platform-analytics

Classes

ClassDescription
AnalyticsClientPortAbstract port for analytics and error tracking clients. Each provider (Sentry, Application Insights, Datadog) must implement this contract so that the consuming application can switch providers without changing business logic.
AnalyticsHealthIndicatorHealth indicator for the analytics infrastructure. Calls AnalyticsClientPort.ping to verify provider readiness.
AnalyticsModuleNestJS module providing generic analytics and error tracking infrastructure. The specific analytics provider (Sentry, Application Insights, Datadog) is selected via the options.
AppInsightsAnalyticsClientAzure Application Insights implementation of the AnalyticsClientPort. Uses the applicationinsights SDK for error tracking and analytics.
DatadogAnalyticsClientDatadog implementation of the AnalyticsClientPort. Uses the dd-trace SDK for error tracking and analytics.
NoopAnalyticsClientNo-op implementation of the AnalyticsClientPort. Suitable for development, testing, or environments where analytics is disabled.
SentryAnalyticsClientSentry implementation of the AnalyticsClientPort. Uses the official @sentry/node SDK for error tracking and analytics.

Interfaces

InterfaceDescription
IAnalyticsBreadcrumbRepresents a breadcrumb entry for analytics trail.
IAnalyticsModuleOptionsConfiguration options for the AnalyticsModule.
IAnalyticsUserRepresents user context for analytics tracking.

Type Aliases

Type AliasDescription
AnalyticsLevelSeverity level for analytics messages.

Variables

VariableDescription
APPINSIGHTS_CONFIG_ENTRIESConfiguration entries required by the Application Insights analytics provider.
APPLICATIONINSIGHTS_CONNECTION_STRINGApplication Insights connection string.
DATADOG_CONFIG_ENTRIESConfiguration entries required by the Datadog analytics provider.
DD_ENVDatadog environment identifier (e.g. production, staging).
DD_SERVICEDatadog service name.
SENTRY_CONFIG_ENTRIESConfiguration entries required by the Sentry analytics provider.
SENTRY_DSNSentry DSN for error tracking.
SENTRY_ENVIRONMENTSentry environment identifier (e.g. production, staging).

Released under the MIT License.