Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sanket-mundra committed Jan 23, 2024
1 parent 4a7b6d8 commit aed68f2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,8 @@ private void handleServerSpan(String tenantId, Event event, String environment)

private boolean isPeerServiceNameIdentificationRequired(Event event) {
String agentType =
SpanAttributeUtils.getAttributeValueWithDefault(
event, this.peerCorrelationAgentTypeAttribute, null)
.getValue();
SpanAttributeUtils.getStringAttributeWithDefault(
event, this.peerCorrelationAgentTypeAttribute, null);
return Objects.nonNull(agentType)
&& this.peerCorrelationEnabledAgents.contains(agentType)
&& (this.peerCorrelationEnabledCustomers.contains(event.getCustomerId())
Expand Down

0 comments on commit aed68f2

Please sign in to comment.