-
Notifications
You must be signed in to change notification settings - Fork 363
add libotel for tests #1521
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 |
|
Closing this PR as the patch in question is now in #1527. Thanks Remi! |
When otel support is enable, libnxt.a needs libotel.a
Without this patch, when building tests