Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
yxue committed Jul 15, 2022
1 parent 0789222 commit b598738
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ const size_t MAX_BUFFER_SIZE = 100;
class InMemorySpanData final : public exporter::memory::InMemoryData<sdk::trace::SpanData>
{
public:
/**
* @param buffer_size a required value that sets the size of the CircularBuffer
*/
explicit InMemorySpanData(size_t buffer_size)
: exporter::memory::InMemoryData<sdk::trace::SpanData>(buffer_size)
{}

std::vector<std::unique_ptr<sdk::trace::SpanData>> GetSpans() noexcept { return Get(); }
};

/**
* A in memory exporter that switches a flag once a valid recordable was received
* and keeps track of all received spans in memory.
Expand Down

0 comments on commit b598738

Please sign in to comment.