Remove unused public API to_span_ptr (#964)

This commit is contained in:
Tom Tan 2021-08-26 21:49:33 -07:00 committed by GitHub
parent d21080708b
commit c7d640936b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -185,13 +185,5 @@ public:
virtual bool IsRecording() const noexcept = 0; 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 } // namespace trace
OPENTELEMETRY_END_NAMESPACE OPENTELEMETRY_END_NAMESPACE