Skip to content

Commit

Permalink
replication - drop outer loop span
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianZaremba committed Dec 17, 2024
1 parent 083fe61 commit d3c1dbe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cbng/processor/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ func ReplicationWatcher(wg *sync.WaitGroup, configuration *config.Configuration,
}

case change := <-inChangeFeed:
_, span := metrics.OtelTracer.Start(context.Background(), "replication.ReplicationWatcher.loop")
span.SetAttributes(attribute.String("uuid", change.Uuid))

// Put the change feed into the pending map
pending[change.Uuid] = change

Expand All @@ -100,7 +97,6 @@ func ReplicationWatcher(wg *sync.WaitGroup, configuration *config.Configuration,
if change.Common.Title == configuration.Instances.TFA.GetPageName() {
configuration.Instances.TFA.TriggerReload()
}
span.End()
}
}
}

0 comments on commit d3c1dbe

Please sign in to comment.