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 "volcengine-tls-bootstrap==<bootstrap-release>"

Quick Start

Install All Instrumentation Packages

volcengine-tls-bootstrap -a install -v <runtime-release>

Install Specific Version (Optional)

volcengine-tls-bootstrap -a install -v 1.0.1

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 both <bootstrap-release> and <runtime-release> according to the release manifest; do not separately install instrumentation or exporter wheels from PyPI, and do not use an unbounded upgrade 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 <runtime-release>
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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

volcengine_tls_bootstrap-1.0.3-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for volcengine_tls_bootstrap-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68f6d56ce53926df75b40e075b37b276b2596ed52a88c7ab9b5a7dbba60db165
MD5 b38e38ae0cd9293169a1e4a4d5af226b
BLAKE2b-256 21084ffe873e7e80bdc140b5ac37777b96cda4ce6917cee3fd03b9b830da6b1e

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