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

[BUG] config实例化在init函数之后,但是metric模块在config模块初始化之前使用了config #589

Open
qshuai opened this issue Jan 16, 2025 · 0 comments

Comments

@qshuai
Copy link

qshuai commented Jan 16, 2025

Issue Description

Type: bug report

the error code snippet: https://github.com/alibaba/sentinel-golang/blob/master/exporter/metric/exporter.go#L35-L46
Using config instance before config instantiation beacause config instantiation is after init functions called. So there are all empty value in init function.

Describe what happened

The library user can not control metric exporter by performing operations in compliance with standards.

Describe what you expected to happen

Make controling metric exporter avaiable.

How to reproduce it (as minimally and precisely as possible)

Always happening.

Tell us your environment

Anything else we need to know?

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