Skip to content

Commit 4097065

Browse files
committed
Typo
1 parent 51e639c commit 4097065

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/node-core/src/sdk/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DEFAULT_CLIENT_REPORT_FLUSH_INTERVAL_MS = 60_000; // 60s was chosen arbitr
1515
/** A client for using Sentry with Node & OpenTelemetry. */
1616
export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
1717
public traceProvider: BasicTracerProvider | undefined;
18-
public asyncLocalStroageLookup: AsyncLocalStorageLookup | undefined;
18+
public asyncLocalStorageLookup: AsyncLocalStorageLookup | undefined;
1919

2020
private _tracer: Tracer | undefined;
2121
private _clientReportInterval: NodeJS.Timeout | undefined;

packages/node-native/src/event-loop-block-integration.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ function startPolling(
5959
client: NodeClient,
6060
integrationOptions: Partial<ThreadBlockedIntegrationOptions>,
6161
): IntegrationInternal | undefined {
62-
if (client.asyncLocalStroageLookup) {
63-
registerThread({
64-
asyncLocalStorage: client.asyncLocalStroageLookup.asyncLocalStorage,
65-
stateLookup: ['_currentContext', client.asyncLocalStroageLookup.contextSymbol],
66-
});
62+
if (client.asyncLocalStorageLookup) {
63+
const { asyncLocalStorage, contextSymbol } = client.asyncLocalStorageLookup;
64+
registerThread({ asyncLocalStorage, stateLookup: ['_currentContext', contextSymbol] });
6765
} else {
6866
registerThread();
6967
}

packages/node/src/sdk/initOtel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export function initOpenTelemetry(client: NodeClient, options: AdditionalOpenTel
3939
setupOpenTelemetryLogger();
4040
}
4141

42-
const [provider, asyncLocalStroageLookup] = setupOtel(client, options);
42+
const [provider, asyncLocalStorageLookup] = setupOtel(client, options);
4343
client.traceProvider = provider;
44-
client.asyncLocalStroageLookup = asyncLocalStroageLookup;
44+
client.asyncLocalStorageLookup = asyncLocalStorageLookup;
4545
}
4646

4747
interface NodePreloadOptions {

0 commit comments

Comments
 (0)