Skip to content
Merged
Changes from 2 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
Expand Up @@ -79,7 +79,7 @@ public enum Transport {
* @return the server port, or {@code null} if not set
*/
@Nullable
public abstract Integer serverPort();
abstract Integer serverPort();
Comment thread
blakeli0 marked this conversation as resolved.

/**
* Returns the library metadata associated with the RPC.
Expand Down Expand Up @@ -135,7 +135,7 @@ String rpcSystemName() {
* @return the operation type, or {@code null} if not set
*/
@Nullable
public abstract OperationType operationType();
abstract OperationType operationType();
Comment thread
blakeli0 marked this conversation as resolved.

/**
* Returns the HTTP method used for the RPC, in case the RPC is an HttpJson method.
Expand All @@ -159,11 +159,11 @@ String rpcSystemName() {

/** The service name of a client (e.g. "bigtable", "spanner"). */
@Nullable
public abstract String serviceName();
abstract String serviceName();
Comment thread
blakeli0 marked this conversation as resolved.

/** The url domain of the request (e.g. "pubsub.googleapis.com"). */
@Nullable
public abstract String urlDomain();
abstract String urlDomain();
Comment thread
blakeli0 marked this conversation as resolved.

@Nullable
protected abstract Supplier<String> destinationResourceIdSupplier();
Expand All @@ -173,7 +173,7 @@ String rpcSystemName() {
* //pubsub.googleapis.com/projects/p/locations/l/topics/t).
*/
@Nullable
public String destinationResourceId() {
String destinationResourceId() {
Comment thread
blakeli0 marked this conversation as resolved.
Supplier<String> supplier = destinationResourceIdSupplier();
if (supplier == null) {
return null;
Expand Down Expand Up @@ -209,7 +209,7 @@ <RequestT> ApiTracerContext withResourceNameExtractor(
/**
* @return a map of attributes to be included in attempt-level spans
*/
public Map<String, Object> getAttemptAttributes() {
Map<String, Object> getAttemptAttributes() {
Comment thread
blakeli0 marked this conversation as resolved.
Map<String, Object> attributes = new HashMap<>();
if (!Strings.isNullOrEmpty(serverAddress())) {
attributes.put(ObservabilityAttributes.SERVER_ADDRESS_ATTRIBUTE, serverAddress());
Expand Down Expand Up @@ -322,15 +322,15 @@ ApiTracerContext merge(ApiTracerContext other) {
return builder.build();
}

public static ApiTracerContext empty() {
static ApiTracerContext empty() {
Comment thread
blakeli0 marked this conversation as resolved.
return newBuilder().setLibraryMetadata(LibraryMetadata.empty()).build();
}

public static Builder newBuilder() {
return new AutoValue_ApiTracerContext.Builder();
}

public abstract Builder toBuilder();
abstract Builder toBuilder();
Comment thread
blakeli0 marked this conversation as resolved.

@AutoValue.Builder
public abstract static class Builder {
Expand All @@ -342,7 +342,7 @@ public abstract static class Builder {

public abstract Builder setTransport(@Nullable Transport transport);

public abstract Builder setOperationType(@Nullable OperationType operationType);
abstract Builder setOperationType(@Nullable OperationType operationType);

public abstract Builder setServerPort(@Nullable Integer serverPort);

Expand All @@ -354,7 +354,7 @@ public abstract static class Builder {

public abstract Builder setUrlDomain(@Nullable String urlDomain);

public abstract Builder setDestinationResourceIdSupplier(
abstract Builder setDestinationResourceIdSupplier(
@Nullable Supplier<String> destinationResourceIdSupplier);

public abstract ApiTracerContext build();
Expand Down
Loading