Skip to content

SNOW-2912540: decouple LocalTestOOBTelemetryService from connector.telemetry_oob - #4309

Draft
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-inline-pandas-staging-helpersfrom
SNOW-2912540-decouple-oob-telemetry
Draft

SNOW-2912540: decouple LocalTestOOBTelemetryService from connector.telemetry_oob#4309
sfc-gh-fpawlowski wants to merge 1 commit into
SNOW-2912540-inline-pandas-staging-helpersfrom
SNOW-2912540-decouple-oob-telemetry

Conversation

@sfc-gh-fpawlowski

@sfc-gh-fpawlowski sfc-gh-fpawlowski commented Aug 6, 2026

Copy link
Copy Markdown

The UD's telemetry_oob.TelemetryService is a no-op stub (BD#45) that is missing batch_size, which LocalTestOOBTelemetryService.add() uses — causing an AttributeError at runtime.

Makes LocalTestOOBTelemetryService fully standalone by:

  • Removing from snowflake.connector.telemetry_oob import TelemetryService and the inheritance
  • Adding its own double-checked-lock singleton (get_instance())
  • Initialising self.queue, self.batch_size, and self._enabled directly in __init__
  • Adding close() (delegates to flush(), called by atexit)
  • Fixing the pre-existing self._enable typo (should have been _enabled)

SecretDetector (also from the connector) is still present — it exists in the UD and is not being decoupled here.


Stack (via Graphite)

🤖 Generated with Claude Code

…lemetry_oob

The UD's telemetry_oob.TelemetryService is a no-op stub (BD#45) that lacks
batch_size, causing an AttributeError at runtime. Make LocalTestOOBTelemetryService
standalone: add its own singleton, queue, batch_size, _enabled, and close().
Also fixes the pre-existing _enable typo (should have been _enabled).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant