{"version":3,"file":"MetricProducer.js","sourceRoot":"","sources":["../../../src/export/MetricProducer.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { CollectionResult } from './MetricData';\n\nexport interface MetricCollectOptions {\n  /**\n   * Timeout for the SDK to perform the involved asynchronous callback\n   * functions.\n   *\n   * If the callback functions failed to finish the observation in time,\n   * their results are discarded and an error is appended in the\n   * {@link CollectionResult.errors}.\n   */\n  timeoutMillis?: number;\n}\n\n/**\n * This is a public interface that represent an export state of a IMetricReader.\n */\nexport interface MetricProducer {\n  /**\n   * Collects the metrics from the SDK. If there are asynchronous Instruments\n   * involved, their callback functions will be triggered.\n   */\n  collect(options?: MetricCollectOptions): Promise<CollectionResult>;\n}\n"]}