semantic-conventions/model
Johannes Tax 5aa01542b9
BREAKING: Use seconds as default duration for FaaS duration histograms (#384)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Alexander Wert <AlexanderWert@users.noreply.github.com>
2023-10-24 09:42:11 +02:00
..
logs added mobile instrumentation to log-event semantic conventions (#67) 2023-10-20 10:11:52 +02:00
metrics BREAKING: Use seconds as default duration for FaaS duration histograms (#384) 2023-10-24 09:42:11 +02:00
registry Moved rpc attributes to the registry (#395) 2023-10-23 15:52:46 +02:00
resource Editorial: random improvements (#415) 2023-10-19 16:53:57 -07:00
scope/exporter Renamed `specification` and `semantic_conventions` to `model` and `docs` (#166) 2023-07-06 11:43:47 -07:00
trace Moved rpc attributes to the registry (#395) 2023-10-23 15:52:46 +02:00
README.md Bump to latest specification version. (#379) 2023-10-11 09:29:44 -04:00
client.yaml Editorial: random improvements (#415) 2023-10-19 16:53:57 -07:00
destination.yaml Editorial: random improvements (#415) 2023-10-19 16:53:57 -07:00
error.yaml Editorial: random improvements (#415) 2023-10-19 16:53:57 -07: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
general.yaml Introduce `jvm.thread.daemon` and `jvm.thread.state` attributes (#297) 2023-10-23 10:22:29 +02:00
http-common.yaml Fix `server.port` to be not required on HTTP server spans when `server.address` is not set (#429) 2023-10-23 10:27:44 +02:00
network.yaml Moved network attributes to the registry (#390) 2023-10-19 14:16:04 +02:00
server.yaml Editorial: random improvements (#415) 2023-10-19 16:53:57 -07:00
session.yaml Add session.previous_id (#348) 2023-10-21 15:40:31 +02:00
source.yaml Editorial: random improvements (#415) 2023-10-19 16:53:57 -07: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: