Skip to content

Commit

Permalink
Group yaml files by root namespace instead of signal (open-telemetry#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova authored and drewby committed Oct 1, 2024
1 parent 4ffbd8c commit cace3db
Show file tree
Hide file tree
Showing 12 changed files with 110 additions and 209 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ body:
- area:browser
- area:cicd
- area:client
- area:cloudevents
- area:cloud
- area:cloudevents
- area:code
- area:container
- area:cpu
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/change_proposal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ body:
- area:browser
- area:cicd
- area:client
- area:cloudevents
- area:cloud
- area:cloudevents
- area:code
- area:container
- area:cpu
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/new-conventions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ body:
- area:browser
- area:cicd
- area:client
- area:cloudevents
- area:cloud
- area:cloudevents
- area:code
- area:container
- area:cpu
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/scripts/get-registry-areas.sh

This file was deleted.

36 changes: 36 additions & 0 deletions model/andrioid/deprecated/registry-deprecated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
groups:
- id: registry.android.deprecated
type: attribute_group
display_name: Deprecated Android Attributes
brief: >
This document defines attributes that represents an occurrence of a lifecycle transition on the Android platform.
attributes:
- id: android.state
stability: experimental
deprecated: "Replaced by `device.app.lifecycle`."
brief: >
Deprecated use the `device.app.lifecycle` event definition including
`android.state` as a payload field instead.
note: >
The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc),
and from which the `OS identifiers` are derived.
type:
members:
- id: created
value: 'created'
brief: >
Any time before Activity.onResume() or, if the app has no Activity, Context.startService()
has been called in the app for the first time.
stability: experimental
- id: background
value: 'background'
brief: >
Any time after Activity.onPause() or, if the app has no Activity,
Context.stopService() has been called when the app was in the foreground state.
stability: experimental
- id: foreground
value: 'foreground'
brief: >
Any time after Activity.onResume() or, if the app has no Activity,
Context.startService() has been called when the app was in either the created or background states.
stability: experimental
15 changes: 15 additions & 0 deletions model/andrioid/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
groups:
- id: registry.android
type: attribute_group
display_name: Android Attributes
brief: >
The Android platform on which the Android application is running.
attributes:
- id: android.os.api_level
type: string
stability: experimental
brief: >
Uniquely identifies the framework API revision offered by a version
(`os.version`) of the android operating system. More information can be found
[here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels).
examples: ['33', '32']
8 changes: 8 additions & 0 deletions model/andrioid/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
groups:
- id: android
type: resource
name: android
brief: >
The Android platform on which the Android application is running.
attributes:
- ref: android.os.api_level
101 changes: 0 additions & 101 deletions model/file/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,6 @@ groups:
display_name: File Attributes
brief: "Describes file attributes."
attributes:
- id: file.accessed
type: string
brief: >
Time when the file was last accessed, in ISO 8601 format.
note: >
This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc.
stability: experimental
examples: ['2021-01-01T12:00:00Z']
- id: file.attributes
type: string[]
brief: >
Array of file attributes.
note: >
Attributes names depend on the OS or file system. Here’s a non-exhaustive list of values expected for this
attribute: `archive`, `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, `write`.
stability: experimental
examples:
- ['readonly', 'hidden']
- id: file.created
type: string
brief: >
Time when the file was created, in ISO 8601 format.
note: >
This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc.
stability: experimental
examples: ['2021-01-01T12:00:00Z']
- id: file.changed
type: string
brief: >
Time when the file attributes or metadata was last changed, in ISO 8601 format.
note: >
`file.changed` captures the time when any of the file's properties or attributes
(including the content) are changed, while `file.modified` captures the timestamp
when the file content is modified.
stability: experimental
examples: ['2021-01-01T12:00:00Z']
- id: file.directory
type: string
brief: >
Expand All @@ -55,69 +19,12 @@ groups:
note: >
When the file name has multiple extensions (example.tar.gz), only the last one should
be captured ("gz", not "tar.gz").
- id: file.fork_name
type: string
brief: >
Name of the fork. A fork is additional data associated with a filesystem object.
note: >
On Linux, a resource fork is used to store additional data with a filesystem object. A file always has at
least one fork for the data portion, and additional forks may exist.
On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default data stream for a file is
just called $DATA. Zone.Identifier is commonly used by Windows to track contents downloaded from the Internet.
An ADS is typically of the form: C:\path\to\filename.extension:some_fork_name, and some_fork_name is the
value that should populate `fork_name`. `filename.extension` should populate `file.name`, and `extension`
should populate `file.extension`. The full path, `file.path`, will include the fork name.
stability: experimental
examples: ['Zone.Identifer']
- id: file.group.id
type: string
brief: >
Primary Group ID (GID) of the file.
stability: experimental
examples: ["1000"]
- id: file.group.name
type: string
brief: >
Primary group name of the file.
stability: experimental
examples: ['users']
- id: file.inode
type: string
brief: >
Inode representing the file in the filesystem.
stability: experimental
examples: ['256383']
- id: file.mode
type: string
brief: >
Mode of the file in octal representation.
stability: experimental
examples: ['0640']
- id: file.modified
type: string
brief: >
Time when the file content was last modified, in ISO 8601 format.
stability: experimental
examples: ['2021-01-01T12:00:00Z']
- id: file.name
type: string
brief: >
Name of the file including the extension, without the directory.
stability: experimental
examples: ['example.png']
- id: file.owner.id
type: string
brief: >
The user ID (UID) or security identifier (SID) of the file owner.
stability: experimental
examples: ["1000"]
- id: file.owner.name
type: string
brief: >
Username of the file owner.
stability: experimental
examples: ['root']
- id: file.path
type: string
brief: >
Expand All @@ -129,11 +36,3 @@ groups:
brief: >
File size in bytes.
stability: experimental
- id: file.symbolic_link.target_path
type: string
brief: >
Path to the target of a symbolic link.
note: >
This attribute is only applicable to symbolic links.
stability: experimental
examples: ['/usr/bin/python3']
35 changes: 35 additions & 0 deletions model/graphgl/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
groups:
- id: registry.graphql
type: attribute_group
display_name: GraphQL Attributes
brief: 'This document defines attributes for GraphQL.'
attributes:
- id: graphql.operation.name
brief: "The name of the operation being executed."
type: string
stability: experimental
examples: 'findBookById'
- id: graphql.operation.type
brief: "The type of the operation being executed."
stability: experimental
type:
members:
- id: query
value: "query"
brief: "GraphQL query"
stability: experimental
- id: mutation
value: "mutation"
brief: "GraphQL mutation"
stability: experimental
- id: subscription
value: "subscription"
brief: "GraphQL subscription"
stability: experimental
examples: ['query', 'mutation', 'subscription']
- id: graphql.document
brief: "The GraphQL document being executed."
type: string
stability: experimental
note: The value may be sanitized to exclude sensitive information.
examples: 'query findBookById { bookById(id: ?) { name } }'
13 changes: 13 additions & 0 deletions model/graphgl/spans.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
groups:
- id: graphql
type: span
brief: >
This document defines semantic conventions to apply when instrumenting the GraphQL implementation. They map
GraphQL operations to attributes on a Span.
attributes:
- ref: graphql.operation.name
requirement_level: recommended
- ref: graphql.operation.type
requirement_level: recommended
- ref: graphql.document
requirement_level: recommended
61 changes: 0 additions & 61 deletions model/resource/host.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions model/resource/os.yaml

This file was deleted.

0 comments on commit cace3db

Please sign in to comment.