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';
4
4
import type { BasicTracerProvider } from '@opentelemetry/sdk-trace-base' ;
5
5
import type { ServerRuntimeClientOptions } from '@sentry/core' ;
6
6
import { SDK_VERSION , ServerRuntimeClient , applySdkMetadata } from '@sentry/core' ;
7
+ import { logger } from '@sentry/utils' ;
8
+ import { isMainThread , threadId } from 'worker_threads' ;
7
9
import type { NodeClientOptions } from '../types' ;
8
10
9
11
/** A client for using Sentry with Node & OpenTelemetry. */
@@ -21,6 +23,10 @@ export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
21
23
22
24
applySdkMetadata ( clientOptions , 'node' ) ;
23
25
26
+ logger . log (
27
+ `Initializing Sentry: process: ${ process . pid } , thread: ${ isMainThread ? 'main' : `worker-${ threadId } ` } .` ,
28
+ ) ;
29
+
24
30
super ( clientOptions ) ;
25
31
}
26
32
You can’t perform that action at this time.
0 commit comments