otelApiFactoryFactoryFunction function
Factory function that creates an instance of OTelAPIFactory.
This function is used as the default factory function for creating OTelAPIFactory instances when no SDK is installed.
apiEndpoint The endpoint URL for the OpenTelemetry backend
apiServiceName The name of the service being instrumented
apiServiceVersion The version of the service being instrumented
Implementation
OTelFactory otelApiFactoryFactoryFunction({
required String apiEndpoint,
required String apiServiceName,
required String apiServiceVersion,
}) {
return OTelAPIFactory(
apiEndpoint: apiEndpoint,
apiServiceName: apiServiceName,
apiServiceVersion: apiServiceVersion,
);
}