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

Import module without forRoot #211

Open
wbtan7 opened this issue Sep 18, 2024 · 0 comments
Open

Import module without forRoot #211

wbtan7 opened this issue Sep 18, 2024 · 0 comments

Comments

@wbtan7
Copy link

wbtan7 commented Sep 18, 2024

Hi, i would like to load some config for forRoot (url, name etc) from another service instead of from main.ts,

i tried the following option, both doesn't work,

  1. injecting another service in useFactory (using await in useFactory couldn't work)
  2. import the module without forRoot and provide OTEL_CONFIG (provider doesn't seems to run)

Any suggestion or workaround for this issue? Thanks.

@wbtan7 wbtan7 closed this as completed Sep 19, 2024
@wbtan7 wbtan7 reopened this Sep 19, 2024
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

1 participant