Skip to main content

OpenTelemetry instrumentation for PyEQX

Project description

esbm-dis-dfts-pyeqx-opentelemetry

This is part of pyeqx with opentelemetry packages. (package: pyeqx-opentelemetry)

Pre-requisites

Python: 3.12

Dependencies:

  • opentelemetry-api
  • opentelemetry-sdk
  • opentelemetry-exporter-otlp
  • opentelemetry-exporter-prometheus
# setup virtual env
python3.12 -m venv .venv

# activate virtual env
source .venv/bin/activate

# install dependencies
pip install opentelemetry-api opentelemetry-sdk opentelemetry-exporter-otlp opentelemetry-exporter-prometheus

# or
pip install -e .[dev]

# install dependencies (If you want to publish)
pip install twine

Environement variables

Create .env file with content below

PYEQX_OTLP_METRICS_ENDPOINT=localhost:4317
PYEQX_OTLP_TRACES_ENDPOINT=localhost:4317

OTLP_METRICS_HTTP_ENDPOINT=http://localhost:4318/v1/metrics
OTLP_TRACES_HTTP_ENDPOINT=http://localhost:4318/v1/traces

Tests

To execute unit test run this command at root of the project

python3 -m unittest discover test -p "**.py"

# or

pytest test/ --cov=src --cov-report=term-missing

To execute test with coverage

pytest test/ --cov=src

Build

python3 -m build

Publish

To pypi

python3 -m twine upload --config-file .pypirc dist/*

Remark

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

pyeqx_opentelemetry-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

pyeqx_opentelemetry-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pyeqx_opentelemetry-0.1.0.tar.gz.

File metadata

  • Download URL: pyeqx_opentelemetry-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pyeqx_opentelemetry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36de68b5678602373d7432a18f804c2db4ea14904553e88c36be88ecb4521d3b
MD5 ae8fbc2c185dc2a3c915362a9874c2c9
BLAKE2b-256 1955578840ef7e15c5bddb026b1fa9b445adb9a98fe7af49558bf2e8de401b86

See more details on using hashes here.

File details

Details for the file pyeqx_opentelemetry-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyeqx_opentelemetry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdf53a17819c213f3535655ef88730c2f0d99cee5e4dcf30acae5992f793de13
MD5 509a005ac3786be7d72e9cb4a651773d
BLAKE2b-256 63796fd1e5b8c2b26b2b23ab8eb88a4a3a9348c07a60c6047a00cec9db5777b3

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