スキル azure-monitor-opentelemetry-exporter-java
📦

azure-monitor-opentelemetry-exporter-java

安全

Export OpenTelemetry telemetry to Azure Monitor

Integrate Java applications with Azure Monitor for distributed tracing and telemetry. Use OpenTelemetry standards to export traces, metrics, and logs to Application Insights.

対応: Claude Codex Code(CC)
🥉 73 ブロンズ
1

スキルZIPをダウンロード

2

Claudeでアップロード

設定 → 機能 → スキル → スキルをアップロードへ移動

3

オンにして利用開始

テストする

「azure-monitor-opentelemetry-exporter-java」を使用しています。 Generate code to initialize OpenTelemetry with Azure Monitor using environment variables

期待される結果:

Java code snippet showing AutoConfiguredOpenTelemetrySdk builder configuration with AzureMonitorExporter.customize() and connection string from APPLICATIONINSIGHTS_CONNECTION_STRING environment variable.

「azure-monitor-opentelemetry-exporter-java」を使用しています。 How do I record exceptions in OpenTelemetry spans?

期待される結果:

Code example demonstrating span.recordException() within a try-catch block, setting error status with span.setStatus(StatusCode.ERROR), and proper span lifecycle management in finally block.

セキュリティ監査

安全
v1 • 2/25/2026

All static analysis findings are false positives. The skill consists entirely of Markdown documentation (SKILL.md) with Java code examples for Azure Monitor OpenTelemetry integration. The 26 'external_commands' detections are Markdown backtick delimiters for code blocks, not shell execution. The 10 'network' findings are documentation URLs (GitHub, Microsoft Learn, Maven Central), not actual network calls. No executable code or security risks present.

1
スキャンされたファイル
285
解析された行数
0
検出結果
1
総監査数
セキュリティ問題は見つかりませんでした
監査者: claude

品質スコア

38
アーキテクチャ
100
保守性
87
コンテンツ
50
コミュニティ
100
セキュリティ
83
仕様準拠

作れるもの

DevOps Engineer Monitoring Java Applications

Set up end-to-end distributed tracing for microservices running on Azure. Configure OpenTelemetry to automatically export traces and metrics to Application Insights for production monitoring.

Java Developer Implementing Observability

Add custom instrumentation to Java applications using OpenTelemetry APIs. Create meaningful spans, record exceptions, and capture business metrics for debugging and performance analysis.

Cloud Architect Designing Telemetry Strategy

Evaluate OpenTelemetry integration patterns for Azure monitoring. Compare autoconfiguration versus manual setup approaches for enterprise Java application portfolios.

これらのプロンプトを試す

Basic Azure Monitor Setup
Help me set up OpenTelemetry to export telemetry to Azure Monitor. I have a Java Spring Boot application and an Application Insights connection string.
Custom Tracing Implementation
Show me how to create custom spans with attributes in my Java application using OpenTelemetry. I need to trace order processing with order ID and customer tier attributes.
Migration from Deprecated Package
My application uses azure-monitor-opentelemetry-exporter which is deprecated. Guide me through migrating to azure-monitor-opentelemetry-autoconfigure with code examples.
Advanced Span Processing
I need to implement a custom SpanProcessor that adds organization-specific attributes to all spans and filters out health check endpoints. Show me the complete implementation.

ベストプラクティス

  • Use the autoconfigure package instead of the deprecated direct exporter for simplified setup
  • Always end spans in finally blocks or use try-with-resources for proper Scope management
  • Record exceptions on spans using recordException() and set appropriate error status codes

回避

  • Using the deprecated azure-monitor-opentelemetry-exporter package for new projects
  • Hardcoding connection strings in source code instead of using environment variables
  • Creating spans without proper exception handling or failing to end spans in error cases

よくある質問

Is the azure-monitor-opentelemetry-exporter package still supported?
No, this package is deprecated. Microsoft recommends migrating to azure-monitor-opentelemetry-autoconfigure which provides automatic instrumentation and simplified configuration.
How do I get an Application Insights connection string?
Create an Application Insights resource in the Azure Portal. Navigate to the resource and find the connection string under 'Configure' section. It includes the instrumentation key and ingestion endpoint.
Can I use OpenTelemetry with existing Application Insights SDK?
Yes, but Microsoft recommends migrating fully to OpenTelemetry for new development. The autoconfigure package provides compatibility while following OpenTelemetry standards.
What telemetry data can I export to Azure Monitor?
OpenTelemetry supports exporting traces (distributed tracing spans), metrics (counters, histograms, gauges), and logs to Azure Monitor/Application Insights.
Do I need to install the Azure SDK for Java?
You need the azure-monitor-opentelemetry-autoconfigure Maven package. The OpenTelemetry Java SDK handles the core instrumentation, while Azure package provides the exporter.
How does distributed tracing work with OpenTelemetry and Azure?
OpenTelemetry automatically propagates trace context across service boundaries using W3C trace context headers. Each span is exported to Application Insights where you can view end-to-end transaction flows.

開発者の詳細

ファイル構成

📄 SKILL.md