Skip to content

CGI library is removed from Ruby 4.0 #2858

@AlexWayfer

Description

@AlexWayfer

Issue Description

/home/alex/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/gems/sentry-ruby-6.3.1/lib/sentry/baggage.rb:3: warning: CGI library is removed from Ruby 4.0. Please use cgi/escape instead for CGI.escape and CGI.unescape features.
If you need to use the full features of CGI library, Please install cgi gem.

Reproduction Steps

Just require 'sentry-ruby'

Expected Behavior

No warnings.

Actual Behavior

Warnings.

Ruby Version

4.0.0

SDK Version

6.3.1

Integration and Its Version

No response

Sentry Config

No response

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions