Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ protected Map<String, AttributeValue> getIdentifyingAttributes(
return Collections.unmodifiableMap(identifyingAttributes);
}

protected Map<String, AttributeValue> getEnrichedEntityAttributes(
StructuredTrace trace, Event event, BackendType type, String backendURI) {
return Collections.emptyMap();
}

@VisibleForTesting
public Optional<BackendInfo> resolve(
Event event, StructuredTrace trace, StructuredTraceGraph structuredTraceGraph) {
Expand Down Expand Up @@ -337,6 +342,9 @@ public Optional<BackendInfo> resolve(

final Builder entityBuilder = getEntityBuilder(trace, event, type, backendUri);
backendProvider.getEntityAttributes(event).forEach(entityBuilder::putAttributes);
Map<String, AttributeValue> entityAttributes =
getEnrichedEntityAttributes(trace, event, type, backendUri);
entityBuilder.putAllAttributes(entityAttributes);
Map<String, org.hypertrace.core.datamodel.AttributeValue> enrichedAttributes =
new HashMap<>();
Optional<String> backendOperation = backendProvider.getBackendOperation(event);
Expand Down