Additional observability related changes

This commit is contained in:
Oleg Zhurakousky
2022-09-12 11:09:47 +02:00
parent cc47f0a271
commit 17a8dcbdcb
2 changed files with 1 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ enum FunctionObservation implements DocumentedObservation {
*/
FUNCTION_NAME {
public String asString() {
return "spring.cloud.function.name";
return "spring.cloud.function.definition";
}
}

View File

@@ -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);