File tree 2 files changed +14
-5
lines changed
packages/traceloop-sdk/src/lib
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,14 @@ export const initialize = (options: InitializeOptions) => {
70
70
logLevelToOtelLogLevel ( options . logLevel ) ,
71
71
) ;
72
72
}
73
- console . log (
74
- `Traceloop exporting traces to ${
75
- _configuration . exporter ? "a custom exporter" : _configuration . baseUrl
76
- } `,
77
- ) ;
73
+
74
+ if ( ! options . silenceInitializationMessage ) {
75
+ console . log (
76
+ `Traceloop exporting traces to ${
77
+ _configuration . exporter ? "a custom exporter" : _configuration . baseUrl
78
+ } `,
79
+ ) ;
80
+ }
78
81
79
82
startTracing ( _configuration ) ;
80
83
initializeRegistry ( _configuration ) ;
Original file line number Diff line number Diff line change @@ -113,4 +113,10 @@ export interface InitializeOptions {
113
113
* Defaults to TRACELOOP_SYNC_DEV_POLLING_INTERVAL environment variable or 5 if not set.
114
114
*/
115
115
traceloopSyncDevPollingInterval ?: number ;
116
+
117
+ /**
118
+ * Whether to silence the initialization message. Optional.
119
+ * Defaults to false.
120
+ */
121
+ silenceInitializationMessage ?: boolean ;
116
122
}
You can’t perform that action at this time.
0 commit comments