Skip to content

Commit 155cbf6

Browse files
committed
Update README.md
Adds custom property to example.
1 parent f6fb4fd commit 155cbf6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ Passing a function to sendError will allow you to quickly populate the propertie
125125
client.sendError(err, "Error", function(event) {
126126

127127
// set some custom properties on the event
128+
event.contextOperationTimeMillis = 1000
129+
event.eventUser = "jake@trakerr.io"
130+
event.session = "20"
131+
event.contextDevice = "pc"
132+
event.contextAppSku = "mobile"
133+
event.contextTags = ["client, frontend"]
134+
128135
event.customProperties = {
129136
customString: {
130137
customData1: "Some data"

0 commit comments

Comments
 (0)