elastic / elastic/ecs-logging-ruby

Failure with Rails 5

Open
#25 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

Trying to use ecs-logging with Rails 5:

````
Traceback (most recent call last):
33: from bin/rails:4:in `'
32: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `require'
31: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:257:in `load_dependency'
30: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/dependencies.rb:291:in `block in require'
29: from /home/user/.ruby/gems/bootsnap-1.6.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
28: from /home/user/.ruby/gems/bootsnap-1.6.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
27: from /home/user/.ruby/gems/bootsnap-1.6.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
26: from /home/user/.ruby/gems/bootsnap-1.6.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
25: from /home/user/.ruby/gems/bootsnap-1.6.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
24: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands.rb:18:in `'
23: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/command.rb:46:in `invoke'
22: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/command/base.rb:69:in `perform'
21: from /home/user/.ruby/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
20: from /home/user/.ruby/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
19: from /home/user/.ruby/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
18: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands/server/server_command.rb:142:in `perform'
17: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands/server/server_command.rb:142:in `tap'
16: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands/server/server_command.rb:147:in `block in perform'
15: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands/server/server_command.rb:51:in `start'
14: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands/server/server_command.rb:89:in `log_to_stdout'
13: from /home/user/.ruby/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
12: from /home/user/.ruby/gems/railties-5.2.6/lib/rails/commands/server/server_command.rb:29:in `app'
11: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/instance_delegator.rb:29:in `warn'
10: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/instance_delegator.rb:22:in `warn'
9: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/reporting.rb:22:in `warn'
8: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/reporting.rb:22:in `tap'
7: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/reporting.rb:23:in `block in warn'
6: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/reporting.rb:23:in `each'
5: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/reporting.rb:23:in `block (2 levels) in warn'
4: from /home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/deprecation/behaviors.rb:33:in `block in '
3: from /home/user/.ruby/gems/ecs-logging-1.0.0/lib/ecs_logging/logger.rb:73:in `block (2 levels) in '
2: from /home/user/.ruby/gems/ecs-logging-1.0.0/lib/ecs_logging/logger.rb:53:in `add'
1: from /home/user/.ruby/gems/ecs-logging-1.0.0/lib/ecs_logging/logger.rb:94:in `format_message'
/home/user/.ruby/gems/activesupport-5.2.6/lib/active_support/tagged_logging.rb:22:in `call': unknown keywords: :"transaction.id", :"trace.id", :"span.id" (ArgumentError)
````

Not sure what to do at that stage.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.