-
Notifications
You must be signed in to change notification settings - Fork 894
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
Remove rpc.jsonrpc.method, clarify rpc.method instead. #1748
Remove rpc.jsonrpc.method, clarify rpc.method instead. #1748
Conversation
So you changed the purpose of |
In my mind, this was already the case before, but the wording was not very clear. |
@Rast1234 Just to double confirm: are you ok with this change? |
Yes! |
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.
Thanks! I think explicitly declaring this as the logical names and referencing the code.*
attributes makes sense in any case, not only for JSON-RPC.
LGTM once the feedback has been addressed. |
This comment has been minimized.
This comment has been minimized.
This should be changed back once open-telemetry/build-tools#33 is resolved & the updated build tools available.
This comment has been minimized.
This comment has been minimized.
@Oberon00 Please update your PR so we can merge it. |
This should include an update to the schema, correct? Our schema does support re-writing attributes from old to new, I believe. |
Hmm, probably, unless we consider schema updates part of the work of cutting a release and do it all at once at the end. That being said, I would appreciate help with writing the schema, as there are no examples to draw from yet? @tigrannajaryan, can you assist? |
Ping @tigrannajaryan |
Assuming this is really semantically an attribute rename this schema file should do it: file_format: 1.0.0
schema_url: https://opentelemetry.io/schemas/1.5.0
versions:
1.5.0:
spans:
changes:
# Sequence of translations to apply to convert the schema from a prior version
# to this version. The order in this sequence is important. Translations are
# applied from top to bottom in the listed order.
- rename_attributes:
# Rename attributes of all spans, regardless of span name.
# The keys are the old attribute name used prior to this version, the values are
# the new attribute name starting from this version.
attribute_map:
rpc.jsonrpc.method: rpc.method
1.4.0: The file should be named Note, I did not review the PR thoroughly, so I am not completely sure it is actually a renaming and not a deletion of an old attribute and introduction of a new unrelated attribute. P.S. I have put together a small tool to do some sanity checks of schema files: https://github.com/tigrannajaryan/telemetry-schema/blob/main/cmd/scheck/main.go |
This PR is a deletion of a new attribute because it can already by represented by an existing attribute (new -> existing). So it's not exactly a renaming (new1 -> new2). |
The behavior is undefined in the OTEP right now. We can define it but I would say if there is an expectation that both may be set then it does not sound like renaming and seems to be something more complicated. I don't think |
So then is it fine to merge this PR without a schema entry? |
Yes, I think so. Since the semconv is not yet stable it is fine. In the future if something similar to this happens we will need to figure out how we can describe the change in the schema file. |
…y#1748) * Remove rpc.jsonrpc.method, clarify rpc.method instead. * Add PR#. * Clarify client side code.namespace/function. * Use "ref" instead of "constraint: any_of". This should be changed back once open-telemetry/build-tools#33 is resolved & the updated build tools available. Co-authored-by: Armin Ruech <[email protected]>
(no corresponding issue)
Changes
Remove
rpc.jsonrpc.method
, clarify thatrpc.method
should be used instead.Related
This change was just released in 1.4, but semantic conventions are still experimental thus a breaking change like this may be acceptable.