APMPlusExporter reports span data to the Volcengine APMPlus platform over OTLP (gRPC). Beyond traces, its built-in metrics uploader collects model invocation counts, token usage, operation duration, exception counts, and tool latency, writing them to APMPlus metrics dashboards.
When to use
- You want unified trace observation for your agent on Volcengine APMPlus;
- You need model-level metrics such as token consumption, latency, and error rate;
- You need cost tracking and performance monitoring in production.
Usage
APMPlusExporterConfig:
Parameters
Constructor parameters
APMPlusExporter carries its connection parameters in the config field of type APMPlusExporterConfig; when omitted, each field is read automatically from the corresponding environment variable.
APMPlus connection config
config is an APMPlusExporterConfig; each field defaults from APMPlusConfig, with the following environment variables:
When
app_key is not provided via environment variable, the exporter fetches an APMPlus token automatically through Volcengine authentication, so valid Volcengine credentials are required. The endpoint connects over gRPC without transport encryption.Environment variables
Agent attach the APMPlus exporter automatically from an environment variable, without constructing it explicitly: