File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
sdk/highlight-run/src/client/otel Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,18 @@ const observabilitySettings: ConstructorParameters<typeof Observability>[0] = {
1616}
1717const sessionReplaySettings : ConstructorParameters < typeof SessionReplay > [ 0 ] = {
1818 debug : { clientInteractions : true , domRecording : true } ,
19+ environment : 'production' ,
20+ inlineImages : true ,
21+ inlineStylesheet : true ,
1922 privacySetting : 'none' ,
2023 serviceName : 'ryan-test' ,
2124 backendUrl : 'http://localhost:8082/public' ,
2225 manualStart : true ,
26+ enableCanvasRecording : true ,
27+ samplingStrategy : {
28+ canvas : 2 , // 2 fps
29+ canvasMaxSnapshotDimension : 720 , // 720p quality
30+ } ,
2331}
2432
2533export const client = init (
Original file line number Diff line number Diff line change @@ -95,7 +95,10 @@ export const setupBrowserTracing = (
9595 config : BrowserTracingConfig ,
9696 sampler : ExportSampler ,
9797) => {
98- if ( providers . tracerProvider !== undefined ) {
98+ if (
99+ providers . tracerProvider !== undefined &&
100+ providers . meterProvider !== undefined
101+ ) {
99102 console . warn ( 'OTEL already initialized. Skipping...' )
100103 return
101104 }
You can’t perform that action at this time.
0 commit comments