package eu.mulk.quarkus.googlecloud.jsonlogging; import java.util.Collection; /** * A user-supplied provider for {@link Label}s. * *
Any CDI beans registered under this class are applied to each log entry that is logged. * *
Example: * *
{@code * @Singleton * @Unremovable * public final class RequestIdLabelProvider implements LabelProvider { * * @Override * public Collection* * Result: * *
{@code * { * "textPayload": "Request rejected: unauthorized.", * "labels": { * "requestId": "123" * } * } * }* * @see StructuredParameterProvider */ public interface LabelProvider { /** * Provides a collection of {@link Label}s to add to each log entry that is logged. * * @return a collection of {@link Label}s to add to each log entry that is logged. */ Collection