Logs feedback
We want your feedback on our new gems related to the Logs signal!
opentelemetry-logs-sdkopentelemetry-logs-apiopentelemetry-exporter-otlp-logs
Understanding how these libraries are used by the community will help us prioritize future work on Logs.
something funky is going on w/ the 0.1.0 gem version that is on rubygems:
➜ cardstock git:(main) ✗ bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Downloading opentelemetry-exporter-otlp-logs-0.1.0 revealed dependencies not in the API or the lockfile (opentelemetry-logs-api
(~> 0.1), opentelemetry-logs-sdk (~> 0.1)).
Running `bundle update opentelemetry-exporter-otlp-logs` should fix the problem.
➜ cardstock git:(main) ✗ bundle update opentelemetry-exporter-otlp-logs
Could not find gem 'opentelemetry-exporter-otlp-logs'.
I was able to get otel logs integrated with rails. Am I the first to do this? Should I document somewhere?
@adenta, I'm having the same issue. I inadvertently solved it locally at some point, but after clearing my gems, I'm having the same problem again.
It appears to be RubyGems; I can gem install opentelemetry-exporter-otlp-logs but bundle install only works if I point directly to GitHub in my Gemfile:
# Pull logs API from the logs_api folder
gem 'opentelemetry-logs-api',
git: 'https://github.com/open-telemetry/opentelemetry-ruby.git',
branch: 'main',
glob: 'logs_api/*.gemspec'
# Pull logs SDK from the logs_sdk folder
gem 'opentelemetry-logs-sdk',
git: 'https://github.com/open-telemetry/opentelemetry-ruby.git',
branch: 'main',
glob: 'logs_sdk/*.gemspec'
# Pull the OTLP logs exporter from the exporter/otlp-logs folder
gem 'opentelemetry-exporter-otlp-logs',
git: 'https://github.com/open-telemetry/opentelemetry-ruby.git',
branch: 'main',
glob: 'exporter/otlp-logs/*.gemspec'
Hi @iancoralogix, thanks for your comment. I'm able to reproduce this issue. Taking a look and will be back with more soon.
Hi, I tried out the opentelemetry-logs gems and I was wondering if it is possible to combine it with Rails, currently it is required to use the on_emit method to send logs but there isn't an example or docs on how to combine it with the default logging on Rails.
Thanks!
@kayla should know where my example implementation is, I think I left it in a community post or something On Sun, Feb 2, 2025 at 12:31 PM Diego del Valle @.***> wrote:
Hi, I tried out the opentelemetry-logs gems and I was wondering if it is possible to combine it with Rails, currently it is required to use the on_emit method to send logs but there isn't an example or docs on how to combine it with the default logging on Rails.
Thanks!
— Reply to this email directly, view it on GitHub https://github.com/open-telemetry/opentelemetry-ruby/issues/1777#issuecomment-2629482956, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGUU5R7XFNVRXSOI46UWK32NZI75AVCNFSM6AAAAABTDIFWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMRZGQ4DEOJVGY . You are receiving this because you were mentioned.Message ID: @.***>
Hi @ryovann, you can find @adenta's example implementation here: https://github.com/open-telemetry/opentelemetry-ruby/discussions/1789
Thanks for chiming in, @adenta!
👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot.
I would love to use the Logs Exporter in my Rails app. But I find 0 documentation, no README, no "how to use it" comments in the code. I am lost