Rails <> OpenTelemetry Logs #1789
Replies: 1 comment
-
Hi @adenta! Thanks for sharing your example! I think this could be a good candidate for a Rails logger bridge distributed within the open-telemetry/opentelemetry-ruby-contrib repo. One option to distribute it would be to create a new gem, maybe Since this is so lightweight, it might be that adding something to the existing opentelemetry-instrumentation-rails gem may be more appropriate than creating an entirely new gem. It has a Railtie that defines an initializer and configures the SDK. Maybe the logger bridge would fit here too? We haven't released any logs bridges yet, so we're open to brainstorming together on the best way to distribute this code. |
Beta Was this translation helpful? Give feedback.
-
@kaylareopelle check out the rails logs integration I put together:
This is nice because it only needs a single line of config in
production.rb
to get logs flowing to OTEL:config.logger = Loggers::OtelLogger.new(STDOUT)
Beta Was this translation helpful? Give feedback.
All reactions