elastic / elastic/ecs-logging-ruby

JSON deprecation warning - is gem still maintained?

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
agent-ruby
Dominant language
Ruby
Stars
8
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Hi,

I plan to use this gem in a new RoR application.

The application uses Rails 8 and Ruby 3.4.7 and i get following warning:

`".rbenv/versions/3.4.7/lib/ruby/gems/3.4.0/gems/ecs-logging-1.0.0/lib/ecs_logging/formatter.rb:37: warning: JSON.fast_generate is deprecated and will be removed in json 3.0.0, just use JSON.generate"`

Are there any plan to keep the gem up-to-date?
Is it worth to use this gem in a new application?

Gratefull for any answer,

Cheers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in lib/ecs_logging/formatter.rb at line 37, where the warning identifies JSON.fast_generate. Check the existing tests and run them with Ruby 3.4. Done means the formatter no longer emits the deprecation warning while preserving ECS-formatted log output.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, ruby
Domain
observability-sre
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.