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/tutorials/agent_tracing/setup_agent_tracing_and_visualization.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,8 @@ You may see error logs like this in Data Prepper:
126
126
[raw-trace-pipeline-processor-worker-3-thread-1] ERROR org.opensearch.dataprepper.plugins.processor.oteltracegroup.OTelTraceGroupProcessor - Search request for traceGroup failed for traceIds: [] due to OpenSearch exception [type=index_not_found_exception, reason=no such index [otel-v1-apm-span]]
127
127
```
128
128
129
-
These errors are expected and can be safely ignored. They occur because we're using custom static mappings instead of the default Data Prepper index mappings. The system will work correctly despite these warnings.
129
+
These errors are expected and can be safely ignored. They occur because we're using custom static mappings instead of the default Data Prepper index mappings. The system will work correctly despite these warnings. There is no current robust solution to correct these errors, but remember these error messages are harmless and don't affect functionality.
130
+
130
131
131
132
Verify services are running:
132
133
```bash
@@ -153,14 +154,18 @@ Note: The `plugins.ml_commons.agent_tracing_enabled` setting only takes effect i
153
154
Use this API to turn agent tracing on or off without restarting your cluster, as long as tracing is enabled globally.
154
155
155
156
156
-
## 8. View Traces
157
+
## 8. Run an Agent to Generate Traces
158
+
159
+
When you build and run agents normally, they automatically create traces as long as the tracing settings are enabled. For example, when you create a plan-execute-reflect agent following the [tutorial](https://docs.opensearch.org/latest/tutorials/gen-ai/agents/build-plan-execute-reflect-agent/) or run it as shown in the [intelligent troubleshooting blog post](https://opensearch.org/blog/intelligent-troubleshooting-using-opensearch-3-0s-plan-execute-reflect-agent/), the agent will generate comprehensive traces that capture every step of its execution. After execution, traces should appear in OpenSearch Dashboards within 3-5 minutes.
160
+
161
+
## 9. View Traces
157
162
158
163
- Open OpenSearch Dashboards at [http://localhost:5601](http://localhost:5601)
159
164
- Navigate to **Observability → Traces**
160
165
- You should see agent traces around ~3-5 minutes after agent execution
161
166
162
167
163
-
## 9. Understanding the Visualizations
168
+
## 10. Understanding the Visualizations
164
169
165
170
The traces visualization provides several main views to help you analyze and understand your trace data:
166
171
@@ -195,7 +200,7 @@ The [`trace-graph-vega.json`](trace-graph-vega.json) file contains a Vega specif
195
200
*Vega Graph View: This custom graph visualization shows the relationships between services and spans in your trace data, helping you understand dependencies and flow at a glance.*
196
201
197
202
198
-
## 10. Setup Notes for Non-Docker Environments
203
+
## 11. Setup Notes for Non-Docker Environments
199
204
200
205
If you're setting up agent tracing in a production environment without Docker Compose, consider these important notes:
0 commit comments