Commit Graph

48 Commits

Author SHA1 Message Date
Zack Kanter 264f813cab feat(instrumentation): instrument cache lifecycle with OTEL (#41922)
* fix(cache): instrument repository cache load and save

Wrap repository cache `load()` and `save()` calls with the existing
`instrument()` helper to create OpenTelemetry spans for cache lifecycle
operations. This gives operators visibility into repository cache
performance, especially useful with S3 backends.

Refs #41760

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(cache): instrument package cache init and destroy

Wrap package cache `init()` and `destroy()` with `instrument()` to
create OpenTelemetry spans, matching the repository cache instrumentation
from the previous commit. Covers redis, sqlite, and file backends.

Refs #41760

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: document cache lifecycle tracing in OpenTelemetry guide

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Move destroy() outside init instrument span

Avoids nesting the package-cache.destroy span inside
package-cache.init, making them sibling spans instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Use 'verb NounClass' span naming convention

Rename instrument span names from dot-notation (e.g.
'package-cache.init') to 'verb NounClass' pattern (e.g.
'init PackageCache') per reviewer feedback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 05:54:43 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Michael Kriese 7603bebd03 fix(cache): skip save repo cache on dry-run (#19094) 2022-11-25 09:33:16 +00:00
Gabriel-Ladzaretti 4ccd085aa5 feat(cache/repository): add modification query function to the repository cache interface (#17529)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-09-03 16:36:55 +03:00
Gabriel-Ladzaretti 039fce8dc6 refactor(repository/cache): add support for adding various cache clients (#17146)
Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-21 12:53:20 +00:00
Sergei Zharinov f911b0ba22 refactor: Class-based implementations of repo cache (#15157) 2022-04-23 04:44:28 +00:00
Sergei Zharinov a06e5d9ce7 refactor(cache): Separate data and metadata for repo cache (#15117) 2022-04-16 06:51:29 +01:00
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00
Michael Kriese c5d50f6da3 refactor: more esm imports (#13233)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 11:28:20 +00:00
Michael Kriese 2b24a98359 refactor: update imports for esm (#13230)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 08:37:47 +00:00
Sergei Zharinov 52b2bdbb48 refactor(util/cache): Enable strict nulls (#12887) 2021-11-29 17:04:43 +01:00
Maksim 06d8c27043 refactor: global config (#12743)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-23 21:10:45 +01:00
Rhys Arkins dcfc9d9885 fix(travis): massage currentValue to string (#11475) 2021-08-30 11:08:48 +02:00
Rhys Arkins 9150854d75 chore: rename config/admin -> config/global 2021-08-17 07:57:45 +02:00
Rhys Arkins bf69924b78 refactor: rename config admin functions to global 2021-08-17 07:57:45 +02:00
Rhys Arkins 9ebf804d4e fix(cache): cacheDir adminConfig 2021-05-19 12:27:37 +02:00
Michael Kriese 9ca604b345 refactor: extract more types (#9959) 2021-05-11 19:08:02 +02:00
Michael Kriese 7daa93a78d refactor: extract types to new files (#9951) 2021-05-11 12:51:21 +02:00
Rhys Arkins 2fb87eddcf fix: revert npmrc handling changes (#9347) 2021-04-01 14:19:47 +02:00
Rhys Arkins 5949f39773 fix(npm): use configured npmrc (#9319) 2021-03-29 21:52:21 +02:00
Rhys Arkins 11454b547e refactor: composer managerData (#9226) 2021-03-20 08:10:53 +01:00
Rhys Arkins 1185a464ae refactor: CACHE_REVISION 2021-03-19 16:18:45 +01:00
Rhys Arkins 0747c9aef4 fix: CACHE_REVISION=4
Git submodules extraction has changed.
2021-03-15 18:13:58 +01:00
Michael Kriese 74d7691bef refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Rhys Arkins b0026d9e08 fix: bump CACHE_REVISION
Due to #8898
2021-02-27 16:41:57 +01:00
Rhys Arkins 728082b3c3 fix(cache): correct revision 2021-02-22 19:39:33 +01:00
Rhys Arkins 7118404981 feat: matchFiles + lockFiles (#8783) 2021-02-20 14:22:50 +01:00
Rhys Arkins d2a7147222 feat(internal): repository cache revision (#8782) 2021-02-20 09:14:08 +01:00
Rhys Arkins 32440f26a4 refactor: toVersion -> newVersion (#8711) 2021-02-16 12:33:44 +01:00
Rhys Arkins a8819c4610 refactor: fromVersion -> currentVersion (#8709) 2021-02-16 10:52:05 +01:00
Rhys Arkins f711be3d37 fix: add sourceUrl to branches cache 2020-11-19 15:04:15 +01:00
Jamie Magee 5896d9cb37 chore(eslint): fixing some eslint warnings (#7382)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-10-05 18:12:01 +02:00
Rhys Arkins 0d9aa04d93 feat(git): getBranchParentSha 2020-10-02 13:22:24 +02:00
Rhys Arkins 9f99c5e073 feat(internal): write branches cache 2020-09-22 13:10:07 +02:00
Rhys Arkins f0ba97b6c2 fix: Revert "refactor: write branches cache"
This reverts commit 266534eb72.
2020-09-22 12:20:15 +02:00
Rhys Arkins 266534eb72 refactor: write branches cache 2020-09-22 06:11:17 +02:00
Rhys Arkins cda4e7c21e fix: revert config cache 2020-09-01 14:23:28 +02:00
Rhys Arkins 92c5f2a414 chore: move cache type to init/common 2020-09-01 06:36:23 +02:00
Rhys Arkins 750cd30296 chore: remove unused defaultBranch cache 2020-09-01 06:23:59 +02:00
Rhys Arkins 8a286a4663 chore: rename RepoConfig -> RepoFileConfig 2020-09-01 06:20:26 +02:00
Rhys Arkins 40d3316703 refactor: write repoConfig to cache 2020-08-31 12:14:10 +02:00
Rhys Arkins c1245b2d4b feat(internal): lazy git initialization (#7006)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-28 10:08:39 +02:00
Rhys Arkins b6af8188d1 refactor: initRepo (#7022) 2020-08-19 06:27:48 +02:00
Rhys Arkins 4459b11261 fix(cache): improve repository cache robustness (#6689) 2020-07-07 06:24:26 +02:00
Rhys Arkins 723aa4cf25 logs: improve repository cache logging 2020-07-05 09:17:10 +02:00
Rhys Arkins a8caa9e3fa fix: cache validation (#6644) 2020-07-01 09:08:00 +02:00
Rhys Arkins 7af01c5ee2 fix: set empty cache if not found 2020-07-01 08:12:36 +02:00
Rhys Arkins d70b8c1f2f feat: repositoryCache (#6589)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-29 15:51:22 +02:00