OpenTelemetry Semantic Conventions (
|
| Definition | id field | Reference | Resolves to |
|---|---|---|---|
| attribute | key |
ref |
attribute |
| attribute_group | id |
ref_group |
attribute_group |
| entity / span | type |
entity_associations[] |
entity |
| event / metric | name |
*_refinements[].ref |
the matching signal |
| enum member | id (inline) |
Files are recognized by content, not by file name: definition files declare
file_format: definition/2, and a registry manifest is identified by its
schema_url (with no file_format). The extension indexes every definition file
in your workspace folder, so navigation works across the whole registry; manifest
files get field hover and dependency diagnostics.
Requirements
- VS Code 1.96 or newer.
- A workspace folder containing
definition/2semantic-convention YAML files.
Installation
- Marketplace: search for OTel SemConv in the Extensions view and install.
- From a
.vsix: download the package, then run Extensions: Install from VSIX… from the Command Palette.
No configuration is required — open a folder with semantic-convention files and the features above work automatically on YAML files.
Settings
| Setting | Default | Description |
|---|---|---|
semconv.trace.server |
off |
Log the communication between VS Code and the language server (off / messages / verbose). Useful when reporting an issue. |
Limitations
Not yet supported: completion in ref:, rename, document symbols, cross-registry
resolution, and the legacy definition/1 (groups:) format.
Contributing
Bug reports and contributions are welcome — see CONTRIBUTING.md for the development setup, architecture, and tests.
