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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for otel_ci-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f29b0d0445840116af920bb515b00c17f47d4022338119dfc56037ac1ffd6359
MD5 b4afedfa89e4c63f7106e0a4415425ac
BLAKE2b-256 bd15d28e9b5e28e64c062e762825c2c5180db1d955fd07b20d2182b2d8795b0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: otel_ci-0.3.0-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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f545c4dfd3adf2fbacc6abb20635ea7815a053146941f2f54b15f7a0fda4469
MD5 7ada139c97e153189b50fcb63e8e959d
BLAKE2b-256 ef89163db2d5597c70a408ba89b082c892ee2407cacc2de587934297e2213fe3

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