hanahmily commented on code in PR #797:
URL: 
https://github.com/apache/skywalking-banyandb/pull/797#discussion_r2393508281


##########
bydbctl/internal/cmd/trace.go:
##########
@@ -137,8 +137,22 @@ func newTraceCmd() *cobra.Command {
                },
        }
 
-       bindFileFlag(createCmd, updateCmd)
-       bindTLSRelatedFlag(getCmd, createCmd, deleteCmd, updateCmd, listCmd)
-       traceCmd.AddCommand(getCmd, createCmd, deleteCmd, updateCmd, listCmd)
+       queryCmd := &cobra.Command{
+               Use:     "query [-s start_time] [-e end_time] -f [file|dir|-]",
+               Version: version.Build(),
+               Short:   "Query data in a trace",
+               Long:    timeRangeUsage,
+               RunE: func(cmd *cobra.Command, _ []string) (err error) {
+                       return rest(func() ([]reqBody, error) { return 
parseTimeRangeFromFlagAndYAML(cmd.InOrStdin()) },
+                               func(request request) (*resty.Response, error) {
+                                       return 
request.req.SetBody(request.data).Post(getPath("/api/v1/trace/data"))

Review Comment:
   ![Uploading image.png…]()
   put "/api/v1/trace/data" here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to