Skip to content

Commit

Permalink
docs: explicitly mention non-null span parent (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans authored Feb 3, 2025
1 parent 089c432 commit 03143a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ SENTRY_EXPERIMENTAL_API void sentry_set_span(sentry_span_t *span);
* Starts a new Span.
*
* The return value of `sentry_transaction_start` should be passed in as
* `parent`.
* `parent`. This value can't be null, since we don't allow for orphan spans.
*
* Both `operation` and `description` can be null, but it is recommended to
* supply the former. See
Expand Down Expand Up @@ -1881,7 +1881,9 @@ SENTRY_EXPERIMENTAL_API sentry_span_t *sentry_transaction_start_child_ts_n(
/**
* Starts a new Span.
*
* The return value of `sentry_span_start_child` may be passed in as `parent`.
* The return value of either `sentry_transaction_start_child` or
* `sentry_span_start_child` should be passed in as `parent`. This value can't
* be null, since we don't allow for orphan spans.
*
* Both `operation` and `description` can be null, but it is recommended to
* supply the former. See
Expand Down

0 comments on commit 03143a8

Please sign in to comment.