@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/CLI.md +16 -12
- package/EVALUATIONS.md +1 -1
- package/README.md +135 -74
- package/dist/attachment.d.ts +51 -7
- package/dist/attachment.js +141 -33
- package/dist/blobs.d.ts +136 -40
- package/dist/blobs.js +535 -225
- package/dist/cli/langfuse.d.ts +21 -5
- package/dist/cli/langfuse.js +123 -16
- package/dist/client.d.ts +20 -11
- package/dist/client.js +81 -41
- package/dist/inline-files.d.ts +5 -4
- package/dist/inline-files.js +6 -5
- package/dist/json-edits.js +26 -7
- package/dist/large-media.d.ts +118 -0
- package/dist/large-media.js +422 -0
- package/dist/snapshot.d.ts +2 -0
- package/dist/snapshot.js +19 -1
- package/dist/transport.d.ts +39 -7
- package/dist/transport.js +262 -75
- package/dist/types.d.ts +15 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
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
|
|
143
|
-
*
|
|
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
|
|
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
|
|
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.
|
|
2
|
+
export declare const sdkVersion = "0.19.0";
|
package/dist/version.js
CHANGED