Skip to content

tracing: envoy.reloadable_features.update_grpc_response_error_tag deprecation#23098

Merged
adisuissa merged 2 commits intoenvoyproxy:mainfrom
bryanwux:deprecation
Sep 19, 2022
Merged

tracing: envoy.reloadable_features.update_grpc_response_error_tag deprecation#23098
adisuissa merged 2 commits intoenvoyproxy:mainfrom
bryanwux:deprecation

Conversation

@bryanwux
Copy link
Copy Markdown
Contributor

#20090 introduced a runtime guarded feature. It has been 6 months since the new code has been exercised by default, so it's time to remove the old code path.

Signed-off-by: Jiayu Wu jiayu1.wu@intel.com

Commit Message:
Additional Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Jiayu Wu <jiayu1.wu@intel.com>
Signed-off-by: Jiayu Wu <jiayu1.wu@intel.com>
@htuch
Copy link
Copy Markdown
Member

htuch commented Sep 14, 2022

/assign-from @envoyproxy/first-pass-reviewers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/first-pass-reviewers assignee is @tonya11en

🐱

Caused by: a #23098 (comment) was created by @htuch.

see: more, trace.

Comment thread test/common/tracing/BUILD
envoy_package()

envoy_cc_test(
name = "http_tracer_impl_legacy_test",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between http_tracer_impl_test and http_tracer_impl_legacy_test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runtime feature is enabled in http_tracer_impl_test while is not enabled in http_tracer_impl_legacy_test. Since runtime guard is now removed, I think we should also remove the legacy test.

// Set error tag when Grpc status code represents an upstream error. See
// https://github.com/envoyproxy/envoy/issues/18877.
absl::optional<Grpc::Status::GrpcStatus> grpc_status_code = Grpc::Common::getGrpcStatus(headers);
if (Runtime::runtimeFeatureEnabled("envoy.reloadable_features.update_grpc_response_error_tag")) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old logic is that

if feature
  if
else

Now we have enabled the feature, still need the else on the top level?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need else any more, because the feature is always enabled.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. The logic in else is actually the old code path which we don't need anymore.

Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for cleaning this!

@adisuissa adisuissa merged commit 456abe2 into envoyproxy:main Sep 19, 2022
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

Successfully merging this pull request may close these issues.

6 participants