Simplify build:

- remove needless src/modules.c, that generates by nginx build system
- rename the module's source file to src/ngx_otel_module.cpp
This commit is contained in:
Sergey A. Osokin 2023-09-19 20:33:07 -04:00
parent dc52126d09
commit 1222d0617e
3 changed files with 1 additions and 15 deletions

2
config
View file

@ -9,7 +9,7 @@ ngx_module_deps=" \
$ngx_addon_dir/src/trace_service_client.hpp \ $ngx_addon_dir/src/trace_service_client.hpp \
" "
ngx_module_srcs=" \ ngx_module_srcs=" \
$ngx_addon_dir/src/http_module.cpp \ $ngx_addon_dir/src/ngx_otel_module.cpp \
objs/opentelemetry/proto/common/v1/common.pb.cc \ objs/opentelemetry/proto/common/v1/common.pb.cc \
objs/opentelemetry/proto/resource/v1/resource.pb.cc \ objs/opentelemetry/proto/resource/v1/resource.pb.cc \
objs/opentelemetry/proto/trace/v1/trace.pb.cc \ objs/opentelemetry/proto/trace/v1/trace.pb.cc \

View file

@ -1,14 +0,0 @@
#include <ngx_config.h>
#include <ngx_core.h>
extern ngx_module_t gHttpModule;
ngx_module_t* ngx_modules[] = {
&gHttpModule,
NULL
};
char* ngx_module_names[] = {
"ngx_http_otel_module",
NULL
};