in sdk-java/src/main/java/com/spotify/confidence/Confidence.java [106:116]
public void track(String eventName, ConfidenceValue.Struct data) {
if (data.asMap().containsKey("context")) {
throw new Exceptions.InvalidContextInMessaageError(
"Field 'context' is not allowed in event's data");
}
try {
client().emit(eventName, getContext(), Optional.of(data));
} catch (IllegalStateException e) {
// swallow this exception
}
}