Add @since tags for new public methods. (#3209)

* Add @since tags for new public methods.

* remove errant since tags
This commit is contained in:
John Watson 2021-05-06 16:26:55 -07:00 committed by GitHub
parent 15a1160e56
commit f396965196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,7 @@ public interface Span extends ImplicitContextKeyed {
*
* @param attributes the attributes
* @return this.
* @since 1.2.0
*/
@SuppressWarnings("unchecked")
default Span setAllAttributes(Attributes attributes) {

View File

@ -234,6 +234,7 @@ public interface SpanBuilder {
*
* @param attributes the attributes
* @return this.
* @since 1.2.0
*/
@SuppressWarnings("unchecked")
default SpanBuilder setAllAttributes(Attributes attributes) {

View File

@ -70,6 +70,7 @@ public final class ZipkinSpanExporterBuilder {
* Sets the maximum time to wait for the export of a batch of spans. If unset, defaults to 10s.
*
* @return this.
* @since 1.2.0
*/
public ZipkinSpanExporterBuilder setReadTimeout(long timeout, TimeUnit unit) {
requireNonNull(unit, "unit");
@ -82,6 +83,7 @@ public final class ZipkinSpanExporterBuilder {
* Sets the maximum time to wait for the export of a batch of spans. If unset, defaults to 10s.
*
* @return this.
* @since 1.2.0
*/
public ZipkinSpanExporterBuilder setReadTimeout(Duration timeout) {
requireNonNull(timeout, "timeout");

View File

@ -43,6 +43,7 @@ public interface AggregatorFactory {
*
* @param temporality configures what temporality to be produced for the Sum metrics.
* @return an {@code AggregationFactory} that calculates sum of recorded measurements.
* @since 1.2.0
*/
static AggregatorFactory sum(AggregationTemporality temporality) {
return new SumAggregatorFactory(temporality);