semantic-conventions/model
Trent Mick 0ab3f5678c
Add the 'deprecated:' attribute to the recently deprecated 'z_os' enum value (#2479)
2025-07-04 22:30:31 +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 Change `azure_` and `az.` to `azure.` across all conventions (#1698) 2025-06-24 15:44:05 +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 Add annotation to exclude collisions on `cloud.platform` enum and add policies (#2477) 2025-07-04 22:19:23 +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 Revert `cpu.*` metrics to `system.cpu.*` (#2295) 2025-05-29 15:07:11 +00:00
cpython CPython runtime garbage collections metrics (#1931) 2025-03-27 14:52:20 +00:00
database Change `azure_` and `az.` to `azure.` across all conventions (#1698) 2025-06-24 15:44:05 +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 Add .NET network + HTTP connection spans (#1192) 2025-06-19 23:52:00 +00:00
dotnet Add .NET network + HTTP connection spans (#1192) 2025-06-19 23:52:00 +00: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 Mark feature flag semantic conventions as release candidate (#2277) 2025-05-22 13:39:03 +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 Change `azure_` and `az.` to `azure.` across all conventions (#1698) 2025-06-24 15:44:05 +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] fix heroku description #2344 (#2377) 2025-06-17 11:24:23 +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 Fix typo in http deprecated doc (#2299) 2025-05-26 14:50:42 +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 [k8s] Adds k8s.hpa.metric.target.cpu.* metrics (#2283) 2025-06-30 16:58:04 +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
mainframe Initial semantic conventions for mainframes (#1741) 2025-06-04 13:42:47 +00: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 Add the 'deprecated:' attribute to the recently deprecated 'z_os' enum value (#2479) 2025-07-04 22:30:31 +00:00
otel Replace otel.sdk.span.ended metric with improved span.started metric (#2431) 2025-07-02 15:49:39 +00:00
peer Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
process Create Entities Registry (#2278) 2025-06-30 20:20:24 +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 Add stability requirements for entities to have attribute roles. (#2378) 2025-06-23 21:59:05 +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 Rename system.network.connections to system.network.connection.count (#2425) 2025-06-27 23:38:45 +00:00
telemetry Add stability requirements for entities to have attribute roles. (#2378) 2025-06-23 21:59:05 +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
zos Initial semantic conventions for mainframes (#1741) 2025-06-04 13:42:47 +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: