Skip to content

Commit

Permalink
Fix TraceTest after IBM/sarama upgrade (#1096)
Browse files Browse the repository at this point in the history
* Fix TraceTest after IBM/sarama upgrade

* changelog
  • Loading branch information
julianocosta89 committed Sep 5, 2023
1 parent 8f5ff33 commit 315b3ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ release.
([#1085](https://github.com/open-telemetry/opentelemetry-demo/pull/1085))
* [cartservice] Support for logs
([#1086](https://github.com/open-telemetry/opentelemetry-demo/pull/1086))
* [TraceTests] Update span attributes to align with new IBM/sarama instrumentation
([#1096](https://github.com/open-telemetry/opentelemetry-demo/pull/1096))

## 1.4.0

Expand Down
4 changes: 2 additions & 2 deletions test/tracetesting/checkout-service/place-order.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ spec:
assertions:
- attr:rpc.grpc.status_code = 0
- name: It sends an order to be processed asyncronously
selector: span[tracetest.span.type="messaging" name="orders send" messaging.system="kafka" messaging.destination="orders" messaging.destination_kind="topic" messaging.operation="send"]
selector: span[tracetest.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="publish"]
assertions:
- attr:messaging.destination = "orders"
- attr:messaging.destination.name = "orders"
6 changes: 3 additions & 3 deletions test/tracetesting/frontend-service/06-checking-out-cart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ spec:
- attr:rpc.grpc.status_code = 0
- attr:tracetest.selected_spans.count >= 1
- name: The order was sent to be processed asyncronously
selector: span[tracetest.span.type="messaging" name="orders send" messaging.system="kafka" messaging.destination="orders" messaging.destination_kind="topic" messaging.operation="send"]
selector: span[tracetest.span.type="messaging" name="orders publish" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="publish"]
assertions:
- attr:messaging.destination = "orders"
- attr:messaging.destination.name = "orders"
- name: The order was sent to accountability
# captures the span emitted by Kafka instrumentation for Go
selector: span[tracetest.span.type="messaging" name="orders receive" messaging.system="kafka" messaging.destination="orders" messaging.destination_kind="topic" messaging.operation="receive"]
selector: span[tracetest.span.type="messaging" name="orders receive" messaging.system="kafka" messaging.destination.name="orders" messaging.destination.kind="topic" messaging.operation="receive"]
assertions:
- attr:name = "orders receive"
- name: The order was sent to fraud detection team
Expand Down

0 comments on commit 315b3ea

Please sign in to comment.