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 content tracing is enabled, reasoning content in model output is labeled with the reasoning type to distinguish it from regular text, making it easier to inspect the reasoning process separately in APMPlus.

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.
If a global TracerProvider already exists when OpentelemetryTracer is initialized, VeADK reuses that provider and automatically removes APMPlusExporter, because the existing provider is assumed to be responsible for APMPlus trace reporting. You can check this with the apmplus_managed_externally property; see Observability overview for details.
Last modified on September 19, 2026