Skip to content

Rails databases: {} option #574

Closed
Closed

Description

Going through the changelogs of recent versions I found that support for multiple AR databases is now supported out of the box! 🎉

I tried to change our setup which was based on span preprocessors to use the new databases: option when configuring Rails. Unfortunately, I was not able to get it to work and everything was tracked in the database service specified as database_service.

My configuration was something like this:

    c.use :rails,
      database_service: 'main-db',
      databases: {
        archive: { service_name: 'archive-db' },
        follower: { service_name: 'follower-db' }
      }

I tried to find how databases: is applied but I was not able to find the right spot. (I was mainly looking at framework.rb)

Would you be able to give me a hint where I can follow-up to get this working? Thanks a lot in advance and great work on the rapid pace of new features!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

communityWas opened by a community memberquestionGeneral inquiry that may or may not involve changes

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions