-
Notifications
You must be signed in to change notification settings - Fork 495
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
feat: sse-timing plugin for tracing events #1361
Open
jizhuozhi
wants to merge
19
commits into
alibaba:main
Choose a base branch
from
jizhuozhi:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
87723be
feat: add sse-timing extension to trace event stream
jizhuozhi 9ff3923
Merge branch 'main' of github.com:alibaba/higress
jizhuozhi fcdaaf7
feat: add sse-timing extension to trace event stream
jizhuozhi e52c91f
feat: add sse-timing extension to trace event stream
jizhuozhi 09b01d8
add gen script to generate new plugin template files
jizhuozhi 2fad9c1
add gen script to generate new plugin template files
jizhuozhi 46b7525
fix ci
jizhuozhi f1b289a
skip not event-stream response
jizhuozhi 160465f
fix ci
jizhuozhi 348469e
delete unused Chinese comments
jizhuozhi 8c71243
update gen.sh
jizhuozhi 68bed03
delete example sse server
jizhuozhi 527970b
Merge branch 'main' into main
jizhuozhi fb36f4e
test: test-suits support custom response assertion
jizhuozhi 48542b7
test: test-suits support custom response assertion
jizhuozhi 3687ff9
test: test-suits support custom response assertion
jizhuozhi d7787cd
test: test-suits support custom response assertion
jizhuozhi 0974f22
test: test-suits support custom response assertion
jizhuozhi 8dc3b4f
Merge branch 'main' into main
jizhuozhi 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
## 介绍 | ||
|
||
此 SDK 用于使用 Rust 语言开发 Higress 的 Wasm 插件。 | ||
|
||
### 创建新插件 | ||
|
||
在当前文件夹下(`plugins/wasm-rust`)执行下面的命令,将`${...}`替换为新插件的内容,其中`--name`为必填项。 | ||
|
||
```shell | ||
sh ./scripts/gen.sh \ | ||
--name ${NAME} \ | ||
--keywords ${KEYWORDS} \ | ||
--description ${DESCRIPTION} \ | ||
``` | ||
|
||
执行完成后将会在`plugins/wasm-rust/extensions/${NAME}`目录下生成以下文件,其中`src/lib.rs`中的内容即为插件需要实现的逻辑 | ||
|
||
```tree | ||
. | ||
├── Cargo.toml | ||
├── Makefile | ||
├── README.md | ||
├── README_EN.md | ||
├── VERSION | ||
└── src | ||
└── lib.rs | ||
``` | ||
|
||
执行`make docker-compose`可以在docker中运行higress实例,并通过`curl localhost:${PORT}`来测试插件是否正常运行 |
27 changes: 0 additions & 27 deletions
27
plugins/wasm-rust/extensions/say-hello/docker-compose.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, it is not possible to control whether the content-length header is set, because when the plugin calls sendHTTPResponse, it will callback to the Envoy logic, which automatically adds this header