fyipe 3.0.12005.pre.qa → 3.0.12024.pre.qa
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -4
- data/lib/fyipe/version.rb +1 -1
- data/lib/fyipeTracker.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a93f40ada199e345ca278f9660099de2106f1326b55a47f51360dd636888916
|
4
|
+
data.tar.gz: a129831f8c71fab6f08f11ec1a8c5ead1c1bc686774ef90052a462d60a66bfa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fe71e23fca176da5d741df0a072c722fdaeca186db29a2b97a955df35a7112666d0a921c40d3558722c5d3a91ba76b6403a3b9c2ad82d647c2fc4fa8bd17ef7
|
7
|
+
data.tar.gz: 2eed589205d55b8ab46c1f9871ff6cb93c5cdc8f0b5808da5e26d5b28cac936240c040581c1ccd732db02190d19f82d88aca2461ebc831a12f40c06dace0731d
|
data/README.md
CHANGED
@@ -66,13 +66,13 @@ puts response
|
|
66
66
|
```ruby
|
67
67
|
require 'fyipe'
|
68
68
|
|
69
|
-
# constructor
|
70
|
-
|
71
69
|
# set up tracking configurations
|
72
70
|
options = {
|
73
71
|
"maxTimeline": 50,
|
74
72
|
"captureCodeSnippet": true
|
75
73
|
}
|
74
|
+
|
75
|
+
# constructor
|
76
76
|
tracker = FyipeLogger.new(
|
77
77
|
'API_URL', # https://fyipe.com/api
|
78
78
|
'ERROR_TRACKER_ID',
|
@@ -80,14 +80,51 @@ tracker = FyipeLogger.new(
|
|
80
80
|
options # optional
|
81
81
|
)
|
82
82
|
|
83
|
-
# capturing
|
83
|
+
# capturing a timeline manually
|
84
|
+
timelineContent = {}
|
85
|
+
|
86
|
+
timelineContent["account"] = "debit"
|
87
|
+
timelineContent["amount"] = "6000.00"
|
88
|
+
timelineContent["userId"] = 471
|
89
|
+
tracker.addToTimeline('payment', timelineContent, 'info')
|
90
|
+
|
91
|
+
# setting custom tags
|
92
|
+
tracker.setTag('category', 'QA Tester') # a single tag
|
93
|
+
|
94
|
+
# multiple tags
|
95
|
+
tags = []
|
96
|
+
|
97
|
+
# create two tags
|
98
|
+
tagOne = {}
|
99
|
+
tagOne["key"] = 'type'
|
100
|
+
tagOne["value"] = 'notification'
|
101
|
+
tagTwo = {}
|
102
|
+
tagTwo["key"] = 'location'
|
103
|
+
tagTwo["value"] = 'Oslo'
|
104
|
+
|
105
|
+
# add the two items to the array
|
106
|
+
tags = [tagOne, tagTwo]
|
107
|
+
|
108
|
+
# setting the array of tags
|
109
|
+
tracker.setTags(tags)
|
110
|
+
|
111
|
+
|
112
|
+
# all error exception captured are sent to your fyipe dashboard
|
113
|
+
|
114
|
+
# capturing errors in a begin and rescue
|
84
115
|
begin
|
85
|
-
#
|
116
|
+
# some code that might fail
|
86
117
|
result = 5/0 # Should throw a division by zero error
|
87
118
|
rescue => ex
|
88
119
|
tracker.captureException(ex)
|
89
120
|
end
|
90
121
|
|
122
|
+
# capturing errors using the message signature
|
123
|
+
tracker.captureMessage('some error text')
|
124
|
+
|
125
|
+
# capturing errors authomatically
|
126
|
+
NonExistingMethod() # calling this will trigger an error and its sent to your fyipe dashboard
|
127
|
+
|
91
128
|
```
|
92
129
|
|
93
130
|
## API Documentation
|
data/lib/fyipe/version.rb
CHANGED
data/lib/fyipeTracker.rb
CHANGED