Changed isSampled() to Boolean since we could also defer a smapling decision

This commit is contained in:
Marcin Grzejszczak
2020-12-10 10:46:24 +01:00
parent d547386cb5
commit 7fee2670c7
4 changed files with 5 additions and 5 deletions

View File

@@ -46,8 +46,8 @@ public interface TraceContext {
String spanId();
/**
* @return {@code true} when sampled
* @return {@code true} when sampled, {@code false} when not sampled and {@code null} when sampling decision should be deferred
*/
boolean isSampled();
Boolean isSampled();
}