File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
packages/traceloop-sdk/src/lib Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,13 @@ 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
+ if ( ! options . silenceInitializationMessage ) {
74
+ console . log (
75
+ `Traceloop exporting traces to ${
76
+ _configuration . exporter ? "a custom exporter" : _configuration . baseUrl
77
+ } `,
78
+ ) ;
79
+ }
78
80
79
81
startTracing ( _configuration ) ;
80
82
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