Skip to content

Commit 5812d47

Browse files
andrewlockclaude
andcommitted
Remove redundant conditional using in SpanPointers
The conditional using for System.Buffers is already handled by GlobalUsings.cs which imports the correct namespace (BCL or vendored) based on the TFM. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d3eb33 commit 5812d47

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AWS/Shared/SpanPointers.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
using Datadog.Trace.ClrProfiler.AutoInstrumentation.AWS.DynamoDb;
1414
using Datadog.Trace.Util;
1515

16-
#if NETCOREAPP3_1_OR_GREATER
17-
using System.Buffers;
18-
#else
19-
using Datadog.Trace.VendoredMicrosoftCode.System.Buffers;
20-
#endif
21-
2216
namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AWS.Shared;
2317

2418
/// <summary>

tracer/src/Datadog.Trace/Util/RandomIdGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
using System;
2929
using System.Runtime.CompilerServices;
30+
using System.Runtime.InteropServices;
3031

3132
namespace Datadog.Trace.Util;
3233

0 commit comments

Comments
 (0)