Skip to content

Unclear C# Array Support #2148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
EduardGeorgiev opened this issue Dec 18, 2023 · 2 comments
Closed

Unclear C# Array Support #2148

EduardGeorgiev opened this issue Dec 18, 2023 · 2 comments
Labels
bug Something isn't working community To tag external issues and PRs

Comments

@EduardGeorgiev
Copy link

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):

@EduardGeorgiev EduardGeorgiev added the bug Something isn't working label Dec 18, 2023
@workato-integration
Copy link

@github-actions github-actions bot added the community To tag external issues and PRs label Dec 18, 2023
@EduardGeorgiev
Copy link
Author

Closed as I believe I am on an older version, despite upgrading, something seems to be wrong with the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community To tag external issues and PRs
Projects
None yet
Development

No branches or pull requests

1 participant