File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
docs/docs/docs/interop-otel Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -65,25 +65,18 @@ const resource = resourceFromAttributes({
6565 ' os.version' : getSystemVersion (),
6666});
6767
68+ // Configure the OpenTelemetry TracerProvider to use Ottrelite's capabilities
6869const tracerProvider = new OttreliteTracerProvider ({
6970 spanProcessors: [
70- // optional step: configure Ottrelite's span processor (required for live tracing in dev)
71+ // Register the DevSpanProcessorInterceptor for live tracing in development
7172 new DevSpanProcessorInterceptor (),
72-
73- // optional step: configure Ottrelite's actual exporter using a preferred processor of choice
74- new SimpleSpanProcessor (
75- new OttreliteExporterOTLP ({
76- endpoint: ' http://localhost:4318/v1/' ,
77- })
78- ),
7973 ],
8074 resource ,
8175});
8276
83- // register the React Native tracer provider
8477tracerProvider .register ();
8578
86- // configure the OpenTelemetry MeterProvider to use Ottrelite's capabilities
79+ // Configure the OpenTelemetry MeterProvider to use Ottrelite's capabilities
8780const meterProvider = new OttreliteMeterProvider ({
8881 resource ,
8982});
You can’t perform that action at this time.
0 commit comments