Skip to content

Commit

Permalink
tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Jul 30, 2020
1 parent 77ca5ca commit 3f0173c
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion api/include/opentelemetry/trace/default_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,36 @@

#define pass
OPENTELEMETRY_BEGIN_NAMESPACE
class DefaultTracer;
namespace trace {
class DefaultTracer: public Tracer {
public:
~DefaultTracer() = default;

/**
* Starts a span.
*
* Optionally sets attributes at Span creation from the given key/value pairs.
*
* Attributes will be processed in order, previous attributes with the same
* key will be overwritten.
*/
nostd::unique_ptr<Span> StartSpan(nostd::string_view name,
const KeyValueIterable &attributes,
const StartSpanOptions &options = {}) noexcept
{
return DefaultSpan::GetInvalid();
}

void ForceFlushWithMicroseconds(uint64_t timeout) noexcept
{
pass;
}

void CloseWithMicroseconds(uint64_t timeout) noexcept
{
pass;
}
};
class DefaultSpan: public Span {
public:
// Returns an invalid span.
Expand Down

0 comments on commit 3f0173c

Please sign in to comment.