Skip to main content

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"

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.4.0.tar.gz (31.3 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.4.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: otel_ci-0.4.0.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for otel_ci-0.4.0.tar.gz
Algorithm Hash digest
SHA256 397c1c9612d51479b73df9eb40bc7a9976db0b1148152410529fe535abb48b1d
MD5 715ef5967804edd147f8b2328fd664de
BLAKE2b-256 673960629084ab2f1aecef6a382933efa3ee7fd5d2d5f27232a615839d416d33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: otel_ci-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for otel_ci-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38267c3dd531dd1abcdfb6cd35ab9ea2cd117832d11e77a48eb52105d847b5c9
MD5 e790fa79f642d9fae1fe78b75d09c835
BLAKE2b-256 48cf14fbfe7b81c029816c40ed2133664481d3551afd6e4b77550ed467591c14

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page