isShutdownOnAgentClose

Indicates whether OpenTelemetry resources should be shut down when the agent closes.

Defaults to false. When true, the feature's agent-close handler calls the internal SDK-shutdown routine, which shuts down every registered span processor (which in turn shuts down its wrapped exporter) and on JVM also closes the metrics SdkMeterProvider. On non-JVM targets the metrics path is a no-op; only span processors are shut down.

Note: if multiple agents share the same OpenTelemetryConfig, enabling this causes shutdown to happen when the first agent closes, which may affect the remaining agents.