Registry / analytics / snowflake-telemetry-python

snowflake-telemetry-python

JSON →
library0.8.0pypypiunverified

A Python library for sending custom telemetry data (e.g., logs, spans, metrics) to Snowflake. Current version 0.8.0, compatible with Python 3.9-3.14. Under active development by Snowflake.

pip install snowflake-telemetry-python
INSTALL
IMPORT
SIG · SNOWFLAKE-TELEMETR
S
snowflake-telemetry-python
analyticspythonv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Telemetry
✓ from snowflake.telemetry import Telemetry
✗ from snowflake.telemetry import Telemetry

Initialize Telemetry object with Snowflake credentials and log an event.

import os from snowflake.telemetry import Telemetry # Initialize with Snowflake connection parameters (or use environment variables) telemetry = Telemetry( account=os.environ.get('SNOWFLAKE_ACCOUNT', ''), user=os.environ.get('SNOWFLAKE_USER', ''), password=os.environ.get('SNOWFLAKE_PASSWORD', ''), role=os.environ.get('SNOWFLAKE_ROLE', ''), warehouse=os.environ.get('SNOWFLAKE_WAREHOUSE', ''), database='TELEMETRY_DB', schema='PUBLIC' ) # Log an event telemetry.log_event('my_event', {'key': 'value'}) print('Telemetry event sent.')
Debug
Known issues
breakingThe library underwent significant API changes in v0.6.0. Older code using 'from snowflake_telemetry import ...' will break.
fix
Update imports to 'from snowflake.telemetry import ...' and adjust method calls.
affects: <0.6.0
gotchaEnvironment variables are not read automatically; you must explicitly pass credentials or use other config methods.
fix
Always set connection parameters via constructor or configuration file.
affects: all
deprecatedThe 'log_metric' function is deprecated in favor of OpenTelemetry metrics.
fix
Use OpenTelemetry instruments for metrics instead.
affects: >=0.7.0
Upgrade
Version history
0.8.0latest on PyPI · released Apr 8, 2026
Audit
Dependencies
snowflake-connector-pythonrequiredRequired for connecting to Snowflake.
opentelemetry-apioptionalUsed for OpenTelemetry integration.
Agent activity
34 hits · last 30 days
node
30
Anthropic
1
OpenAI (training)
1
Resources
snowflake-telemetry-python — pip install snowflake-telemetry-python · libregistry