File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 7
7
# sentry-python - Sentry SDK for Python
8
8
9
9
[ ![ Build Status] ( https://travis-ci.com/getsentry/sentry-python.svg?branch=master )] ( https://travis-ci.com/getsentry/sentry-python )
10
+ [ ![ PyPi page link -- version] ( https://img.shields.io/pypi/v/sentry-sdk.svg )] ( https://pypi.python.org/pypi/sentry-sdk )
10
11
11
- To learn about how to use the SDK:
12
+ This is the next line of the Python SDK for [ Sentry] ( http://sentry.io/ ) , intended to replace the ` raven ` package on PyPI.
13
+
14
+ ``` python
15
+ from sentry_sdk import init, capture_message
16
+
17
+ init(" mydsn@sentry.io/123" )
18
+
19
+ capture_message(" Hello World" ) # Will create an event.
20
+
21
+ raise ValueError () # Will also create an event.
22
+ ```
23
+
24
+ To learn more about how to use the SDK:
12
25
13
26
- [ Getting started with the new SDK] ( https://docs.sentry.io/quickstart/?platform=python )
14
27
- [ Configuration options] ( https://docs.sentry.io/error-reporting/configuration/?platform=python )
You can’t perform that action at this time.
0 commit comments