/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
/**
 * An implementation of {@link ITelemetryConsumer} that routes {@link IFluidTelemetry} to Azure App Insights
 * in a format that is supported by Fluid Framework service offerings such as Cloud dashboards and alarms.
 *
 * @beta
 */
export class AppInsightsTelemetryConsumer {
    constructor(appInsightsClient) {
        this.appInsightsClient = appInsightsClient;
    }
    /**
     * Takes the incoming {@link IFluidTelemetry} and sends it to Azure App Insights
     */
    consume(event) {
        this.appInsightsClient.trackEvent({
            name: event.eventName,
            properties: event,
        });
    }
}
//# sourceMappingURL=appInsightsTelemetryConsumer.js.map