diff --git a/v3/newrelic/error_events.go b/v3/newrelic/error_events.go index 07aca4f35..6087865d8 100644 --- a/v3/newrelic/error_events.go +++ b/v3/newrelic/error_events.go @@ -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)