Skip to content

[WIP] Schema v2#2469

Closed
lmolkova wants to merge 2 commits intoopen-telemetry:mainfrom
lmolkova:schema-v2
Closed

[WIP] Schema v2#2469
lmolkova wants to merge 2 commits intoopen-telemetry:mainfrom
lmolkova:schema-v2

Conversation

@lmolkova
Copy link
Copy Markdown
Member

@lmolkova lmolkova commented Jul 3, 2025

Early prototype of the new schema URL story. Built on top of #2307

Try it out with make generate-schema-v2-dev NEXT_SEMCONV_VERSION=1.36.0

What it generates:

schemas/
  /1.36.0-dev
    schema.yaml - fully resolved schema with everything defined in semconv, 3MB
    schema-diff.yaml - changes from prev version (just one for the time being)
  /1.36.0
    schema.yaml
    no schema-diff.yaml here, see below

Not done yet:

  • diff history beyond one version

Problems found so far:

  • diff data has no stability properties, not possible to generate stable one

  • I'm not sure if lineage is really important on the resolved schema, do we actually need it checked in?

    Can be pretty big ```yaml lineage: provenance: registry_id: main path: /home/weaver/source/cli/spans.yaml attributes: error.type: source_group: registry.error inherited_fields: - brief - examples - note - stability locally_overridden_fields: - requirement_level process.command_args: source_group: registry.process inherited_fields: - brief - examples - note - stability locally_overridden_fields: - requirement_level process.executable.name: source_group: registry.process inherited_fields: - brief - examples - note - stability locally_overridden_fields: - requirement_level process.executable.path: source_group: registry.process inherited_fields: - brief - examples - note - stability locally_overridden_fields: - requirement_level process.exit.code: source_group: registry.process inherited_fields: - brief - examples - note - stability locally_overridden_fields: - requirement_level process.pid: source_group: registry.process inherited_fields: - brief - examples - note - stability locally_overridden_fields: - requirement_level ```

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Missing ID CLA Not Signed

@github-actions
Copy link
Copy Markdown

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 14 days.

@github-actions github-actions Bot added the Stale label Nov 29, 2025
@github-actions github-actions Bot closed this Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant