appinsights-instrumentation
Azure アプリに Application Insights テレメトリを追加する
このスキルでは、Azure Application Insights を使用して Web アプリケーションを計装するためのステップバイステップガイドを提供します。ASP.NET Core、Node.js、Python 向けの SDK セットアップ、設定、テレメトリパターンを含みます。
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "appinsights-instrumentation". Node.js アプリに App Insights を追加するにはどうすればいいですか?
Résultat attendu:
- Azure Monitor パッケージをインストール: npm install @azure/monitor-opentelemetry
- メインエントリファイルに追加: const { useAzureMonitor } = require('@azure/monitor-opentelemetry');
- アプリの前方でセットアップを呼び出し: useAzureMonitor();
- 接続文字列環境変数を設定: APPLICATIONINSIGHTS_CONNECTION_STRING
Utilisation de "appinsights-instrumentation". Application Insights を作成するための Bicep テンプレートは何ですか?
Résultat attendu:
- Log Analytics Workspace リソースを作成
- kind: 'web' で Application Insights リソースを作成
- WorkspaceResourceId を使用してワークスペースにリンク
- アプリ設定で使用するための接続文字列を出力
Audit de sécurité
SûrThis is an official Microsoft skill providing Azure Application Insights instrumentation guidance. All 49 static findings are false positives: weak crypto alerts triggered by Azure SKU names (PerGB2018) and API versions; backtick detections are markdown code blocks; path traversal alerts are relative markdown links; environment variable access is the Azure-recommended pattern for connection strings. No actual security risks identified.
Score de qualité
Ce que vous pouvez construire
DevOps エンジニアが Azure Web アプリに監視を追加する
DevOps エンジニアは、Azure App Service で実行されている既存の ASP.NET Core アプリに Application Insights を追加する必要があります。スキルはステップバイステップの SDK セットアップと設定ガイダンスを提供します。
開発者が App Insights 計装を学ぶ
開発者は、Azure Monitor 向けの OpenTelemetry を使用して Node.js アプリケーションを計装する方法を理解したいと考えています。スキルはクイックスタートガイドとベストプラクティスを提供します。
Azure 監視ヘルプが必要な Claude Code ユーザー
Claude Code ユーザーは、Python アプリにテレメトリを追加する方法を尋ねます。スキルは Python 固有の SDK 設定と接続文字列セットアップ手順を提供します。
Essayez ces prompts
Azure Web アプリに Application Insights テレメトリを追加するにはどうすればいいですか?
OpenTelemetry SDK を使用して ASP.NET Core アプリケーションで Application Insights を設定する方法を教えてください。
Node.js アプリに Azure Monitor OpenTelemetry を追加するコードと、必要な環境変数を教えてください。
コードを変更せずに、Azure App Service でホストされているアプリの自動計装を有効にするにはどうすればいいですか?
Bonnes pratiques
- 接続文字列を構成ファイルにハードコードする代わりに、環境変数を使用する
- アプリケーションの起動時にできるだけ早い段階で監視セットアップを呼び出す
- 設定が容易な場合は OpenTelemetry Distro パッケージを使用する
Éviter
- App Insights 設定のために appsettings.json を変更しない(非推奨の方法)
- 接続文字列をソースコードにハードコードしない
- 高トラフィックアプリケーションのサンプリングセットアップをスキップしない
Foire aux questions
Application Insights とは何ですか?
App Insights を使用するためにコードを変更する必要がありますか?
接続文字列はどこで入手できますか?
どの言語がサポートされていますか?
自動計装と手動計装の違いは何ですか?
このスキルを使用して App Insights リソースを作成できますか?
Détails du développeur
Structure de fichiers