Skip to content

Commit 58dfbe2

Browse files
authored
Move Attributes Registry to Registry / Attributes (#2251)
1 parent 95c7f21 commit 58dfbe2

File tree

199 files changed

+1767
-1743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+1767
-1743
lines changed

.github/workflows/build-system-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: npm install
5959

6060
- name: invoke make
61-
run: make table-generation attribute-registry-generation
61+
run: make table-generation registry-generation
6262

6363
# The "CONTRIBUTING.md" guide provides these make targets for verifying the policies;
6464
# ensure that the steps in the "CONTRIBUTING.md" guide continue to work.

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ jobs:
9090
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9191
- name: verify registry tables
9292
run: |
93-
make attribute-registry-generation
94-
git diff --exit-code './docs/attributes-registry/*.md' || (echo 'Attribute registry markdown is out of date, please run "make attribute-registry-generation" and commit the changes in this PR.' && exit 1)
93+
make registry-generation
94+
git diff --exit-code './docs/registry/*.md' || (echo 'Attribute registry markdown is out of date, please run "make registry-generation" and commit the changes in this PR.' && exit 1)
9595
9696
schemas-check:
9797
runs-on: ubuntu-latest

.prettierignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/docs/**
66
!/docs/cloud*
77
!/docs/cloud*/**
8-
!/docs/attributes-registry*
9-
!/docs/attributes-registry*/**
8+
!/docs/registry*
9+
!/docs/registry*/**
1010
!/docs/non-normative*
1111
!/docs/non-normative/groups*
1212
!/docs/non-normative/groups/system*

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,20 @@ table-generation:
195195
--mount 'type=bind,source=$(PWD)/docs,target=/home/weaver/target' \
196196
$(WEAVER_CONTAINER) registry update-markdown \
197197
--registry=/home/weaver/source \
198-
--attribute-registry-base-url=/docs/attributes-registry \
198+
--attribute-registry-base-url=/docs/registry/attributes \
199199
--templates=/home/weaver/templates \
200200
--target=markdown \
201201
--future \
202202
/home/weaver/target
203203

204-
# Generate attribute registry markdown.
204+
# DEPRECATED: Generate attribute registry markdown.
205205
.PHONY: attribute-registry-generation
206-
attribute-registry-generation:
206+
attribute-registry-generation: registry-generation
207+
208+
209+
# Generate registry markdown (attributes, etc.).
210+
.PHONY: registry-generation
211+
registry-generation:
207212
$(DOCKER_RUN) --rm \
208213
$(DOCKER_USER_IS_HOST_USER_ARG) \
209214
--mount 'type=bind,source=$(PWD)/templates,target=/home/weaver/templates,readonly' \
@@ -213,7 +218,7 @@ attribute-registry-generation:
213218
--registry=/home/weaver/source \
214219
--templates=/home/weaver/templates \
215220
markdown \
216-
/home/weaver/target/attributes-registry/
221+
/home/weaver/target/registry/
217222

218223
# Check if current markdown tables differ from the ones that would be generated from YAML definitions (weaver).
219224
.PHONY: table-check
@@ -225,7 +230,7 @@ table-check:
225230
--mount 'type=bind,source=$(PWD)/docs,target=/home/weaver/target,readonly' \
226231
$(WEAVER_CONTAINER) registry update-markdown \
227232
--registry=/home/weaver/source \
228-
--attribute-registry-base-url=/docs/attributes-registry \
233+
--attribute-registry-base-url=/docs/registry/attributes \
229234
--templates=/home/weaver/templates \
230235
--target=markdown \
231236
--dry-run \
@@ -239,13 +244,13 @@ schema-check:
239244
# Run all checks in order of speed / likely failure.
240245
# As a last thing, run attribute registry generation and git-diff for differences.
241246
.PHONY: check
242-
check: misspell markdownlint markdown-toc markdown-link-check check-policies attribute-registry-generation
247+
check: misspell markdownlint markdown-toc markdown-link-check check-policies registry-generation
243248
git diff --exit-code ':*.md' || (echo 'Generated markdown Table of Contents is out of date, please run "make markdown-toc" and commit the changes in this PR.' && exit 1)
244249
@echo "All checks complete"
245250

246251
# Attempt to fix issues / regenerate tables.
247252
.PHONY: fix
248-
fix: table-generation attribute-registry-generation misspell-correction markdown-toc
253+
fix: table-generation registry-generation misspell-correction markdown-toc
249254
@echo "All autofixes complete"
250255

251256
.PHONY: install-tools

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ cascade:
55
github_subdir: docs
66
path_base_for_github_subdir: tmp/semconv/docs/
77
github_project_repo: *repo
8+
redirects: [{ from: 'attributes-registry/*', to: 'registry/attributes/:splat' }]
89
cSpell:ignore: semconv CICD
910
auto_gen: below
1011
linkTitle: Semantic conventions

docs/app/app.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ The `app.screen.click` event can be used to indicate that a user has clicked or
3939

4040
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
4141
|---|---|---|---|---|---|
42-
| [`app.screen.coordinate.x`](/docs/attributes-registry/app.md) | int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. | `0`; `131` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
43-
| [`app.screen.coordinate.y`](/docs/attributes-registry/app.md) | int | The y (vertical) component of a screen coordinate, in screen pixels. | `12`; `99` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
42+
| [`app.screen.coordinate.x`](/docs/registry/attributes/app.md) | int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. | `0`; `131` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
43+
| [`app.screen.coordinate.y`](/docs/registry/attributes/app.md) | int | The y (vertical) component of a screen coordinate, in screen pixels. | `12`; `99` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
4444

4545
<!-- markdownlint-restore -->
4646
<!-- prettier-ignore-end -->
@@ -66,10 +66,10 @@ Use this event to indicate that visual application component has been clicked, t
6666

6767
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
6868
|---|---|---|---|---|---|
69-
| [`app.widget.id`](/docs/attributes-registry/app.md) | string | An identifier that uniquely differentiates this widget from other widgets in the same application. [1] | `f9bc787d-ff05-48ad-90e1-fca1d46130b3`; `submit_order_1829` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
70-
| [`app.screen.coordinate.x`](/docs/attributes-registry/app.md) | int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. | `0`; `131` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
71-
| [`app.screen.coordinate.y`](/docs/attributes-registry/app.md) | int | The y (vertical) component of a screen coordinate, in screen pixels. | `12`; `99` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
72-
| [`app.widget.name`](/docs/attributes-registry/app.md) | string | The name of an application widget. [2] | `submit`; `attack`; `Clear Cart` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
69+
| [`app.widget.id`](/docs/registry/attributes/app.md) | string | An identifier that uniquely differentiates this widget from other widgets in the same application. [1] | `f9bc787d-ff05-48ad-90e1-fca1d46130b3`; `submit_order_1829` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
70+
| [`app.screen.coordinate.x`](/docs/registry/attributes/app.md) | int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. | `0`; `131` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
71+
| [`app.screen.coordinate.y`](/docs/registry/attributes/app.md) | int | The y (vertical) component of a screen coordinate, in screen pixels. | `12`; `99` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
72+
| [`app.widget.name`](/docs/registry/attributes/app.md) | string | The name of an application widget. [2] | `submit`; `attack`; `Clear Cart` | `Opt-In` | ![Development](https://img.shields.io/badge/-development-blue) |
7373

7474
**[1] `app.widget.id`:** A widget is an application component, typically an on-screen visual GUI element.
7575

@@ -82,7 +82,7 @@ Use this event to indicate that visual application component has been clicked, t
8282

8383
## Attributes
8484

85-
See the [app attributes](/docs/attributes-registry/app.md) registry for all
85+
See the [app attributes](/docs/registry/attributes/app.md) registry for all
8686
application-related attributes that may appear on telemetry items.
8787

8888
[DocumentStatus]: https://opentelemetry.io/docs/specs/otel/document-status

docs/azure/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Describes Azure Resource Log event, see [Azure Resource Log Top-level Schema](ht
2626

2727
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
2828
|---|---|---|---|---|---|
29-
| [`az.service_request_id`](/docs/attributes-registry/azure.md) | string | The unique identifier of the service request. It's generated by the Azure service and returned with the response. | `00000000-0000-0000-0000-000000000000` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
30-
| [`cloud.resource_id`](/docs/attributes-registry/cloud.md) | string | The [Fully Qualified Azure Resource ID](https://docs.microsoft.com/rest/api/resources/resources/get-by-id) the log is emitted for. | `arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`; `//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID`; `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
29+
| [`az.service_request_id`](/docs/registry/attributes/azure.md) | string | The unique identifier of the service request. It's generated by the Azure service and returned with the response. | `00000000-0000-0000-0000-000000000000` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
30+
| [`cloud.resource_id`](/docs/registry/attributes/cloud.md) | string | The [Fully Qualified Azure Resource ID](https://docs.microsoft.com/rest/api/resources/resources/get-by-id) the log is emitted for. | `arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function`; `//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID`; `/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
3131

3232
**Body fields:**
3333

0 commit comments

Comments
 (0)