Remove throws statements from the API until we decide how to document it (#2912)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
Bogdan Drutu 2021-02-22 18:30:09 -08:00 committed by GitHub
parent 9e1c76b324
commit becded2181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 11 deletions

View File

@ -117,7 +117,6 @@ public interface SpanBuilder {
*
* @param context the {@code Context}.
* @return this.
* @throws NullPointerException if {@code context} is {@code null}.
*/
SpanBuilder setParent(Context context);
@ -140,7 +139,6 @@ public interface SpanBuilder {
*
* @param spanContext the context of the linked {@code Span}.
* @return this.
* @throws NullPointerException if {@code spanContext} is {@code null}.
*/
SpanBuilder addLink(SpanContext spanContext);
@ -154,8 +152,6 @@ public interface SpanBuilder {
* @param spanContext the context of the linked {@code Span}.
* @param attributes the attributes of the {@code Link}.
* @return this.
* @throws NullPointerException if {@code spanContext} is {@code null}.
* @throws NullPointerException if {@code attributes} is {@code null}.
*/
SpanBuilder addLink(SpanContext spanContext, Attributes attributes);
@ -172,7 +168,6 @@ public interface SpanBuilder {
* @param key the key for this attribute.
* @param value the value for this attribute.
* @return this.
* @throws NullPointerException if {@code key} is {@code null}.
*/
SpanBuilder setAttribute(String key, String value);
@ -186,7 +181,6 @@ public interface SpanBuilder {
* @param key the key for this attribute.
* @param value the value for this attribute.
* @return this.
* @throws NullPointerException if {@code key} is {@code null}.
*/
SpanBuilder setAttribute(String key, long value);
@ -200,7 +194,6 @@ public interface SpanBuilder {
* @param key the key for this attribute.
* @param value the value for this attribute.
* @return this.
* @throws NullPointerException if {@code key} is {@code null}.
*/
SpanBuilder setAttribute(String key, double value);
@ -214,7 +207,6 @@ public interface SpanBuilder {
* @param key the key for this attribute.
* @param value the value for this attribute.
* @return this.
* @throws NullPointerException if {@code key} is {@code null}.
*/
SpanBuilder setAttribute(String key, boolean value);
@ -227,8 +219,6 @@ public interface SpanBuilder {
* @param key the key for this attribute.
* @param value the value for this attribute.
* @return this.
* @throws NullPointerException if {@code key} is {@code null}.
* @throws NullPointerException if {@code value} is {@code null}.
*/
<T> SpanBuilder setAttribute(AttributeKey<T> key, T value);

View File

@ -65,7 +65,6 @@ public interface Tracer {
*
* @param spanName The name of the returned Span.
* @return a {@code Span.Builder} to create and start a new {@code Span}.
* @throws NullPointerException if {@code spanName} is {@code null}.
*/
SpanBuilder spanBuilder(String spanName);
}