You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Why
This pull request releases the backtrace-python library.
In order to create a valid release, I'm also updating the package
description that will be visible in pypi:
https://pypi.org/project/backtracepython/#description
- context_line_count - Defaults to 200 . When an error is reported, this many lines above and below each stack function are included in the report.
58
58
- tab_width - Defaults to 8. If there are any hard tabs in the source code, it is unclear how many spaces they should be indented to correctly display the source code. Therefore the error report can override this number to specify how many spaces a hard tab should be represented by when viewing source code.
59
59
- collect_source_code - Default to True. By default Backtrace client collects corresponded source code and send it with the report. If set to False, the source code will not be collected.
60
+
- exit_timeout - Default to 4. Backtrace sends data asynchronously in the background thread. The exit_timeout describes how many time the thread has to finish working before application exit.
60
61
61
62
### bt.BacktraceReport
62
63
63
64
Create a report object that you can later choose whether or not to send. This may be useful to track something like a request.
64
65
65
-
`report.set_attribute(key, value)`
66
+
`report.set_attribute(key, value)`
66
67
Adds an attribute to a specific report. Valid types for value are str, float, int, and bool.
67
68
Attributes are indexed and searchable. See also `addAnnotation`
68
69
69
70
`report.set_dict_attributes(dict)`
70
71
71
72
Adds all key-value pairs of dict into the report recursively.
72
73
73
-
`report.get_attributes()`
74
+
`report.get_attributes()`
74
75
75
76
Returns all report attributes.
76
77
77
-
`report.set_annotation(key, value)`
78
+
`report.set_annotation(key, value)`
78
79
79
80
Adds an annotation to a specific report. Annotations, unlike attributes, are not indexed and searchable. However, they are available for inspection when you view a specific report.
error is an Error object. Backtrace will extract information from this object such as the error message and stack trace and send this information along with the report.
99
100
100
-
`report.capture_last_exception()`
101
+
`report.capture_last_exception()`
101
102
102
103
This is the same as report.set_exception(\*sys.exc_info())
103
104
@@ -118,7 +119,7 @@ Sends the error report to the endpoint specified in initialize.
118
119
119
120
To run the test suite:
120
121
121
-
```
122
+
```bash
122
123
pytest
123
124
```
124
125
@@ -135,7 +136,7 @@ test suite with all of them:
135
136
2. Update version number in backtracepython module.
0 commit comments