Skip to content

Remove the RedisObfuscationUtil.Obfuscate() method as it's never used#8202

Merged
andrewlock merged 1 commit intomasterfrom
andrew/remove-dead-obfuscation-code
Feb 16, 2026
Merged

Remove the RedisObfuscationUtil.Obfuscate() method as it's never used#8202
andrewlock merged 1 commit intomasterfrom
andrew/remove-dead-obfuscation-code

Conversation

@andrewlock
Copy link
Member

Summary of changes

Remove dead code from the trace processor paths obfuscation

Reason for change

The code is never called, and it confused me thoroughly, embarrassing me in front of @pierotibou. NEVER AGAIN.

This was originally part of the client-side-stats implementation, but was never enabled (and couldn't be), and in fact shouldn't be, because the agent applies obfuscation anyway.

Implementation details

Start deleting things and stop when I run out.

Test coverage

Deleted some tests, this is just removal so meh

@andrewlock andrewlock requested a review from a team as a code owner February 13, 2026 17:24
@andrewlock andrewlock added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:cleanup Minor code clean up labels Feb 13, 2026
Copy link
Member

@lucaspimentel lucaspimentel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥

_normalizerTraceProcessor = new NormalizerTraceProcessor();
_trucantorTraceProcessor = new TruncatorTraceProcessor();
_obfuscatorTraceProcessor = new ObfuscatorTraceProcessor(true);
_obfuscatorTraceProcessor = new ObfuscatorTraceProcessor();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever way of improving our benchmarks ;)

@andrewlock andrewlock force-pushed the andrew/remove-dead-obfuscation-code branch from f90b47c to a2a3931 Compare February 13, 2026 17:33
@andrewlock andrewlock requested a review from a team as a code owner February 13, 2026 17:33
@andrewlock andrewlock enabled auto-merge (squash) February 13, 2026 17:33
@pr-commenter
Copy link

pr-commenter bot commented Feb 13, 2026

Benchmarks

Benchmark execution time: 2026-02-13 18:15:50

Comparing candidate commit a2a3931 in PR branch andrew/remove-dead-obfuscation-code with baseline commit 34cec39 in branch master.

Found 6 performance improvements and 7 performance regressions! Performance is the same for 170 metrics, 9 unstable metrics.

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+22.557ms; +22.828ms] or [+22.109%; +22.375%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟩 execution_time [-17.402ms; -13.175ms] or [-8.103%; -6.135%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-26.638ms; -22.376ms] or [-12.111%; -10.173%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+20.807ms; +21.556ms] or [+11.524%; +11.939%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟥 execution_time [+97.604ms; +99.078ms] or [+101.955%; +103.494%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+22.579ms; +27.075ms] or [+12.794%; +15.341%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟥 execution_time [+97.159µs; +102.081µs] or [+5.116%; +5.375%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+12.125ms; +12.908ms] or [+6.082%; +6.475%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • 🟩 throughput [+12748.576op/s; +14315.299op/s] or [+5.293%; +5.943%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • 🟩 execution_time [-8.342µs; -3.444µs] or [-15.932%; -6.576%]
  • 🟩 throughput [+1457.079op/s; +2994.408op/s] or [+7.523%; +15.461%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+24.247ms; +26.381ms] or [+13.751%; +14.962%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟩 throughput [+61020394.099op/s; +62243342.881op/s] or [+44.451%; +45.342%]

@andrewlock andrewlock merged commit 05bb018 into master Feb 16, 2026
141 of 142 checks passed
@andrewlock andrewlock deleted the andrew/remove-dead-obfuscation-code branch February 16, 2026 09:47
@github-actions github-actions bot added this to the vNext-v3 milestone Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:cleanup Minor code clean up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants