Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor exporter - step 4 #1085

Merged
merged 5 commits into from
Aug 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clean up
reyang committed Aug 16, 2020
commit 590cf40655e13e74a54b751aea8c3abe45e00750
14 changes: 10 additions & 4 deletions src/OpenTelemetry/Internal/CircularBuffer.cs
Original file line number Diff line number Diff line change
@@ -44,6 +44,14 @@ public CircularBuffer(int capacity)
this.trait = new T[capacity];
}

public int Capacity
{
get
{
return this.capacity;
}
}

/// <summary>
/// Gets the number of items contained in the <see cref="CircularBuffer{T}"/>.
/// </summary>
@@ -86,10 +94,8 @@ public bool TryAdd(T value)
{
return true;
}
else
{
this.trait[index] = null;
}

this.trait[index] = null;
}
}
}