Skip to content

Commit

Permalink
Made getters for scope events public; fixes gh-229
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Apr 12, 2023
1 parent 4f14a45 commit 96de312
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public ScopeAttachedEvent(@Nullable Context context) {
this.context = context;
}

Span getSpan() {
public Span getSpan() {
return Span.fromContextOrNull(context);
}

Baggage getBaggage() {
public Baggage getBaggage() {
return Baggage.fromContextOrNull(context);
}

Expand Down Expand Up @@ -127,11 +127,11 @@ public ScopeRestoredEvent(@Nullable Context context) {
this.context = context;
}

Span getSpan() {
public Span getSpan() {
return Span.fromContextOrNull(context);
}

Baggage getBaggage() {
public Baggage getBaggage() {
return Baggage.fromContextOrNull(context);
}

Expand Down

0 comments on commit 96de312

Please sign in to comment.