You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the pgx tracer from nrpgx5 package, the querying segment cannot be sent successfully because some of the query parameters are not primitive:
unable to end datastore segment collection=user operation=select product=Postgres reason="attribute '$1' value of type uuid.UUID is invalid"
uuid.UUID are not primitive, but it implements fmt.Stringer interface.
It would be great if we can handle fmt.Stringer for attributes.
Desired Behaviour
Attributes on a segment accept fmt.Stringer implemented types.
Possible Solution
Add a case to the switch statement:
case fmt.Stringer:
val=val.String()
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Summary
User attributes in segments does not support types other than primitive types.
go-agent/v3/newrelic/attributes_from_internal.go
Lines 357 to 374 in 0100f62
I am using the pgx tracer from
nrpgx5
package, the querying segment cannot be sent successfully because some of the query parameters are not primitive:uuid.UUID
are not primitive, but it implementsfmt.Stringer
interface.It would be great if we can handle
fmt.Stringer
for attributes.Desired Behaviour
Attributes on a segment accept
fmt.Stringer
implemented types.Possible Solution
Add a case to the switch statement:
Additional context
N/A
The text was updated successfully, but these errors were encountered: