20namespace Azure {
namespace Core {
namespace Http {
24namespace Azure {
namespace Core {
namespace Tracing {
namespace _internal {
64 virtual void AddAttribute(std::string
const& attributeName,
bool value) = 0;
71 virtual void AddAttribute(std::string
const& attributeName, int32_t value) = 0;
78 virtual void AddAttribute(std::string
const& attributeName, int64_t value) = 0;
85 virtual void AddAttribute(std::string
const& attributeName, uint64_t value) = 0;
92 virtual void AddAttribute(std::string
const& attributeName,
double value) = 0;
99 virtual void AddAttribute(std::string
const& attributeName,
const char* value) = 0;
106 virtual void AddAttribute(std::string
const& attributeName, std::string
const& value) = 0;
112 virtual ~AttributeSet() =
default;
117 enum class SpanKind :
int
149 enum class SpanStatus :
int
182 virtual void AddAttributes(AttributeSet
const& attributeToAdd) = 0;
190 virtual void AddAttribute(std::string
const& attributeName, std::string
const& attributeValue)
202 virtual void AddEvent(std::string
const& eventName, AttributeSet
const& eventAttributes) = 0;
211 virtual void AddEvent(std::string
const& eventName) = 0;
217 virtual void AddEvent(std::exception
const& exception) = 0;
225 virtual void SetStatus(SpanStatus
const& status, std::string
const& description) = 0;
235 virtual ~Span() =
default;
242 struct CreateSpanOptions final
248 SpanKind Kind{SpanKind::Internal};
253 std::unique_ptr<AttributeSet> Attributes;
258 std::shared_ptr<Span> ParentSpan;
278 virtual std::shared_ptr<Span> CreateSpan(
279 std::string
const& spanName,
280 CreateSpanOptions
const& options)
const = 0;
282 virtual std::unique_ptr<AttributeSet> CreateAttributeSet()
const = 0;
283 virtual ~Tracer() =
default;
A request message from a client to a server.
Definition http.hpp:182
Manages an optional contained value, i.e. a value that may or may not be present.
Definition nullable.hpp:30
Support for date and time standardized string formats.
Compute the hash value for the input binary data, using SHA256, SHA384 and SHA512.
Definition azure_assert.hpp:57
Manages an optional contained value, i.e. a value that may or may not be present.
Public TracerProvider type used to represent a tracer provider.