"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.startTelemetry = void 0;
const index_js_1 = require("../container/index.js");
/**
 * Starts creating {@link @fluidframework/fluid-telemetry#IFluidTelemetry} by transforming raw system events emitted by the specified container
 * into said telemetry and passing it onto to the specified {@link ITelemetryConsumer}
 *
 * @beta
 */
const startTelemetry = (config) => {
    const telemetryProducer = new index_js_1.ContainerEventTelemetryProducer(config.containerId);
    new index_js_1.ContainerTelemetryManager(config.container, telemetryProducer, config.consumers);
};
exports.startTelemetry = startTelemetry;
//# sourceMappingURL=index.js.map