Skip to content

Error on sinatra tracing after upgrading to 0.52 #1643

Closed

Description

After upgrading from 0.51 to 0.52, we immediately started getting a slew of these errors:

NoMethodError: undefined method `[]' for nil:NilClass (Most recent call first)
File /home/affinity/vendor/bundle/ruby/3.0.0/gems/ddtrace-0.52.0/lib/ddtrace/contrib/sinatra/env.rb line 13 in datadog_span
File /home/affinity/vendor/bundle/ruby/3.0.0/gems/ddtrace-0.52.0/lib/ddtrace/contrib/sinatra/tracer.rb line 122 in block in route_eval
File /home/affinity/vendor/bundle/ruby/3.0.0/gems/ddtrace-0.52.0/lib/ddtrace/tracer.rb line 283 in trace
File /home/affinity/vendor/bundle/ruby/3.0.0/gems/ddtrace-0.52.0/lib/ddtrace/contrib/sinatra/tracer.rb line 105 in route_eval

Still looking into the codepaths and whether we missed updating something that was deprecated, but thought I'd raise it early.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions