userver: userver/ugrpc/impl/span.hpp Source File
Loading...
Searching...
No Matches
span.hpp
1#pragma once
2
3#include <grpcpp/support/status.h>
4
5#include <userver/tracing/span.hpp>
6
7USERVER_NAMESPACE_BEGIN
8
9namespace ugrpc::impl {
10
11/// Add required tags to the given span. It is expected that this span is
12/// a call span from either server method or client method invocations.
13/// If status code is not OK, then raise logging level to WARNING
14void UpdateSpanWithStatus(tracing::Span& span, const grpc::Status& status);
15
16} // namespace ugrpc::impl
17
18USERVER_NAMESPACE_END