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/en/debugging/query-tracing.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ SkyWalking OAP provides the metrics/trace/log/topology query tracing to help use
31
31
The query tracing service is provided within the OAP rest server,
32
32
which could be accessed through HTTP GET `http://{core restHost}:{core restPort}/debugging/query/...`.
33
33
34
+
**Note:** The `layer` of the service is optional, but if the service is virtual then required, such the `layer` is `VIRTUAL_DATABASE/VIRTUAL_MQ/VIRTUAL_GATEWAY`.
35
+
34
36
### Tracing MQE Execution
35
37
- URL: HTTP GET `http://{core restHost}:{core restPort}/debugging/query/mqe?{parameters}`.
36
38
- Parameters
@@ -44,7 +46,7 @@ which could be accessed through HTTP GET `http://{core restHost}:{core restPort}
44
46
| step | The query step | Yes |
45
47
| coldStage | Only for BanyanDB, the flag to query from cold stage, default is false. | No |
46
48
| service | The service name | Yes |
47
-
| serviceLayer | The service layer name |Yes|
49
+
| serviceLayer | The service layer name |No |
48
50
| serviceInstance | The service instance name | No |
49
51
| endpoint | The endpoint name | No |
50
52
| process | The process name | No |
@@ -190,7 +192,7 @@ childSpans:
190
192
| step | The query step | Yes |
191
193
| coldStage | Only for BanyanDB, the flag to query from cold stage, default is false. | No |
192
194
| service | The service name | Yes |
193
-
| serviceLayer | The service layer name |Yes|
195
+
| serviceLayer | The service layer name |No |
194
196
| serviceInstance | The service instance name | No |
195
197
| endpoint | The endpoint name | No |
196
198
| minTraceDuration | The minimum duration of the trace | No |
@@ -205,7 +207,7 @@ The time and step parameters are follow the [Duration](../api/query-protocol.md#
205
207
206
208
- Example
207
209
```shell
208
-
curl -X GET 'http://127.0.0.1:12800/debugging/query/trace/queryBasicTraces?startTime=2024-06-26%200900&endTime=2024-06-26%200915&step=MINUTE&service=mock_a_service&serviceLayer=GENERAL&serviceInstance=mock_a_service_instance&traceState=ALL&queryOrder=BY_DURATION&pageNum=1&pageSize=15&tags=http.status_code%3D404%2Chttp.method%3Dget'
210
+
curl -X GET 'http://127.0.0.1:12800/debugging/query/trace/queryBasicTraces?startTime=2024-06-26%200900&endTime=2024-06-26%200915&step=MINUTE&service=mock_a_service&serviceInstance=mock_a_service_instance&traceState=ALL&queryOrder=BY_DURATION&pageNum=1&pageSize=15&tags=http.status_code%3D404%2Chttp.method%3Dget'
209
211
```
210
212
Response will include query result and the debuggingTrace information, the debuggingTrace information is the same as the MQE query tracing:
211
213
@@ -348,12 +350,12 @@ debuggingTrace:
348
350
| endTime | The end time of the query | Yes |
349
351
| step | The query step | Yes |
350
352
| coldStage | Only for BanyanDB, the flag to query from cold stage, default is false. | No |
351
-
| serviceLayer | The service layer name | Yes |
353
+
| serviceLayer | The service layer name | No |
352
354
| services | The services names list, separate by comma `mock_a_service, mock_b_service` | Yes |
353
355
354
356
- Example
355
357
```shell
356
-
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getServicesTopology?startTime=2024-07-03&endTime=2024-07-03&step=DAY&serviceLayer=GENERAL&services=mock_a_service%2Cmock_b_service'
358
+
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getServicesTopology?startTime=2024-07-03&endTime=2024-07-03&step=DAY&services=mock_a_service%2Cmock_b_service'
357
359
```
358
360
359
361
Response will include query result and the debuggingTrace information, the debuggingTrace information is the same as the MQE query tracing:
@@ -379,12 +381,12 @@ debuggingTrace:
379
381
| coldStage | Only for BanyanDB, the flag to query from cold stage, default is false. | No |
380
382
| clientService | The client side service name | Yes |
381
383
| serverService | The server side service name | Yes |
382
-
| clientServiceLayer | The client side service layer name | Yes |
383
-
| serverServiceLayer | The server side service layer name | Yes |
384
+
| clientServiceLayer | The client side service layer name | No |
385
+
| serverServiceLayer | The server side service layer name | No |
384
386
385
387
- Example
386
388
```shell
387
-
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getServiceInstanceTopology?startTime=2024-07-03&endTime=2024-07-03&step=DAY&clientService=mock_a_service&serverService=mock_b_service&clientServiceLayer=GENERAL&serverServiceLayer=GENERAL'
389
+
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getServiceInstanceTopology?startTime=2024-07-03&endTime=2024-07-03&step=DAY&clientService=mock_a_service&serverService=mock_b_service'
388
390
```
389
391
390
392
Response will include query result and the debuggingTrace information, the debuggingTrace information is the same as the MQE query tracing:
@@ -409,13 +411,13 @@ debuggingTrace:
409
411
| step | The query step | Yes |
410
412
| coldStage | Only for BanyanDB, the flag to query from cold stage, default is false. | No |
411
413
| service | The service name | Yes |
412
-
| serviceLayer | The service layer name | Yes |
414
+
| serviceLayer | The service layer name | No |
413
415
| endpoint | The endpoint name | Yes |
414
416
415
417
- Example
416
418
- Example
417
419
```shell
418
-
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getEndpointDependencies?startTime=2024-07-03&endTime=2024-07-03&step=DAY&service=mock_a_service&serviceLayer=GENERAL&endpoint=%2Fdubbox-case%2Fcase%2Fdubbox-rest%2F404-test'
420
+
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getEndpointDependencies?startTime=2024-07-03&endTime=2024-07-03&step=DAY&service=mock_a_service&endpoint=%2Fdubbox-case%2Fcase%2Fdubbox-rest%2F404-test'
419
421
```
420
422
421
423
Response will include query result and the debuggingTrace information, the debuggingTrace information is the same as the MQE query tracing:
@@ -440,12 +442,12 @@ debuggingTrace:
440
442
| step | The query step | Yes |
441
443
| coldStage | Only for BanyanDB, the flag to query from cold stage, default is false. | No |
442
444
| service | The service name | Yes |
443
-
| serviceLayer | The service layer name | Yes |
445
+
| serviceLayer | The service layer name | No |
444
446
| instance | The instance name | Yes |
445
447
446
448
- Example
447
449
```shell
448
-
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getProcessTopology?startTime=2024-07-03&endTime=2024-07-03&step=DAY&service=mock_a_service&serviceLayer=GENERAL&instance=mock_a_service_instance'
450
+
curl -X GET 'http://127.0.0.1:12800/debugging/query/topology/getProcessTopology?startTime=2024-07-03&endTime=2024-07-03&step=DAY&service=mock_a_service&instance=mock_a_service_instance'
449
451
```
450
452
451
453
Response will include query result and the debuggingTrace information, the debuggingTrace information is the same as the MQE query tracing:
@@ -487,7 +489,7 @@ debuggingTrace:
487
489
488
490
- Example
489
491
```shell
490
-
curl -X GET 'http://127.0.0.1:12800/debugging/query/log/queryLogs?service=e2e-service-provider&serviceLayer=GENERAL&startTime=2024-07-09&endTime=2024-07-09&step=DAY&pageNum=1&pageSize=15&queryOrder=ASC&tags=level%3DINFO'
492
+
curl -X GET 'http://127.0.0.1:12800/debugging/query/log/queryLogs?service=e2e-service-provider&startTime=2024-07-09&endTime=2024-07-09&step=DAY&pageNum=1&pageSize=15&queryOrder=ASC&tags=level%3DINFO'
491
493
```
492
494
493
495
Response will include query result and the debuggingTrace information, the debuggingTrace information is the same as the MQE query tracing:
Copy file name to clipboardExpand all lines: oap-server/server-query-plugin/status-query-plugin/src/main/java/org/apache/skywalking/oap/query/debug/DebuggingHTTPHandler.java
+31-18Lines changed: 31 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ public String execExpression(@Param("dumpDBRsp") boolean dumpStorageRsp,
0 commit comments