open-telemetry / open-telemetry/weaver

Re-design type definitions for attributes and event bodies

Open
#892 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

model
Dominant language
Rust
Stars
489
Forks
108
Avg merge
3d 4h
Merged PRs (30d)
40

Description

Attributes and event bodies can be of a complex types. With schema v2, we could have syntax like

types:
 - name: gen_ai.chat_message
   definition: todo

that's reusable inside other type definitions and as an attribute/event body type.

https://github.com/open-telemetry/semantic-conventions/pull/2179 is an example where we define some types in JSON schema, but that doesn't look like the long term direction.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the schema v2 syntax described in the issue and the linked semantic-conventions PR #2179, which uses JSON Schema for type definitions. Determine the long-term representation for reusable complex types in attributes and event bodies; done means the design is agreed and the affected Weaver schema and generation behavior are specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.