Skip to content

Commit 7e3746e

Browse files
committed
Remove tcp_tracer
1 parent e50aa37 commit 7e3746e

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

src/core/ext/transport/chttp2/transport/chttp2_transport.cc

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
#include "src/core/telemetry/call_tracer.h"
105105
#include "src/core/telemetry/stats.h"
106106
#include "src/core/telemetry/stats_data.h"
107-
#include "src/core/telemetry/tcp_tracer.h"
108107
#include "src/core/util/bitset.h"
109108
#include "src/core/util/crash.h"
110109
#include "src/core/util/debug_location.h"
@@ -237,16 +236,6 @@ grpc_core::CallTracerAnnotationInterface* ParentCallTracerIfSampled(
237236
return parent_call_tracer;
238237
}
239238

240-
std::shared_ptr<grpc_core::TcpTracerInterface> TcpTracerIfSampled(
241-
grpc_chttp2_stream* s) {
242-
auto* call_attempt_tracer =
243-
s->arena->GetContext<grpc_core::CallTracerInterface>();
244-
if (call_attempt_tracer == nullptr || !call_attempt_tracer->IsSampled()) {
245-
return nullptr;
246-
}
247-
return call_attempt_tracer->StartNewTcpTrace();
248-
}
249-
250239
grpc_core::WriteTimestampsCallback g_write_timestamps_callback = nullptr;
251240
grpc_core::CopyContextFn g_get_copied_context_fn = nullptr;
252241
} // namespace
@@ -856,8 +845,7 @@ grpc_chttp2_stream::grpc_chttp2_stream(grpc_chttp2_transport* t,
856845
}()),
857846
arena(arena),
858847
flow_control(&t->flow_control),
859-
call_tracer_wrapper(this),
860-
tcp_tracer(TcpTracerIfSampled(this)) {
848+
call_tracer_wrapper(this) {
861849
t->streams_allocated.fetch_add(1, std::memory_order_relaxed);
862850
if (server_data) {
863851
id = static_cast<uint32_t>(reinterpret_cast<uintptr_t>(server_data));

src/core/ext/transport/chttp2/transport/internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#include "src/core/lib/transport/transport.h"
7474
#include "src/core/lib/transport/transport_framing_endpoint_extension.h"
7575
#include "src/core/telemetry/call_tracer.h"
76-
#include "src/core/telemetry/tcp_tracer.h"
7776
#include "src/core/util/bitset.h"
7877
#include "src/core/util/debug_location.h"
7978
#include "src/core/util/ref_counted.h"
@@ -677,9 +676,6 @@ struct grpc_chttp2_stream {
677676
// TODO(yashykt): Remove this once call_tracer_transport_fix is rolled out
678677
grpc_core::CallTracerAnnotationInterface* parent_call_tracer = nullptr;
679678

680-
/// Only set when enabled.
681-
std::shared_ptr<grpc_core::TcpTracerInterface> tcp_tracer;
682-
683679
// time this stream was created
684680
gpr_timespec creation_time = gpr_now(GPR_CLOCK_MONOTONIC);
685681

src/core/ext/transport/chttp2/transport/writing.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,9 @@ grpc_chttp2_begin_write_result grpc_chttp2_begin_write(
699699
grpc_core::GrpcHttp2GetCopyContextFn();
700700
if (copy_context_fn != nullptr &&
701701
grpc_core::GrpcHttp2GetWriteTimestampsCallback() != nullptr) {
702-
t->context_list->emplace_back(copy_context_fn(s->arena),
703-
outbuf_relative_start_pos,
704-
num_stream_bytes, s->byte_counter,
705-
s->write_counter - 1, s->tcp_tracer);
702+
t->context_list->emplace_back(
703+
copy_context_fn(s->arena), outbuf_relative_start_pos,
704+
num_stream_bytes, s->byte_counter, s->write_counter - 1, nullptr);
706705
}
707706
}
708707
outbuf_relative_start_pos += num_stream_bytes;

0 commit comments

Comments
 (0)