Skip to content

sfc-gh-jopel/snowflake-telemetry-python

 
 

Repository files navigation

Snowflake Telemetry Python

Build and Test License Apache-2.0

About

snowflake-telemetry-python is a package that supports emitting telemetry data from Python UDFs, UDTFs, and Stored Procedures.

Getting started

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 .

Development

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

Code generation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.7%
  • Shell 2.6%
  • Other 0.7%