semantic-conventions/model
James Thompson c59bc23c92
[chore] Remove un-necessary quotes (#2788)
2025-09-19 12:11:54 +00:00
..
android Better link text (#2660) 2025-08-21 13:11:25 +00:00
app Add client-side jank event (#2552) 2025-08-22 00:27:40 +00:00
artifact Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
aspnetcore Add ONC/Sun RPC model and NFS system metrics (#2287) 2025-09-15 10:46:50 +00:00
aws [chore] Set enum briefs for AWS (#2556) 2025-08-14 11:25:33 +00:00
azure [chore] Set enum briefs for Azure (#2557) 2025-08-14 11:24:51 +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 [chore] Set enum briefs for Cassandra (#2558) 2025-08-14 11:24:23 +00:00
cicd Improve cicd worker description (#2590) 2025-08-27 14:56:40 +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 Update otel/weaver Docker tag to v0.17.0 (#2614) 2025-08-14 21:32:11 +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 More informative container runtime #2342 (#2407) 2025-08-08 20:18:13 +00:00
cpu [chore] Set enum briefs for CPU (#2559) 2025-08-04 15:03:11 +00:00
cpython Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
database [chore] Remove un-necessary quotes (#2788) 2025-09-19 12:11:54 +00:00
deployment [chore] Remove quotes from values (#2500) 2025-07-09 18:28:12 +00:00
destination Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
device Better link text (#2660) 2025-08-21 13:11:25 +00:00
disk Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
dns Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
dotnet Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +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 Check deprecated.rename_to type compatibility and more (#2688) 2025-08-27 16:59:01 +00:00
error Define generic `error.message` (#1992) 2025-03-28 19:02:23 -07:00
event Revive `event.name` attribute (#2715) 2025-09-08 14:57:58 +00:00
exceptions Use deprecated struct instead of text, add policies (#2047) 2025-05-11 18:12:58 +00:00
faas Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +00:00
feature-flags Mark feature flag semantic conventions as release candidate (#2277) 2025-05-22 13:39:03 +00:00
file [chore] fix typo in example for `file.fork_name` (#2539) 2025-07-21 15:03:02 +00:00
gcp Document 'gcp.apphub_destination.*' attributes. (#2663) 2025-09-06 03:53:43 +00:00
gen-ai Add tool definition and other tool-related attributes in invoke-agent, inference, and execute-tool spans (#2702) 2025-09-04 01:49:50 +00:00
geo Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
go Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
graphql Add span rendering template and clean up span briefs and notes (#1505) 2025-04-09 09:32:28 -07:00
hardware move all hardware metrics to their own yaml files (#2380) 2025-08-20 14:48:18 +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 Clarify routes may contain static and dynamic segments (#2734) 2025-09-16 08:32:24 +00:00
ios [chore] Use rename deprecations for ios/Android #2602 (#2603) 2025-08-14 12:44:31 +00:00
jvm Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
k8s (k8s): add CPU limit/request utilization metrics for pod and container (#2514) 2025-09-11 13:08:43 +00:00
kestrel Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +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 Check deprecated.rename_to type compatibility and more (#2688) 2025-08-27 16:59:01 +00:00
network Stabilize `network.transport` enum value `quic` (#2275) 2025-05-16 15:34:13 +00:00
nfs Add ONC/Sun RPC model and NFS system metrics (#2287) 2025-09-15 10:46:50 +00:00
nodejs Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
oci Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
onc_rpc Add ONC/Sun RPC model and NFS system metrics (#2287) 2025-09-15 10:46:50 +00:00
openai Update GenAI conventions based on system-specific naming guidance (#2046) 2025-07-08 02:12:02 +00:00
opentracing Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
os Update otel/weaver Docker tag to v0.17.0 (#2614) 2025-08-14 21:32:11 +00:00
otel Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +00:00
peer Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
pprof model/profile: add symbolization information (#2522) 2025-09-11 15:42:45 +00:00
process Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
profile model/profile: add frame.type for Go and Rust (#2003) 2025-03-25 16:11:59 +01:00
rpc Add ONC/Sun RPC model and NFS system metrics (#2287) 2025-09-15 10:46:50 +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 Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
source Update stability levels from experimental -> development (#1889) 2025-02-11 18:06:51 -08:00
system Fix deprecation of system.cpu.logical_number (#2700) 2025-09-08 14:13:30 +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 Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
vcs [chore] Remove un-necessary quotes (#2788) 2025-09-19 12:11:54 +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 [chore] Fix naming of zos entities (#2520) 2025-07-17 17:02:20 +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: