Skip to content

Commit a33883f

Browse files
authored
Increase Jaeger Tracing coverage (feast-dev#719)
* Add jaegertracing logs to getOnlineFeatures * Apply spotless
1 parent f9ce8ee commit a33883f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

serving/src/main/java/feast/serving/service/OnlineServingService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package feast.serving.service;
1818

19+
import com.google.common.collect.ImmutableMap;
1920
import com.google.common.collect.Maps;
2021
import com.google.protobuf.Duration;
2122
import feast.proto.serving.ServingAPIProto.*;
@@ -75,6 +76,9 @@ public GetOnlineFeaturesResponse getOnlineFeatures(GetOnlineFeaturesRequest requ
7576
// feature set request.
7677
List<List<FeatureRow>> featureRows =
7778
retriever.getOnlineFeatures(entityRows, featureSetRequests);
79+
if (scope != null) {
80+
scope.span().log(ImmutableMap.of("event", "featureRows", "value", featureRows));
81+
}
7882

7983
// For each feature set request, read the feature rows returned by the retriever, and
8084
// populate the featureValuesMap with the feature values corresponding to that entity row.

0 commit comments

Comments
 (0)