Skip to main content

Add your description here

Project description

Opentelemetry CI

A python utility library (similar to otel-cli) for recording and generating spans in the CLI.

Similar to otel-cli; spans are propagated via environment variables.

Unlike otel-cli; spans can be exported to a directory and then replayed in bulk to an otel receiver. This is useful when you do not want the overhead/delay of exporting spans live.

Usage

Generating spans via otel-cli

uv tool install otel-cli

# Record a single span
otel-ci exec ls

# Nested span recording
otel-ci exec otel-ci exec ls

# Exporting to disk and replaying results
export OTEL_EXPORTER_FILE_DIRECTORY="/tmp/out"
export OTEL_TRACES_EXPORTER="file"
otel-ci --service test exec ls
# or
otel-ci --service=test -d /tmp/out -e file exec ls

export OTEL_TRACES_EXPORTER="otlp"
export OTEL_EXPORTER_OTLP_PROTOCOL="grpc"
export OTEL_EXPORTER_OTLP_ENDPOINT="localhost:4317"
otel-ci replay -d "/tmp/out"

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

otel_ci-0.1.2.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

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

otel_ci-0.1.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file otel_ci-0.1.2.tar.gz.

File metadata

  • Download URL: otel_ci-0.1.2.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.4.19

File hashes

Hashes for otel_ci-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0e5f2be9b5c90de3117d912554f75f7526adc8c6a44413b962059b84ea9e3811
MD5 86815f874a5517480b4e19d555d1e53e
BLAKE2b-256 77f0941d8973b1a9a83a8b5eb0fa64155a5309d66ea3367a9f494f1820208d20

See more details on using hashes here.

File details

Details for the file otel_ci-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: otel_ci-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.4.19

File hashes

Hashes for otel_ci-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08451f2e3c7f5b1e514ef27889d0c37853a91037436acf9c92aeb5962fcf8fba
MD5 e10a6dda0595f6a760476a683f5feeaa
BLAKE2b-256 d01ab531cd2c22e0019d36df43c88c05c9ae9e4d716384b3269862209d395312

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