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

Feature: mongo-go-driver instrumentation #443

Closed
axw opened this issue Feb 7, 2019 · 3 comments
Closed

Feature: mongo-go-driver instrumentation #443

axw opened this issue Feb 7, 2019 · 3 comments

Comments

@axw
Copy link
Member

axw commented Feb 7, 2019

Add tracing (and metrics?) for https://github.com/mongodb/mongo-go-driver

@axw
Copy link
Member Author

axw commented Feb 8, 2019

We can trace requests by implementing a https://godoc.org/github.com/mongodb/mongo-go-driver/event#CommandMonitor. The events are stateless, so we'll need to maintain a mapping of conn+request ID to span.

@axw
Copy link
Member Author

axw commented Feb 15, 2019

To extract details from MongoDB errors, we should implement #447.

@axw
Copy link
Member Author

axw commented Feb 19, 2019

I've opened https://jira.mongodb.org/browse/GODRIVER-837, proposing an extension to the driver to enable implementations of the monitoring API to store arbitrary data with a request. Until/unless that is an option, we'll have to maintain our own map of active requests.

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