Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Features

- Make `ISpan.startChild` overloads with `SpanOptions` public ([#5927](https://github.com/getsentry/sentry-java/pull/5927))

### Fixes

- Clear contexts when calling `Scope.clear()` ([#5902](https://github.com/getsentry/sentry-java/pull/5902))
Expand Down
17 changes: 15 additions & 2 deletions sentry/src/main/java/io/sentry/ISpan.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,25 @@ public interface ISpan {
@NotNull
ISpan startChild(@NotNull String operation);

@ApiStatus.Internal
/**
* Starts a child Span.
*
* @param operation - new span operation name
* @param description - new span description name
* @param spanOptions - options for the newly created span, e.g. an explicit start timestamp
* @return a new transaction span
*/
@NotNull
ISpan startChild(
@NotNull String operation, @Nullable String description, @NotNull SpanOptions spanOptions);

@ApiStatus.Internal
/**
* Starts a child Span.
*
* @param spanContext - the context for the newly created span
* @param spanOptions - options for the newly created span, e.g. an explicit start timestamp
* @return a new transaction span
*/
@NotNull
ISpan startChild(@NotNull SpanContext spanContext, @NotNull SpanOptions spanOptions);

Expand Down
Loading