-
Notifications
You must be signed in to change notification settings - Fork 457
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
contrib/bradfitz/gomemcache/memcache: use naming schema #1820
Conversation
@@ -176,6 +178,106 @@ func TestAnalyticsSettings(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestNamingSchema(t *testing.T) { |
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.
Can this be a shared test across all contrib libararies?
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.
Added a package contrib/internal/namingschematest
with shared testing logic, please let me know if this is what you had in mind
18a78d8
to
3df1707
Compare
e42132a
to
2e3b0a7
Compare
…ma versioning testing logic
…nd operation name
3df1707
to
04d61af
Compare
) | ||
|
||
// NewMemcachedOpNameTest generates a new test for memcached span operation names using the naming schema versioning. | ||
func NewMemcachedOpNameTest(genSpans GenSpansFn) func(t *testing.T) { |
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.
Is this function only used in exactly one place?
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.
yes! my intention with this was to create a generic test for memcached integrations, but since we only have one it makes sense to move it there. Thanks for pointing out!
What does this PR do?
Implements naming schema versioning for all memcached integrations:
bradfitz/gomemcache/memcache
Motivation
Improve service and operation names.
Describe how to test/QA your changes
Reviewer's Checklist
Triage
milestone is set.