Skip to content

Commit ec0719a

Browse files
zarinatlupovaroot
authored andcommitted
Update grpc_client_low.h
1 parent 1e60bc2 commit ec0719a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/library/grpc/client/grpc_client_low.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,21 +200,14 @@ struct TCallMeta {
200200
std::shared_ptr<grpc::CallCredentials> CallCredentials;
201201
std::vector<std::pair<std::string, std::string>> Aux;
202202
std::variant<TDuration, TInstant> Timeout; // timeout as duration from now or time point in future
203-
std::string TraceParent; // Поле для трассировки
204203
};
205204

206205
class TGRpcRequestProcessorCommon {
207206
protected:
208207
void ApplyMeta(const TCallMeta& meta) {
209208
for (const auto& rec : meta.Aux) {
210209
Context.AddMetadata(NYdb::TStringType{rec.first}, NYdb::TStringType{rec.second});
211-
}
212-
213-
// Добавление traceparent в заголовки gRPC
214-
if (!meta.TraceParent.empty()) {
215-
Context.AddMetadata("traceparent", NYdb::TStringType{*meta.TraceParent});
216-
}
217-
210+
}
218211
if (meta.CallCredentials) {
219212
Context.set_credentials(meta.CallCredentials);
220213
}

0 commit comments

Comments
 (0)