You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/docs/interop-otel/quick-start.mdx
+74Lines changed: 74 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,80 @@ The global C++ Tracer and Meter Providers are registered - respectively - from `
31
31
> [!WARNING]
32
32
> Invoking the aforementioned install methods more than once will discard all previously registered C++ tracer/meter exporters. It is important to first register all the tracer/meter exporters in JS, and then call the `register()` methods of `OttreliteTracerProvider` and `OttreliteMeterProvider` in JS.
// optional step: register instrumentations; Ottrelite integrates with the OTEL JS API, therefore allowing to
93
+
// use the same instrumentations as you would with OpenTelemetry JS
94
+
// the below example shows a few common instrumentations, but you can add more as needed, inspired by https://opentelemetry.io/docs/demo/services/react-native-app/
95
+
registerInstrumentations({
96
+
instrumentations: [
97
+
newFetchInstrumentation({
98
+
clearTimingResources: false,
99
+
propagateTraceHeaderCorsUrls:/.*/,
100
+
}),
101
+
newXMLHttpRequestInstrumentation({
102
+
ignoreUrls: [/\/fetch-urls\/.*/],
103
+
}),
104
+
],
105
+
});
106
+
```
107
+
34
108
#### Configuration
35
109
36
110
The `Ottrelite.install` method accepts 3 C++ OTEL SDK - specific configuration options:
0 commit comments