Skip to content

refactor(ruby): Remove redundant otel instrumentations option - #28

Merged
mttns merged 4 commits into
mainfrom
ruby-remove-otel-instrumentations
Sep 6, 2026
Merged

refactor(ruby): Remove redundant otel instrumentations option#28
mttns merged 4 commits into
mainfrom
ruby-remove-otel-instrumentations

Conversation

@mttns

@mttns mttns commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Why

The collector used to bundle OpenTelemetry instrumentation gems, and otel_instrumentations let users opt out of them. We no longer bundle any: you install and require the instrumentation gems you want, and that alone decides what gets installed. The option has nothing left to control.

What

Remove otel_instrumentations. The collector installs whatever instrumentation the suite has required. If the suite configures the SDK itself, the collector installs nothing, as before.

Passing the option now raises ArgumentError: unknown keyword.

@mttns
mttns requested a review from a team as a code owner September 4, 2026 03:32
@mttns
mttns requested a review from buildsworth-bk September 4, 2026 03:33

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found no code-level issues in this pass. Removing an accepted Buildkite::TestCollector.configure keyword is a breaking configuration-contract change, so this needs human sign-off beyond the repository's L1 approval ceiling.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 25479, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

About buildsworth

Model: gpt-5.6-sol with xhigh thinking.

How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.

Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. Unless repository policy already allows L2 approval, grant it by mentioning @buildsworth-bk (see approval ceiling and L2 approval grant):

  • L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
  • L2 — Standard risk (new UI, additive API fields, refactors). Approved only when repository policy or a verified grant allows it; otherwise comment-only.
  • L3 — High risk (auth, migrations, payments, secrets, perf-critical pipeline paths). Human review always required.

@buildsworth-bk-app
buildsworth-bk-app Bot removed the request for review from buildsworth-bk September 4, 2026 03:38
@mttns mttns self-assigned this Sep 4, 2026

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No code-level issues found. I can’t approve because removing an accepted Buildkite::TestCollector.configure keyword is a breaking configuration-contract change beyond this repository’s L1 approval ceiling.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 25505, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

@mttns mttns changed the title refactor(ruby): remove the otel_instrumentations option refactor(ruby): Remove redundant otel_instrumentations option Sep 4, 2026
@mttns mttns changed the title refactor(ruby): Remove redundant otel_instrumentations option refactor(ruby): Remove redundant otel instrumentations option Sep 4, 2026

@pda pda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹👌🏼

Mention OTEL_RUBY_INSTRUMENTATION_<NAME>_ENABLED=false as the way to skip
an instrumentation the bundle requires anyway, now that otel_instrumentations
is gone. Drop a spec assertion on registry.install_all that could not fail:
the suite-owned path never reaches it, and SDK.configure is already checked.
…mentation

Removing otel_instrumentations took away the only switch that skipped every
registered instrumentation. The SDK has no global equivalent, so say so, and
show the route that does work: configure the SDK yourself without use_all,
with OTEL_TRACES_EXPORTER=none so it does not add its default localhost
exporter. Spell out how the per-instrumentation variable names are derived.
@mttns
mttns force-pushed the ruby-remove-otel-instrumentations branch from 35649bb to cc8d85b Compare September 6, 2026 22:51
@mttns
mttns requested a review from buildsworth-bk September 6, 2026 22:51

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One documentation edge case is inline. Removing an accepted Buildkite::TestCollector.configure keyword is also a breaking configuration-contract change beyond this repository's L1 approval ceiling, so I'm leaving this as a comment rather than an approval.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 25928, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

Comment thread test-collector-ruby/docs/opentelemetry.md Outdated
@buildsworth-bk-app
buildsworth-bk-app Bot removed the request for review from buildsworth-bk September 6, 2026 22:54
Co-authored-by: buildsworth-bk-app[bot] <265670805+buildsworth-bk-app[bot]@users.noreply.github.com>
@mttns
mttns merged commit ce65768 into main Sep 6, 2026
2 of 3 checks passed
@mttns
mttns deleted the ruby-remove-otel-instrumentations branch September 6, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants