semantic-conventions/model
Mike Koltsov 650be8f523
Add system.linux.memory.available metric (#323)
2023-09-22 18:48:36 +02:00
..
deprecated Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
logs Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
metrics Add system.linux.memory.available metric (#323) 2023-09-22 18:48:36 +02:00
resource Add oci.manifest.digest, container.image.repo_digests and make container.image.tag array (#159) 2023-09-11 11:22:44 +02:00
scope/exporter Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
trace Make messaging payload attributes consistent with other conventions (#229) 2023-09-19 12:37:12 +02:00
README.md Bump semantic conventions tooling to v0.21.0 (#310) 2023-09-12 17:55:20 +02:00
client.yaml Update client address to be consistent with server address (#302) 2023-09-12 18:01:35 +02:00
destination.yaml Update destination attribute briefs (#243) 2023-08-10 09:56:09 -07:00
error.yaml Introduce request error type attribute (#205) 2023-09-11 17:37:09 +02:00
exception.yaml Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
faas-common.yaml Generate FaaS metrics semconv from YAML (#88) 2023-08-07 08:27:53 -07:00
http-common.yaml Improve `error.type` wording in HTTP semconv (#331) 2023-09-20 18:49:31 +02:00
network.yaml Move network attributes out of trace folder (#256) 2023-08-15 07:33:53 -04:00
server.yaml Improve symmetry in client/server address/port text (#244) 2023-08-14 12:02:04 -04:00
session.yaml Session.id semantic convention (#215) 2023-09-22 09:04:05 +02:00
source.yaml Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
url.yaml Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
user-agent.yaml Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07: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: