@Nullable @Override public String requestHeader(@Nonnull Invocation invocation, @Nonnull String key) { return invocation.getContext().get(key); }
@Nullable @Override public String requestHeader(@Nonnull Invocation invocation, @Nonnull String key) { return invocation.getContext().get(key); }
@Nullable @Override public Integer statusCode(@Nonnull Response response) { return response.getStatusCode(); } }
@Nullable @Override public Integer statusCode(@Nonnull Response response) { return response.getStatusCode(); } }
@Nullable @Override public String method(@Nonnull Invocation invocation) { return invocation.getOperationMeta().getHttpMethod(); }
@Nullable @Override public String url(@Nonnull Invocation invocation) { return invocation.getEndpoint().getEndpoint(); }
@Nullable @Override public String path(@Nonnull Invocation request) { return request.getOperationMeta().getOperationPath(); }
@Nullable @Override public String url(@Nonnull Invocation invocation) { return invocation.getEndpoint().getEndpoint(); }
@Nullable @Override public String method(@Nonnull Invocation invocation) { return invocation.getOperationMeta().getHttpMethod(); }
@Nullable @Override public String path(@Nonnull Invocation request) { return request.getOperationMeta().getOperationPath(); }
/** The same as the value of a {@link Span#tags()} v2 span tag} or null if this is an address */ @Nullable public String stringValue() { return stringValue; }
/** * The text representation of the primary IPv4 address associated with this a connection. Ex. * 192.168.99.100 Absent if unknown. */ @Nullable public String ipv4() { return ipv4; }
@Nullable @Override Long start_duration() { return start_duration; }
/** @see QueryRequest#minDuration() */ public Builder minDuration(@Nullable Long minDuration) { this.minDuration = minDuration; return this; }
/** @see QueryRequest#maxDuration() */ public Builder maxDuration(@Nullable Long maxDuration) { this.maxDuration = maxDuration; return this; }
/** * Span name in lowercase, rpc method for example. * * <p>Conventionally, when the span name isn't known, name = "unknown". */ @Nullable public String name() { return name; }
/** @see Span#duration() */ public Builder duration(@Nullable Long duration) { if (duration == null || duration < 0L) duration = 0L; this.duration = duration; return this; }
/** Present when not ok */ @Nullable public Throwable error() { return error; }
/** * Port of the IP's socket or null, if not known. * * @see java.net.InetSocketAddress#getPort() */ @Nullable public Integer port() { return port != 0 ? port : null; }
/** @see QueryRequest#serviceName() */ public Builder serviceName(@Nullable String serviceName) { this.serviceName = serviceName; return this; }