@sentry/core 10.40.0 → 10.41.0-beta.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/cjs/integrations/consola.js.map +1 -1
- package/build/cjs/tracing/ai/mediaStripping.js +135 -0
- package/build/cjs/tracing/ai/mediaStripping.js.map +1 -0
- package/build/cjs/tracing/ai/messageTruncation.js +18 -60
- package/build/cjs/tracing/ai/messageTruncation.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/index.js +1 -1
- package/build/cjs/tracing/anthropic-ai/index.js.map +1 -1
- package/build/cjs/tracing/google-genai/index.js +1 -1
- package/build/cjs/tracing/google-genai/index.js.map +1 -1
- package/build/cjs/tracing/openai/index.js +1 -1
- package/build/cjs/tracing/openai/index.js.map +1 -1
- package/build/cjs/utils/version.js +1 -1
- package/build/cjs/utils/version.js.map +1 -1
- package/build/esm/integrations/consola.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/tracing/ai/mediaStripping.js +132 -0
- package/build/esm/tracing/ai/mediaStripping.js.map +1 -0
- package/build/esm/tracing/ai/messageTruncation.js +12 -54
- package/build/esm/tracing/ai/messageTruncation.js.map +1 -1
- package/build/esm/tracing/anthropic-ai/index.js +1 -1
- package/build/esm/tracing/anthropic-ai/index.js.map +1 -1
- package/build/esm/tracing/google-genai/index.js +1 -1
- package/build/esm/tracing/google-genai/index.js.map +1 -1
- package/build/esm/tracing/openai/index.js +1 -1
- package/build/esm/tracing/openai/index.js.map +1 -1
- package/build/esm/utils/version.js +1 -1
- package/build/esm/utils/version.js.map +1 -1
- package/build/types/integrations/consola.d.ts +8 -1
- package/build/types/integrations/consola.d.ts.map +1 -1
- package/build/types/tracing/ai/mediaStripping.d.ts +40 -0
- package/build/types/tracing/ai/mediaStripping.d.ts.map +1 -0
- package/build/types/tracing/ai/messageTruncation.d.ts.map +1 -1
- package/build/types/types-hoist/replay.d.ts +1 -0
- package/build/types/types-hoist/replay.d.ts.map +1 -1
- package/build/types-ts3.8/integrations/consola.d.ts +8 -1
- package/build/types-ts3.8/tracing/ai/mediaStripping.d.ts +40 -0
- package/build/types-ts3.8/types-hoist/replay.d.ts +4 -0
- package/package.json +1 -1
|
@@ -112,13 +112,20 @@ export interface ConsolaLogObject {
|
|
|
112
112
|
/**
|
|
113
113
|
* The raw arguments passed to the log method.
|
|
114
114
|
*
|
|
115
|
-
*
|
|
115
|
+
* These args are typically formatted into the final `message`. In Consola reporters, `message` is not provided.
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
118
|
* ```ts
|
|
119
119
|
* consola.info('Hello', 'world', { user: 'john' });
|
|
120
120
|
* // args = ['Hello', 'world', { user: 'john' }]
|
|
121
121
|
* ```
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```ts
|
|
125
|
+
* // `message` is a reserved property in Consola
|
|
126
|
+
* consola.log({ message: 'Hello' });
|
|
127
|
+
* // args = ['Hello']
|
|
128
|
+
* ```
|
|
122
129
|
*/
|
|
123
130
|
args?: unknown[];
|
|
124
131
|
/**
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline media content source, with a potentially very large base64
|
|
3
|
+
* blob or data: uri.
|
|
4
|
+
*/
|
|
5
|
+
export type ContentMedia = Record<string, unknown> & ({
|
|
6
|
+
media_type: string;
|
|
7
|
+
data: string;
|
|
8
|
+
} | {
|
|
9
|
+
image_url: string;
|
|
10
|
+
} | {
|
|
11
|
+
image_url: {
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
type: 'blob' | 'base64';
|
|
16
|
+
content: string;
|
|
17
|
+
} | {
|
|
18
|
+
b64_json: string;
|
|
19
|
+
} | {
|
|
20
|
+
uri: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: 'input_audio';
|
|
23
|
+
input_audio: {
|
|
24
|
+
data: string;
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
type: 'file';
|
|
28
|
+
file: {
|
|
29
|
+
file_data?: string;
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Check if a content part is an OpenAI/Anthropic media source
|
|
34
|
+
*/
|
|
35
|
+
export declare function isContentMedia(part: unknown): part is ContentMedia;
|
|
36
|
+
/**
|
|
37
|
+
* Replace inline binary data in a single media content part with a placeholder.
|
|
38
|
+
*/
|
|
39
|
+
export declare function stripInlineMediaFromSingleMessage(part: ContentMedia): ContentMedia;
|
|
40
|
+
//# sourceMappingURL=mediaStripping.d.ts.map
|
|
@@ -8,6 +8,10 @@ export interface ReplayEvent extends Event {
|
|
|
8
8
|
replay_start_timestamp?: number;
|
|
9
9
|
error_ids: string[];
|
|
10
10
|
trace_ids: string[];
|
|
11
|
+
traces_by_timestamp: [
|
|
12
|
+
number,
|
|
13
|
+
string
|
|
14
|
+
][];
|
|
11
15
|
replay_id: string;
|
|
12
16
|
segment_id: number;
|
|
13
17
|
replay_type: ReplayRecordingMode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/core",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.41.0-beta.0",
|
|
4
4
|
"description": "Base implementation for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/core",
|