All Apps and Add-ons

Splunk MINT: Is there a way to print any of my static variables in my Android app when the report is sent?

rafaelruiz
New Member

Hello.

I'm having a couple of bugs in my Android app regarding static variables. They seem to be released (like C++ or Obj-C !!) but it's not possible, but I really can't figure out other reason.

Is there anyway to print any of my static variables when the report is sent?

Thank you very much in advance.
Regards.
Rafael.

0 Karma

csaur_splunk
Splunk Employee
Splunk Employee

In terms of a static variable lifecycle: a static variable comes into existence when a class is loaded by the JVM and dies when the class is unloaded.
You might have to use some form of Reflection to output the values of static variables, like the Field class. And then you could log this using Mint.logEvent method within the SDK.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...