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

[7.16] Surfacing deprecations with rich context from ES warning header (#120044) #120882

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

rudolf
Copy link
Contributor

@rudolf rudolf commented Dec 9, 2021

Backports the following commits to 7.16:

@rudolf rudolf added the backport label Dec 9, 2021
@rudolf rudolf enabled auto-merge (squash) December 9, 2021 10:19
…tic#120044)

* First stab at surfacing deprecations from warning header

* Log deprecations with error level but disable logger context by default

* Don't filter out error logs from ProcRunner

* Another try at not having messages ignored on CI

* Log deprecation logs with warn not info

* Tests

* Let write() do it's writing

* Commit pre-built @kbn/pm package

* Second try to commit pre-built @kbn/pm package

* Enable deprecation logger for jest_integration even though logs aren't interleaved

* Apply suggestions from code review

Co-authored-by: Luke Elmers <[email protected]>

* deprecations logger: warn for kibana and debug for users

* Refactor split query and deprecation logger out of configure_client

* Unit test for tooling_log_text_writer

* Fix TS

* Use event.meta.request.params.headers to include Client constructor headers

* Fix tests

* Ignore deprecation warnings not from Elasticsearch

* Log on info level

* Log in JSON so that entire deprecation message is on one line

* commit built kbn-pm package
@rudolf rudolf force-pushed the backport/7.16/pr-120044 branch from a78d190 to 6512d60 Compare December 9, 2021 10:23
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@rudolf rudolf merged commit d02ab18 into elastic:7.16 Dec 9, 2021
@rudolf rudolf deleted the backport/7.16/pr-120044 branch December 9, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants