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

Unable to capture gRPC list field in dynamic instrumentation #7254

Open
robmillersoftware opened this issue Jun 28, 2024 · 1 comment
Open

Comments

@robmillersoftware
Copy link

robmillersoftware commented Jun 28, 2024

I've got a Java gRPC service running in our k8s cluster, and I'm trying to validate the message data we're receiving using a dynamic probe to check the values in field of type com.google.protobuf.DoubleArrayList. However, when I go to check the logs from the probe I'm running into the following error:

java.lang.RuntimeException: Unsupported Collection type: com.google.protobuf.DoubleArrayList

Below is a screenshot of the Stacktrace section
image

@jpbempel
Copy link
Member

jpbempel commented Jun 28, 2024

Hi @robmillersoftware , the DoubleArrayList is considered as a collection (because implements Collection interface) but we are restricting the access of the collection outside of the JDK classes because an external collection could implement the interface and notably the size method by doing something that could be very expensive (SQL call for example).
However in that case we should fallback to regular object to capture fields instead.

Thanks for having reporting this!

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

No branches or pull requests

2 participants