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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ Ottrelite provides interoperability with OpenTelemetry (OTEL) through a set of a
6
6
7
7
#### Javascript
8
8
9
-
Firstly, Ottrelite provides its own `TracerProvider` ([`OttreliteTracerProvider.ts`](./src/otel/OttreliteTracerProvider.ts)) that provides adequate configuration for JS (configures the default resource to carry ottrelite's metadata, registers W3C & trace context baggage propagators, by default - `StackContextManager`). Invoking `register` on it, apart from the aforementioned, also calls invokes configuration of the global C++ API provider, described in the section below.
9
+
Firstly, Ottrelite provides its own `TracerProvider` ([`OttreliteTracerProvider.ts`](https://github.com/callstackincubator/ottrelite/blob/main/packages/interop-otel/src/otel/OttreliteTracerProvider.ts)) that provides adequate configuration for JS (configures the default resource to carry ottrelite's metadata, registers W3C & trace context baggage propagators, by default - `StackContextManager`). Invoking `register` on it, apart from the aforementioned, also calls invokes configuration of the global C++ API provider, described in the section below.
10
10
11
-
The analogous applies to [`OttreliteMeterProvider`](src/otel/OttreliteMeterProvider.ts). An implementation detail difference is that the meter provider hooks into returned instrument creation methods & their return values dynamically by replacing properties on instances, to call its own logic before the original is executed.
11
+
The analogous applies to [`OttreliteMeterProvider`](https://github.com/callstackincubator/ottrelite/blob/main/packages/interop-otel/src/otel/OttreliteMeterProvider.ts). An implementation detail difference is that the meter provider hooks into returned instrument creation methods & their return values dynamically by replacing properties on instances, to call its own logic before the original is executed.
12
12
13
-
The OTEL API is also hooked into by the [`DevSpanProcessorInterceptor.ts`](src/otel/processor/DevSpanProcessorInterceptor.ts), which can be registered to propagate all OTEL spans live to the [Development API](../../README.md#development-api).
13
+
The OTEL API is also hooked into by the [`DevSpanProcessorInterceptor.ts`](https://github.com/callstackincubator/ottrelite/blob/main/packages/interop-otel/src/otel/processor/DevSpanProcessorInterceptor.ts), which can be registered to propagate all OTEL spans live to the [Development API](https://callstackincubator.github.io/ottrelite/docs/core/quick-start.html#development-api-1).
14
14
15
15
#### C++
16
16
@@ -53,7 +53,7 @@ After codegen-ing the C++ glue code from this spec, implement the exporter in C+
53
53
54
54
Those methods are standard for OTEL exporters in according to its specification, yet the methods accept internal Ottrelite object types.
55
55
56
-
The `OTLPExporterConfig` is Nitro-codegened from [`OTLPExporterConfig.ts`](src/types/OTLPExporterConfig.ts) and represents the most important JS configuration for exporters in general. If some more configuration levels are needed to be covered, please file a PR or issue.
56
+
The `OTLPExporterConfig` is Nitro-codegened from [`OTLPExporterConfig.ts`](https://github.com/callstackincubator/ottrelite/blob/main/packages/interop-otel/src/types/OTLPExporterConfig.ts) and represents the most important JS configuration for exporters in general. If some more configuration levels are needed to be covered, please file a PR or issue.
57
57
58
58
The `ExportResult` is trivial and is a 1:1 CPP-JS mapping of the result type.
0 commit comments