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

Restclient Instrumentation: Invalid span attribute type Symbol for key 'http.method' #1154

Closed
james-o-johnstone opened this issue Mar 19, 2022 · 0 comments · Fixed by #1155
Closed
Labels
bug Something isn't working

Comments

@james-o-johnstone
Copy link
Contributor

Description of the bug

Restclient instrumentation error when using rest-client 1.8.0:

E, [2022-03-19T17:16:18.421864 #632681] ERROR -- : OpenTelemetry error: invalid span attribute value type Symbol for key 'http.method' on span 'HTTP GET'

Share details about your runtime

Operating system details: Linux, Ubuntu 20.04 LTS
RUBY_ENGINE: "ruby"
RUBY_VERSION: "2.5.0"
RUBY_DESCRIPTION: "ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]"

Share a simplified reproduction if possible

require 'bundler/inline'

gemfile(true) do
  source 'https://rubygems.org'

  gem 'opentelemetry-api'
  gem 'opentelemetry-sdk'
  gem 'opentelemetry-instrumentation-all'
  gem 'rest-client', '1.8.0'
end

require 'opentelemetry-api'
require 'opentelemetry-sdk'
require 'rest-client'

OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ciphers]=OpenSSL::SSL::SSLContext.new.ciphers;

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

RestClient::Request.execute(method: :get, url: 'https://www.google.com',
                            timeout: 10)
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.

1 participant