Fixes #597 ## Changes - Add a section for "generic attributes" to the log semconv - Add an attribute `log_record.id` making use of ULID as discussed in #597 Some additional notes: - I kept the PR small, so I left out some other potential attributes, e.g. something for pre-existing ID (like windows event logs) or for storing the used logging/eventing system or even something like a "signature" that might be worth discussing, etc. - I followed the structure of "generic attributes" from the spans semconv - I took some of the existing wording from #597 & https://github.com/open-telemetry/oteps/pull/97#discussion_r421865344 to describe the field --------- Signed-off-by: svrnm <neumanns@cisco.com> Co-authored-by: Joao Grassi <joao@joaograssi.com> Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com> Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| logs | ||
| metrics | ||
| resource | ||
| scope/exporter | ||
| trace | ||
| README.md | ||
| exception.yaml | ||
| http-common.yaml | ||
| user-agent.yaml | ||
| version.properties | ||
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.
⚠ If you want to read the semantic conventions and not edit them, please see
the generated markdown output under /specification/*/semantic_conventions/,
i.e.:
Writing semantic conventions
Semantic conventions for the spec MUST adhere to the attribute 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.
Generating markdown
These YAML files are used by the make target 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 table-generation
For more information, see the semantic convention generator in the OpenTelemetry build tools repository. Using this build tool, it is also possible to generate code for use in OpenTelemetry language projects.
See also: