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.3.tar.gz (47.7 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.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cancontech_tracing-0.0.3.tar.gz
  • Upload date:
  • Size: 47.7 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.3.tar.gz
Algorithm Hash digest
SHA256 ec0c5f58e4e956d97944c136702d3c82351a3e243855b2902d326a932df02972
MD5 971a324db2715d282010c9492b39e0e0
BLAKE2b-256 131430929ff8b7c7e623cc2035ef3f28a957ab4fa18dd7700d4621a6099b8771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cancontech_tracing-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d02e9376170a1f3dda7ad5620a7673264481259f2a35bf90b84eb27f566c6b24
MD5 911f75704b34e90c4ed9ccef5e94cb7c
BLAKE2b-256 5e89a72ea8cf2b8e347c89f641281a3abd9306f9be060312d03a13594110a05c

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