Skip to content
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

Rails: How do trace Sidekiq ? #54

Open
ekanai opened this issue Oct 22, 2020 · 5 comments
Open

Rails: How do trace Sidekiq ? #54

ekanai opened this issue Oct 22, 2020 · 5 comments

Comments

@ekanai
Copy link

ekanai commented Oct 22, 2020

I set it according to the README, but I can't trace it in Sidekiq. What should i do?

Error Log:

E, [2020-10-22T13:02:15.451793 #1] ERROR -- : can not find the current context.

Gem

 gem 'aws-xray-sdk', '0.11.5', require: ['aws-xray-sdk/facets/rails/railtie']
 gem 'oj', '3.10.15', platform: :mri
@wangzlei
Copy link
Contributor

Would you mind share your sample, so we can help analyze the problem.

@ekanai
Copy link
Author

ekanai commented Nov 5, 2020

I install gems and initializer.

Rails.application.config.xray = {
  # you can override name from env AWS_XRAY_TRACING_NAME
  name: 'test',
  patch: %I[net_http aws_sdk],
  active_record: true,
  context_missing: 'LOG_ERROR',
}

What else should I share?

@srprash
Copy link
Contributor

srprash commented Nov 9, 2020

Hi @ekanai
Thanks for sharing the configuration. Can you also share a detailed stack trace and a sample code of your application (if possible) which we can use to reproduce the issue?
Thanks

@fnicola
Copy link

fnicola commented Feb 4, 2021

@ekanai I actually ended up doing a custom segment myself for sidekiq.

@markgllin
Copy link

@fnicola would you mind sharing how you created the custom segment for sidekiq?

We're running into this issue as well and it's getting to a point where this message is taking up the majority of our disk space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants