Coder Social home page Coder Social logo

applicationinsights-ios's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

applicationinsights-ios's Issues

Carthage Support

More and more I am seeing developers move to Carthage from Cocoapods due to it being a cleaner way of managing dependencies. Would it be possible to add support to this SDK?

No user id is sent for iOS

No user id is sent for iOS. This is manifesting itself as lack of user information in the portal (users = 0)

Duplicate symbols when using with HockeyApp

Hello! I tried again to use App Insights (beta 7) with HockeyApp (preseason) and I'm getting some duplicate symbol errors when I build the project:

duplicate symbol _defaultFileCount in:
    /Users/jessicayeh/Documents/OmniBuzz/iOS and Apple Watch/Vendor/ApplicationInsights/ApplicationInsights.framework/ApplicationInsights(MSAIPersistence.o)
    /Users/jessicayeh/Documents/OmniBuzz/iOS and Apple Watch/Vendor/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK(BITPersistence.o)
duplicate symbol _kPersistenceQueueString in:
    /Users/jessicayeh/Documents/OmniBuzz/iOS and Apple Watch/Vendor/ApplicationInsights/ApplicationInsights.framework/ApplicationInsights(MSAIPersistence.o)
    /Users/jessicayeh/Documents/OmniBuzz/iOS and Apple Watch/Vendor/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK(BITPersistence.o)
duplicate symbol _kFileBaseString in:
    /Users/jessicayeh/Documents/OmniBuzz/iOS and Apple Watch/Vendor/ApplicationInsights/ApplicationInsights.framework/ApplicationInsights(MSAIPersistence.o)
    /Users/jessicayeh/Documents/OmniBuzz/iOS and Apple Watch/Vendor/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK(BITPersistence.o)
ld: 3 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I also cleaned the project and deleted derived data.

Pod

Could this be made into a pod?

Rebuild with bit code enabled

Building with the latest Xcode 7.0 beta 6 (7A192o), I get the following error about the framework not being built with bit code.

I am including the framework via Cocoapods and am include 1.0-beta.6 of the App insights iOS framework.

ApplicationInsights/ApplicationInsights/ApplicationInsights.framework/ApplicationInsights(MSAIApplicationInsights.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Bitcode

When I tried compiling an app with the app insights SDK it said I need to disable bitcode, but bitcode is required to be on (for all targets, even the main app, I read) for a project that has a watch app :(

Improve error reporting and alerting

If you want to get alerted by Application Insights when an error occurs in an iOS app, you have to use the trackException method. This shows up in the portal as a "crash", but it manifests as the "Server exceptions" metric in the alert rules. The trackException method does not allow you to include a properties dictionary, so then you have to send an additional trackTraceWithMessage:properties: or trackEventWithName:properties: call to send additional property information (the TrackException method in the .NET API does allow you to send additional properties and metrics). This seems very unpolished, especially since the use of exceptions in iOS isn't standard.

Tracing with specific severity

There is an enum MSAISeverityLevel which defines severities but there are no samples showing its usage and a search through sources didn't bring more clarity. Is it in use? Can you show how it should be used with, for instance, trackTraceWithMessage?
I should be able to choose specific severity while sending messages to App Insights server. And I would expect to see messages created with severity Error or Critical in the Portal's section named Failures.
Are these valid asks?

The 1.0-beta.3 release zip doesn't match source code

This seems to be an odd problem. The 1.0-beta.3 release zip still has the MSAICrashMetaData.h file included within it, but that file is not imported in the ApplicationInsights.h umbrella header, so the module fails to compile in Xcode. If I add `#import "MSAICrashMetaData.h" to the umbrella header, everything seems to compile correctly.

However, when I look at the git repo, this file has been removed from the latest release. Is this a bad release binary?

Handled exceptions are always sent as crashes and not as handled exceptions

I have this code:

@try {
    @throw [[NSException alloc] initWithName:@"test" reason:@"reason"];
} @catch (NSException *exception) {
    [MSAITelemetryManager trackException:exception];
}

This is tracked as a crash in the portal, but it's a handled exception.

Taking a look at the source code shows all exceptions go through the crash reporting process, regardless of handled or not. - https://github.com/Microsoft/ApplicationInsights-iOS/blob/master/Classes/MSAITelemetryManager.m#L239-L254

Until this is handled I guess the workaround would be to use traceMessage with custom properties?

Please have a look at crashDataHeadersId generation

Generate test crash wiki out of date

On this wiki page:
https://github.com/Microsoft/ApplicationInsights-iOS/wiki/How-to-Generate-a-Test-Crash

The code snippet for triggering a crash is out of date. Instead of:

[[[MSAIApplicationInsights sharedInstance] crashManager] generateTestCrash];

It should be*

[[MSAICrashManager sharedManager] generateTestCrash];

* I haven't actually tested this in objc. I'm writing mine in Swift and this worked for me:

MSAICrashManager.sharedManager().generateTestCrash()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.