-
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
API: Span - use SetName
instead of UpdateName
#119
Comments
we had a few discussions regarding this name. some reflections of those discussions are here: open-telemetry/opentelemetry-java#23 Basically the issue with setName is that we need to emphasize that this is a major change for a Span and is it not the same as set attribute. In node I'd suggest to put a big remark in code that the name is not aligned with the spec. Ideally - change it to |
I think this depends mostly on semantics. Is it possible to create span with no name, and only set the name later on? If it's not possible, then I agree |
|
I feel that |
The name highlights the fact that it is doing a different thing and is more dangerous than simple |
I don't see how the API and sampling are related. Sampling is an SDK function, right? |
The name highlights the fact that it is doing a different thing and is more dangerous than simple |
I've begun to question why the Sampler is considered part of the API (#164). I see this "more dangerous" statement you made above as an implementation detail. The OpenTracing I do think it's important to allow setting a name, for cases where a Span object has to be started before parsing the name. I just don't see it as important to use a special verb to update that name. |
I tend to agree with @jmacd that it should be consistent. If it's a setter it should have a setter name. This is especially true for languages that could replace setters with actual properties. So I would propose one of these 2 possibilities:
|
Having the possibility to update a span's name later is definitely a valid use case. |
I'm adding a PR that adds explanation for the current name on why it is different from setter. |
+1 @SergeyKanzhelev. I think it is important to use "Update" to reflect that in system that do advance sampling this is different than setting a name. |
@mayurkale22 @jmacd and @OlivierAlbertini I understand you believe the name change is needed. I'm closing this issue, please consider filing an OTEP for the name change with the description on why it is needed. As I said this issue was discussed during API (v0.1) work group meetings. And this name reflects interests of vendors with the high-load apps where the head-based sampling and the early name setting is very critical. So the name change to the setter semantic suggestion is more than just a formality. Please re-open this issue if you do not agree that this issue requires an OTEP. |
* standard system and runtime metric names * added more conventions and tables * formatting * cleanup writing/grammar * Made tables shorter, cleaned up, added runtime overview * more small fixes * Tweaks and moved "Open Questions" to the end * added PR number to filename * lint * Update tables, add runtime examples, from review * More edits addressing review comments - Clarify these are metric instrument names (not "metrics") - Remove discussion points I left inline - Add unresolved comments from review to open questions * add open question on versioning * removed open question about versioning * unabbreviate "net" and "ops" Co-authored-by: Bogdan Drutu <[email protected]>
* standard system and runtime metric names * added more conventions and tables * formatting * cleanup writing/grammar * Made tables shorter, cleaned up, added runtime overview * more small fixes * Tweaks and moved "Open Questions" to the end * added PR number to filename * lint * Update tables, add runtime examples, from review * More edits addressing review comments - Clarify these are metric instrument names (not "metrics") - Remove discussion points I left inline - Add unresolved comments from review to open questions * add open question on versioning * removed open question about versioning * unabbreviate "net" and "ops" Co-authored-by: Bogdan Drutu <[email protected]>
Originates from open-telemetry/opentelemetry-js#31 (comment)
https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/tracing-api.md#updatename
The text was updated successfully, but these errors were encountered: