-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'open-telemetry:main' into antonpirker/run-tests-in-pyth…
…on-313
- Loading branch information
Showing
44 changed files
with
997 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...antic-conventions/src/opentelemetry/semconv/_incubating/attributes/artifact_attributes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from typing import Final | ||
|
||
ARTIFACT_ATTESTATION_FILENAME: Final = "artifact.attestation.filename" | ||
""" | ||
The provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship](https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations) specification for more information. | ||
""" | ||
|
||
ARTIFACT_ATTESTATION_HASH: Final = "artifact.attestation.hash" | ||
""" | ||
The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest](https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec). | ||
""" | ||
|
||
ARTIFACT_ATTESTATION_ID: Final = "artifact.attestation.id" | ||
""" | ||
The id of the build [software attestation](https://slsa.dev/attestation-model). | ||
""" | ||
|
||
ARTIFACT_FILENAME: Final = "artifact.filename" | ||
""" | ||
The human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. | ||
Note: This file name can also act as the [Package Name](https://slsa.dev/spec/v1.0/terminology#package-model) | ||
in cases where the package ecosystem maps accordingly. | ||
Additionally, the artifact [can be published](https://slsa.dev/spec/v1.0/terminology#software-supply-chain) | ||
for others, but that is not a guarantee. | ||
""" | ||
|
||
ARTIFACT_HASH: Final = "artifact.hash" | ||
""" | ||
The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), often found in checksum.txt on a release of the artifact and used to verify package integrity. | ||
Note: The specific algorithm used to create the cryptographic hash value is | ||
not defined. In situations where an artifact has multiple | ||
cryptographic hashes, it is up to the implementer to choose which | ||
hash value to set here; this should be the most secure hash algorithm | ||
that is suitable for the situation and consistent with the | ||
corresponding attestation. The implementer can then provide the other | ||
hash values through an additional set of attribute extensions as they | ||
deem necessary. | ||
""" | ||
|
||
ARTIFACT_PURL: Final = "artifact.purl" | ||
""" | ||
The [Package URL](https://github.com/package-url/purl-spec) of the [package artifact](https://slsa.dev/spec/v1.0/terminology#package-model) provides a standard way to identify and locate the packaged artifact. | ||
""" | ||
|
||
ARTIFACT_VERSION: Final = "artifact.version" | ||
""" | ||
The version of the artifact. | ||
""" |
20 changes: 20 additions & 0 deletions
20
...ry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/az_attributes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from typing import Final | ||
|
||
AZ_SERVICE_REQUEST_ID: Final = "az.service_request_id" | ||
""" | ||
The unique identifier of the service request. It's generated by the Azure service and returned with the response. | ||
""" |
55 changes: 55 additions & 0 deletions
55
...-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cicd_attributes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from enum import Enum | ||
from typing import Final | ||
|
||
CICD_PIPELINE_NAME: Final = "cicd.pipeline.name" | ||
""" | ||
The human readable name of the pipeline within a CI/CD system. | ||
""" | ||
|
||
CICD_PIPELINE_RUN_ID: Final = "cicd.pipeline.run.id" | ||
""" | ||
The unique identifier of a pipeline run within a CI/CD system. | ||
""" | ||
|
||
CICD_PIPELINE_TASK_NAME: Final = "cicd.pipeline.task.name" | ||
""" | ||
The human readable name of a task within a pipeline. Task here most closely aligns with a [computing process](https://en.wikipedia.org/wiki/Pipeline_(computing)) in a pipeline. Other terms for tasks include commands, steps, and procedures. | ||
""" | ||
|
||
CICD_PIPELINE_TASK_RUN_ID: Final = "cicd.pipeline.task.run.id" | ||
""" | ||
The unique identifier of a task run within a pipeline. | ||
""" | ||
|
||
CICD_PIPELINE_TASK_RUN_URL_FULL: Final = "cicd.pipeline.task.run.url.full" | ||
""" | ||
The [URL](https://en.wikipedia.org/wiki/URL) of the pipeline run providing the complete address in order to locate and identify the pipeline run. | ||
""" | ||
|
||
CICD_PIPELINE_TASK_TYPE: Final = "cicd.pipeline.task.type" | ||
""" | ||
The type of the task within a pipeline. | ||
""" | ||
|
||
|
||
class CicdPipelineTaskTypeValues(Enum): | ||
BUILD = "build" | ||
"""build.""" | ||
TEST = "test" | ||
"""test.""" | ||
DEPLOY = "deploy" | ||
"""deploy.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.