Skip to content
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

Improving the capture of nested data from set_stats #395

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Simon-cto
Copy link
Contributor

The first implementation of the set_stats logs filter only works with string values, if you provide an array or a dict the log filter fails since the method getAsString() only works for JsonPrimitive objects.

This commit uses the Gson class and its toJson() method to serialize the value, no matter if it's a JsonPrimitive, JsonObject, JsonArray or JsonNull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant