semantic-conventions/model
James Thompson 15f0d88adb
More informative container runtime #2342 (#2407)
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
Co-authored-by: Jina Jain <jjain@splunk.com>
2025-08-08 20:18:13 +00:00
..
android Add missing brief on `ios.state` attribute and add policies to require briefs (#2506) 2025-08-07 20:34:14 +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 Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
aws Expand the intended use of the cloud.region attribute (#2238) 2025-05-13 06:40:51 +00:00
azure Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +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 Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +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 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 Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +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 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 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 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 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 (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 Add operation name and tool type attributes for Execute tool span. (#2526) 2025-07-21 16:17:20 +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 Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +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 Replace confusing URI origin with more specific guidance (#2463) 2025-07-08 18:27:08 +00:00
ios Add missing brief on `ios.state` attribute and add policies to require briefs (#2506) 2025-08-07 20:34:14 +00:00
jvm Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
k8s Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +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 Add metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +00:00
network Stabilize `network.transport` enum value `quic` (#2275) 2025-05-16 15:34:13 +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
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 Add the 'deprecated:' attribute to the recently deprecated 'z_os' enum value (#2479) 2025-07-04 22:30:31 +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
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 metric value type everywhere (as code-generation annotation) (#2444) 2025-07-05 17:19:17 +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 Add missing brief on `ios.state` attribute and add policies to require briefs (#2506) 2025-08-07 20:34:14 +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 Enforce consistency of metric briefs (#2540) 2025-07-21 04:57:36 +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: