# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
segmentItems:
  - serviceName: rocketmq-5-grpc-scenario
    segmentSize: ge 4
    segments:
      - segmentId: not null
        spans:
          - operationName: RocketMQ/ProducerAsyncTopicTest/Consumer
            parentSpanId: -1
            spanId: 0
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 39
            isError: false
            spanType: Entry
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.topic, value: ProducerAsyncTopicTest }
              - { key: mq.broker, value: not null }
              - { key: transmission.latency, value: not null }
              - { key: transmission.latency, value: not null }
            refs:
              - { parentEndpoint: 'GET:/case/rocketmq-5-grpc-scenario', networkAddress: not null,
                  refType: CrossProcess, parentSpanId: 3, parentTraceSegmentId: not null,
                  parentServiceInstance: not null, parentService: rocketmq-5-grpc-scenario,
                  traceId: not null }
              - { parentEndpoint: 'GET:/case/rocketmq-5-grpc-scenario', networkAddress: not null,
                  refType: CrossProcess, parentSpanId: 2, parentTraceSegmentId: not null,
                  parentServiceInstance: not null, parentService: rocketmq-5-grpc-scenario,
                  traceId: not null }
      - segmentId: not null
        spans:
          - operationName: RocketMQ/ConsumerAsyncTopicTest/Consumer
            parentSpanId: -1
            spanId: 0
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 39
            isError: false
            spanType: Entry
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.broker, value: not null }
              - { key: mq.topic, value: ConsumerAsyncTopicTest }
              - { key: transmission.latency, value: not null }
              - { key: transmission.latency, value: not null }
            refs:
              - { parentEndpoint: 'GET:/case/rocketmq-5-grpc-scenario', networkAddress: not null,
                  refType: CrossProcess, parentSpanId: 4, parentTraceSegmentId: not null,
                  parentServiceInstance: not null, parentService: rocketmq-5-grpc-scenario,
                  traceId: not null }
              - { parentEndpoint: 'GET:/case/rocketmq-5-grpc-scenario', networkAddress: not null,
                  refType: CrossProcess, parentSpanId: 5, parentTraceSegmentId: not null,
                  parentServiceInstance: not null, parentService: rocketmq-5-grpc-scenario,
                  traceId: not null }
      - segmentId: not null
        spans:
          - operationName: RocketMQ/NormalTopicTest/Producer
            parentSpanId: 0
            spanId: 1
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 38
            isError: false
            spanType: Exit
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.broker, value: not null }
              - { key: mq.topic, value: NormalTopicTest }
              - { key: mq.message.keys, value: not null }
              - { key: mq.message.tags, value: not null }
              - { key: mq.message.id, value: not null }
          - operationName: RocketMQ/ProducerAsyncTopicTest/Producer
            parentSpanId: 0
            spanId: 2
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 38
            isError: false
            spanType: Exit
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.broker, value: not null }
              - { key: mq.topic, value: ProducerAsyncTopicTest }
              - { key: mq.message.keys, value: not null }
              - { key: mq.message.tags, value: not null }
              - { key: mq.message.id, value: not null }
          - operationName: RocketMQ/ProducerAsyncTopicTest/Producer
            parentSpanId: 0
            spanId: 3
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 38
            isError: false
            spanType: Exit
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.broker, value: not null }
              - { key: mq.topic, value: ProducerAsyncTopicTest }
              - { key: mq.message.keys, value: not null }
              - { key: mq.message.tags, value: not null }
              - { key: mq.message.id, value: not null }
          - operationName: RocketMQ/ConsumerAsyncTopicTest/Producer
            parentSpanId: 0
            spanId: 4
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 38
            isError: false
            spanType: Exit
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.broker, value: not null }
              - { key: mq.topic, value: ConsumerAsyncTopicTest }
              - { key: mq.message.keys, value: not null }
              - { key: mq.message.tags, value: not null }
              - { key: mq.message.id, value: not null }
          - operationName: RocketMQ/ConsumerAsyncTopicTest/Producer
            parentSpanId: 0
            spanId: 5
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 38
            isError: false
            spanType: Exit
            peer: not null
            skipAnalysis: false
            tags:
              - { key: mq.broker, value: not null }
              - { key: mq.topic, value: ConsumerAsyncTopicTest }
              - { key: mq.message.keys, value: not null }
              - { key: mq.message.tags, value: not null }
              - { key: mq.message.id, value: not null }
          - operationName: GET:/case/rocketmq-5-grpc-scenario
            parentSpanId: -1
            spanId: 0
            spanLayer: Http
            startTime: nq 0
            endTime: nq 0
            componentId: 14
            isError: false
            spanType: Entry
            peer: ''
            skipAnalysis: false
            tags:
              - { key: url, value: 'http://localhost:8080/rocketmq-5-grpc-scenario/case/rocketmq-5-grpc-scenario' }
              - { key: http.method, value: GET }
              - { key: http.status_code, value: '200' }
      - segmentId: not null
        spans:
          - operationName: RocketMQ/NormalTopicTest/Consumer
            parentSpanId: -1
            spanId: 0
            spanLayer: MQ
            startTime: nq 0
            endTime: nq 0
            componentId: 39
            isError: false
            spanType: Entry
            peer: not null
            skipAnalysis: false
            tags:
              - { key: transmission.latency, value: not null }
              - { key: mq.topic, value: NormalTopicTest }
              - { key: mq.message.id, value: not null }
              - { key: mq.broker, value: not null }
            refs:
              - { parentEndpoint: 'GET:/case/rocketmq-5-grpc-scenario', networkAddress: not null,
                  refType: CrossProcess, parentSpanId: 1, parentTraceSegmentId: not null,
                  parentServiceInstance: not null, parentService: rocketmq-5-grpc-scenario,
                  traceId: not null }