question

Piyush C. avatar image
Piyush C. asked ·

Method return value length limit

When capturing the method return value (via a sensor), is there a length limit?

I placed a sensor on a method and I see the return value (type: List) getting captured correctly, but I only see the first 252 characters of the list.

How can override this length limit?

I promise to use this power judiciously. :-)

Thanks,

Piyush

--

Running Dyantrace 6.2.4.1057

agentjavasensor
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Srikar M. avatar image
Srikar M. answered ·

Hi Piyush, there is a max string capture length defined per agent group and it is applicable for all captured strings for all sensor packs within that agent group...meaning changing it to a higher value, say 300, will be applied across logging sensor, exception sensor, etc for that agent group...so please do keep your promise :)

capturelen.png


capturelen.png (8.0 KiB)
Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

James K. avatar image
James K. answered ·

If you go into the system profile settings and on an agent group select 'sensor configuration' there is a setting at the top that you can change which is "Maximum String capture length" that you can change. by default it is 250 characters. I think you have noted this but be careful as this applies to EVERY string that will be captured by the agent.

James

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Anusha M. avatar image
Anusha M. answered ·

Hi,

Could you please let me know the drawbacks/impact of increasing the max string limit , from the agent side and the server side .

Regards,

Anusha

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Piyush C. avatar image
Piyush C. answered ·

Thank you so much! How could I have missed this.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.