-
Notifications
You must be signed in to change notification settings - Fork 182
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
Add Semantic conventions for TLS/SSL encrypted communication #21
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.
We will need to add a changelog entry once #18 is merged
Co-authored-by: Liudmila Molkova <[email protected]>
Signed-off-by: svrnm <[email protected]>
I changed the PR to fit into the new structure of the Semantic Conventions. As discussed before the thing I am completely stuck on is the question how TLS/SSL should be represented, as there are multiple ways to go about it. |
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.
protocol.name
/ protocol.version
need to be swapped.
Nit: Also, can we order the attributes within a namespace alphabetically? In namespaces with many attributes (as it is the case here) it's otherwise difficult to keep orientation.
Co-authored-by: Alexander Wert <[email protected]>
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.
In general looks good!
One proposal, though:
Now, that we have the registry directory I would propose to move all of this into the attributes registry first.
This PR is not defining much around the usage of the attributes anyways, but rather introduces the attributes as such.
I'd propose to ...
- ... move the YAML file into
/model/registry/tls.yaml
(and flatten it's structure into a single attribute group)- please also remove all the requirement levels (the different semantic conventions that will use these attributes will overwrite the default if needed)
- ... move the markdown file to
/docs/attributes-registry/tls.md
- just render the attributes table in there (this PR does not provide additional specification on the usage anyways)
Co-authored-by: Alexander Wert <[email protected]>
@lmolkova I would have no issue to trim down this PR to a minimal set of attributes to speed up the process of having it merged, even if it is only two. I extended this PR by many many attributes because it was specificially asked for to have it compatible with ECS. My understanding is that right now the issue is not with the attributes and how many there are, but that it is not yet clear how TLS is represented (see this discussion: #21 (comment)):
If #283 creates some clarity around that, what would stop us from merging the whole PR? |
Thanks @AlexanderWert , let me look into that |
Co-authored-by: Alexander Wert <[email protected]>
Signed-off-by: svrnm <[email protected]>
Signed-off-by: svrnm <[email protected]>
@AlexanderWert please take another look if what I did makes sense so far. Note, that I also have used a small script to sort the attributes alphabetically:
If this might be valuable to others as well I can check it into |
Signed-off-by: svrnm <[email protected]>
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.
LGTM
I think once we have moved namespace to the registry, this question could stay out of this PR and could be addressed separately. |
Signed-off-by: svrnm <[email protected]>
Signed-off-by: svrnm <[email protected]>
@svrnm I think if you will fix failing check and update |
Things changed, I will take another look.
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.
Note, that I also have used a small script to sort the attributes alphabetically:
The build-tools should now do this OOTB. Did you still use your script? If yes, it may be a good idea to run the tool again to see if it changes from your script, otherwise changes to the yaml later may change the diff in the markdown.
Signed-off-by: svrnm <[email protected]>
Oh good to know! I ran |
that came a long way, thank you all! :-) |
Replacement for open-telemetry/opentelemetry-specification#2992