You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "wankai123 (via GitHub)" <gi...@apache.org> on 2025/09/26 01:01:56 UTC

[I] [Bug] [BanyanDB][main] Trace query tag condition doesn't work as expected [skywalking]

wankai123 opened a new issue, #13518:
URL: https://github.com/apache/skywalking/issues/13518

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   BanyanDB (apache/skywalking-banyandb)
   
   ### What happened
   
   When querying the traces, the tag condition cannot get any traces, independent of or with serviceId.
   It can work with traceId.
   
   ### What you expected to happen
   
   The tag condition can filter the traces and response.
   
   ### How to reproduce
   
   Using the tag condition for querying traces.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: notifications-unsubscribe@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [BanyanDB][main] Trace query tag condition doesn't work as expected [skywalking]

Posted by "wankai123 (via GitHub)" <gi...@apache.org>.
wankai123 commented on issue #13518:
URL: https://github.com/apache/skywalking/issues/13518#issuecomment-3336505025

   query data for proto:
   ```
   groups: "sw_trace"
   name: "segment"
   time_range {
     begin {
       seconds: 1758765129
       nanos: 771000000
     }
     end {
       seconds: 1758851529
       nanos: 771000000
     }
   }
   limit: 2
   order_by {
     index_rule_name: "latency"
     sort: SORT_DESC
   }
   criteria {
     condition {
       name: "tags"
       op: BINARY_OP_HAVING
       value {
         str_array {
           value: "http.method=get"
         }
       }
       match_option {
       }
     }
   }
   trace: true
   ```


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [BanyanDB][main] Trace query tag condition doesn't work as expected [skywalking]

Posted by "wankai123 (via GitHub)" <gi...@apache.org>.
wankai123 commented on issue #13518:
URL: https://github.com/apache/skywalking/issues/13518#issuecomment-3336441665

   [tmp.zip](https://github.com/user-attachments/files/22550292/tmp.zip)
   GraphQL, if added a service Id, still doesn't work:
   ```
   {
     queryTraces(condition: {
       traceState: ALL,
       queryOrder: BY_DURATION,
       paging: {
         pageNum: 1,
         pageSize: 2
       }
       tags: {
         key: "http.method",
         value: "get"
       }
     },
     debug: true) {
     retrievedTimeRange {
     startTime
     endTime
   }
   traces {
     spans {
     traceId
     segmentId
     spanId
     parentSpanId
     refs {
     traceId
     parentSegmentId
     parentSpanId
     type
   }
   serviceCode
   startTime
   tags {
     key
     value
   }
   }
   }
   }
   }
   ```


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [BanyanDB][main] Trace query tag condition doesn't work as expected [skywalking]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #13518: [Bug] [BanyanDB][main] Trace query tag condition doesn't work as expected
URL: https://github.com/apache/skywalking/issues/13518


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org