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

Add (optional) extra tags to mongo connection pool #2356

Conversation

gustavomonarin
Copy link
Contributor

@gustavomonarin gustavomonarin commented Nov 21, 2020

This is extremely useful for example to differentiate the connection pool in an application with multiple different connections to different databases which could be in the same mongo server.

resolves #2355

This is extremely useful for example to differentiate the connection pool in an application with multiple different connections to different databases which could be in the same server.

resolves micrometer-metrics#2355
@onobc
Copy link
Contributor

onobc commented Nov 25, 2020

Hi @gustavomonarin , I had a similar pull request queued up (#2360) as it was initially built on top of another pending pull request. I saw this PR and since its in a close area I went ahead and submitted mine for the command listener so we can make sure they end up using similar mechanisms. I went w/ the tags provider approach for the command listener. You went w/ the extra tags approach. I asked this.

Thanks

@gustavomonarin
Copy link
Contributor Author

Closing this PR in favor of #2437, as discussed with @bono007 that should make it more flexible and in line with more complex cases which could not fit by a static list of extra tags without contextual information (ie. data from the event itself).

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

Successfully merging this pull request may close these issues.

Support for Mongo Connection pool tags provider
2 participants