Skip to content

Commit

Permalink
Fix context propagation in APM transaction for index watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Feb 21, 2024
1 parent ec2ba43 commit 7085767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bugfixes

* Fix context propagation in APM transaction for watcher backend process. [#1150](https://github.com/elastic/package-registry/issues/1150)

### Added

### Deprecated
Expand Down
2 changes: 1 addition & 1 deletion storage/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (i *Indexer) watchIndices(ctx context.Context) {
tx := i.options.APMTracer.StartTransaction("updateIndex", "backend.watcher")
defer tx.End()

err = i.updateIndex(ctx)
err = i.updateIndex(apm.ContextWithTransaction(ctx, tx))
if err != nil {
i.logger.Error("can't update index file", zap.Error(err))
}
Expand Down

0 comments on commit 7085767

Please # to comment.