|
| void | Succeed () noexcept |
| | Set the span status to success.
|
| |
| template<class T> |
| T | Succeed (T &&result) |
| | Return a result and the span status to success.
|
| |
| void | Fail () noexcept |
| | Set the span status to fail.
|
| |
| void | Fail (const std::string &message) noexcept |
| | Set the span status to fail with a message.
|
| |
| template<class T> |
| void | Raise (const T &error) |
| | Set the span status to fail and raises an exception.
|
| |
| template<class T> |
| T | Return (T code) noexcept |
| | Set the span status based on return code evaluation.
|
| |
| template<class T> |
| T | ReturnBool (T res) noexcept |
| | Set the span status based on boolean interpretation of a result.
|
| |
| void | SetStatusMessage (const std::string &statusMessage) noexcept |
| | Set the status message.
|
| |
|
AttributeMap & | operator() (const std::string &key, const Char *value) |
| | Specialization for Cvb::Char*.
|
| |
|
AttributeMap & | operator() (const std::string &key, void *value) |
| | Specialization for void*.
|
| |
| | operator bool () const noexcept |
| | Operator to evaluate as bool.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const double &value) |
| | Specialization for double.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const float &value) |
| | Specialization for float.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const String &value) |
| | Specialization for Cvb::String.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const bool &value) |
| | Specialization for bool.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const int8_t &value) |
| | Specialization for int8_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const uint8_t &value) |
| | Specialization for uint8_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const int16_t &value) |
| | Specialization for int16_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const uint16_t &value) |
| | Specialization for uint16_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const int32_t &value) |
| | Specialization for int32_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const uint32_t &value) |
| | Specialization for uint32_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const int64_t &value) |
| | Specialization for int64_t.
|
| |
|
template<> |
| AttributeMap & | operator() (const std::string &key, const uint64_t &value) |
| | Specialization for uint64_t.
|
| |
A span object to report traces.
Log objects are created to stream messages. They support all std::ostream compatible types.