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

contrib/bradfitz/gomemcache/memcache: use naming schema #1820

Merged
merged 18 commits into from
Apr 12, 2023

Conversation

rarguelloF
Copy link
Contributor

@rarguelloF rarguelloF commented Mar 22, 2023

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

  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

Sorry, something went wrong.

@rarguelloF rarguelloF changed the base branch from main to rarguelloF/naming-schema-api March 22, 2023 16:54
@pr-commenter
Copy link

pr-commenter bot commented Mar 22, 2023

Benchmarks

Comparing candidate commit 86f1e6b in PR branch rarguelloF/naming-schema-memcached with baseline commit f7c7a41 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 18 metrics, 0 unstable metrics.

@@ -176,6 +178,106 @@ func TestAnalyticsSettings(t *testing.T) {
})
}

func TestNamingSchema(t *testing.T) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

@rarguelloF rarguelloF marked this pull request as ready for review March 23, 2023 15:02
@rarguelloF rarguelloF requested a review from a team March 23, 2023 15:02
@rarguelloF rarguelloF marked this pull request as draft March 23, 2023 15:03
@rarguelloF rarguelloF force-pushed the rarguelloF/naming-schema-memcached branch from 18a78d8 to 3df1707 Compare March 27, 2023 15:45
@rarguelloF rarguelloF force-pushed the rarguelloF/naming-schema-api branch 2 times, most recently from e42132a to 2e3b0a7 Compare March 31, 2023 10:25
Base automatically changed from rarguelloF/naming-schema-api to main April 3, 2023 13:02
@rarguelloF rarguelloF changed the base branch from main to rarguelloF/naming-schema-kafka April 5, 2023 12:38

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…nd operation name
@rarguelloF rarguelloF force-pushed the rarguelloF/naming-schema-memcached branch from 3df1707 to 04d61af Compare April 5, 2023 12:43

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@rarguelloF rarguelloF marked this pull request as ready for review April 5, 2023 13:49
@rarguelloF rarguelloF requested a review from katiehockman April 5, 2023 13:57
Base automatically changed from rarguelloF/naming-schema-kafka to main April 10, 2023 17:04
)

// NewMemcachedOpNameTest generates a new test for memcached span operation names using the naming schema versioning.
func NewMemcachedOpNameTest(genSpans GenSpansFn) func(t *testing.T) {
Copy link
Contributor

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?

Copy link
Contributor Author

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!

@rarguelloF rarguelloF requested a review from ajgajg1134 April 11, 2023 08:12
@rarguelloF rarguelloF enabled auto-merge (squash) April 11, 2023 15:05
@rarguelloF rarguelloF merged commit 7e191fd into main Apr 12, 2023
@rarguelloF rarguelloF deleted the rarguelloF/naming-schema-memcached branch April 12, 2023 08:37
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.

None yet

3 participants