@wix/monitoring-types 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.mts CHANGED
@@ -143,4 +143,25 @@ interface EventData {
143
143
  contexts: EventContexts;
144
144
  }
145
145
 
146
- export type { Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
146
+ /**
147
+ * Represents the configuration for app's monitoring.
148
+ * The configuration includes the type of monitoring provider and its options.
149
+ * Currently, only Sentry is supported as a monitoring provider.
150
+ */
151
+ interface AppMonitoringConfig {
152
+ /**
153
+ * The type of monitoring provider.
154
+ */
155
+ type: 'SENTRY' | 'UNKNOWN_PROVIDER';
156
+ /**
157
+ * The options for the Sentry monitoring provider.
158
+ */
159
+ sentryOptions?: {
160
+ /**
161
+ * The Data Source Name (DSN) for the Sentry monitoring provider.
162
+ */
163
+ dsn: string;
164
+ };
165
+ }
166
+
167
+ export type { AppMonitoringConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
package/build/index.d.ts CHANGED
@@ -143,4 +143,25 @@ interface EventData {
143
143
  contexts: EventContexts;
144
144
  }
145
145
 
146
- export type { Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
146
+ /**
147
+ * Represents the configuration for app's monitoring.
148
+ * The configuration includes the type of monitoring provider and its options.
149
+ * Currently, only Sentry is supported as a monitoring provider.
150
+ */
151
+ interface AppMonitoringConfig {
152
+ /**
153
+ * The type of monitoring provider.
154
+ */
155
+ type: 'SENTRY' | 'UNKNOWN_PROVIDER';
156
+ /**
157
+ * The options for the Sentry monitoring provider.
158
+ */
159
+ sentryOptions?: {
160
+ /**
161
+ * The Data Source Name (DSN) for the Sentry monitoring provider.
162
+ */
163
+ dsn: string;
164
+ };
165
+ }
166
+
167
+ export type { AppMonitoringConfig, Breadcrumb, CaptureContext, Context, Contexts, EventContexts, EventData, EventTags, HostMonitoringContext, MonitoringClient, Primitive, Span, SpanContextData, SpanOptions, Tags };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/monitoring-types",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Gili Shohat",
@@ -29,12 +29,12 @@
29
29
  "*.{js,ts}": "yarn lint"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^20.17.9",
32
+ "@types/node": "^20.17.12",
33
33
  "eslint": "^8.57.1",
34
34
  "eslint-config-sdk": "0.0.0",
35
35
  "tsup": "^7.3.0",
36
- "type-fest": "^4.30.0",
37
- "typescript": "^5.7.2"
36
+ "type-fest": "^4.32.0",
37
+ "typescript": "^5.7.3"
38
38
  },
39
39
  "eslintConfig": {
40
40
  "extends": "sdk"
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "falconPackageHash": "bd69f930cc46357892253469b784dd021a0899632b9f1cbb0104035a"
56
+ "falconPackageHash": "f5b6aae3eca514279438277851c0c6ab98b89f570229a737e9274223"
57
57
  }