FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hawk.python/example/example3.py at master · codex-team/hawk.python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
codex-team
/
hawk.python
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
9
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
hawk.python
/
example
/
example3.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (13 loc) · 415 Bytes
Breadcrumbs
hawk.python
/
example
/
example3.py
Copy path
File metadata and controls
15 lines (13 loc) · 415 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
hawk_python_sdk
hawk_python_sdk
.
init
({
'token'
:
'eyJpbnRlZ3JhdGlvbklkIjoiY2YxYzVhZGEtNzllOC00YWQ1LWFmYTQtNGMzZjI3Y2UzNWRiIiwic2VjcmV0IjoiZjk4NTc5ZTMtNGZmMy00YmVlLThjYzEtOWVlMDY0ZjU4YTRjIn0='
,
'release'
:
'3.12.4'
})
hawk_python_sdk
.
send
(
event
=
Exception
(
"Something went wrong"
),
context
=
{
'ip'
:
'192.168.1.1'
},
user
=
{
'id'
:
2
,
'name'
:
'Bob'
}
)
print
(
'Event sent successfully'
)
Back
|
FazBrowse Home
|
New Git URL