Skip to content

Commit

Permalink
Error Expected Bug
Browse files Browse the repository at this point in the history
The attribute error.expected should be a boolean, not a string. It
is also good practice to use a constant value for the key.
  • Loading branch information
iamemilio committed Nov 8, 2023
1 parent a1142ca commit 1f34e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/newrelic/error_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (e *errorEvent) WriteJSON(buf *bytes.Buffer) {
w.stringField("spanId", e.SpanID)
}
if e.Expect {
w.stringField("error.expected", "true")
w.boolField(expectErrorAttr, true)
}

sharedTransactionIntrinsics(&e.txnEvent, &w)
Expand Down

0 comments on commit 1f34e2c

Please sign in to comment.