commonMain.aws.smithy.kotlin.runtime.telemetry.metrics.MeterProvider.kt Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.telemetry.metrics
/**
* Entry point for metrics.
*/
public interface MeterProvider {
public companion object {
/**
* A [MeterProvider] that does nothing
*/
public val None: MeterProvider = object : AbstractMeterProvider() { }
}
/**
* Get or create a named [Meter]
* @param scope the name of the instrumentation scope that uniquely identifies this meter
*/
public fun getOrCreateMeter(scope: String): Meter
}