@@ -423,13 +423,13 @@ private static void SetRemoteResourceTypeAndIdentifier(Activity span, ActivityTa
423423 else if ( IsKeyPresent ( span , AttributeAWSSecretsManagerSecretArn ) )
424424 {
425425 remoteResourceType = NormalizedSecretsManagerServiceName + "::Secret" ;
426- remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSSecretsManagerSecretArn ) ) . Split ( ':' ) . Last ( ) ;
426+ remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSSecretsManagerSecretArn ) ) ? . Split ( ':' ) . Last ( ) ;
427427 cloudformationPrimaryIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSSecretsManagerSecretArn ) ) ;
428428 }
429429 else if ( IsKeyPresent ( span , AttributeAWSSNSTopicArn ) )
430430 {
431431 remoteResourceType = NormalizedSNSServiceName + "::Topic" ;
432- remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSSNSTopicArn ) ) . Split ( ':' ) . Last ( ) ;
432+ remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSSNSTopicArn ) ) ? . Split ( ':' ) . Last ( ) ;
433433 cloudformationPrimaryIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSSNSTopicArn ) ) ;
434434 }
435435 else if ( IsKeyPresent ( span , AttributeAWSSQSQueueName ) )
@@ -447,13 +447,13 @@ private static void SetRemoteResourceTypeAndIdentifier(Activity span, ActivityTa
447447 else if ( IsKeyPresent ( span , AttributeAWSStepFunctionsActivityArn ) )
448448 {
449449 remoteResourceType = NormalizedStepFunctionsName + "::Activity" ;
450- remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSStepFunctionsActivityArn ) ) . Split ( ':' ) . Last ( ) ;
450+ remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSStepFunctionsActivityArn ) ) ? . Split ( ':' ) . Last ( ) ;
451451 cloudformationPrimaryIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSStepFunctionsActivityArn ) ) ;
452452 }
453453 else if ( IsKeyPresent ( span , AttributeAWSStepFunctionsStateMachineArn ) )
454454 {
455455 remoteResourceType = NormalizedStepFunctionsName + "::StateMachine" ;
456- remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSStepFunctionsStateMachineArn ) ) . Split ( ':' ) . Last ( ) ;
456+ remoteResourceIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSStepFunctionsStateMachineArn ) ) ? . Split ( ':' ) . Last ( ) ;
457457 cloudformationPrimaryIdentifier = EscapeDelimiters ( ( string ? ) span . GetTagItem ( AttributeAWSStepFunctionsStateMachineArn ) ) ;
458458 }
459459 else if ( IsKeyPresent ( span , AttributeAWSBedrockGuardrailId ) )
0 commit comments