SNOW-2912540: decouple LocalTestOOBTelemetryService from connector.telemetry_oob - #4309
Draft
sfc-gh-fpawlowski wants to merge 1 commit into
Draft
Conversation
…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>
This was referenced Aug 6, 2026
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The UD's
telemetry_oob.TelemetryServiceis a no-op stub (BD#45) that is missingbatch_size, whichLocalTestOOBTelemetryService.add()uses — causing anAttributeErrorat runtime.Makes
LocalTestOOBTelemetryServicefully standalone by:from snowflake.connector.telemetry_oob import TelemetryServiceand the inheritanceget_instance())self.queue,self.batch_size, andself._enableddirectly in__init__close()(delegates toflush(), called byatexit)self._enabletypo (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