Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Respond to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bhs committed May 11, 2017
1 parent e723a0b commit cde0b63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion opentracing-api/src/main/java/io/opentracing/BaseSpan.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public interface BaseSpan<S extends BaseSpan> {
/**
* Set a key:value tag on the Span.
*/
// overloaded 3x to support the BasicType concern
S setTag(String key, String value);

/** Same as {@link #setTag(String, String)}, but for boolean values. */
Expand Down Expand Up @@ -148,12 +147,15 @@ public interface BaseSpan<S extends BaseSpan> {
* or
* {@code span.log(timestampMicroseconds, Map.of("event", "exception", "payload", stackTrace))}
**/
@Deprecated
S log(String eventName, /* @Nullable */ Object payload);

/**
* @deprecated use {@link #log(Map)} like this
* {@code span.log(timestampMicroseconds, Map.of("event", "timeout"))}
* or
* {@code span.log(timestampMicroseconds, Map.of("event", "exception", "payload", stackTrace))}
**/
@Deprecated
S log(long timestampMicroseconds, String eventName, /* @Nullable */ Object payload);
}
3 changes: 2 additions & 1 deletion opentracing-api/src/main/java/io/opentracing/Tracer.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ interface SpanBuilder {
* <p>
* If parent==null, this is a noop.
*/
SpanBuilder asChildOf(BaseSpan parent);
SpanBuilder asChildOf(BaseSpan<?> parent);

/**
* Add a reference from the Span being built to a distinct (usually parent) Span. May be called multiple times
Expand Down Expand Up @@ -201,6 +201,7 @@ interface SpanBuilder {
/**
* @deprecated use {@link #startManual} or {@link #startActive} instead.
*/
@Deprecated
Span start();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ public void missingActiveSpan() throws Exception {
public void makeActiveSpan() throws Exception {
Span span = mock(Span.class);

// We can't use 1.7 features like try-with-resources in this repo -- argh.
//
// F*** IT, WE'LL DO IT LIVE!
// We can't use 1.7 features like try-with-resources in this repo without meddling with pom details for tests.
ActiveSpan activeSpan = source.makeActive(span);
try {
assertNotNull(activeSpan);
Expand Down

0 comments on commit cde0b63

Please sign in to comment.