-
Notifications
You must be signed in to change notification settings - Fork 15
feat(rust): axum weblog #7288
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
Merged
Merged
feat(rust): axum weblog #7288
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
4df74d8
poc axum-weblog (index, healthcheck & make_distant_call)
MilanGarnier 6900093
update mirror images
MilanGarnier 3fbe4aa
use existing middleware for reqwest and axum
MilanGarnier e08425d
fix opentelemetry having simultaneaous different versions. (temporary
MilanGarnier 51dae86
rust manifest edits
MilanGarnier e98854b
make_extract_call matches spec (passing on test extract behavior)
MilanGarnier 5e064a2
Restructure code
MilanGarnier d4a926b
skip some missing endpoints
MilanGarnier c6b1fef
enrich span fix
MilanGarnier cc693f4
implement /status endpoint
MilanGarnier aad1265
/status endpoint
MilanGarnier fbcb8d5
more simple endpoints
MilanGarnier e439cc2
add endpoints and enable telemetry tests
MilanGarnier 84f8454
disable missing tests for current weblog state
MilanGarnier 5a29dea
test: declare Rust Axum weblog metadata
MilanGarnier dc1864a
fix: clarify Rust dependency resolution failures
MilanGarnier fa2382a
address codex review comments
MilanGarnier adf793c
stop faking tracer features in the weblog: client IP & referer hostname
MilanGarnier 69344c6
remove weblog-side query-string obfuscation
MilanGarnier 70caf8e
refactor(axum): add name to attribute in header interceptor
genesor c825c41
remove waf
MilanGarnier 5f02bcd
refactor(axum): intall_ddtrace reorg for readability
MilanGarnier 2b88d06
refactor(axum): readability
MilanGarnier 108dea9
fix(axum): add weblog metadata for axum
MilanGarnier 6fcbde2
Merge branch 'main' into milan.garnier/axum-weblog
MilanGarnier b710b59
nit(axum): some typos
MilanGarnier a7448fe
fix(axum): disable query string obfuscation test for default server
MilanGarnier bf6c402
fix(axum): disable network.client.ip standard tags tests
MilanGarnier 44e37f6
docs(axum): document rust/axum weblog in build.md and healthcheck lib…
MilanGarnier 2b185f0
nit: remove spaces used to align in Cargo.toml
MilanGarnier a073b48
function rename, map or else instead of match ...
MilanGarnier e1b767c
rename to request_downstream
MilanGarnier 8343f9e
refactor: avoid nesting in request_downstream
MilanGarnier ab355bb
fix(rust): remove stale test_protobuf.py manifest entry (test removed…
MilanGarnier c1fc1ff
Merge branch 'main' into milan.garnier/axum-weblog
MilanGarnier d1a5db2
refactor(rust_weblog): split integration.rs in per library modules
MilanGarnier 589c438
doc(rust_weblog): add comment explaining script purpose
MilanGarnier 8790c8c
doc(rust_weblog): clarify opentelemetry-instrumentation-tower git pin
MilanGarnier 9ba9070
fix(rust_weblog): re-pin opentelemetry-instrumentation-tower in align…
MilanGarnier 1f5713f
refactor(rust_weblog): drop opentelemetry-instrumentation-tower git d…
iunanua 4cfba05
Merge branch 'main' into milan.garnier/axum-weblog
MilanGarnier 2d0ae98
Merge branch 'main' into milan.garnier/axum-weblog
MilanGarnier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -54,7 +54,8 @@ | |
| "java", | ||
| "php", | ||
| "python", | ||
| "ruby" | ||
| "ruby", | ||
| "rust" | ||
| ] | ||
| }, | ||
| "process_tags": { | ||
|
|
||
This file contains hidden or 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 hidden or 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,30 @@ | ||
| FROM rust:1.94.1-slim-bookworm AS builder | ||
|
|
||
| RUN apt-get update && apt-get install -y openssh-client git jq && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| WORKDIR /usr/app | ||
| COPY utils/build/docker/rust/axum . | ||
| COPY utils/build/docker/rust/install_ddtrace.sh /binaries/install_ddtrace.sh | ||
|
|
||
| # Copy optional local tracer binary | ||
| COPY binaries/ /binaries/ | ||
|
|
||
| RUN /binaries/install_ddtrace.sh | ||
|
|
||
| RUN --mount=type=cache,target=/usr/app/target/ \ | ||
| --mount=type=cache,target=/usr/local/cargo/registry/ \ | ||
| cargo build --release && cp ./target/release/weblog /usr/app/weblog | ||
|
|
||
| RUN bash system_tests_library_version.sh > /usr/app/SYSTEM_TESTS_LIBRARY_VERSION | ||
|
|
||
| FROM debian:bookworm-slim AS final | ||
|
|
||
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| COPY --from=builder /usr/app/weblog /app/weblog | ||
| COPY --from=builder /usr/app/SYSTEM_TESTS_LIBRARY_VERSION /app/SYSTEM_TESTS_LIBRARY_VERSION | ||
| COPY utils/build/docker/rust/axum/app.sh /app/app.sh | ||
| RUN chmod +x /app/app.sh | ||
|
MilanGarnier marked this conversation as resolved.
|
||
|
|
||
| WORKDIR /app | ||
| CMD ["./app.sh"] | ||
This file contains hidden or 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 @@ | ||
| target |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.