@Test void addsAutocompleteValue_differentDays() throws Exception {
    server.enqueue(SUCCESS_RESPONSE);
    server.enqueue(SUCCESS_RESPONSE);

    Span s = Span.newBuilder().traceId("1").id("1").timestamp(1).putTag("environment", "A").build();
    accept(s);
    accept(s.toBuilder().id(2).timestamp(1 + TimeUnit.DAYS.toMicros(1)).build());

    server.takeRequest(); // skip first
    // different day == different context
    assertThat(server.takeRequest().request().contentUtf8())
      .endsWith("""
        {"index":{"_index":"zipkin:autocomplete-1970-01-02","_type":"autocomplete","_id":"environment=A"}}
        {"tagKey":"environment","tagValue":"A"}
        """);
  }
Less overhead as a span json isn't rewritten to include a millis timestamp
zipkin-storage/elasticsearch/src/test/java/zipkin2/elasticsearch/ElasticsearchSpanConsumerTest.java