@Experimental public interface FailureEnricher
Modifier and Type | Interface and Description |
---|---|
static interface |
FailureEnricher.Context
An interface used by the
FailureEnricher . |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getOutputKeys()
Method to list all the label Keys the enricher can associate with Values in case of a failure
processFailure . |
CompletableFuture<Map<String,String>> |
processFailure(Throwable cause,
FailureEnricher.Context context)
Method to handle a failure as part of the enricher and optionally return a map of KV pairs
(labels).
|
Set<String> getOutputKeys()
processFailure
. Note that Keys must unique and properly defined per enricher
implementation otherwise will be ignored.CompletableFuture<Map<String,String>> processFailure(Throwable cause, FailureEnricher.Context context)
getOutputKeys
method otherwise will be ignored.cause
- the exception that caused this failurecontext
- the context that includes extra information (e.g., if it was a global failure)Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.