Skip to content

Commit 3179a17

Browse files
committed
Make methods private
1 parent bf1d86f commit 3179a17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tracer/src/Datadog.Trace/Agent/StatsAggregator.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public void AddRange(in SpanCollection spans)
166166
}
167167

168168
[MethodImpl(MethodImplOptions.AggressiveInlining)]
169-
internal SpanCollection NormalizeTrace(in SpanCollection trace)
169+
private SpanCollection NormalizeTrace(in SpanCollection trace)
170170
{
171171
try
172172
{
@@ -180,7 +180,7 @@ internal SpanCollection NormalizeTrace(in SpanCollection trace)
180180
}
181181

182182
[MethodImpl(MethodImplOptions.AggressiveInlining)]
183-
internal bool ShouldFilterTrace(in SpanCollection trace)
183+
private bool ShouldFilterTrace(in SpanCollection trace)
184184
{
185185
var filter = Volatile.Read(ref _traceFilter);
186186
if (filter is null)
@@ -204,7 +204,7 @@ internal bool ShouldFilterTrace(in SpanCollection trace)
204204
}
205205

206206
[MethodImpl(MethodImplOptions.AggressiveInlining)]
207-
internal bool ShouldKeepTrace(in SpanCollection trace)
207+
private bool ShouldKeepTrace(in SpanCollection trace)
208208
{
209209
// For OTLP, align with the OpenTelemetry SDK behavior to export a trace based
210210
// solely on its sampling decision.
@@ -225,7 +225,7 @@ internal bool ShouldKeepTrace(in SpanCollection trace)
225225
}
226226

227227
[MethodImpl(MethodImplOptions.AggressiveInlining)]
228-
internal SpanCollection ObfuscateTrace(in SpanCollection trace)
228+
private SpanCollection ObfuscateTrace(in SpanCollection trace)
229229
{
230230
// Only obfuscate resources when the tracer has negotiated obfuscation responsibility.
231231
// The tracer currently only supports obfuscation version 1 (SQL, Cassandra, Redis).
@@ -247,7 +247,7 @@ internal SpanCollection ObfuscateTrace(in SpanCollection trace)
247247
public StatsAggregationKey BuildKey(Span span, out List<byte[]> utf8PeerTags)
248248
=> BuildKey(span, Volatile.Read(ref _peerTagKeys), out utf8PeerTags);
249249

250-
internal StatsAggregationKey BuildKey(Span span, List<string> peerTagKeys, out List<byte[]> utf8PeerTags)
250+
private StatsAggregationKey BuildKey(Span span, List<string> peerTagKeys, out List<byte[]> utf8PeerTags)
251251
{
252252
var rawHttpStatusCode = span.GetTag(Tags.HttpStatusCode);
253253

0 commit comments

Comments
 (0)