semantic-conventions/model
Christophe Kamphaus 98244d9c1a
Add CICD metrics (#1681)
Co-authored-by: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com>
Co-authored-by: Liudmila Molkova <limolkova@microsoft.com>
2025-01-23 11:29:42 +01:00
..
android Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
artifact [editorial] Adjust link into in-toto attestation spec (#1753) 2025-01-17 07:54:38 -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 [chore] Add x-amzn-requestid as source for aws.request_id (#1691) 2024-12-19 08:19:17 -08:00
azure added missing display names to some registry groups (#1674) 2024-12-11 21:26:17 +00:00
browser Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
cicd Add CICD metrics (#1681) 2025-01-23 11:29:42 +01:00
cli Add conventions for CLI Spans (#1588) 2024-11-26 13:09:20 -08:00
client Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
cloud Add Oracle Cloud Infrastructure as Cloud Provider (#1720) 2025-01-10 15:21:31 +01:00
cloudevents Makes all span/metric/event/resource groups id meaningful (#1512) 2024-11-11 08:16:29 -08:00
cloudfoundry added missing display names to some registry groups (#1674) 2024-12-11 21:26:17 +00:00
code rename some code attributes (#1624) 2025-01-07 13:09:08 -08:00
container Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
cpu Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
database Fix broken link to redis HMSET command (#1788) 2025-01-22 18:04:48 -08:00
deployment Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
destination Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
device Add stability to `network.interface.name` and event fields, add temp policy check (#1781) 2025-01-22 18:11:09 -08:00
disk Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
dns Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
dotnet Mark .NET runtime metrics as stable (#1609) 2024-12-03 12:39:24 -08:00
enduser/deprecated Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
error [chore] Improve markdown gen for registry pages (#1496) 2024-10-21 07:32:21 -07:00
event/deprecated Deprecate `event.name` attribute in favor of EventName on the log record (#1646) 2024-12-16 20:21:17 -08:00
exceptions Add common guidance on recording errors on spans and metrics, clarify DB conventions (#1716) 2025-01-16 11:54:10 -08:00
faas rename some code attributes (#1624) 2025-01-07 13:09:08 -08:00
feature-flags Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
file Fix `make table-check` command and regenerate tables (#1441) 2024-09-30 10:23:45 -04:00
gcp Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
gen-ai Add stability to `network.interface.name` and event fields, add temp policy check (#1781) 2025-01-22 18:11:09 -08:00
geo Fix broken anchors, remove `en` from some links (#1610) 2024-11-25 10:45:14 -08:00
go Remove requirement_level usages from registry and add a policy to check (#1606) 2024-11-25 11:08:46 -05:00
graphql Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
hardware Update links to openmetrics to reference the v1.0.0 release (#1682) 2024-12-13 18:14:10 -08:00
heroku Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
host Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
http Relax `server.port` requirement level on HTTP server spans (#1591) 2024-11-25 17:28:46 +00:00
ios/deprecated Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
jvm Makes all span/metric/event/resource groups id meaningful (#1512) 2024-11-11 08:16:29 -08:00
k8s Add k8s.namespace.phase metric and attribute (#1668) 2025-01-21 11:54:27 +01:00
kestrel Add known Kestrel connection error types (#1548) 2024-11-14 20:39:48 -08:00
linux added missing display names to some registry groups (#1674) 2024-12-11 21:26:17 +00:00
log Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
messaging RabbitMQ: Specify how to populate `messaging.destination.name` (#1531) 2025-01-15 10:49:55 +01:00
network Add stability to `network.interface.name` and event fields, add temp policy check (#1781) 2025-01-22 18:11:09 -08:00
nodejs Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
oci Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
opentracing Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
os Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
otel Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
peer Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
process Change `<PID>` to `[PID]` (#1664) 2024-12-10 07:58:00 -08:00
profile model/profile: add frame.type for Erlang (#1735) 2025-01-23 11:25:12 +01:00
rpc rename some code attributes (#1624) 2025-01-07 13:09:08 -08:00
security-rule add new namespace “security_rule.*" (#903) 2024-12-08 19:51:14 +00:00
server Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
service [chore] Fixed a dead link for machine id man page (#1584) 2024-11-16 18:23:03 +00:00
session Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
signalr Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
source Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
system Add note about logical and physical cpu numbers calculation (#1780) 2025-01-23 11:20:29 +01:00
telemetry Remove requirement_level usages from registry and add a policy to check (#1606) 2024-11-25 11:08:46 -05:00
test added missing display names to some registry groups (#1674) 2024-12-11 21:26:17 +00:00
thread Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
tls Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
url Fix broken anchors, remove `en` from some links (#1610) 2024-11-25 10:45:14 -08:00
user Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
user-agent add `http.request.synthetic` attribute to server spans and metrics (#1523) 2024-11-22 11:10:25 -08:00
v8js Group yaml files by root namespace instead of signal (#1345) 2024-09-16 20:22:50 -07:00
vcs added missing display names to some registry groups (#1674) 2024-12-11 21:26:17 +00:00
webengine Update weaver and add missing stability levels to spans, resources and events (#1654) 2024-12-05 12:57:11 -08:00
README.md [editorial] A few random doc fixes (#1704) 2024-12-27 09:04:58 +01: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: