You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpserver: allow compiling out features not needed for monitoring api
This patch modifies httpserver-api source code to add pre-processor
conditionals - "#if !defined(MONITORING)" - to disable fragments of
code that are not needed for monitoring api. More specifically it disables
all non-GET routes (with exception of trace API) and YAML file-based configuration.
It also disables SSL. All of which is done to allow creating minimal "read-only" version
of httpserver API intended for monitoring purposes only.
Finally it also explicitly makes only certains symbols (like "main") public
by using compiler directives like "__attribute__((visibility("default")))"
and "#pragma GCC visibility push(default)/#pragma GCC visibility pop". The
latter is used to make portion of common code public so that is available to modules
like trace API. Hiding most symbols in monitoring module also helps
to reduce its size.
Signed-off-by: Waldemar Kozaczuk <[email protected]>
0 commit comments