Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ the agent will now include the database name in the dependency, thus `mysql/my-d

[float]
===== Bug fixes
* Fix missing attributes in bridged OTel transactions {pull}2657[#2657]
* Fix missing attributes in bridged OTel transactions - {pull}2657[#2657]
* Fix `transaction.result` with bridged OTel transactions - {pull}2660[#2660]

[[release-notes-1.x]]
=== Java Agent version 1.x
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Feature: OpenTelemetry bridge
And OTel span ends
Then Elastic bridged object is a transaction
Then Elastic bridged transaction outcome is "<outcome>"
Then Elastic bridged transaction result is not set
Examples:
| status | outcome |
| unset | unknown |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@ public Span addEvent(String name, Attributes attributes, long timestamp, TimeUni

@Override
public Span setStatus(StatusCode statusCode, String description) {
if (span instanceof Transaction) {
Transaction t = (Transaction) span;
switch (statusCode) {
case OK:
t.withResultIfUnset("OK");
break;
case ERROR:
t.withResultIfUnset("Error");
break;
}
}
switch (statusCode) {
case ERROR:
span.withUserOutcome(Outcome.FAILURE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ public void bridgedObjectOutcome(String ignoredContextType, String outcome) {

}

@Then("Elastic bridged transaction result is not set")
public void bridgedTransactionResultNull() {
assertThat(getBridgedTransaction().getResult()).isNull();
}

@Then("Elastic bridged span service target type is {string} and name is {string}")
public void bridgedSpanTargetServiceType(String type, String name) {
ServiceTarget serviceTarget = getBridgedSpan().getContext().getServiceTarget();
Expand Down