Skip to content

Fix: test_install_shim_affects_existing_tracers assumes wrong default tracer type#5047

Open
sakshar2303 wants to merge 1 commit intoopen-telemetry:mainfrom
sakshar2303:main
Open

Fix: test_install_shim_affects_existing_tracers assumes wrong default tracer type#5047
sakshar2303 wants to merge 1 commit intoopen-telemetry:mainfrom
sakshar2303:main

Conversation

@sakshar2303
Copy link
Copy Markdown

The test was incorrectly assuming that Tracer() creates a NoopTracer,
but OpenCensus 0.11.1 creates a ContextTracer by default.

Updated the test to:

  1. Remove dependency on OpenCensus's internal defaults
  2. Verify the actual behavior that matters: the shim patches existing tracers
  3. Assert ShimTracer wraps a NoopTracer (via wrapt.ObjectProxy)

All tests pass.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Apr 6, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: sakshar2303 / name: Sakshar Dhawan (3a8b78e)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant