@wix/monitoring-types
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -147,15 +147,13 @@ type Primitive = number | string | boolean | bigint | symbol | null | undefined; | ||
/** | ||
* Represents the configuration for app's monitoring. | ||
* The configuration includes the type of monitoring provider and its options. | ||
* Currently, only Sentry is supported as a monitoring provider. | ||
* Represents the Sentry configuration for app's monitoring. | ||
*/ | ||
interface AppMonitoringConfig { | ||
interface AppMonitoringSentryConfig { | ||
/** | ||
* The type of monitoring provider. | ||
*/ | ||
type: 'SENTRY' | 'UNKNOWN_PROVIDER'; | ||
type: 'SENTRY'; | ||
/** | ||
* The options for the Sentry monitoring provider. | ||
*/ | ||
sentryOptions?: { | ||
sentryOptions: { | ||
/** | ||
@@ -167,3 +165,12 @@ * The Data Source Name (DSN) for the Sentry monitoring provider. | ||
} | ||
interface AppMonitoringUnknownConfig { | ||
type: 'UNKNOWN_PROVIDER'; | ||
} | ||
/** | ||
* Represents the configuration for app's monitoring. | ||
* The configuration includes the type of monitoring provider and its options. | ||
* Currently, only Sentry is supported as a monitoring provider. | ||
*/ | ||
type AppMonitoringConfig = AppMonitoringSentryConfig | AppMonitoringUnknownConfig; | ||
export type { AppMonitoringConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags }; | ||
export type { AppMonitoringConfig, AppMonitoringSentryConfig, AppMonitoringUnknownConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags }; |
{ | ||
"name": "@wix/monitoring-types", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"license": "UNLICENSED", | ||
@@ -32,7 +32,7 @@ "author": { | ||
"devDependencies": { | ||
"@types/node": "^20.17.12", | ||
"@types/node": "^20.17.16", | ||
"eslint": "^8.57.1", | ||
"eslint-config-sdk": "0.0.0", | ||
"tsup": "^7.3.0", | ||
"type-fest": "^4.32.0", | ||
"type-fest": "^4.33.0", | ||
"typescript": "^5.7.3" | ||
@@ -57,3 +57,3 @@ }, | ||
}, | ||
"falconPackageHash": "f5b6aae3eca514279438277851c0c6ab98b89f570229a737e9274223" | ||
"falconPackageHash": "16b0efd1adb359bc3e47b0bc0710565dd52714518346fcfcd9126e48" | ||
} |
Sorry, the diff of this file is not supported yet
12399
186