Skip to content

Commit 51f139c

Browse files
authored
feat: Update JavaScript SDKs to v10.22.0 (#1256)
1 parent ed3a3e4 commit 51f139c

File tree

7 files changed

+135
-112
lines changed

7 files changed

+135
-112
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@
105105
"e2e": "xvfb-maybe vitest run --root=./test/e2e --silent=false --disable-console-intercept"
106106
},
107107
"dependencies": {
108-
"@sentry/browser": "10.17.0",
109-
"@sentry/core": "10.17.0",
110-
"@sentry/node": "10.17.0"
108+
"@sentry/browser": "10.22.0",
109+
"@sentry/core": "10.22.0",
110+
"@sentry/node": "10.22.0"
111111
},
112112
"peerDependencies": {
113-
"@sentry/node-native": "10.17.0"
113+
"@sentry/node-native": "10.22.0"
114114
},
115115
"peerDependenciesMeta": {
116116
"@sentry/node-native": {
@@ -119,9 +119,9 @@
119119
},
120120
"devDependencies": {
121121
"@rollup/plugin-typescript": "^12.1.3",
122-
"@sentry/node-native": "10.17.0",
123-
"@sentry-internal/eslint-config-sdk": "10.17.0",
124-
"@sentry-internal/typescript": "10.17.0",
122+
"@sentry/node-native": "10.22.0",
123+
"@sentry-internal/eslint-config-sdk": "10.22.0",
124+
"@sentry-internal/typescript": "10.22.0",
125125
"@types/busboy": "^1.5.4",
126126
"@types/koa": "^2.0.52",
127127
"@types/koa-bodyparser": "^4.3.0",

src/main/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export {
3838
continueTrace,
3939
createConsolaReporter,
4040
createGetModuleFromFilename,
41+
createLangChainCallbackHandler,
4142
createSentryWinstonTransport,
4243
createTransport,
4344
cron,
@@ -68,6 +69,7 @@ export {
6869
getTraceData,
6970
getTraceMetaTags,
7071
googleGenAIIntegration,
72+
growthbookIntegration,
7173
graphqlIntegration,
7274
hapiIntegration,
7375
honoIntegration,
@@ -88,8 +90,10 @@ export {
8890
launchDarklyIntegration,
8991
linkedErrorsIntegration,
9092
localVariablesIntegration,
93+
langChainIntegration,
9194
logger,
9295
lruMemoizerIntegration,
96+
metrics,
9397
modulesIntegration,
9498
mongoIntegration,
9599
mongooseIntegration,
@@ -103,6 +107,7 @@ export {
103107
OpenFeatureIntegrationHook,
104108
openFeatureIntegration,
105109
parameterize,
110+
pinoIntegration,
106111
postgresIntegration,
107112
postgresJsIntegration,
108113
prismaIntegration,

src/renderer/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,22 @@ export {
6969
getTraceData,
7070
globalHandlersIntegration,
7171
graphqlClientIntegration,
72+
growthbookIntegration,
7273
httpClientIntegration,
7374
httpContextIntegration,
7475
// eslint-disable-next-line deprecation/deprecation
7576
inboundFiltersIntegration,
77+
instrumentAnthropicAiClient,
78+
instrumentGoogleGenAIClient,
79+
instrumentOpenAiClient,
7680
instrumentOutgoingRequests,
7781
instrumentSupabaseClient,
7882
isEnabled,
7983
isInitialized,
8084
lastEventId,
8185
launchDarklyIntegration,
8286
linkedErrorsIntegration,
87+
metrics,
8388
moduleMetadataIntegration,
8489
onLoad,
8590
openFeatureIntegration,

src/renderer/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface ElectronRendererOptions extends Partial<ElectronRendererOptionsInterna
5151
export function init<O extends ElectronRendererOptions>(
5252
options: ElectronRendererOptions & O = {} as ElectronRendererOptions & O,
5353
// This parameter name ensures that TypeScript error messages contain a hint for fixing SDK version mismatches
54-
originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_17_0: O) => void = browserInit,
54+
originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_22_0: O) => void = browserInit,
5555
): void {
5656
// Ensure the browser SDK is only init'ed once.
5757
if (window?.__SENTRY__RENDERER_INIT__) {

src/utility/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export {
3939
continueTrace,
4040
createConsolaReporter,
4141
createGetModuleFromFilename,
42+
createLangChainCallbackHandler,
4243
createSentryWinstonTransport,
4344
createTransport,
4445
cron,
@@ -69,6 +70,7 @@ export {
6970
getTraceData,
7071
getTraceMetaTags,
7172
googleGenAIIntegration,
73+
growthbookIntegration,
7274
graphqlIntegration,
7375
hapiIntegration,
7476
honoIntegration,
@@ -89,8 +91,10 @@ export {
8991
launchDarklyIntegration,
9092
linkedErrorsIntegration,
9193
localVariablesIntegration,
94+
langChainIntegration,
9295
logger,
9396
lruMemoizerIntegration,
97+
metrics,
9498
modulesIntegration,
9599
mongoIntegration,
96100
mongooseIntegration,
@@ -105,6 +109,7 @@ export {
105109
OpenFeatureIntegrationHook,
106110
openFeatureIntegration,
107111
parameterize,
112+
pinoIntegration,
108113
postgresIntegration,
109114
postgresJsIntegration,
110115
prismaIntegration,

test/e2e/test-apps/other/browser-profiling/test.ts

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,63 +16,51 @@ electronTestRunner(__dirname, async (ctx) => {
1616
trace: expect.objectContaining({
1717
trace_id: UUID_MATCHER,
1818
span_id: SHORT_UUID_MATCHER,
19-
data: {
19+
data: expect.objectContaining({
2020
'sentry.origin': 'manual',
2121
'sentry.sample_rate': 1,
2222
'sentry.source': 'custom',
23-
},
23+
}),
2424
origin: 'manual',
2525
}),
2626
},
2727
spans: expect.arrayContaining([
28-
{
29-
data: {
30-
'sentry.origin': 'manual',
31-
},
28+
expect.objectContaining({
3229
description: 'PBKDF2',
3330
origin: 'manual',
3431
parent_span_id: SHORT_UUID_MATCHER,
3532
span_id: SHORT_UUID_MATCHER,
3633
start_timestamp: expect.any(Number),
3734
timestamp: expect.any(Number),
3835
trace_id: UUID_MATCHER,
39-
},
40-
{
41-
data: {
42-
'sentry.origin': 'manual',
43-
},
36+
}),
37+
expect.objectContaining({
4438
description: 'PBKDF2',
4539
origin: 'manual',
4640
parent_span_id: SHORT_UUID_MATCHER,
4741
span_id: SHORT_UUID_MATCHER,
4842
start_timestamp: expect.any(Number),
4943
timestamp: expect.any(Number),
5044
trace_id: UUID_MATCHER,
51-
},
52-
{
53-
data: {
54-
'sentry.origin': 'manual',
55-
},
45+
}),
46+
expect.objectContaining({
5647
description: 'PBKDF2',
5748
origin: 'manual',
5849
parent_span_id: SHORT_UUID_MATCHER,
5950
span_id: SHORT_UUID_MATCHER,
6051
start_timestamp: expect.any(Number),
6152
timestamp: expect.any(Number),
6253
trace_id: UUID_MATCHER,
63-
},
64-
{
65-
data: {
66-
'sentry.origin': 'manual',
67-
},
54+
}),
55+
expect.objectContaining({
6856
description: 'PBKDF2',
6957
origin: 'manual',
7058
parent_span_id: SHORT_UUID_MATCHER,
7159
span_id: SHORT_UUID_MATCHER,
7260
start_timestamp: expect.any(Number),
7361
timestamp: expect.any(Number),
7462
trace_id: UUID_MATCHER,
75-
},
63+
}),
7664
]),
7765
tags: {
7866
'event.environment': 'javascript',

0 commit comments

Comments
 (0)