forked from nginx/unit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phase 1 OpenTelemetry Proof of Concept
* configure feature for OpenTelemetry support * feature gated request fields for traceparent and tracestate headers * feature gated triggers to OpenTelemetry state machine * feature gated logic to intialize OpenTelemetry state structure * temporary call to initialize OpenTelemetry tracer * temporary logging callback * OpenTelemetry state machine to manage calls into rust crate * incoming header/field parsing for traceparent and tracestate * Rust crate holding all the tracer logic. Co-authored-by: Gabor Javorszky <g.javorszky@f5.com> Signed-off-by: Ava Hahn <a.hahn@f5.com>
- Loading branch information
Showing
16 changed files
with
1,769 additions
and
1 deletion.
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
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,32 @@ | ||
|
||
# Copyright (C) NGINX, Inc. | ||
|
||
|
||
nxt_found=no | ||
NXT_HAVE_OTEL=NO | ||
|
||
# Temporary build step. | ||
# later we will refactor the otel rust crate into | ||
# its own (open source) module | ||
|
||
cd src/otel | ||
cargo build | ||
cd ../../ | ||
|
||
|
||
nxt_feature="otel" | ||
nxt_feature_name=NXT_HAVE_OTEL | ||
nxt_feature_run=no | ||
nxt_feature_libs="" | ||
nxt_feature_test="int main(void){return 0;}" | ||
|
||
. auto/feature | ||
|
||
if [ $nxt_found = no ]; then | ||
$echo | ||
$echo $0: error: no OpenTelemetry library found. | ||
$echo | ||
exit 1; | ||
fi | ||
|
||
NXT_LIB_AUX_LIBS="$NXT_LIB_AUX_LIBS -lssl -lcrypto src/otel/target/debug/libotel.a" |
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
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
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
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
Oops, something went wrong.