Skip to content
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

[BREAKING] Add ECS user namespace #731

Merged
merged 39 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b3e81c5
add user namespace
trisch-me Feb 9, 2024
cffb01c
update PR number
trisch-me Feb 9, 2024
15a2aee
make lint happy
trisch-me Feb 9, 2024
343b1e4
Merge branch 'main' into user_ns
trisch-me Mar 4, 2024
9b43a8c
Merge branch 'main' into user_ns
trisch-me Mar 14, 2024
0ab5b3d
Merge branch 'main' into user_ns
trisch-me Apr 15, 2024
b4b9007
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me Apr 15, 2024
ed561e3
update templates
trisch-me Apr 15, 2024
4a978a0
Merge branch 'user_ns' of github.com:trisch-me/semantic-conventions i…
trisch-me Apr 15, 2024
7f5a3f7
added stability
trisch-me Apr 15, 2024
1b4576a
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me Apr 22, 2024
c9c1bda
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me Apr 23, 2024
86638ef
deprecated enduser namespace
trisch-me Apr 23, 2024
59da928
Merge branch 'main' into user_ns
trisch-me Apr 25, 2024
441b6b0
Merge branch 'main' into user_ns
trisch-me Apr 30, 2024
05e1cb2
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me May 7, 2024
cb13124
update PR for autogenerated registry
trisch-me May 7, 2024
57f610d
Merge branch 'user_ns' of github.com:trisch-me/semantic-conventions i…
trisch-me May 7, 2024
b0321fa
fix style
trisch-me May 7, 2024
1ac06d1
Merge branch 'main' into user_ns
trisch-me May 7, 2024
fd23327
Merge branch 'main' into user_ns
trisch-me May 7, 2024
bb97d7b
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me May 8, 2024
526832e
add scope from enduser to the user to preserve this field for those w…
trisch-me May 8, 2024
684d9ad
Merge branch 'user_ns' of github.com:trisch-me/semantic-conventions i…
trisch-me May 8, 2024
0462328
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me May 8, 2024
67a6717
Merge branch 'main' into user_ns
trisch-me May 10, 2024
5c62b99
Apply suggestions from code review
trisch-me May 13, 2024
7839302
Update model/registry/user.yaml
trisch-me May 14, 2024
93bcfc5
Merge branch 'main' into user_ns
trisch-me May 14, 2024
db339a8
update md files
trisch-me May 14, 2024
0258969
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me May 22, 2024
6736d08
resolve semconv generation
trisch-me May 22, 2024
41ab0fc
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me May 24, 2024
6013947
Merge branch 'main' of github.com:open-telemetry/semantic-conventions…
trisch-me May 24, 2024
6c95ab4
remove deprecated scope
trisch-me May 24, 2024
57154df
remove domain until further discussions
trisch-me May 24, 2024
a0aeac6
Apply suggestions from code review
trisch-me May 26, 2024
d8f0bc1
fix checks
trisch-me May 26, 2024
b10b875
Merge branch 'main' into user_ns
lmolkova May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .chloggen/user_ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use this changelog template to create an entry for release notes.
#
# If your change doesn't affect end users you should instead start
# your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: new_component

# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
component: user

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add new user namespace
trisch-me marked this conversation as resolved.
Show resolved Hide resolved

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
# The values here must be integers.
issues: [731]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
1 change: 1 addition & 0 deletions docs/attributes-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Currently, the following namespaces exist:
* [Thread](thread.md)
* [TLS](tls.md)
* [URL](url.md)
* [User](user.md)
* [User agent](user-agent.md)

[developers recommendations]: ../general/attribute-naming.md#recommendations-for-application-developers
20 changes: 20 additions & 0 deletions docs/attributes-registry/user.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--- Hugo front matter used to generate the website version of this page:
--->

# User

## User Attributes

<!-- semconv registry.user(omit_requirement_level) -->
| Attribute | Type | Description | Examples |
|---|---|---|---|
| `user.domain` | string | Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name. | `internal.example.com` |
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
| `user.email` | string | User email address. | `a.einstein@example.com` |
| `user.full_name` | string | User's full name | `Albert Einstein` |
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
| `user.hash` | string | Unique user hash to correlate information for a user in anonymized form. [1] | `364fc68eaf4c8acec74a4e52d7d1feaa` |
| `user.id` | string | Unique identifier of the user. | `S-1-5-21-202424912787-2692429404-2351956786-1000` |
| `user.name` | string | Short name or login/username of the user. | `a.einstein` |
| `user.roles` | string[] | Array of user roles at the time of the event. | `[admin, reporting_user]` |

**[1]:** Useful if `user.id` or `user.name` contain confidential information and cannot be used.
<!-- endsemconv -->
43 changes: 43 additions & 0 deletions model/registry/user.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
groups:
- id: registry.user
prefix: user
type: attribute_group
brief: "Describes information about the user that is relevant to the event."
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
attributes:
- id: domain
trisch-me marked this conversation as resolved.
Show resolved Hide resolved
type: string
brief: >
Name of the directory the user is a member of. For example, an LDAP or Active Directory domain name.
examples: ['internal.example.com']
- id: email
type: string
brief: >
User email address.
examples: ['a.einstein@example.com']
- id: full_name
type: string
brief: >
User's full name
examples: ['Albert Einstein']
- id: hash
type: string
brief: >
Unique user hash to correlate information for a user in anonymized form.
note: >
Useful if `user.id` or `user.name` contain confidential information and cannot be used.
examples: ['364fc68eaf4c8acec74a4e52d7d1feaa']
- id: id
type: string
brief: >
Unique identifier of the user.
examples: ['S-1-5-21-202424912787-2692429404-2351956786-1000']
- id: name
lmolkova marked this conversation as resolved.
Show resolved Hide resolved
type: string
brief: >
Short name or login/username of the user.
examples: ['a.einstein']
- id: roles
type: string[]
brief: >
Array of user roles at the time of the event.
examples: ["admin", "reporting_user"]
Loading