From 1f34e2cfc72c3e29cff6fdc221c1fa69414a6820 Mon Sep 17 00:00:00 2001 From: Emilio Garcia Date: Wed, 8 Nov 2023 14:43:45 -0500 Subject: [PATCH] Error Expected Bug The attribute error.expected should be a boolean, not a string. It is also good practice to use a constant value for the key. --- v3/newrelic/error_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)