Skip to main content

cancontech tracing library

Project description

What is it?

CanConTech Tracing

Collection of tracing utility functions

Phoenix authentication

If your Phoenix server has auth enabled, set PHOENIX_API_KEY and init_tracing(...) will automatically send authorization: Bearer <PHOENIX_API_KEY> with trace exports. You can still pass explicit exporter headers via init_tracing(..., headers=...).

Installation

  • Install uv:
    • Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    • macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh
  • Set env var UV_NATIVE_TLS=true to avoid certificate errors
  • Sync environment: uv sync. This will create a new default virtual environment (.venv) if it doesn't exist

Testing

unit tests

uv run pytest src/tests/unit

integration tests

ARIZE_CONTAINER_ID=$(docker run --rm -d -p 6006:6006 -p 4317:4317 -i -t arizephoenix/phoenix:latest)

uv run pytest src/tests/integration

docker stop $ARIZE_CONTAINER_ID

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cancontech_tracing-0.0.2.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cancontech_tracing-0.0.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file cancontech_tracing-0.0.2.tar.gz.

File metadata

  • Download URL: cancontech_tracing-0.0.2.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for cancontech_tracing-0.0.2.tar.gz
Algorithm Hash digest
SHA256 86f889ceb80cf62ccf7455845331b362570064e5bd498245499666396bc8a5df
MD5 00919026144cd37866e1ba647762e853
BLAKE2b-256 5b8b7edec213bf4f93c644ae186adc75e6942631bee6c9deef0e4a2c3205ba56

See more details on using hashes here.

File details

Details for the file cancontech_tracing-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cancontech_tracing-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e0ff00eadbecb8b7ce45d280c581c800212e5261b1c77c76b8bb2dbf2f8bf86
MD5 a4c5553288b133d6b1a5bc1b81bcdaad
BLAKE2b-256 e2e8e5c62783795070673eb1528896d568dd9cf9c21d827cbe3f3d31cb900876

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page