chore: refactor release workflow for modular distro and upstream builds

This commit is contained in:
2026-06-09 21:20:20 +03:30
parent f97ac2f7c5
commit 058d835f07
10 changed files with 1423 additions and 200 deletions

View File

@@ -9,7 +9,14 @@
#include <stdint.h>
#define NGX_HTTP_MONITORING_VERSION 1
#define NGX_HTTP_MONITORING_MODULE_VERSION "1.0.0"
#ifndef NGX_HTTP_MONITORING_MODULE_VERSION
#define NGX_HTTP_MONITORING_MODULE_VERSION "0.0.0-dev"
#endif
#ifndef NGX_HTTP_MONITORING_BUILD_METADATA
#define NGX_HTTP_MONITORING_BUILD_METADATA "source"
#endif
#define NGX_HTTP_MONITORING_DEFAULT_SHM_SIZE (8 * 1024 * 1024)
#define NGX_HTTP_MONITORING_MIN_INTERVAL 100

View File

@@ -411,10 +411,11 @@ ngx_http_monitoring_json_header(ngx_http_monitoring_json_writer_t *jw,
tp = ngx_timeofday();
ngx_http_monitoring_json_printf(jw,
"{\"version\":%d,\"module\":\"%s\",\"timestamp\":%T,"
"\"msec\":%M,\"scope\":\"%s\",\"pid\":%P",
"{\"version\":%d,\"module\":\"%s\",\"build\":\"%s\","
"\"timestamp\":%T,\"msec\":%M,\"scope\":\"%s\",\"pid\":%P",
NGX_HTTP_MONITORING_VERSION,
NGX_HTTP_MONITORING_MODULE_VERSION,
NGX_HTTP_MONITORING_BUILD_METADATA,
tp->sec, tp->msec, scope, ngx_pid);
(void) r;