@@ -28,7 +28,9 @@ const FrontendTracer = async () => {
28
28
let resource = new Resource ({
29
29
[SEMRESATTRS_SERVICE_NAME ]: NEXT_PUBLIC_OTEL_SERVICE_NAME ,
30
30
});
31
- const detectedResources = detectResourcesSync ({ detectors: [browserDetector] });
31
+ const detectedResources = detectResourcesSync ({
32
+ detectors: [browserDetector],
33
+ });
32
34
resource = resource .merge (detectedResources);
33
35
34
36
const provider = new WebTracerProvider ({
@@ -37,11 +39,13 @@ const FrontendTracer = async () => {
37
39
new SessionIdProcessor (),
38
40
new BatchSpanProcessor (
39
41
new OTLPTraceExporter ({
40
- url: NEXT_PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT || ' http://localhost:4318/v1/traces' ,
42
+ url:
43
+ NEXT_PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT ||
44
+ ' http://localhost:4318/v1/traces' ,
41
45
}),
42
46
{
43
47
scheduledDelayMillis: 500 ,
44
- }
48
+ },
45
49
),
46
50
],
47
51
});
@@ -53,7 +57,8 @@ const FrontendTracer = async () => {
53
57
propagator: new CompositePropagator ({
54
58
propagators: [
55
59
new W3CBaggagePropagator (),
56
- new W3CTraceContextPropagator ()],
60
+ new W3CTraceContextPropagator (),
61
+ ],
57
62
}),
58
63
});
59
64
0 commit comments