AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Tracer.h
1
5#pragma once
6
7#include <smithy/tracing/TraceSpan.h>
8#include <smithy/Smithy_EXPORTS.h>
9#include <memory>
10
11namespace smithy {
12 namespace components {
13 namespace tracing {
17 enum class SpanKind {
19 CLIENT,
20 SERVER,
21 };
22
27 class SMITHY_API Tracer {
28 public:
29 virtual ~Tracer() = default;
30
39 virtual std::shared_ptr<TraceSpan> CreateSpan(Aws::String name,
40 const Aws::Map<Aws::String, Aws::String> &attributes,
41 SpanKind spanKind) = 0;
42 };
43 }
44 }
45}
virtual std::shared_ptr< TraceSpan > CreateSpan(Aws::String name, const Aws::Map< Aws::String, Aws::String > &attributes, SpanKind spanKind)=0
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition AWSMap.h:20
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97