-
Notifications
You must be signed in to change notification settings - Fork 867
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
Split out RpcAttributesGetter #5548
Split out RpcAttributesGetter #5548
Conversation
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.
I thought it would be useful to split the extractors into
RpcClientAttributesExtractor
andRpcServerAttributesExtractor
because they will have differentSpanKey
s associated to them; there's only one getter interface though, cause both extractors use it to retrieve the same set of attributes.
Do you think it makes sense to proactively split the getter as well (similar to http client/server getter) in case rpc client/server attributes diverge in the future?
I thought about it too and in the end I couldn't decide whether to do it or not -- I'll try it out and push the change here, let's see if it looks manageable. |
@anuraaga thoughts? |
I think unlike HTTP RPC has a stronger tendency to have the same data in server / client so we could probably avoid splitting now. |
sounds good, IIRC our current thinking is to not stabilize a semantic attributes extractor until that semantic convention is declared stable, so that gives us some time to see if anything new emerges for rpc |
@mateuszrzeszutek heads up conflicts |
3ce9ca7
to
d648f03
Compare
* Split out RpcAttributesGetter * code review comments * go back to RpcAttributesGetter
Part of #5291
I thought it would be useful to split the extractors into
RpcClientAttributesExtractor
andRpcServerAttributesExtractor
because they will have differentSpanKey
s associated to them; there's only one getter interface though, cause both extractors use it to retrieve the same set of attributes.