You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/vercel-edge/src/sdk.ts
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ import type { Client, Integration, Options } from '@sentry/core';
10
10
import{
11
11
consoleIntegration,
12
12
createStackParser,
13
+
debug,
13
14
dedupeIntegration,
14
15
functionToStringIntegration,
15
16
getCurrentScope,
@@ -18,7 +19,6 @@ import {
18
19
hasSpansEnabled,
19
20
inboundFiltersIntegration,
20
21
linkedErrorsIntegration,
21
-
logger,
22
22
nodeStackLineParser,
23
23
requestDataIntegration,
24
24
SDK_VERSION,
@@ -135,14 +135,14 @@ function validateOpenTelemetrySetup(): void {
135
135
136
136
for(constkofrequired){
137
137
if(!setup.includes(k)){
138
-
logger.error(
138
+
debug.error(
139
139
`You have to set up the ${k}. Without this, the OpenTelemetry & Sentry integration will not work properly.`,
140
140
);
141
141
}
142
142
}
143
143
144
144
if(!setup.includes('SentrySampler')){
145
-
logger.warn(
145
+
debug.warn(
146
146
'You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.',
147
147
);
148
148
}
@@ -182,19 +182,21 @@ export function setupOtel(client: VercelEdgeClient): void {
182
182
}
183
183
184
184
/**
185
-
* Setup the OTEL logger to use our own logger.
185
+
* Setup the OTEL logger to use our own debug logger.
0 commit comments