Skip to content

Allow updating enum values when referencing attribute #479

@lmolkova

Description

@lmolkova

Semantic conventions that reference a common attribute with an enum type, should be able to extend/overwrite the list of possible values.

E.g.

- id: http.request.method
  type:
    allow_custom_values: true
    members:
      - id: delete
        value: "DELETE"
        brief: 'DELETE method.'
      - id: get
        value: "GET"
        brief: 'GET method.'
...

- ref: http.request.method
  type:
    allow_custom_values: true
    members:
      - id: purge
        value: "PURGE"
        brief: 'non-standard PURGE method.'

currently redeclaring a type is not supported.

While additional values could be documented in the note, md generation adds another note with possible values according to enum.

Related: open-telemetry/semantic-conventions#205

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmodelModifies the model for signals and attributes used by Weaver.

Projects

Status

To consider for the next release

Status

Blocking semconv work

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions