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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...