@hue-run/sdk 0.18.1 → 0.19.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/dist/types.d.ts CHANGED
@@ -136,11 +136,13 @@ export interface ExportReport {
136
136
  instrumentationFailures: number;
137
137
  /** Whole span attributes, inline media, attachments and opted-in file helper uploads stored
138
138
  * apart from their records (or already held by Hue), each listed under the record's
139
- * `hue.blobs`. */
139
+ * `hue.blobs`; counted when the upload completes, which can be after the export that listed
140
+ * it. */
140
141
  uploadedValues: number;
141
142
  /** Whole-attribute, inline-media, attachment and opted-in file helper uploads that could not be
142
- * attached. Content falls back to truncation, media digests, or file metadata, with a warning
143
- * issue. */
143
+ * attached, each with a warning issue: values exported in their fallback form (truncation,
144
+ * media digests, or file metadata), and values whose upload failed after their record was
145
+ * exported (their `hue.blobs` entries stay). */
144
146
  uploadFallbacks: number;
145
147
  }
146
148
  /** Caller budget for {@link HueClient.flushSafe} and {@link HueClient.shutdownSafe}. */
@@ -256,11 +258,19 @@ export interface FileRecord {
256
258
  mediaType: string;
257
259
  /** Hex SHA-256 of the file's bytes; computed from `data` when omitted. */
258
260
  sha256?: string;
259
- /** Upload supplied bytes on this span when content capture is enabled. Defaults to false. */
261
+ /** Upload the file's bytes (`data`, or the file at `path`) on this span when content capture is
262
+ * enabled. Defaults to false. */
260
263
  upload?: boolean;
261
264
  /** The file's bytes, hashed and measured locally by default; a string is hashed as UTF-8.
262
- * Data larger than 25 MiB is omitted and counted as an instrumentation failure. */
265
+ * Data larger than 25 MiB, which would be held in memory until it is uploaded, is omitted and
266
+ * counted as an instrumentation failure. Give `data` or `path`, not both. */
263
267
  data?: Uint8Array | string;
268
+ /** A file to hash and measure locally (Node.js file system) instead of `data`. Up to 25 MiB it is
269
+ * read now, as `data` is. A larger regular file, up to Hue's 1 GB upload limit, is hashed now a
270
+ * slice at a time and, with `upload: true`, read again from disk when it is uploaded: it must
271
+ * stay unchanged until the client flushes, and is uploaded only if it still has the size and
272
+ * SHA-256 it was recorded with (otherwise it counts as an upload fallback). */
273
+ path?: string;
264
274
  /** Size in bytes; computed from `data` when omitted. */
265
275
  byteSize?: number;
266
276
  /** File name, recorded as `hue.file.name` only when `captureContent` is true. */
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** Package version shared by the instrumentation scope and the export User-Agent. */
2
- export declare const sdkVersion = "0.18.1";
2
+ export declare const sdkVersion = "0.19.0";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/write-version.mjs from package.json; do not edit by hand.
2
2
  /** Package version shared by the instrumentation scope and the export User-Agent. */
3
- export const sdkVersion = "0.18.1";
3
+ export const sdkVersion = "0.19.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hue-run/sdk",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {