Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Mdc annotation #144

Open
GoodforGod opened this issue Oct 7, 2024 · 2 comments
Open

@Mdc annotation #144

GoodforGod opened this issue Oct 7, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers new feature New feature request

Comments

@GoodforGod
Copy link
Contributor

GoodforGod commented Oct 7, 2024

Java / Kotlin / Both:

  • Both

Опишите функционал который бы вы хотели / Describe the solution you'd like
Реализовать новую аннотацию @Mdc в модуле logging для того чтобы можно было аннотировать метод и прокидывать Mdc в различные аспекты, ибо по другому прокинуть их туда нельзя ведь если вызывать и проставлять MDC в методе, то все аспекты уже выполнены

Опишите альтернативы которые вы используете или рассматривали / Describe alternatives you've considered
Проставление в методе, но так нельзя связать это с аспектами того же логгирования

Дизайн примерный:

@AopAnnotation
@Target({METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Mdc {

    String[] value() default {};
}

Нужно чтоб было возможно прокидывать как просто ключ-значение, так и ключ-аргумент метода, аргумент метода будет работать через синтаксис {имяАргументаМетода}

@GoodforGod GoodforGod added new feature New feature request good first issue Good for newcomers labels Oct 7, 2024
@DmitrySadchikov
Copy link
Contributor

Беру на себя

@GoodforGod
Copy link
Contributor Author

Задача закреплена за @DmitrySadchikov

@GoodforGod GoodforGod self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers new feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants