-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[exporter/azuremonitor] support sending to multiple azuremonitor exporter #36700
Conversation
++ @pcwiese to help to review, thx! |
@@ -63,7 +70,8 @@ func (f *factory) createTracesExporter( | |||
return nil, errUnexpectedConfigurationType | |||
} | |||
|
|||
tc, errInstrumentationKeyOrConnectionString := f.getTransportChannel(exporterConfig, set.Logger) | |||
f.initLogger(set.Logger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you cannot assume the same Logger is passed in for all. You might need to change this logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the careful review! Yes, it's better to use different logger, but the appinsights
SDK only has one global diagnostics writer. If adding each logger to listener, there'll be dup messages. I don't know any elegant way to solve this issue at this point. any suggestion?
// The one and only diagnostics writer.
var diagnosticsWriter = &diagnosticsMessageWriter{}
It feels like the factory should not handle any of the channel business. The component can be reused with the sharedcomponent lib, which feels more adequate. |
Currently in |
Hi @atoulme , I've done below changes and validated locally and it can ingest into multiple appinsights successfully. pls let me know if any comments, thanks for your careful review!
|
Looks the failed checks are not caused by my change? |
36276b6
to
5ce5ef0
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
gently ping, anyone can help reviewing this PR? thanks! |
…redcomponent to cache exporter by component id
Gently ping, looks code owner hasn't noticed this PR yet, anyone from @open-telemetry/collector-contrib-approvers could help to take a look? Thanks! BTW, I'm glad to be the co-owner for this component for further triage/review to balance the load if possible. |
Hi @TylerHelmuth , I saw you removed |
Ya I removed the label bc you're a code owner now and you submitted the pr. Now we need an approver to approve. |
Thanks for the explanation! I'll re-solve CI issues and let you know once done! |
Hi @TylerHelmuth , I've fixed CI issues and validated. could you or someone from approvers to take a look? thanks! |
Co-authored-by: Antoine Toulme <antoine@toulme.name>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM. @hgaol note those changes are extensive and I hope I am not missing anything
Thanks @atoulme for your careful review! Agree that it's a big change. I've validated using both |
Description
currently, azuremonitor exporter doesn't support sending to multiple application insights. This PR will add this feature.
Link to tracking issue
Fixes #34188
Testing
Documentation
No additional configs.