Skip to content

Commit

Permalink
tracer workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Jul 30, 2020
1 parent 374d7c4 commit 2873ef0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/include/opentelemetry/trace/tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ namespace trace
* This class provides methods for manipulating the context, creating spans, and controlling spans'
* lifecycles.
*/
class Span;
struct StartSpanOptions;

class Tracer
{
public:
Expand All @@ -30,10 +33,10 @@ class Tracer
*/
virtual Span* StartSpan(nostd::string_view name,
const KeyValueIterable &attributes,
const StartSpanOptions &options = {}) noexcept = 0;
const StartSpanOptions &options) noexcept = 0;

Span* StartSpan(nostd::string_view name,
const StartSpanOptions &options = {}) noexcept
const StartSpanOptions &options) noexcept
{
return this->StartSpan(name, {}, options);
}
Expand Down

0 comments on commit 2873ef0

Please sign in to comment.