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 aacecd5 commit bf134b8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions api/include/opentelemetry/trace/tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ class Tracer
*
* Attributes will be processed in order, previous attributes with the same
* key will be overwritten.
// */
// virtual nostd::unique_ptr<Span> StartSpan(nostd::string_view name,
// const KeyValueIterable &attributes,
// const StartSpanOptions &options = {}) noexcept = 0;
*/
virtual nostd::unique_ptr<trace::Span> StartSpan(nostd::string_view name,
const KeyValueIterable &attributes,
const StartSpanOptions &options = {}) noexcept = 0;

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

// nostd::unique_ptr<Span> StartSpan(nostd::string_view name,
// const StartSpanOptions &options = {}) noexcept
// {
// return this->StartSpan(name, {}, options);
// }
//
// template <class T, nostd::enable_if_t<detail::is_key_value_iterable<T>::value> * = nullptr>
// nostd::unique_ptr<Span> StartSpan(nostd::string_view name,
// const T &attributes,
Expand Down

0 comments on commit bf134b8

Please sign in to comment.