-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTLP::Exporter#encode - bignum too big to convert into `unsigned long long' #1771
Comments
@manasaheggere, thanks for reaching out! I'm sorry to hear about the export errors. Were things working on an earlier version of the OTLP exporter? The line referenced in the error points to the encoding of a timestamp for a span event.
Are you creating span events with your app's tracer using the opentelemetry-ruby/sdk/lib/opentelemetry/sdk/trace/span.rb Lines 152 to 170 in cdce3cc
|
Thanks for the response @kaylareopelle We started implementing OTLP exporter now only, we were not used it earlier. No, we have not implemented span.add_event We have tried to create span using below code. This approach is also giving same error
|
Hi @manasaheggere, thanks for your responses! I'm not able to reproduce the error yet with the provided code. We'll need to reproduce the error outside of your environment to debug further. Here's a walkthrough on how to create a minimal, reproducible example: https://stackoverflow.com/help/minimal-reproducible-example This is the code I've used to test so far: https://gist.github.com/kaylareopelle/ef261c12e3a3e1c2cce59a25050c23f0 Can you update the gist and/or create a different reproduction script that raises the same error? |
We cloned the opentelemetry-ruby opensource code and validated we are seeing only warnings and not traces. Even in actual project, at local we are not seeing this issue.
|
Is there anything else you can share with us? Machine details like CPU architecture? Are you deploying using containers? If so what is the image you're using? Can you share the contents of the lock file that is generated and what version of protobuf is being installed? |
We are deploying our application docker image in AWS cloud using ArgoCD and kubernites. |
Hi @manasaheggere, thanks for sharing details around your architecture and your lock file. We discussed this issue during the SIG and think we may need some additional logging around the exporter to try to get a better sense of what the data that's being rejected looks like. I have some code with extra logging I'd like you to add to your app. I have two options for how you can add it:
gem 'opentelemetry-exporter-otlp', github: 'kaylareopelle/opentelemetry-ruby', branch: 'debug-unsigned-long-long', glob: 'exporter/otlp/*.gemspec'
Could you run the exporter with the additional logging code in the environment where the error is raised and share the logs with us? Please remove any information that might be considered sensitive from the file before you post. |
What is the machine architecture? 32 or 64 bit? |
Can you share your gem file.lock ? |
Please find the attached Gemfile.lock |
Hi Team, |
Hi Team,
We are using Ruby 3.2.5 and Rails 7.1.3.3
We have installed below opentelemetry gems
Gemfile
and done the sdk configuration in opentelemetry.rb
We have also configured below environment variables
But we are seeing below errors in pre-prod environment
The text was updated successfully, but these errors were encountered: