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

Instrumentation for github.com/bradfitz/gomemcache #204

Merged
merged 8 commits into from
Aug 14, 2020

Conversation

matej-g
Copy link
Contributor

@matej-g matej-g commented Aug 11, 2020

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

  • instrumentation
  • documentation
  • example with Docker compose file
  • add to registry

@matej-g
Copy link
Contributor Author

matej-g commented Aug 11, 2020

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?

@reggiemcdonald
Copy link
Contributor

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?

Yep! Just follow the same approach as the mongo or gocql packages

Matej Gera added 2 commits August 12, 2020 13:17
- 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
Copy link
Contributor

@MrAlias MrAlias left a 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.

- use operation type for operation names
- include multiple keys in span attribute, if applicable
- typos, naming convention fixes
@MrAlias MrAlias merged commit 9a03b4b into open-telemetry:master Aug 14, 2020
plantfansam referenced this pull request in plantfansam/opentelemetry-go-contrib Mar 18, 2022
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

6 participants