opentelemetry-ruby icon indicating copy to clipboard operation
opentelemetry-ruby copied to clipboard

Logs feedback

Open kaylareopelle opened this issue 1 year ago • 9 comments

We want your feedback on our new gems related to the Logs signal!

  • opentelemetry-logs-sdk
  • opentelemetry-logs-api
  • opentelemetry-exporter-otlp-logs

Understanding how these libraries are used by the community will help us prioritize future work on Logs.

kaylareopelle avatar Dec 05 '24 20:12 kaylareopelle

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'.

adenta avatar Jan 01 '25 19:01 adenta

I was able to get otel logs integrated with rails. Am I the first to do this? Should I document somewhere?

adenta avatar Jan 01 '25 20:01 adenta

@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'

iantybo avatar Jan 25 '25 21:01 iantybo

Hi @iancoralogix, thanks for your comment. I'm able to reproduce this issue. Taking a look and will be back with more soon.

kaylareopelle avatar Jan 28 '25 00:01 kaylareopelle

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!

ryovann avatar Feb 02 '25 17:02 ryovann

@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: @.***>

adenta avatar Feb 02 '25 17:02 adenta

Hi @ryovann, you can find @adenta's example implementation here: https://github.com/open-telemetry/opentelemetry-ruby/discussions/1789

Thanks for chiming in, @adenta!

kaylareopelle avatar Feb 04 '25 23:02 kaylareopelle

👋 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.

github-actions[bot] avatar Mar 07 '25 02:03 github-actions[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

fguillen avatar May 01 '25 20:05 fguillen