Run code formatter
MODIFY
dd-trace-api/src/main/java/datadog/trace/api/interceptor/MutableSpan.java
dd-trace-api/src/main/java/datadog/trace/api/interceptor/MutableSpan.java
@@ -26,9 +26,8 @@ public interface MutableSpan {
/**
* @deprecated Use {@link MutableSpan#setTag(String, boolean)} instead using either tag names
- * {@link datadog.trace.api.sampling.ForcedTracing#manual_KEEP} or
- * {@link datadog.trace.api.sampling.ForcedTracing#manual_DROP}.
- *
+ * {@link datadog.trace.api.sampling.ForcedTracing#manual_KEEP} or {@link
+ * datadog.trace.api.sampling.ForcedTracing#manual_DROP}.
* @param newPriority
* @return
*/

MODIFY
dd-trace-api/src/main/java/datadog/trace/api/sampling/ForcedTracing.java
dd-trace-api/src/main/java/datadog/trace/api/sampling/ForcedTracing.java
package datadog.trace.api.sampling;
/**
- * Class exposing tag names to mark a span to be dropped or kept by the sampler based on user intent.
+ * Class exposing tag names to mark a span to be dropped or kept by the sampler based on user
+ * intent.
*/
-final public class ForcedTracing {
+public final class ForcedTracing {
- /**
- * The user has decided to drop the trace.
- */
+ /** The user has decided to drop the trace. */
public static final String manual_DROP = "manual.drop";
- /**
- * The user has decided to keep the trace.
- */
+ /** The user has decided to keep the trace. */
public static final String manual_KEEP = "manual.keep";
private ForcedTracing() {}

MODIFY
dd-trace-ot/src/main/java/datadog/opentracing/DDSpanContext.java
dd-trace-ot/src/main/java/datadog/opentracing/DDSpanContext.java
@@ -321,10 +321,10 @@ public class DDSpanContext implements io.opentracing.SpanContext {
return;
}
- // For priority sampling we use tags ForcedTracing#manual_DROP and ForcedTracing#manual_KEEP as vectors to set the
- // respective priority sample values. A decorator is not a viable option to achieve this as handles primarily tags
- // and does not expose an API to perform more complex operations. We may want to revisit this functionality, but for
- // now we do it manually here.
+ // For priority sampling we use tags ForcedTracing#manual_DROP and ForcedTracing#manual_KEEP as
+ // vectors to set the respective priority sample values. A decorator is not a viable option to
+ // achieve this as handles primarily tags and does not expose an API to perform more complex
+ // operations. We may want to revisit this functionality, but for now we do it manually here.
if (tag.equals(ForcedTracing.manual_KEEP) || tag.equals(ForcedTracing.manual_DROP)) {
this.processForcedTracingTag(tag, value);
return;

Run code formatter