-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add directive for propagation. * Add code to discover span context keys. * Store propagation keys in config. * Set headers to correspond to the discovered keys. * Add a prefix variable for span context expansion. * Remove singleton. * Move context code to handler. * Remove unused files. * Added SpanContextQuerier. * Add span context expansion. * Add error handling for variable. * Handle directive exceptions. * Add more error handling to querier. * Add additional error handling. * Add missing exception specifications. * Remove unused file. * Run clang-format. * Replace casting with utility function. * Document propagation code. * Document opentracing_propagate_context directive. * Change wording. * Start converting trivial example. * Fix propagation in trivial example. * Convert zoo example. * Update README. * Correct README. * Correct README. * Remove vendor-specific modules. * Update opentracing version. * Fix CI test. * Disable leak sanitizer. * Fix tracing for internal redirects. * Set up system.testing. * Fix permissions. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Fix CI commands. * Make test more verbose. * Add more logging to test. * Log docker-compose up commands. * Rearrange sleep * Store artifacts from testing. * Fix artifacts. * Fix artifacts. * Fix artifacts. * Fix artifacts. * Fix tearDown. * Fix permissions. * Remove old testing code. * Replace print statements in tests with verbosity. * Add test for tracing locations. * Add test for internal redirects. * Add test for custom tags. * Refactor to use opentracing_context_ variable. * Refactor CI config. * Add docker build to CI. * Document opentracing_context_ variable. * Convert examples to use prebuilt docker image. * Break out the trivial example into separate examples for zipkin and jaeger. * Update tutorial. * Remove hotrod and browser examples.
- Loading branch information
Showing
140 changed files
with
1,937 additions
and
5,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
system_testing: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: | ||
name: Build nginx-opentracing-ci Docker image | ||
command: docker build -t nginx-opentracing-ci ci | ||
name: system.testing | ||
command: | | ||
pyenv global 3.5.2 | ||
python3 --version | ||
pip3.5 --version | ||
pip3.5 install setuptools | ||
pip3.5 install docker | ||
pip3.5 install docker-compose | ||
sudo mkdir /test-log | ||
sudo chmod a+rwx /test-log | ||
export LOG_DIR=/test-log | ||
./ci/do_ci.sh system.testing | ||
- store_artifacts: | ||
path: /test-log | ||
docker_image: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: | ||
name: Build and Test | ||
command: ./ci/run_ci_docker.sh './ci/do_ci.sh' | ||
command: docker build -t opentracing/nginx-opentracing . | ||
|
||
workflows: | ||
version: 2 | ||
build_test_and_deploy: | ||
jobs: | ||
- system_testing | ||
- docker_image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ARG OPENTRACING_CPP_VERSION=v1.4.0 | ||
ARG NGINX_VERSION=1.13.12 | ||
|
||
COPY . /src | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
build-essential \ | ||
gettext \ | ||
cmake \ | ||
git \ | ||
gnupg2 \ | ||
software-properties-common \ | ||
curl \ | ||
python3 \ | ||
jq \ | ||
ca-certificates \ | ||
wget \ | ||
libpcre3 libpcre3-dev \ | ||
zlib1g-dev \ | ||
gcc-8 \ | ||
g++-8 \ | ||
### Use gcc-8 (the default gcc has this problem when using with address sanitizer: | ||
### https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84428) | ||
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 \ | ||
### Build opentracing-cpp | ||
&& cd / \ | ||
&& git clone -b $OPENTRACING_CPP_VERSION https://github.com/opentracing/opentracing-cpp.git \ | ||
&& cd opentracing-cpp \ | ||
&& mkdir .build && cd .build \ | ||
&& cmake -DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer -fsanitize=address" \ | ||
-DCMAKE_SHARED_LINKER_FLAGS="-fno-omit-frame-pointer -fsanitize=address" \ | ||
-DCMAKE_EXE_LINKER_FLAGS="-fno-omit-frame-pointer -fsanitize=address" \ | ||
-DBUILD_TESTING=OFF .. \ | ||
&& make && make install \ | ||
### Build nginx | ||
&& cd /src \ | ||
&& wget -O nginx-release-${NGINX_VERSION}.tar.gz https://github.com/nginx/nginx/archive/release-${NGINX_VERSION}.tar.gz \ | ||
&& tar zxf nginx-release-${NGINX_VERSION}.tar.gz \ | ||
&& cd /src/nginx-release-${NGINX_VERSION} \ | ||
# Temporarily disable leak sanitizer to get around false positives in build | ||
&& export ASAN_OPTIONS=detect_leaks=0 \ | ||
&& export CFLAGS="-Wno-error" \ | ||
&& auto/configure \ | ||
--with-compat \ | ||
--with-debug \ | ||
--with-cc-opt="-O1 -g -fno-omit-frame-pointer -fsanitize=address" \ | ||
--with-ld-opt="-g -fno-omit-frame-pointer -fsanitize=address" \ | ||
--add-dynamic-module=/src/opentracing \ | ||
&& make && make install | ||
CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.