Skip to content

Commit

Permalink
feat: add sse-timing extension to trace event stream
Browse files Browse the repository at this point in the history
  • Loading branch information
jizhuozhi committed Oct 23, 2024
1 parent 4de163e commit 7c0339b
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 24 deletions.
81 changes: 60 additions & 21 deletions plugins/wasm-rust/extensions/sse-timing/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/wasm-rust/extensions/sse-timing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ BUILD_OPTS="--release"

.DEFAULT:
build:
cargo build --target wasm32-wasi \${BUILD_OPTS}
cargo build --target wasm32-wasi ${BUILD_OPTS}
find target -name "*.wasm" -d 3 -exec cp "{}" plugin.wasm \;

clean:
Expand Down
3 changes: 1 addition & 2 deletions plugins/wasm-rust/extensions/sse-timing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
use higress_wasm_rust::event_stream::EventStream;
use higress_wasm_rust::log::Log;
use higress_wasm_rust::rule_matcher;
use higress_wasm_rust::rule_matcher::{on_configure, RuleMatcher, SharedRuleMatcher};
use higress_wasm_rust::rule_matcher::{on_configure, SharedRuleMatcher};
use proxy_wasm::traits::{Context, HttpContext, RootContext};
use proxy_wasm::types::{ContextType, DataAction, HeaderAction, LogLevel};
use serde::Deserialize;
use std::cell::RefCell;
use std::ops::DerefMut;
use std::rc::Rc;
use std::str::from_utf8;
Expand Down

0 comments on commit 7c0339b

Please sign in to comment.