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

otelmemcache: Simplify config and span status setting #477

Merged

Conversation

matej-g
Copy link
Contributor

@matej-g matej-g commented Dec 3, 2020

There are a couple of things with otelmemcache instrumentation that should be adjusted: to make it adhere to the specification on one hand, and to remove some unnecessary parts on the other. Specifically:

  • Remove service name from configuration and from span attributes (it is redundant)
  • Do not set span status to OK; remove unnecessary error-mapping method

Resolves #408

- Service name no longer needed
- No need to keep config inside of client any longer
@matej-g matej-g marked this pull request as draft December 3, 2020 19:54
@matej-g matej-g changed the title Otelmemcache: Simplify config and span status setting [WIP] Otelmemcache: Simplify config and span status setting Dec 3, 2020
@matej-g matej-g force-pushed the otelmemcache-fix-status-code-attributes branch from cbcfc31 to 6bc4032 Compare December 3, 2020 20:00
@matej-g matej-g marked this pull request as ready for review December 3, 2020 20:08
@matej-g matej-g changed the title [WIP] Otelmemcache: Simplify config and span status setting otelmemcache: Simplify config and span status setting Dec 3, 2020
// Option is used to configure the client.
type Option func(*config)
type Option oteltrace.TracerProvider
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably stick with a generic Option type like we had before. Even though we only have a single option now, we may want to add others in the future.

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, now I see this could potentially be a breaking change, good point 👍. I'll keep the type as it was.


### Removed

- Remove service name from `otelmemcache` configuration and span attributes. (#477)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Remove service name from `otelmemcache` configuration and span attributes. (#477)
- Remove service name from `otelmemcache` configuration and span attributes. (#477)

nit

Base automatically changed from master to main February 1, 2021 17:09
This was referenced Mar 7, 2021
@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.

otelmemcache: Simplify and correct status code setting and attributes
6 participants