File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -534,8 +534,7 @@ class TRefreshTokenImpl
534534 }
535535
536536 const TMaybe<TString> GetPeerMetaValues (const TString&) const override {
537- Y_ABORT (" Unimplemented" );
538- return TMaybe<TString>{};
537+ return {};
539538 }
540539
541540 TVector<TStringBuf> FindClientCert () const override {
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class TGRpcRequestProxyImpl
151151 }
152152
153153
154- // StartTracing(*requestBaseCtx);
154+ StartTracing (*requestBaseCtx);
155155
156156 if (IsAuthStateOK (*requestBaseCtx)) {
157157 Handle (event, ctx);
@@ -410,9 +410,12 @@ bool TGRpcRequestProxyImpl::IsAuthStateOK(const IRequestProxyCtx& ctx) {
410410}
411411
412412void TGRpcRequestProxyImpl::StartTracing (IRequestProxyCtx& ctx) {
413- auto traceId = NWilson::TTraceId::NewTraceId (15 , Max<ui32>());
414- NWilson::TSpan grpcRequestProxySpan (TWilsonGrpc::RequestProxy, std::move (traceId), " GrpcRequestProxy" );
415- ctx.StartTracing (std::move (grpcRequestProxySpan));
413+ if (const auto otelHeader = ctx.GetPeerMetaValues (NYdb::OTEL_TRACE_HEADER)) {
414+ if (auto traceId = NWilson::TTraceId::FromTraceparentHeader (otelHeader.GetRef ())) {
415+ NWilson::TSpan grpcRequestProxySpan (TWilsonGrpc::RequestProxy, std::move (traceId), " GrpcRequestProxy" );
416+ ctx.StartTracing (std::move (grpcRequestProxySpan));
417+ }
418+ }
416419}
417420
418421void TGRpcRequestProxyImpl::HandleSchemeBoard (TSchemeBoardEvents::TEvNotifyUpdate::TPtr& ev, const TActorContext& ctx) {
You can’t perform that action at this time.
0 commit comments