Skip to content

Commit

Permalink
Remove unused public API to_span_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Aug 26, 2021
1 parent 61d3c5e commit 16cf06e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions api/include/opentelemetry/trace/span.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,5 @@ class Span
virtual bool IsRecording() const noexcept = 0;
};

template <class SpanType, class TracerType>
nostd::shared_ptr<trace::Span> to_span_ptr(TracerType *objPtr,
nostd::string_view name,
const trace::StartSpanOptions &options)
{
return nostd::shared_ptr<trace::Span>{new (std::nothrow) SpanType{*objPtr, name, options}};
}

} // namespace trace
OPENTELEMETRY_END_NAMESPACE

0 comments on commit 16cf06e

Please sign in to comment.