Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package datadog.trace.bootstrap.instrumentation.decorator;

import static datadog.trace.api.cache.RadixTreeCache.UNSET_PORT;
import static datadog.trace.bootstrap.instrumentation.java.net.HostNameResolver.hostName;

import datadog.context.Context;
Expand All @@ -22,6 +21,7 @@
import java.util.function.Function;

public abstract class BaseDecorator {
protected static final int UNSET_PORT = 0;

private static final QualifiedClassNameCache CLASS_NAMES =
new QualifiedClassNameCache(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public abstract class HttpServerDecorator<REQUEST, CONNECTION, RESPONSE, REQUEST
extends ServerDecorator {

private static final Logger log = LoggerFactory.getLogger(HttpServerDecorator.class);
private static final int UNSET_PORT = 0;

public static final String DD_CONTEXT_ATTRIBUTE = "datadog.context";
public static final String DD_DISPATCH_SPAN_ATTRIBUTE = "datadog.span.dispatch";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package datadog.trace.instrumentation.synapse3;

import static datadog.trace.api.cache.RadixTreeCache.UNSET_PORT;
import static datadog.trace.api.cache.RadixTreeCache.UNSET_STATUS;
import static datadog.trace.instrumentation.synapse3.ExtractAdapter.Request;
import static datadog.trace.instrumentation.synapse3.ExtractAdapter.Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ public final class RadixTreeCache<T> {
new RadixTreeCache<>(
16, 32, TO_STRING, 200, 201, 301, 307, 400, 401, 403, 404, 500, 502, 503);

public static final int UNSET_PORT = 0;

private final int level1;
private final int level2;
private final int shift;
Expand Down