Additional observability related changes
This commit is contained in:
@@ -57,7 +57,7 @@ enum FunctionObservation implements DocumentedObservation {
|
||||
*/
|
||||
FUNCTION_NAME {
|
||||
public String asString() {
|
||||
return "spring.cloud.function.name";
|
||||
return "spring.cloud.function.definition";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,6 @@ public class ObservationFunctionAroundWrapper extends FunctionAroundWrapper {
|
||||
Object result = Observation
|
||||
.createNotStarted(FunctionObservation.FUNCTION_OBSERVATION.getName(), context, this.observationRegistry)
|
||||
.contextualName(FunctionObservation.FUNCTION_OBSERVATION.getContextualName())
|
||||
//.keyValuesProvider(tagsProvider)
|
||||
.observe(() -> {
|
||||
Object r = message == null ? targetFunction.get() : targetFunction.apply(invocationMessage);
|
||||
context.setModifiedOutput(r);
|
||||
|
||||
Reference in New Issue
Block a user