Skip to main content

Trace Marketplace sync CLI: upload local trace files via the upload API

Project description

trace-sync

Upload local trace files (OTLP JSON) to a Trace Marketplace instance from the terminal.

pipx install trace-sync          # or: uvx trace-sync …

Usage

Mint an upload-only API key on the marketplace's Settings page, then:

# upload every new trace file under the paths, then exit
TRACE_API_URL=https://your-marketplace.example TRACE_API_KEY=tmk_… \
  trace-sync sync ./traces

# same, then stay alive and upload files as they appear or change
trace-sync watch ./traces

Config is two env vars (TRACE_API_URL, TRACE_API_KEY), overridable with --api-url / --api-key. Uploads are private by default.

Behavior

  • Stateless and idempotent. The CLI keeps no manifest; the server's per-user content hash is the source of truth, so re-syncing a directory from any machine is always safe (already synced, exit 0).
  • One bad file never stops the run. Per-file outcomes are printed as they land (uploaded / already synced / failed: <reason>); the exit code reflects failures seen.
  • Backpressure is normal. Rate-limit responses are honored via Retry-After and retried, not errored.
  • Upload-only keys. A tmk_ key can upload traces and poll upload status — nothing else — and can be revoked from Settings at any time.

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

trace_sync-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

trace_sync-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file trace_sync-0.1.0.tar.gz.

File metadata

  • Download URL: trace_sync-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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 trace_sync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 427841e932d6a902627a006141527e6c245fde00d18727b62804f314c12a43a8
MD5 1aa48906ab516a130a4d14f6f3e33c35
BLAKE2b-256 f87ba7fe3e255e1869302921334281632a395d519c148572dc56a916e43a8da3

See more details on using hashes here.

File details

Details for the file trace_sync-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: trace_sync-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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 trace_sync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce2641591f8597de1e4bfd092c21accd8ee9ec8d219689cc52ee8a72b8068f7a
MD5 5993480764a6a694e25cc70676005ff0
BLAKE2b-256 f214c8ef22cff3c60b0acc6f24d64b8c4172bc23353bee9ea9a99fba0771a6f2

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