Skip to main content

Volcengine TLS Bootstrap

PyPI version

A Python bootstrap utility for automatically installing and configuring Volcengine's OpenTelemetry instrumentation packages for LLM applications. This package provides a command-line interface similar to opentelemetry-instrumentation for seamless integration with Volcengine TLS (Torch Log Service).

Overview

The volcengine-tls-bootstrap package serves as a centralized installer for Volcengine's OpenTelemetry instrumentation ecosystem, specifically designed for:

  • LangChain applications - Automatic instrumentation of LangChain LLM calls
  • OpenAI integrations - Tracing OpenAI API calls and completions
  • General Python services - Comprehensive observability for distributed systems

Installation

pip install --upgrade volcengine-tls-bootstrap

Quick Start

Install the TLS runtime bundle

volcengine-tls-bootstrap -a install

Install a verified runtime version

volcengine-tls-bootstrap -a install -v <validated-runtime-version>

volcengine-tls-bootstrap is the only package that users install from PyPI. -a install downloads the versioned Python runtime bundle from the TLS TOS artifact repository and installs the wheel set contained in that bundle. Pin the bootstrap and runtime versions named in the verified release manifest for production; do not separately install instrumentation or exporter wheels from PyPI, and do not upgrade dependencies during container startup.

Install Into a Non-standard Directory

When PIPPATH is used, pip --target does not automatically expose installed modules or console scripts to the application. Bootstrap writes a helper after installation; source it in the same process that starts the application:

export PIPPATH=/opt/tls-agent
volcengine-tls-bootstrap -a install -v <validated-runtime-version>
source /opt/tls-agent/activate-volcengine-tls.sh
volcengine-tls-instrument --check
volcengine-tls-instrument python app.py

Commands

The bootstrap utility supports the following operations:

  • install - Download and install the versioned Volcengine OpenTelemetry runtime bundle (default)
  • uninstall - Remove all installed instrumentation packages
  • requirements - Install instrumentation packages based on detected dependencies

Configuration

The installer automatically configures:

  • OpenTelemetry SDK initialization
  • TLS exporter configuration
  • Context propagation settings
  • Auto-instrumentation hooks

Privacy Notice

By default, this package will record prompts and completions as span attributes in your traces. This behavior can be configured through environment variables or manual instrumentation settings.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volcengine_tls_bootstrap-1.0.4.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

volcengine_tls_bootstrap-1.0.4-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file volcengine_tls_bootstrap-1.0.4.tar.gz.

File metadata

File hashes

Hashes for volcengine_tls_bootstrap-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2b8bfb9d15acc403bafac877d655c65e14921beb78fbe428e9eaf204fd18af00
MD5 c6ac396e078e5be2030df36cdc15d953
BLAKE2b-256 5d03667dca0bd7b20c75077db7f2e9eee49cd31f1e5ac73b7679ebfbb3be1ce3

See more details on using hashes here.

File details

Details for the file volcengine_tls_bootstrap-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for volcengine_tls_bootstrap-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1badb0e22cca8dcb4f3ed98a3c10cbef0519114260831f8f5776bdb2014d55
MD5 679c87be07e43680568ca9db122acc2c
BLAKE2b-256 71fd99251be29aabe1fdd53e566b8806798fe2dd2195286816468914ce69fcea

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 Sentry Error logging StatusPage Status page