-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Compatible warnings logger #52369
Labels
:Core/Infra/Logging
Log management and logging utilities
Team:Core/Infra
Meta label for core/infra team
v8.0.0-alpha1
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Logging) |
pgomulka
added a commit
that referenced
this issue
Jun 1, 2020
Splitting DeprecationLogger into two. HeaderWarningLogger - responsible for adding a response warning headers and ThrottlingLogger - responsible for limiting the duplicated log entries for the same key (previously deprecateAndMaybeLog). Introducing A ThrottlingAndHeaderWarningLogger which is a base for other common logging usages where both response warning header and logging throttling was needed. relates #55699 relates #52369
pgomulka
added a commit
to pgomulka/elasticsearch
that referenced
this issue
Aug 25, 2020
Splitting DeprecationLogger into two. HeaderWarningLogger - responsible for adding a response warning headers and ThrottlingLogger - responsible for limiting the duplicated log entries for the same key (previously deprecateAndMaybeLog). Introducing A ThrottlingAndHeaderWarningLogger which is a base for other common logging usages where both response warning header and logging throttling was needed. relates elastic#55699 relates elastic#52369
pgomulka
added a commit
that referenced
this issue
Aug 25, 2020
Splitting DeprecationLogger into two. HeaderWarningLogger - responsible for adding a response warning headers and ThrottlingLogger - responsible for limiting the duplicated log entries for the same key (previously deprecateAndMaybeLog). Introducing A ThrottlingAndHeaderWarningLogger which is a base for other common logging usages where both response warning header and logging throttling was needed. relates #55699 relates #52369 backports #55941
pgomulka
added a commit
that referenced
this issue
Feb 15, 2021
Extending deprecation logger to also log compatible API warnings. These warnings will be written to deprecation log file, data stream and will emit response warning header - the same as deprecation logs. In order to comply with constant keyword type of data_stream.datatype the value will have to be the same for compatible and deprecation log - elasticsearch.deprecation. The compatible and deprecation logs will differ by elasticsearch.event.category field which will always be DeprecationCategory.COMPATIBLE_API for all compatible logs closes #52369
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Core/Infra/Logging
Log management and logging utilities
Team:Core/Infra
Meta label for core/infra team
v8.0.0-alpha1
when accessing a rest compatible api we often will want to emit a warning that the endpoint is being accessed is only compatible and a user should upgrade to newer version.
This should most likely reuse deprecation logger logic.
relates #51816
The text was updated successfully, but these errors were encountered: