forked from istio/proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release-1.24: Fix ext_proc tracing sampling (#6)
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
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
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 = |