static String getSpanName(String commandName, @Nullable String collectionName) {
    if (collectionName == null) return commandName;
    return commandName + " " + collectionName;
  }
@Test void getSpanName_emptyCollectionName() {
    assertThat(getSpanName("foo", null)).isEqualTo("foo");
  }