Skip to content

Commit a7ad052

Browse files
committed
int id
1 parent 3947b26 commit a7ad052

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

internal/service/transactional_service.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ func (s *TransactionalNotificationService) SendNotification(
558558
// Send the message based on channel type
559559
if channel == domain.TransactionalChannelEmail {
560560

561-
// Get the email provider using the workspace's GetEmailProvider method
562-
emailProvider, err := workspace.GetEmailProvider(false)
561+
// Get the email provider and integration ID using the workspace's GetEmailProviderWithIntegrationID method
562+
emailProvider, integrationID, err := workspace.GetEmailProviderWithIntegrationID(false)
563563
if err != nil {
564564
tracing.MarkSpanError(childCtx, err)
565565
childSpan.End()
@@ -576,12 +576,14 @@ func (s *TransactionalNotificationService) SendNotification(
576576

577577
childSpan.AddAttributes(
578578
trace.StringAttribute("provider.kind", string(emailProvider.Kind)),
579+
trace.StringAttribute("integration_id", integrationID),
579580
)
580581

581582
notification.TrackingSettings.EnableTracking = workspace.Settings.EmailTrackingEnabled
582583

583584
request := domain.SendEmailRequest{
584585
WorkspaceID: workspaceID,
586+
IntegrationID: integrationID,
585587
MessageID: messageID,
586588
ExternalID: params.ExternalID,
587589
Contact: contact,

0 commit comments

Comments
 (0)