Repository navigation
chore: add autoinstrumentation image for apm-ruby - #315
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Missing logger load-path support and incompatible native extensions in musl-based containers can prevent instrumentation from initializing.
2 open issues
What changed in this PR
Adds an OpenTelemetry Operator injection image for the SolarWinds APM Ruby gem, enabling Kubernetes auto-instrumentation without adding the agent to application bundles.
Changes:
- Adds the image build and bootstrap that loads the agent after
Bundler.require. - Adds a manually triggered, multi-architecture publication workflow using the released gem version.
- Documents setup and upstream differences, and updates RuboCop CI to Ruby 3.3.
| File | Description |
|---|---|
| README.md | Introduces Kubernetes auto-instrumentation setup. |
| docker/README.md | Documents bootstrap behavior and upstream differences. |
| docker/Gemfile | Selects the released agent gem for the image. |
| docker/Dockerfile | Builds and packages gems for operator injection. |
| docker/autoinstrumentation.rb | Injects gem paths and initializes the agent through Bundler. |
| .github/workflows/rubocop-analysis.yml | Updates the lint runtime to Ruby 3.3. |
| .github/workflows/publish-autoinstrumentation-ruby.yml | Publishes versioned, multi-architecture images to GHCR. |
Review effort: Balanced
cheempz
approved these changes
Oct 30, 2026
cheempz
left a comment
Contributor
There was a problem hiding this comment.
LGTM, would be good if can be retested with operator instrumentation of an Alpine container app.
Contributor
Author
|
Yeah, tested with operator for alpine build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Duplicate the autoinstrumentation script from upstream and replace it with apm-ruby.
The workflow will create the image listed in
ghcr.io/solarwinds/apm-ruby/autoinstrumentation-ruby.Test (if applicable)
Tested with latest otel operator release (0.162.0).
Sample trace.