-
Notifications
You must be signed in to change notification settings - Fork 582
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
otelmemcache: Simplify config and span status setting #477
Conversation
- Service name no longer needed - No need to keep config inside of client any longer
- Set status only in case of error
cbcfc31
to
6bc4032
Compare
// Option is used to configure the client. | ||
type Option func(*config) | ||
type Option oteltrace.TracerProvider |
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.
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.
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, 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) |
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.
- Remove service name from `otelmemcache` configuration and span attributes. (#477) | |
- Remove service name from `otelmemcache` configuration and span attributes. (#477) | |
nit
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:Resolves #408