Metadata-Version: 2.4
Name: loongsuite-instrumentation-vita
Version: 0.6.0
Summary: LoongSuite VitaBench instrumentation
Project-URL: Homepage, https://github.com/alibaba/loongsuite-python-agent/tree/main/instrumentation-loongsuite/loongsuite-instrumentation-vita
Project-URL: Repository, https://github.com/alibaba/loongsuite-python-agent
Author-email: Zhiyong Liu <liuzhiyong.lzy@alibaba-inc.com>, OpenTelemetry Authors <cncf-opentelemetry-contributors@lists.cncf.io>
License-Expression: Apache-2.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: <4,>=3.10
Requires-Dist: loongsuite-otel-util-genai~=0.6.0
Requires-Dist: opentelemetry-api>=1.37.0
Requires-Dist: opentelemetry-instrumentation>=0.58b0
Requires-Dist: opentelemetry-semantic-conventions>=0.58b0
Requires-Dist: wrapt<2.0.0,>=1.17.3
Provides-Extra: instruments
Requires-Dist: vita>=0.0.1; extra == 'instruments'
Description-Content-Type: text/markdown

# LoongSuite VitaBench Instrumentation

OpenTelemetry instrumentation for the VitaBench multi-domain simulation framework.

## Installation

```bash
pip install loongsuite-instrumentation-vita
```

## Usage

```python
from opentelemetry.instrumentation.vita import VitaInstrumentor

VitaInstrumentor().instrument()
```

For GenAI semantic conventions and span-only message content capture, set:

```bash
export OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=SPAN_ONLY
```

## VitaBench With DashScope

VitaBench posts directly to the `base_url` configured in `models.yaml`, so the
DashScope OpenAI-compatible endpoint must include `/chat/completions`. The API
key must be supplied in the `Authorization` header.

```yaml
default:
  base_url: https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
  temperature: 0.0
  max_input_tokens: 8192
  headers:
    Content-Type: "application/json"
    Authorization: "Bearer ${OPENAI_API_KEY}"
models:
  - name: qwen3.6-plus
    max_tokens: 1024
    max_input_tokens: 8192
```

See `examples/vitabench-dashscope` for a runnable setup used by the Kubernetes
benchmark deployment.
