@sentry/profiling-node 8.0.0-alpha.2 → 8.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,15 +38,13 @@ Sentry.init({
38
38
  });
39
39
  ```
40
40
 
41
- Sentry SDK will now automatically profile all transactions, even the ones which may be started as a result of using an
41
+ Sentry SDK will now automatically profile all root spans, even the ones which may be started as a result of using an
42
42
  automatic instrumentation integration.
43
43
 
44
44
  ```javascript
45
- const transaction = Sentry.startTransaction({ name: 'some workflow' });
46
-
47
- // The code between startTransaction and transaction.finish will be profiled
48
-
49
- transaction.end();
45
+ Sentry.startSpan({ name: 'some workflow' }, () => {
46
+ // The code in here will be profiled
47
+ });
50
48
  ```
51
49
 
52
50
  ### Building the package from source