Skip to content

Commit

Permalink
add default to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity committed Dec 15, 2019
1 parent 402067e commit 498a3b0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,8 @@ public interface Tracer {
* @return The updated {@link Context} object containing the span builder.
* @throws NullPointerException if {@code context} or {@code spanName} is {@code null}.
*/
Context getSharedSpanBuilder(String spanName, Context context);
default Context getSharedSpanBuilder(String spanName, Context context) {
// no-op
return Context.NONE;
}
}

0 comments on commit 498a3b0

Please sign in to comment.