Skip to content

Commit 4bba95b

Browse files
Update grpc_connections.h
1 parent 4bcac3b commit 4bba95b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/client/impl/ydb_internal/grpc_connections/grpc_connections.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ class TGRpcConnectionsImpl
181181

182182
TCallMeta meta;
183183
meta.Timeout = requestSettings.ClientTimeout;
184+
185+
if (!requestSettings.TraceParent.empty()) {
186+
meta.Aux.emplace_back({"traceparent", requestSettings.TraceParent});
187+
}
188+
184189
#ifndef YDB_GRPC_UNSECURE_AUTH
185190
meta.CallCredentials = dbState->CallCredentials;
186191
#else
@@ -415,6 +420,11 @@ class TGRpcConnectionsImpl
415420

416421
TCallMeta meta;
417422
meta.Timeout = requestSettings.ClientTimeout;
423+
424+
if (!requestSettings.TraceParent.empty()) {
425+
meta.Aux.emplace_back({"traceparent", requestSettings.TraceParent});
426+
}
427+
418428
#ifndef YDB_GRPC_UNSECURE_AUTH
419429
meta.CallCredentials = dbState->CallCredentials;
420430
#else
@@ -509,6 +519,11 @@ class TGRpcConnectionsImpl
509519
}
510520

511521
TCallMeta meta;
522+
523+
if (!requestSettings.TraceParent.empty()) {
524+
meta.Aux.emplace_back({"traceparent", requestSettings.TraceParent});
525+
}
526+
512527
#ifndef YDB_GRPC_UNSECURE_AUTH
513528
meta.CallCredentials = dbState->CallCredentials;
514529
#else

0 commit comments

Comments
 (0)