Splunk Search

iOS Transaction & Events Not Working

cvDev
New Member

I can initialize my Mint instanced and it shows in the dashboard. I have a nice sample log like so.

[[Mint sharedInstance] logEventAsyncWithName:message logLevel:ErrorLogLevel andCompletionBlock:^(MintLogResult *mintLogResult) {
    NSString* logResultState = mintLogResult.resultState == OKResultState ? @"OK" : @"Error";
    NSLog(@"Log result: %@", logResultState);
}];

And sample transaction like so.

   [[Mint sharedInstance] transactionStart:@"Test_Start" andResultBlock:nil];
    [[Mint sharedInstance] transactionStop:@"Test_Stop" andResultBlock:nil];

I see in my console that the log result is "OK". And yet when I got to my dashboard I am shown sample data for events and transactions because nothing is posted yet.

Tags (3)
0 Karma

mattwestbright
New Member

The first parameter of the transactionStart:andResultBlock: and transactionStop:andResultBlock: methods are transactionName. You are starting a transaction called Test_Start but not stopping it. Similarly, you are stopping a Test_Stop transaction which was never started. Try this:

[[Mint sharedInstance] transactionStart:@"My_Test_Transaction" andResultBlock:nil];
[[Mint sharedInstance] transactionStop:@"My_Test_Transaction" andResultBlock:nil];

I hope this helps someone.
Matt.

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...