semantic-conventions/model
Liudmila Molkova 2e4af3cc9b
Remove mentions of build-tools semconvgen (#2279)
2025-05-19 16:02:58 +00:00
..
android Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
app (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
artifact Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
aspnetcore Remove requirement_level usages from registry and add a policy to check (#1606) 2024-11-25 11:08:46 -05:00
aws Expand the intended use of the cloud.region attribute (#2238) 2025-05-13 06:40:51 +00:00
azure Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
browser (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
cassandra Consistent naming: `db.system` to `db.system.name`, namespace constants, remove `db` from system-specific names (#1734) 2025-01-23 23:02:12 -08:00
cicd Move Attributes Registry to Registry / Attributes (#2251) 2025-05-15 01:58:45 +00:00
cli Add span rendering template and clean up span briefs and notes (#1505) 2025-04-09 09:32:28 -07:00
client Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
cloud Expand the intended use of the cloud.region attribute (#2238) 2025-05-13 06:40:51 +00:00
cloudevents Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
cloudfoundry (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
code Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
container Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
cpu Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
cpython CPython runtime garbage collections metrics (#1931) 2025-03-27 14:52:20 +00:00
database Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
deployment Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
destination Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
device Move Attributes Registry to Registry / Attributes (#2251) 2025-05-15 01:58:45 +00:00
disk Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
dns Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
dotnet Mark .NET runtime metrics as stable (#1609) 2024-12-03 12:39:24 -08:00
elasticsearch Consistent naming: `db.system` to `db.system.name`, namespace constants, remove `db` from system-specific names (#1734) 2025-01-23 23:02:12 -08:00
enduser Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
error Define generic `error.message` (#1992) 2025-03-28 19:02:23 -07:00
event/deprecated Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
exceptions Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
faas (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
feature-flags Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
file Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
gcp (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
gen-ai Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
geo Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
go Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
graphql Add span rendering template and clean up span briefs and notes (#1505) 2025-04-09 09:32:28 -07:00
hardware [chore] Move AWS berdock attributes to AWS folder, update stability to development (#2242) 2025-05-08 16:14:34 +00:00
heroku (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
host (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
http [chore] Fix typo in http client SpanKind (#2258) 2025-05-12 19:38:29 +00:00
ios Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
jvm Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
k8s Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
kestrel Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
linux Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
log Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
messaging Remove mentions of build-tools semconvgen (#2279) 2025-05-19 16:02:58 +00:00
network Stabilize `network.transport` enum value `quic` (#2275) 2025-05-16 15:34:13 +00:00
nodejs Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
oci Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
opentracing Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
os (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
otel Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
peer Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
process Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
profile model/profile: add frame.type for Go and Rust (#2003) 2025-03-25 16:11:59 +01:00
rpc Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
security-rule Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
server Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
service (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
session Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
signalr Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
source Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
system Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
telemetry (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
test Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
thread Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
tls Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
url [editorial] Use canonical https URLs (#1934) 2025-02-24 13:33:12 -08:00
user Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
user-agent Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
v8js CPython runtime garbage collections metrics (#1931) 2025-03-27 14:52:20 +00:00
vcs Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
webengine (chore) Resource -> Entity : Part 2 : Update all group ids, group id guidance and references to group ids. (#2244) 2025-05-08 15:05:50 +00:00
README.md Move Attributes Registry to Registry / Attributes (#2251) 2025-05-15 01:58:45 +00: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.

[!NOTE]

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 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.

When defining semantic conventions, follow contributing guide:

  • If new attributes are necessary, define them in the attribute registry. Attributes can only be defined inside groups with attribute_group type and with id starting with registry. prefix.
  • Define new spans, metrics, events, resources, and other conventions using appropriate group type. See semantic convention groups for more details.

Generating markdown

These YAML files are used by the make targets attribute-registry-generation and 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 attribute-registry-generation table-generation

For more information, see the Weaver as our code generations tool.

Validating semantic conventions

Semantic conventions YAML files are validated by the check-policies make target for backward compatibility, name formatting, and other policies.

You can run it with the following command:

make check-policies

See also: