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
Description
Hey folks! Seems like NR supports arrays - https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/arrays-in-nrql/ but I am not sure how to log it with C#. If I try to use NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", arrayObject);
it fails saying it cannot serialize the array.
If I instead use NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", jsonSerializedArrayObject);
It seems like NR treats it like a normal string instead of realizing its an array.
Steps to Reproduce NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", arrayObject);
or NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", jsonSerializedArrayObject);
in C# code. Note the parameter value names, it indicates what they are.
Your Environment
C#
For Maintainers Only or Hero Triaging this bug Suggested Priority (P1,P2,P3,P4,P5): Suggested T-Shirt size (S, M, L, XL, Unknown):
The text was updated successfully, but these errors were encountered:
Description
Hey folks! Seems like NR supports arrays - https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/arrays-in-nrql/ but I am not sure how to log it with C#. If I try to use
NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", arrayObject);
it fails saying it cannot serialize the array.
If I instead use
NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", jsonSerializedArrayObject);
It seems like NR treats it like a normal string instead of realizing its an array.
Expected Behavior
Array are logged in NR and I can use the described features in https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/arrays-in-nrql/
Steps to Reproduce
NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", arrayObject);
or
NewRelicAgent.GetAgent().CurrentTransaction.ddCustomAttribute("key", jsonSerializedArrayObject);
in C# code. Note the parameter value names, it indicates what they are.
Your Environment
C#
For Maintainers Only or Hero Triaging this bug
Suggested Priority (P1,P2,P3,P4,P5):
Suggested T-Shirt size (S, M, L, XL, Unknown):
The text was updated successfully, but these errors were encountered: