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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file otel_ci-0.1.0.tar.gz.
File metadata
- Download URL: otel_ci-0.1.0.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5ac1812b50309ac47f14fe3a365691b0bd167773a15a79f7ddb1b02ab13e255
|
|
| MD5 |
d83829ae58d32cb732fa4fa99e7af084
|
|
| BLAKE2b-256 |
ba81a969f2bdc8f5427840ad5cbe8c65aab9e6011cfb5303cba5037a9354f0b6
|
File details
Details for the file otel_ci-0.1.0-py3-none-any.whl.
File metadata
- Download URL: otel_ci-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a9829df7ca69c25a8a86c2d7387f2d61a9d79cd22ca34e6d785c672a4657e5
|
|
| MD5 |
9075f970df107cf9f9ffa1aac9e3d2c7
|
|
| BLAKE2b-256 |
53dcc93e7d006129fe0b281522ae6367f0edb4a25cdce90cbb88a47f0893e6e0
|