-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this PR, you can now pass a `parentSpan` optionally to `startSpan*` APIs to create a span as a child of a specific span: ```js const span = Sentry.startInactiveSpan({ name: 'xxx', parentSpan: parent }); Sentry.startSpan({ name: 'xxx', parentSpan: parent }, () => {}); Sentry.startSpanManual({ name: 'xxx', parentSpan: parent }, () => {}); ``` With this, it should be easier to understand how you can manually work with spans in v8. Closes #12539 ref #12566, which I noticed while working on this. For now I just cast the span which should be fine, but is not ideal.
- Loading branch information
Showing
5 changed files
with
287 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.