instance property

OpentelemetryPlatform get instance

The default instance of OpentelemetryPlatform to use.

Defaults to MethodChannelOpentelemetry.

Implementation

static OpentelemetryPlatform get instance => _instance;
set instance (OpentelemetryPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends OpentelemetryPlatform when they register themselves.

Implementation

static set instance(OpentelemetryPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}