Skip to content
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

Circuit breaking the specific requests #436

Open
tahir-ali-uipath opened this issue Apr 13, 2024 · 0 comments
Open

Circuit breaking the specific requests #436

tahir-ali-uipath opened this issue Apr 13, 2024 · 0 comments

Comments

@tahir-ali-uipath
Copy link

I am trying to add circuit breaking to specific request. I looked into this example
https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/postpone_requests/main.go but not clear how to add postpone for specific request

func (ctx *httpContext) OnHttpRequestHeaders(numHeaders int, endOfStream bool) types.Action {
	proxywasm.LogInfof("postpone request with contextID=%d", ctx.contextID)
	ctx.pluginCtx.postponed = append(ctx.pluginCtx.postponed, ctx.contextID)
	return types.ActionPause
}

Describe the bug / error

None

What is your Envoy/Istio version?

client version: 1.18.0
control plane version: 1.18.0
data plane version: 1.18.0 (2 proxies)

What is the SDK version?

github.com/tetratelabs/proxy-wasm-go-sdk v0.21.0

What is your TinyGo version?

tinygo version 0.28.1 darwin/amd64 (using go version go1.20.14 and LLVM version 15.0.0)

URL or snippet of your code including Envoy configuration

Additional context (Optional)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant