mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* add jaeger support, link hot container & req span * adds jaeger support now with FN_JAEGER_URL, there's a simple tutorial in the operating/metrics.md file now and it's pretty easy to get up and running. * links a hot request span to a hot container span. when we change this to sample at a lower ratio we'll need to finagle the hot container span to always sample or something, otherwise we'll hide that info. at least, since we're sampling at 100% for now if this is flipped on, can see freeze/unfreeze etc. if they hit. this is useful for debugging. note that zipkin's exporter does not follow the link at all, hence jaeger... and they're backed by the Cloud Empire now (CNCF) so we'll probably use it anyway. * vendor: add thrift for jaeger
31 lines
1000 B
Bash
Executable File
31 lines
1000 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Wraps autotools.sh, but each binary crashes if it exhibits undefined behavior.
|
|
# Set the undefined behavior flags. This crashes on all undefined behavior except for
|
|
# undefined casting, aka "vptr".
|
|
# TODO: fix undefined vptr behavior and turn this option back on.
|
|
|
|
export CFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined -O0 -ggdb3 -fno-omit-frame-pointer"
|
|
export CXXFLAGS="${CFLAGS}"
|
|
export LDFLAGS="-lubsan"
|
|
export UBSAN_OPTIONS=print_stacktrace=1
|
|
|
|
#
|
|
# work around https://svn.boost.org/trac10/ticket/11632 if present
|
|
#
|
|
|
|
sed -i 's/, stream_t(rdbuf()) /, stream_t(pbase_type::member.get())/g' /usr/include/boost/format/alt_sstream.hpp
|
|
|
|
# llvm-symbolizer must be on PATH to get a stack trace on error
|
|
|
|
CLANG_PATH="$(mktemp -d)"
|
|
trap "rm -rf ${CLANG_PATH}" EXIT
|
|
ln -s "$(whereis llvm-symbolizer-4.0 | rev | cut -d ' ' -f 1 | rev)" \
|
|
"${CLANG_PATH}/llvm-symbolizer"
|
|
export PATH="${CLANG_PATH}:${PATH}"
|
|
llvm-symbolizer -version
|
|
|
|
build/docker/scripts/autotools.sh $*
|