@minecraft/diagnostics 1.0.0-beta.1.21.90-preview.21 → 1.0.0-beta.1.21.90-preview.25

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.
Files changed (2) hide show
  1. package/index.d.ts +27 -1
  2. package/package.json +3 -2
package/index.d.ts CHANGED
@@ -22,6 +22,7 @@
22
22
  *
23
23
  */
24
24
  import * as minecraftcommon from '@minecraft/common';
25
+ import * as minecraftserveradmin from '@minecraft/server-admin';
25
26
  /**
26
27
  * This defines the severity level of the breadcrumb. Levels
27
28
  * are used in the UI to emphasize and deemphasize the crumb.
@@ -130,6 +131,13 @@ export class Sentry {
130
131
  * module.
131
132
  */
132
133
  export interface SentryOptions {
134
+ /**
135
+ * @remarks
136
+ * When set to true, additional content logging from the Sentry
137
+ * system will be enabled. Defaults to false.
138
+ *
139
+ */
140
+ debug?: boolean;
133
141
  /**
134
142
  * @remarks
135
143
  * The fully qualified DSN for a Sentry project. See Sentry
@@ -137,7 +145,25 @@ export interface SentryOptions {
137
145
  * https://docs.sentry.io/concepts/key-terms/dsn-explainer/
138
146
  *
139
147
  */
140
- dsn: string;
148
+ dsn: minecraftserveradmin.SecretString | string;
149
+ /**
150
+ * @remarks
151
+ * The maximum number of breadcrumbs (submitted via {@link
152
+ * Sentry.addBreadcrumb}) to store and report per error event
153
+ * to Sentry. Default is 20, supported values range from 0 (no
154
+ * breadcrumbs) to 100.
155
+ *
156
+ */
157
+ maxBreadcrumbs?: number;
158
+ /**
159
+ * @remarks
160
+ * A number between 0 and 1 that indicates the percentage of
161
+ * events that should be sent to Sentry. For example, a value
162
+ * of 0.5 means that 50% of events will be sent. Default is 1
163
+ * (100% of events). 0 means no events will be sent.
164
+ *
165
+ */
166
+ sampleRate?: number;
141
167
  }
142
168
 
143
169
  // @ts-ignore Class inheritance allowed for native defined classes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/diagnostics",
3
- "version": "1.0.0-beta.1.21.90-preview.21",
3
+ "version": "1.0.0-beta.1.21.90-preview.25",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {
@@ -13,7 +13,8 @@
13
13
  }
14
14
  ],
15
15
  "dependencies": {
16
- "@minecraft/common": "^1.0.0"
16
+ "@minecraft/common": "^1.0.0",
17
+ "@minecraft/server-admin": "^1.0.0-beta.1.21.90-preview.25"
17
18
  },
18
19
  "license": "MIT"
19
20
  }