Builder

public final class Builder

A builder to collect metadata key/values pairs in order. This class is only expected to be needed by implementations of ScopedLoggingContext and should not be considered a stable API.

Functions

Link copied to clipboard
@CanIgnoreReturnValue()
public ContextMetadata.Builder add<T>(MetadataKey<T> key, T value)
Add a single metadata key/value pair to the builder.
Link copied to clipboard