File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/en/docs/demo/services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
5050import { XMLHttpRequestInstrumentation } from ' @opentelemetry/instrumentation-xml-http-request' ;
5151import { FetchInstrumentation } from ' @opentelemetry/instrumentation-fetch' ;
5252import { registerInstrumentations } from ' @opentelemetry/instrumentation' ;
53- import { Resource } from ' @opentelemetry/resources' ;
53+ import { resourceFromAttributes } from ' @opentelemetry/resources' ;
5454import {
5555 ATTR_DEVICE_ID ,
5656 ATTR_OS_NAME ,
@@ -72,7 +72,7 @@ import { SessionIdProcessor } from '@/utils/SessionIdProcessor';
7272const Tracer = async () => {
7373 const localhost = await getLocalhost ();
7474
75- const resource = new Resource ({
75+ const resource = resourceFromAttributes ({
7676 [ATTR_SERVICE_NAME ]: ' react-native-app' ,
7777 [ATTR_OS_NAME ]: Platform .OS ,
7878 [ATTR_OS_VERSION ]: getSystemVersion (),
You can’t perform that action at this time.
0 commit comments