Skip to content

Commit 956f2c9

Browse files
dougqhclaude
andcommitted
Deprecate + @VisibleForTesting all three test-only DDSpanContext shims
The three delegating overloads exist only to spare tests the param churn from signature changes; none has a production caller. Mark them all @deprecated (steer new code to the full ctor) and @VisibleForTesting (signal intent). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3273f9e commit 956f2c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dd-trace-core/src/main/java/datadog/trace/core/DDSpanContext.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ public class DDSpanContext
206206
*/
207207
private volatile Map<String, Object> metaStruct = EMPTY_META_STRUCT;
208208

209+
@Deprecated
210+
@VisibleForTesting
209211
public DDSpanContext(
210212
final DDTraceId traceId,
211213
final long spanId,
@@ -256,6 +258,8 @@ public DDSpanContext(
256258
null);
257259
}
258260

261+
@Deprecated
262+
@VisibleForTesting
259263
public DDSpanContext(
260264
final DDTraceId traceId,
261265
final long spanId,
@@ -309,6 +313,7 @@ public DDSpanContext(
309313
}
310314

311315
/** Back-compat ctor (no read-through parent); delegates with a null parent. */
316+
@Deprecated
312317
@VisibleForTesting
313318
public DDSpanContext(
314319
final DDTraceId traceId,

0 commit comments

Comments
 (0)