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

[HTTP] Log deprecated API usages #199616

Open
jloleysens opened this issue Nov 11, 2024 · 1 comment
Open

[HTTP] Log deprecated API usages #199616

jloleysens opened this issue Nov 11, 2024 · 1 comment
Labels
Feature:http Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v9.0.0

Comments

@jloleysens
Copy link
Contributor

jloleysens commented Nov 11, 2024

Since we now track deprecated Kibana API usage (#196081) we should also create a (debug) log to help track down origins of requests.

We should have Kibana configuration for turning on this logging in a way that does not flood log output with all HTTP req/res traffic and instead only surfaces deprecations - similar to what we do when detecting deprecated ES API requests from Kibana (code).

We should be able to use existing debug logging logic for these new debug logs.

Additionally, API integrations should be able to send a user-provided value that we can surface when this logging is activated to provide the best experience for tracking down origins of deprecated usage.

Part of implementation: we should also surface this in public docs.

Open questions:

  • Do we want to ask users to send a x-opaque-id (similar to ES) to provide the "user input" for the log?
@jloleysens jloleysens added Feature:http Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Nov 11, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:http Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v9.0.0
Projects
None yet
Development

No branches or pull requests

2 participants