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: README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,16 +247,27 @@ AgentScope Studio will start and display the OTLP endpoint URL (typically `http:
247
247
248
248
Configure your AgentScope application to export telemetry data to AgentScope Studio using OTLP. Use the endpoint URL displayed by AgentScope Studio when it starts:
249
249
250
+
```shell
251
+
loongsuite-instrument \
252
+
--traces_exporter otlp \
253
+
--metrics_exporter otlp \
254
+
--exporter_otlp_protocol http/protobuf \
255
+
--exporter_otlp_endpoint http://127.0.0.1:31415 \
256
+
--service_name demo \
257
+
python demo.py
258
+
```
259
+
260
+
Alternatively, you can use environment variables:
261
+
250
262
```shell
251
263
export OTEL_SERVICE_NAME=demo
252
264
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
253
-
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://127.0.0.1:31415# Use the endpoint from AgentScope Studio
254
-
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://127.0.0.1:31415# Use the endpoint from AgentScope Studio
0 commit comments