Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all gem missing runtime dependency on aws_sdk #1053

Closed
vreynolds opened this issue Dec 7, 2021 · 4 comments · Fixed by #1054
Closed

all gem missing runtime dependency on aws_sdk #1053

vreynolds opened this issue Dec 7, 2021 · 4 comments · Fixed by #1054
Labels
bug Something isn't working

Comments

@vreynolds
Copy link

Description of the bug

Adding just the following gems to my app:

gem "opentelemetry-api"
gem "opentelemetry-sdk"
gem "opentelemetry-exporter-otlp"
gem "opentelemetry-instrumentation-all"

and attempting to initialize OTEL:

require 'opentelemetry/sdk'
require 'opentelemetry/exporter/otlp'
require 'opentelemetry/instrumentation/all'
require 'rubygems'

OpenTelemetry::SDK.configure do |c|
  c.use_all()
end

results in the following error:

/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- opentelemetry-instrumentation-aws_sdk (LoadError)

Adding this to the app Gemfile fixes the error:

gem "opentelemetry-instrumentation-aws_sdk"

Share details about your runtime

Operating system details: MacOS 11.6.1
RUBY_ENGINE: "ruby"
RUBY_VERSION: "2.7.2", "3.0.0"
RUBY_DESCRIPTION:

@vreynolds vreynolds added the bug Something isn't working label Dec 7, 2021
@arielvalentin
Copy link
Contributor

cc: @YanivD

@YanivD
Copy link
Member

YanivD commented Dec 7, 2021

@arielvalentin thanks for the mention!
Created PR #1054 to resolve this issue

@arielvalentin
Copy link
Contributor

Thank you @YanivD for quick turn around time ✨

@stympy
Copy link

stympy commented Jan 11, 2022

Could we get a release of the gem? Since there hasn't been one since #1054 was merged, new users (like me 😁) are still encountering this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants