CVE-2026-41178: Unconditional Noop Tracerprovider

Unconditionally returning a hardcoded empty struct from `TracerProvider()` can disable auto-instrumentation and create observability blind spots. A provider derived from a span should respect context or auto-instrumentation configurations rather than dropping traces globally.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Goβ
greprules fetch cve-2026-41178-unconditional-noop-tracerprovider --engine opengrep

Description

Unconditionally returning a hardcoded empty struct from `TracerProvider()` can disable auto-instrumentation and create observability blind spots. A provider derived from a span should respect context or auto-instrumentation configurations rather than dropping traces globally.