Key

public final class Key

The predefined metadata keys used by the default logging API. Backend implementations can use these to identify metadata added by the core logging API.

Properties

Link copied to clipboard
Key associated with the metadata for specifying additional stack information with a log statement.
Link copied to clipboard
public final static MetadataKey<DurationRateLimiter.RateLimitPeriod> LOG_AT_MOST_EVERY
The key associated with a rate limiting period for "at most once every N" rate limiting.
Link copied to clipboard
public final static MetadataKey<Throwable> LOG_CAUSE
The key associated with a Throwable cause to be associated with the log message.
Link copied to clipboard
public final static MetadataKey<Integer> LOG_EVERY_N
The key associated with a rate limiting counter for "1-in-N" rate limiting.
Link copied to clipboard
public final static MetadataKey<Integer> LOG_SAMPLE_EVERY_N
The key associated with a rate limiting counter for "1-in-N" randomly sampled rate limiting.
Link copied to clipboard
The key associated with a sequence of log site "grouping keys".
Link copied to clipboard
public final static MetadataKey<Integer> SKIPPED_LOG_COUNT
The key associated with a count of rate limited logs.
Link copied to clipboard
public final static MetadataKey<Tags> TAGS
The key associated with any injected Tags.
Link copied to clipboard
public final static MetadataKey<Boolean> WAS_FORCED
The key associated with a Boolean value used to specify that the log statement must be emitted.