All skills
microsoft avatar

/appinsights-instrumentation

@b3c238e
by microsoftmicrosoft/skills3.1k stars
351

Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.

Use this Skill: https://skilld.dev/gh/microsoft/skills/appinsights-instrumentation

This session only. Nothing lands on disk.

referencessdkazure-monitor-opentelemetry-exporter-py.md

≈241 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Azure Monitor OpenTelemetry Exporter — Python SDK Quick Reference

Condensed from azure-monitor-opentelemetry-exporter-py. Full patterns (metric exporter, log exporter, offline storage, sovereign clouds) in the azure-monitor-opentelemetry-exporter-py plugin skill if installed.

Install

pip install azure-monitor-opentelemetry-exporter

Quick Start

from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter
exporter = AzureMonitorTraceExporter()  # reads APPLICATIONINSIGHTS_CONNECTION_STRING

Best Practices

  • Use BatchSpanProcessor for production (not SimpleSpanProcessor)
  • Use ApplicationInsightsSampler for consistent sampling across services
  • Enable offline storage for reliability in production
  • Use AAD authentication instead of instrumentation keys
  • Set export intervals appropriate for your workload
  • Use the distro (azure-monitor-opentelemetry) unless you need custom pipelines

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides guidance and technical reference for instrumenting applications with Azure Application Insights. It follows industry best practices for configuration management, including secret handling, and uses official Microsoft libraries and tools. No security issues were detected.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    12/12 files flagged

Signed by skilld at b3c238e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.2.1"
}

README badge

README badge for microsoft/skills/appinsights-instrumentation