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.1.tar.gz (28.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.1.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for otel_ci-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e89f235acbf7391c797d0006958543739b8c56cdd6893d13fc3bdc96a877b98
MD5 9570a47bbe52b14de90578099dcf611e
BLAKE2b-256 809d1556ef3369b6b85d3216f29a77a28d4653ac796a3eec2650e3801bf1add0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for otel_ci-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7e22bca3f7799322536aee1f799a6c3545e6b66f79cf0fb72da55b1cd012f9c
MD5 f2f5de8376ca944b8a61922918086212
BLAKE2b-256 76de423ce652776b3689e11c653cfd3a1b9dd51df48490aefae039bb0ce90bbc

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