-
Notifications
You must be signed in to change notification settings - Fork 335
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
add libotel for tests #1521
base: master
Are you sure you want to change the base?
add libotel for tests #1521
Conversation
Notice: this is related to RPM build where |
Do you count as issue
;) |
It is certainly less than ideal. Unfortunately there is no C API for OTEL, there is a C++ API, but that is supposedly horrendous... In my mind, it would have been possible to create a thin C wrapper (exposing just the bits we need) around the C++ API... |
And for C++ libraries, it's also less than ideal due to the amount of dependencies they have. It's at least:
It's not that different size-wise in a resulting binary from the Rust version, and build times are even worse. We have the exact same problem in NGINX otel implementation. |
But at least there are distro packages for those things already so no need to build any of that, it would just be building the C wrapper... |
It really, really depends on a distro and its version. It's going to get better though, that's for sure. |
I think this patch is good on it's own, although I'd move $(NXT_OTEL_LIB_LOC) to the position right after $NXT_BUILD_DIR/lib/$NXT_LIB_STATIC (probably next line), since it's out responsibility to provide proper dependency resolution order here. |
Actually this should probably be combined with thresheek@18381b1 |
When otel support is enable, libnxt.a needs libotel.a
Without this patch, when building tests