|
1 | 1 | # SPDX-FileCopyrightText: Copyright 2026 Dash0 Inc. |
2 | 2 |
|
3 | | -# Note weaver requires all used resource attributes to be defined on an entity to pass validation. |
4 | | -# The current iteration of the deployment resource does not include optional deployment attributes. |
5 | | -# This entity exists to as a compatibility layer to allow |
| 3 | +# Note: We want to require for deployment events both the service identity (service.name with |
| 4 | +# optionally service.namespace and service.version) and the deployment identity (deployment.name, |
| 5 | +# deployment.environment.name, deployment.id). |
| 6 | +# Unfortunately, the `entioty_associations` field is a "one of" semantics, meaning that, if we |
| 7 | +# associate with both the service and the deployment, any log event satisfying *either* will pass |
| 8 | +# validation. |
6 | 9 | groups: |
7 | | - - id: entity.internal.dash0.deployment |
| 10 | + - id: "dash0.deployment" |
8 | 11 | type: entity |
9 | 12 | stability: development |
10 | | - name: deployment |
| 13 | + name: deployment-resource-attributes |
11 | 14 | brief: > |
12 | | - Mock entity for compatibility with Weaver, allowing additional optional attributes to pass validation |
| 15 | + Entity describing which resource attributes are required and which recommended to be set on |
| 16 | + a `dash0.deployment` event. |
13 | 17 | attributes: |
| 18 | + - ref: service.name |
| 19 | + requirement_level: required |
| 20 | + - ref: service.namespace |
| 21 | + requirement_level: recommended |
| 22 | + - ref: service.version |
| 23 | + requirement_level: recommended |
14 | 24 | - ref: deployment.name |
15 | 25 | requirement_level: recommended |
| 26 | + - ref: deployment.environment.name |
| 27 | + requirement_level: recommended |
16 | 28 | - ref: deployment.id |
17 | 29 | requirement_level: recommended |
0 commit comments