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

Question: Is it supported multiple instance write key? #215

Closed
guiihlopes opened this issue Mar 22, 2024 · 1 comment
Closed

Question: Is it supported multiple instance write key? #215

guiihlopes opened this issue Mar 22, 2024 · 1 comment
Assignees

Comments

@guiihlopes
Copy link

Hi, I would like to know if it's supported multiple instances with different write keys.

Currently I'm working in a single project application which has multiple contexts. Some of these contexts should send informations to worskpace1 and others to workspace2. And I couldn't find in the docs what the best practice should be to deal with this situation.

The only information I've found about this topic is for analytics-ios. And it still in a confused way, because there's two different information in each side:

image
Source: https://segment.com/docs/connections/sources/catalog/libraries/mobile/apple/

image
Source: https://segment.com/docs/connections/sources/catalog/libraries/mobile/ios/ios-faqs/

How could I handle this scenario which I need to split the sent informations based in a context?

@wenxi-zeng
Copy link
Contributor

hi @guiihlopes, yes, analytics-kotlin supports multiple instances. to sent information to different workspaces, simply creates multiple analytics instance with different writeKeys.

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

2 participants