Skip to content

Commit

Permalink
release-1.24: Fix ext_proc tracing sampling (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cainelli authored Dec 19, 2024
1 parent b8f6e44 commit 5013aef
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
context: .
platforms: linux/amd64
push: true
tags: getyourguide/proxy:1.24.2-patch
tags: getyourguide/proxy:1.24.2-patch.${{ github.run_number }}
5 changes: 4 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ http_archive(
sha256 = ENVOY_SHA256,
strip_prefix = ENVOY_REPO + "-" + ENVOY_SHA,
url = "https://github.com/" + ENVOY_ORG + "/" + ENVOY_REPO + "/archive/" + ENVOY_SHA + ".tar.gz",
patches = ["fix-websocket-handshake.patch"],
patches = [
"fix-websocket-handshake.patch",
"fix-extproc-sampling.patch"
],
patch_args = ["-p1"],
)

Expand Down
14 changes: 14 additions & 0 deletions external/fix-extproc-sampling.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/source/extensions/filters/http/ext_proc/ext_proc.cc b/source/extensions/filters/http/ext_proc/ext_proc.cc
index 0d35d05425..d1de199068 100644
--- a/source/extensions/filters/http/ext_proc/ext_proc.cc
+++ b/source/extensions/filters/http/ext_proc/ext_proc.cc
@@ -416,7 +416,8 @@ Filter::StreamOpenState Filter::openStream() {
auto options = Http::AsyncClient::StreamOptions()
.setParentSpan(decoder_callbacks_->activeSpan())
.setParentContext(grpc_context)
- .setBufferBodyForRetry(grpc_service_.has_retry_policy());
+ .setBufferBodyForRetry(grpc_service_.has_retry_policy())
+ .setSampled(absl::nullopt);

ExternalProcessorClient* grpc_client = dynamic_cast<ExternalProcessorClient*>(client_.get());
ExternalProcessorStreamPtr stream_object =

0 comments on commit 5013aef

Please sign in to comment.