Skip to content

Parameterize KeyValue in AnnotationHandler #6786

@jonatan-ivanov

Description

@jonatan-ivanov

AnnotationHandler lets you customize the type where you set the metadata (type T) but it does not let you customize the metadata type itself. It is hard-coded KeyValue instead of a type parameter which causes issues (see: #6667 (comment)) and also KeyValue is used at places where it is not needed (CountedMeterTagAnnotationHandler and MeterTagAnnotationHandler both need to use KeyValue while they need to set Tag).

Doing this is a breaking change so probably something we can consider for 2.x.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions