File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/platform-includes/performance/custom-performance-metrics Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ To capture in the SDK:
14
14
from sentry_sdk import set_measurement
15
15
16
16
# Record amount of memory used
17
- set_measurement(' memory_used' , 123 , ' byte' );
17
+ set_measurement(' memory_used' , 123 , ' byte' )
18
18
19
19
# Record time when job was started
20
- set_measurement(' job_start_time' , 1.3 , ' second' );
20
+ set_measurement(' job_start_time' , 1.3 , ' second' )
21
21
22
22
# Record amount of times cache was read
23
- set_measurement(' cache_read_count' , 4 );
23
+ set_measurement(' cache_read_count' , 4 )
24
24
```
25
25
26
26
The feature was marked experimental between versions ` 1.5.12 ` and ` 1.16.0 ` .
@@ -41,5 +41,5 @@ sentry_sdk.init(
41
41
transaction = Hub.current.scope.transaction
42
42
43
43
if transaction:
44
- transaction.set_measurement(' memory_used' , 123 , ' byte' );
44
+ transaction.set_measurement(' memory_used' , 123 , ' byte' )
45
45
```
You can’t perform that action at this time.
0 commit comments