Browse Source

Added cocoa mock data

Armin Ronacher 8 years ago
parent
commit
85078a3d7c
2 changed files with 403 additions and 0 deletions
  1. 7 0
      bin/load-mocks
  2. 396 0
      src/sentry/data/samples/cocoa.json

+ 7 - 0
bin/load-mocks

@@ -332,6 +332,12 @@ def main(num_events=1):
                     release=release.version,
                 )
 
+                event5 = create_sample_event(
+                    project=project,
+                    platform='cocoa',
+                    release=release.version,
+                )
+
                 create_sample_event(
                     project=project,
                     platform='php',
@@ -369,6 +375,7 @@ def main(num_events=1):
             create_sample_time_series(event2)
             create_sample_time_series(event3)
             create_sample_time_series(event4)
+            create_sample_time_series(event5)
 
             if hasattr(buffer, 'process_pending'):
                 print('    > Processing pending buffers')

+ 396 - 0
src/sentry/data/samples/cocoa.json

@@ -0,0 +1,396 @@
+{
+    "sentry.interfaces.User": {
+        "username": "Example",
+        "data": {
+            "is_admin": false
+        },
+        "id": "3",
+        "email": "example@example.com"
+    },
+    "tags": [
+        [
+            "environment",
+            "production"
+        ],
+        [
+            "level",
+            "fatal"
+        ],
+        [
+            "sentry:user",
+            "id:3"
+        ]
+    ],
+    "type": "default",
+    "extra": {
+        "foobar": {
+            "foo": "bar"
+        },
+        "some_things": [
+            "green",
+            "red"
+        ],
+        "a_thing": 3
+    },
+    "sentry.interfaces.Breadcrumbs": {
+        "values": [
+            {
+                "timestamp": 1463071692.0,
+                "type": "ui_event",
+                "data": {
+                    "type": "button",
+                    "target": "onClickBreak"
+                }
+            }
+        ]
+    },
+    "sentry.interfaces.Stacktrace": {
+        "frames": [
+            {
+                "function": "start",
+                "abs_path": null,
+                "instruction_offset": 1,
+                "package": "libdyld.dylib",
+                "filename": null,
+                "symbol_addr": "0x00064f9e8",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00064f9e9"
+            },
+            {
+                "function": "main",
+                "abs_path": "/Users/josh/iOS/Sentry/RavenSwift/Examples/SwiftTVOSExample/SwiftTVOSExample/AppDelegate.swift",
+                "instruction_offset": null,
+                "package": "SwiftTVOSExample",
+                "filename": "AppDelegate.swift",
+                "symbol_addr": "0x00d93c230",
+                "lineno": 12,
+                "in_app": true,
+                "instruction_addr": "0x00d93c2a2"
+            },
+            {
+                "function": "UIApplicationMain",
+                "abs_path": null,
+                "instruction_offset": 171,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4ad7ea",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4ad895"
+            },
+            {
+                "function": "GSEventRunModal",
+                "abs_path": null,
+                "instruction_offset": 161,
+                "package": "GraphicsServices",
+                "filename": null,
+                "symbol_addr": "0x0022f0a31",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x0022f0ad2"
+            },
+            {
+                "function": "CFRunLoopRunSpecific",
+                "abs_path": null,
+                "instruction_offset": 488,
+                "package": "CoreFoundation",
+                "filename": null,
+                "symbol_addr": "0x00dba1030",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00dba1218"
+            },
+            {
+                "function": "__CFRunLoopRun",
+                "abs_path": null,
+                "instruction_offset": 867,
+                "package": "CoreFoundation",
+                "filename": null,
+                "symbol_addr": "0x00dba14a0",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00dba1803"
+            },
+            {
+                "function": "__CFRunLoopDoSources0",
+                "abs_path": null,
+                "instruction_offset": 556,
+                "package": "CoreFoundation",
+                "filename": null,
+                "symbol_addr": "0x00dba2120",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00dba234c"
+            },
+            {
+                "function": "__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__",
+                "abs_path": null,
+                "instruction_offset": 17,
+                "package": "CoreFoundation",
+                "filename": null,
+                "symbol_addr": "0x00dbac410",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00dbac421"
+            },
+            {
+                "function": "_UIApplicationHandleEventQueue",
+                "abs_path": null,
+                "instruction_offset": 5480,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4a647b",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4a79e3"
+            },
+            {
+                "function": "-[UIApplication handleKeyHIDEvent:]",
+                "abs_path": null,
+                "instruction_offset": 634,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4cea7d",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4cecf7"
+            },
+            {
+                "function": "-[UIApplication handleKeyUIEvent:]",
+                "abs_path": null,
+                "instruction_offset": 79,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4ced18",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4ced67"
+            },
+            {
+                "function": "-[UIResponder _handleKeyUIEvent:]",
+                "abs_path": null,
+                "instruction_offset": 79,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e6c3204",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e6c3253"
+            },
+            {
+                "function": "-[UIResponder _handleKeyUIEvent:]",
+                "abs_path": null,
+                "instruction_offset": 79,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e6c3204",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e6c3253"
+            },
+            {
+                "function": "-[UIResponder _handleKeyUIEvent:]",
+                "abs_path": null,
+                "instruction_offset": 79,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e6c3204",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e6c3253"
+            },
+            {
+                "function": "-[UIApplication _handleKeyUIEvent:]",
+                "abs_path": null,
+                "instruction_offset": 2420,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4cf032",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4cf9a6"
+            },
+            {
+                "function": "-[UIApplication _sendButtonEventWithPressInfo:]",
+                "abs_path": null,
+                "instruction_offset": 302,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4c3070",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4c319e"
+            },
+            {
+                "function": "-[UIApplication sendEvent:]",
+                "abs_path": null,
+                "instruction_offset": 263,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4ce4bf",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4ce5c6"
+            },
+            {
+                "function": "-[UIWindow sendEvent:]",
+                "abs_path": null,
+                "instruction_offset": 999,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e522a5b",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e522e42"
+            },
+            {
+                "function": "-[UIWindow _sendButtonGesturesForEvent:]",
+                "abs_path": null,
+                "instruction_offset": 1042,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e5221e3",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e5225f5"
+            },
+            {
+                "function": "_UIGestureRecognizerUpdate",
+                "abs_path": null,
+                "instruction_offset": 2634,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e99612f",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e996b79"
+            },
+            {
+                "function": "_UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks",
+                "abs_path": null,
+                "instruction_offset": 342,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e9a90a1",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e9a91f7"
+            },
+            {
+                "function": "___UIGestureRecognizerUpdate_block_invoke898",
+                "abs_path": null,
+                "instruction_offset": 79,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e9a930a",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e9a9359"
+            },
+            {
+                "function": "-[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]",
+                "abs_path": null,
+                "instruction_offset": 843,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e9a0b50",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e9a0e9b"
+            },
+            {
+                "function": "_UIGestureRecognizerSendActions",
+                "abs_path": null,
+                "instruction_offset": 162,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e9a2dfc",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e9a2e9e"
+            },
+            {
+                "function": "_UIGestureRecognizerSendTargetActions",
+                "abs_path": null,
+                "instruction_offset": 153,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e9a6793",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e9a682c"
+            },
+            {
+                "function": "-[UIControl _sendActionsForEvents:withEvent:]",
+                "abs_path": null,
+                "instruction_offset": 327,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e622718",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e62285f"
+            },
+            {
+                "function": "-[UIControl sendAction:to:forEvent:]",
+                "abs_path": null,
+                "instruction_offset": 67,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e622540",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e622583"
+            },
+            {
+                "function": "-[UIApplication sendAction:to:from:forEvent:]",
+                "abs_path": null,
+                "instruction_offset": 92,
+                "package": "UIKit",
+                "filename": null,
+                "symbol_addr": "0x00e4af3bd",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00e4af419"
+            },
+            {
+                "function": "@objc SwiftTVOSExample.ViewController.onClickBreak (Swift.AnyObject) -> ()",
+                "abs_path": "/Users/josh/iOS/Sentry/RavenSwift/Examples/SwiftTVOSExample/SwiftTVOSExample/ViewController.swift",
+                "instruction_offset": 54,
+                "package": "SwiftTVOSExample",
+                "filename": "ViewController.swift",
+                "symbol_addr": "0x00d93ad50",
+                "lineno": 0,
+                "in_app": true,
+                "instruction_addr": "0x00d93ad86"
+            },
+            {
+                "function": "SwiftTVOSExample.ViewController.onClickBreak (Swift.AnyObject) -> ()",
+                "abs_path": "/Users/josh/iOS/Sentry/RavenSwift/Examples/SwiftTVOSExample/SwiftTVOSExample/ViewController.swift",
+                "instruction_offset": null,
+                "package": "SwiftTVOSExample",
+                "filename": "ViewController.swift",
+                "symbol_addr": "0x00d93a9d0",
+                "lineno": 65,
+                "in_app": true,
+                "instruction_addr": "0x00d93acc7"
+            },
+            {
+                "function": "function signature specialization <Arg[0] = Exploded, Arg[1] = Exploded, Arg[2] = Dead, Arg[3] = Dead> of Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> ()",
+                "abs_path": null,
+                "instruction_offset": 40,
+                "package": "libswiftCore.dylib",
+                "filename": null,
+                "symbol_addr": "0x00ffcd0d0",
+                "lineno": null,
+                "in_app": false,
+                "instruction_addr": "0x00ffcd0f8"
+            }
+        ]
+    },
+    "sdk": {
+        "version": "1",
+        "name": "raven-swift"
+    }
+}