snowflake-telemetry-python
is a package that supports emitting telemetry data from Python UDFs, UDTFs, and Stored Procedures.
To install the latest release of this package as an end user, run
VERSION="0.3.0"
curl -L "https://github.com/snowflakedb/snowflake-telemetry-python/archive/refs/tags/v${VERSION}.tar.gz" > "snowflake-telemetry-python-${VERSION}.tar.gz"
tar -xvf "snowflake-telemetry-python-${VERSION}.tar.gz"
cd "snowflake-telemetry-python-${VERSION}"
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install .
To develop this package, run
git clone [email protected]:snowflakedb/snowflake-telemetry-python.git
cd snowflake-telemetry-python
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install . ./tests/snowflake-telemetry-test-utils
To regenerate the code under src/snowflake/_internal/opentelemetry/proto/
, execute the script ./scripts/proto_codegen.sh
. The script expects the src/snowflake/_internal/opentelemetry/proto/
directory to exist, and will delete all .py files in it before regerating the code.
The commit/branch/tag of opentelemetry-proto that the code is generated from is pinned to PROTO_REPO_BRANCH_OR_COMMIT, which can be configured in the script. It is currently pinned to the same tag as opentelemetry-python.