Skip to main content
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

You can also pass connection parameters explicitly via 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

You can also let Agent attach the APMPlus exporter automatically from an environment variable, without constructing it explicitly:
With ENABLE_APMPLUS=true, Agent creates an OpentelemetryTracer and attaches APMPlusExporter automatically, even when the agent provides no tracers.
Last modified on September 19, 2026