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/concepts/otlp/index.mdx
+66-90Lines changed: 66 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,39 @@ If you have an existing OpenTelemetry trace instrumentation, you can configure y
17
17
- Span links are partially supported. We ingest and display span links, but they cannot be searched, filtered, or aggregated. Links are shown in the [Trace View](/concepts/key-terms/tracing/trace-view/).
18
18
- Array attributes are partially supported. We ingest and display array attributes, but they cannot be searched, filtered, or aggregated. Array attributes are shown in the [Trace View](/concepts/key-terms/tracing/trace-view/).
19
19
20
+
You can find the values of Sentry's OTLP traces endpoint and public key in your Sentry project settings.
21
+
22
+
1. Go to the [Settings > Projects](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/) page in Sentry.
23
+
2. Select a project from the list.
24
+
3. Go to the "Client Keys (DSN)" sub-page for this project under the "SDK Setup" heading.
25
+
20
26
The easiest way to configure an OpenTelemetry exporter is with environment variables. You'll need to configure the trace endpoint URL, as well as the authentication headers. Set these variables on the server where your application is running.
Alternatively, you can configure the OpenTelemetry Exporter directly in your application code. Here is an example with the OpenTelemetry Node SDK:
33
+
If you prefer to explicitly configure an OpenTelemetry SDK or OTEL collector instance, see the following:
34
+
35
+
### Using the OTEL Collector
36
+
37
+
You can configure your OTEL collector instance to send traces to Sentry directly. This requires you to add an `otlphttp` exporter to your collector instance. Sentry's OTLP endpoints are project-specific, so you might also need to add a [routing connector](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/routingconnector) to route traces to the correct project.
You can configure the OpenTelemetry Exporter directly in your application code. Here is an example with the OpenTelemetry Node SDK:
28
53
29
54
```typescript {filename: app.ts}
30
55
import { NodeSDK } from "@opentelemetry/sdk-node";
@@ -42,12 +67,6 @@ const sdk = new NodeSDK({
42
67
sdk.start();
43
68
```
44
69
45
-
You can find the values of Sentry's OTLP traces endpoint and public key in your Sentry project settings.
46
-
47
-
1. Go to the [Settings > Projects](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/) page in Sentry.
48
-
2. Select a project from the list.
49
-
3. Go to the "Client Keys (DSN)" sub-page for this project under the "SDK Setup" heading.
50
-
51
70
## OpenTelemetry Logs
52
71
53
72
<Includename="feature-available-ea-logs.mdx" />
@@ -56,13 +75,38 @@ If you have an existing OpenTelemetry log instrumentation, you can configure you
56
75
57
76
- Array attributes are partially supported. We ingest and display array attributes, but they cannot be searched, filtered, or aggregated.
58
77
59
-
The easiest way to configure an OpenTelemetry exporter is with environment variables. You'll need to configure the trace endpoint URL, as well as the authentication headers. Set these variables on the server where your application is running.
78
+
You can find the values of Sentry's OTLP logs endpoint and public key in your Sentry project settings.
79
+
80
+
1. Go to the [Settings > Projects](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/) page in Sentry.
81
+
2. Select a project from the list.
82
+
3. Go to the "Client Keys (DSN)" sub-page for this project under the "SDK Setup" heading.
83
+
84
+
The easiest way to configure an OpenTelemetry exporter is with environment variables. You'll need to configure the logs endpoint URL, as well as the authentication headers. Set these variables on the server where your application is running.
If you prefer to explicitly configure an OpenTelemetry SDK or OTEL collector instance, see the following:
92
+
93
+
### Using the OTEL Collector
94
+
95
+
You can configure your OTEL collector instance to send logs to Sentry directly. This requires you to add an `otlphttp` exporter to your collector instance. Sentry's OTLP endpoints are project-specific, so you might also need to add a [routing connector](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/connector/routingconnector) to route logs to the correct project.
You can find the values of Sentry's OTLP logs endpoint and public key in your Sentry project settings.
89
-
90
-
1. Go to the [Settings > Projects](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/) page in Sentry.
91
-
2. Select a project from the list.
92
-
3. Go to the "Client Keys (DSN)" sub-page for this project under the "SDK Setup" heading.
93
-
94
132
## Distributed Tracing between Sentry Instrumentation and OpenTelemetry Instrumentation
95
133
96
134
If you have a frontend or services instrumented with the Sentry SDK, and you are also instrumenting with OpenTelemetry, you can use the `propagateTraceparent` exposed in the Sentry SDK to propagate the W3C Trace Context `traceparent` header to the OpenTelemetry instrumentation. This will allow you to continue traces from Sentry instrumented services.
@@ -102,7 +140,7 @@ The following SDKs support the `propagateTraceparent` option:
0 commit comments