Skip to content

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

Open
sfc-gh-fpawlowski wants to merge 3 commits into
SNOW-2912540-inline-pandas-staging-helpersfrom
SNOW-2912540-decouple-oob-telemetry
Open

SNOW-2912540: decouple LocalTestOOBTelemetryService from connector.telemetry_oob#4309
sfc-gh-fpawlowski wants to merge 3 commits 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.

Checklist

  • I acknowledge that I have ensured my changes to be thread-safe

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>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.99%. Comparing base (cb14275) to head (c202a6b).

Additional details and impacted files
@@                             Coverage Diff                             @@
##           SNOW-2912540-inline-pandas-staging-helpers    #4309   +/-   ##
===========================================================================
  Coverage                                       80.99%   80.99%           
===========================================================================
  Files                                             170      170           
  Lines                                           44663    44663           
  Branches                                         7677     7677           
===========================================================================
  Hits                                            36174    36174           
  Misses                                           6969     6969           
  Partials                                         1520     1520           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants