How to use the @microsoft/applicationinsights-web.SeverityLevel.Information function in @microsoft/applicationinsights-web

To help you get started, we’ve selected a few @microsoft/applicationinsights-web examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OfficeDev / microsoft-teams-apps-greatideas / Source / Microsoft.Teams.Apps.SubmitIdea / ClientApp / src / components / manage-category / manage-category.tsx View on Github external
async getCategory() {
        this.appInsights.trackTrace({ message: `'getCategory' - Initiated request`, properties: { User: this.userObjectId }, severityLevel: SeverityLevel.Information });
        let category = await getAllCategories();

        if (category.status === 200 && category.data) {
            this.appInsights.trackTrace({ message: `'getCategory' - Request success`, properties: { User: this.userObjectId }, severityLevel: SeverityLevel.Information });
            console.log(category);
            this.setState({
                categories: category.data,
                filteredCategory: category.data
            });
        }
        else {
            this.appInsights.trackTrace({ message: `'getCategory' - Request failed`, properties: { User: this.userObjectId }, severityLevel: SeverityLevel.Information });
        }
        this.setState({
            loader: false
        });
github OfficeDev / microsoft-teams-apps-greatideas / Source / Microsoft.Teams.Apps.SubmitIdea / ClientApp / src / components / manage-category / manage-category.tsx View on Github external
async getCategory() {
        this.appInsights.trackTrace({ message: `'getCategory' - Initiated request`, properties: { User: this.userObjectId }, severityLevel: SeverityLevel.Information });
        let category = await getAllCategories();

        if (category.status === 200 && category.data) {
            this.appInsights.trackTrace({ message: `'getCategory' - Request success`, properties: { User: this.userObjectId }, severityLevel: SeverityLevel.Information });
            console.log(category);
            this.setState({
                categories: category.data,
                filteredCategory: category.data
            });
        }
        else {
            this.appInsights.trackTrace({ message: `'getCategory' - Request failed`, properties: { User: this.userObjectId }, severityLevel: SeverityLevel.Information });
        }
        this.setState({
            loader: false
        });
    }

@microsoft/applicationinsights-web

Microsoft Application Insights JavaScript SDK - Web

MIT
Latest version published 18 days ago

Package Health Score

92 / 100
Full package analysis

Similar packages