File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { trace } from '@opentelemetry/api';
44import type { BasicTracerProvider } from '@opentelemetry/sdk-trace-base' ;
55import type { ServerRuntimeClientOptions } from '@sentry/core' ;
66import { SDK_VERSION , ServerRuntimeClient , applySdkMetadata } from '@sentry/core' ;
7+ import { logger } from '@sentry/utils' ;
8+ import { isMainThread , threadId } from 'worker_threads' ;
79import type { NodeClientOptions } from '../types' ;
810
911/** A client for using Sentry with Node & OpenTelemetry. */
@@ -21,6 +23,10 @@ export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
2123
2224 applySdkMetadata ( clientOptions , 'node' ) ;
2325
26+ logger . log (
27+ `Initializing Sentry: process: ${ process . pid } , thread: ${ isMainThread ? 'main' : `worker-${ threadId } ` } .` ,
28+ ) ;
29+
2430 super ( clientOptions ) ;
2531 }
2632
You can’t perform that action at this time.
0 commit comments