semantic-conventions/model
Joao Grassi 2541b87236
[chore] Move GCP attributes to the registry (#849)
2024-03-27 18:14:09 +01:00
..
logs [chore] Move Feature Flag attributes to the registry (#842) 2024-03-27 17:40:44 +01:00
metrics Add container metric fields (from ECS) (#282) 2024-03-27 10:47:38 +01:00
registry [chore] Move GCP attributes to the registry (#849) 2024-03-27 18:14:09 +01:00
resource [chore] Move GCP attributes to the registry (#849) 2024-03-27 18:14:09 +01:00
scope/exporter [chore] Mark attributes and metrics as experimental explicitly (#781) 2024-03-05 17:28:09 -08:00
trace [chore] Move Feature Flag attributes to the registry (#842) 2024-03-27 17:40:44 +01:00
README.md [chore] Move metric requirement levels doc from spec (#831) 2024-03-21 18:37:47 -07:00
faas-common.yaml move faas to registry (#525) 2024-03-07 09:04:52 -08:00
general.yaml [chore] Move end user attributes to the registry (#844) 2024-03-27 17:48:13 +01:00
http-common.yaml Change `network.protocol.name` from opt-in to conditionally required (#478) 2023-11-01 09:04:51 +01:00
messaging-common.yaml Messaging: clarify network attributes usage on common semconv (#698) 2024-03-25 08:39:18 -07:00
network.yaml Moved network attributes to the registry (#390) 2023-10-19 14:16:04 +02:00
session.yaml [chore] Mark attributes and metrics as experimental explicitly (#781) 2024-03-05 17:28:09 -08:00
url.yaml Move url to the registry (#400) 2023-10-18 12:59:44 +02:00
version.properties Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00

README.md

YAML Model for Semantic Conventions

The YAML descriptions of semantic convention contained in this directory are intended to be used by the various OpenTelemetry language implementations to aid in automatic generation of semantics-related code.

⚠ If you want to read the semantic conventions and not edit them, please see the generated markdown output in the docs folder.

Writing semantic conventions

Semantic conventions for the spec MUST adhere to the attribute naming, attribute requirement level, and metric requirement level conventions.

Refer to the syntax for how to write the YAML files for semantic conventions and what the YAML properties mean.

A schema file for VS code is configured in the /.vscode/settings.json of this repository, enabling auto-completion and additional checks. Refer to the generator README for what extension you need.

Generating markdown

These YAML files are used by the make target table-generation to generate consistently formatted Markdown tables for all semantic conventions in the specification. Run it from the root of this repository using the command

make table-generation

For more information, see the semantic convention generator in the OpenTelemetry build tools repository. Using this build tool, it is also possible to generate code for use in OpenTelemetry language projects.

See also: