Commit Graph

16 Commits

Author SHA1 Message Date
Jamie Tanna 0879ce538f feat(instrumentation): add support for protobuf + gRPC exporter (#45527)
As noted in #36073, having support for the different protocols for
exporting OpenTelemetry data would be useful, especially if this is
leading to users seeing issues when they have auto-injected
configuration being set.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-08-28 11:28:53 +00:00
Jamie Tanna adbc20e88e feat(instrumentation): allow exporting OTLP JSON file (#42284)
* feat(instrumentation): allow exporting OTLP JSON file

We've recently been investing in improvements to Renovate's
OpenTelemetry instrumentation to improve debuggability and
supportability.

However, not everyone has an immediately available OpenTelemetry
Collector, so the added instrumentation isn't useful to those users.

Instead, we can provide a way to export to the OTLP file format, which
provides a means to export the data to disk and then consume it later.

This will also support use-cases like running in a CI platform like
GitHub Actions and GitLab CI, where OpenTelemetry Collectors may not be
exposed in that environment, but a post-run execution can export it.

We now need to make sure that `RENOVATE_USE_CLOUD_METADATA_SERVICES` is
never set, as `isTracingEnabled` will now resolve true, and the Cloud
Metadata Resource Detectors will be used.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* fixup! feat(instrumentation): allow exporting OTLP JSON file

* fixup! fixup! feat(instrumentation): allow exporting OTLP JSON file

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>

* fixup! feat(instrumentation): allow exporting OTLP JSON file

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-07-22 12:26:16 +00:00
Jamie Tanna a7e6ce3865 docs(opentelemetry): correct typo (#43738) 2026-06-02 14:06:52 +00:00
Sebastian Poxhofer 9a27d7aa78 ci(prettier): add prettier plugin for admonitions (#43615)
* ci: add local mkdocs-admonitions plugin for prettier to allow admonition preservation

* docs: remove uses of `prettier-ignore` for admonitions

* test: rather use await expect

* chore: use named group exclusively
2026-05-27 09:39:52 +00:00
Jamie Tanna 4b0146ab7b docs: use 2-space indentation for Markdown (#43537)
As noted in #39090, MkDocs requires 4 spaces for indentation (in
particular, for nested lists) whereas our Prettier/markdownlint
configuration expects 2 spaces.

This means that when trying to use i.e. nested lists, we need to ignore
prettier and markdownlint, otherwise it fails.

To handle this, we can add a Markdown hook to override the indentation
level to 2 spaces.

This also requires we update:

- admonitions
- indented text in `index.md`

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-05-26 09:05:42 +00:00
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
Michael Kriese f7efd7d426 feat(instrumentation): allow disabling cloud detectors (#41401)
* feat(otel): allow disabling cloud detectors

* docs(otel): add missing env

* feat: implement `OTEL_NODE_RESOURCE_DETECTORS`

* test: drop snapshot

* Update lib/instrumentation/reporting.spec.ts

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>

* docs: update otel docs

---------

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2026-02-25 08:10:03 +00:00
Michael Kriese e34f867da6 feat(otel): support diagnostics debugging (#41362) 2026-02-21 11:33:54 +00:00
Jamie Tanna 18c7915000 docs(opentelemetry): revamp documentation (#40765)
As noted in #40126, after recent investment in OpenTelemetry support in
Renovate, we should update our documentation to provide a more visible
example of what this looks like, some of the different data that may be
present now, and clarify the stability status.

We can also point to npm packages, rather than the source GitHub repo,
for OpenTelemetry libraries.
2026-01-29 15:12:29 +00:00
Gary White Jr. ce4ebc92ea docs: fix links to opentelemetry resource detectors (#37924) 2025-09-09 20:12:02 +00:00
seiyar81 12bc4da241 feat(instrumentation): use @opentelemetry resources detectors (#34904) 2025-04-15 10:05:37 +00:00
AvivGuiser 4914b6c26c feat(instrumentation): add option to overwrite otlp service name/namespace/version with env var (#29583)
Signed-off-by: Aviv Guiser <avivguiser@gmail.com>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2024-06-12 10:24:45 +00:00
Andrea Galbusera bda1c6ad39 docs(opentelemetry): update broken link to OTEL specs (#25450) 2023-10-26 17:45:04 +02:00
HonkingGoose 7afafc4ac1 docs(opentelemetry): rewrite (#18672) 2022-11-01 07:47:49 +02:00
HonkingGoose af39028edb docs(opentelemetry): use warning admonition (#18577) 2022-10-26 13:08:57 +00:00
Sebastian Poxhofer b53c581e5c feat(telemetry): add OpenTelemetry tracing MVC (#15731) 2022-10-23 06:48:35 +02:00