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: _observing-your-data/trace/distributed-tracing.md
+11-2
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,16 @@ testClusters {
124
124
125
125
### Enable distributed tracing
126
126
127
-
Once you've enabled the feature flag, you can enable the tracer (which is disabled by default) by using the following dynamic setting that enables tracing in the running cluster:
127
+
Once you've enabled the feature flag, do the following:
128
+
129
+
1. Enable the tracing framework feature by adding the following setting in the `opensearch.yaml` file:
130
+
131
+
```bash
132
+
telemetry.feature.tracer.enabled=true
133
+
```
134
+
{% include copy.html %}
135
+
136
+
2. Enable the tracer in the running cluster by adding the following dynamic setting:
128
137
129
138
```bash
130
139
telemetry.tracer.enabled=true
@@ -145,7 +154,7 @@ Currently, the distributed tracing feature generates traces and spans for HTTP r
145
154
-`telemetry.otel.tracer.exporter.batch_size`: Configures the maximum batch size for each export to reduce input/output. This value should always be less than the `max_queue_size`. Default is `512`.
146
155
2.**Exporters:** Exporters are responsible for persisting the data. OpenTelemetry provides several out-of-the-box exporters, and OpenSearch supports the following:
147
156
-`LoggingSpanExporter`: Exports spans to a log file, generating a separate file in the logs directory `_otel_traces.log`. Default is `telemetry.otel.tracer.span.exporter.class=io.opentelemetry.exporter.logging.LoggingSpanExporter`.
148
-
-`OtlpGrpcSpanExporter`: Exports spans through gRPC. To use this exporter, you need to install the `otel-collector` on the node. By default, it writes to the http://localhost:4317/ endpoint. To use this exporter, set the following static setting: `telemetry.otel.tracer.span.exporter.class=org.opensearch.telemetry.tracing.exporter.OtlpGrpcSpanExporterProvider`.
157
+
-`OtlpGrpcSpanExporter`: Exports spans through gRPC. To use this exporter, you need to install the `otel-collector` on the node. By default, it writes to the http://localhost:4317/ endpoint. To use this exporter, set the following static setting: `telemetry.otel.tracer.span.exporter.class=io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter`.
149
158
-`LoggingSpanExporter`: Exports spans to a log file, generating a separate file in the logs directory `_otel_traces.log`. Default is `telemetry.otel.tracer.span.exporter.class=io.opentelemetry.exporter.logging.LoggingSpanExporter`.
0 commit comments