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!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

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