-
Notifications
You must be signed in to change notification settings - Fork 576
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
Instrumentation for github.com/bradfitz/gomemcache #204
Instrumentation for github.com/bradfitz/gomemcache #204
Conversation
I see now that recently tests requiring external resources were set to be run in CircleCI, perhaps same should be done for integration tests here, as they should be run with a functioning instance of memcached server? |
instrumentation/github.com/bradfitz/gomemcache/example/client.go
Outdated
Show resolved
Hide resolved
Yep! Just follow the same approach as the mongo or gocql packages |
instrumentation/github.com/bradfitz/gomemcache/example/client.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/bradfitz/gomemcache/example/client.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/bradfitz/gomemcache/example/client.go
Outdated
Show resolved
Hide resolved
- accept trace provider in config - adjust example to reflect this change - adjust example to use single copy of client with context - define KV key constant for item key key - adjust tests
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.
Looks great 👍
Non-blocking questions/comments.
instrumentation/github.com/bradfitz/gomemcache/example/README.md
Outdated
Show resolved
Hide resolved
- use operation type for operation names - include multiple keys in span attribute, if applicable - typos, naming convention fixes
Related to #90
Description
Introduces tracing instrumentation for the memcache client gomemcache. Similarly to the proir art (https://github.com/DataDog/dd-trace-go/tree/v1/contrib/bradfitz/gomemcache/memcache), the implementation works by wrapping the memcache client and subsequently tracing every operation call.
Tasks