Skip to content
Skill

Azure monitor opentelemetry exporter java

Guides Java code to export OpenTelemetry telemetry to Azure Monitor (deprecated package)

Install
Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
3.2K
Last commit
1 day ago
License
MIT
Listing updated
today

Similar skills

About Azure monitor opentelemetry exporter java

Azure monitor opentelemetry exporter java is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

This skill gives the agent code patterns for sending OpenTelemetry traces, metrics and logs from Java applications to Azure Monitor and Application Insights. It shows how to initialize the OpenTelemetry SDK through the exporter's customize helper, using either the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable or an explicit connection string.

The guidance covers creating and nesting spans, adding attributes, recording exceptions, attaching a custom span processor, and emitting counters and histograms. It also flags that the exporter package is deprecated and points to the azure-monitor-opentelemetry-autoconfigure package and its migration guide as the replacement, including the Maven dependency swap.

The skill expects a Java project that uses Maven and the OpenTelemetry Java API and SDK, with an Application Insights resource and its connection string available.

When your agent uses it

Azure Monitor OpenTelemetry Exporter for Java. Export OpenTelemetry traces, metrics, and logs to Azure Monitor/Application Insights. Triggers: "AzureMonitorExporter java", "opentelemetry azure java", "application insights java otel", "azure monitor tracing java". Note: This package is DEPRECATED. Migrate to azure-monitor-opentelemetry-autoconfigure.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (14 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/azure-monitor-opentelemetry-exporter-java to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/azure-monitor-opentelemetry-exporter-java &&
cp -R "$tmp/.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java" ~/.claude/skills/azure-monitor-opentelemetry-exporter-java &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/azure-monitor-opentelemetry-exporter-java inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/azure-monitor-opentelemetry-exporter-java to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/azure-monitor-opentelemetry-exporter-java &&
cp -R "$tmp/.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java" ~/.agents/skills/azure-monitor-opentelemetry-exporter-java &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/azure-monitor-opentelemetry-exporter-java inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/azure-monitor-opentelemetry-exporter-java to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/azure-monitor-opentelemetry-exporter-java &&
cp -R "$tmp/.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java" ~/.cursor/skills/azure-monitor-opentelemetry-exporter-java &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/azure-monitor-opentelemetry-exporter-java inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/microsoft/skills.git --path .github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java

Or copy the folder to ~/.gemini/skills/azure-monitor-opentelemetry-exporter-java yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/azure-monitor-opentelemetry-exporter-java:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/azure-monitor-opentelemetry-exporter-java &&
cp -R "$tmp/.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java" ~/.copilot/skills/azure-monitor-opentelemetry-exporter-java &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/azure-monitor-opentelemetry-exporter-java inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/microsoft/skills.git

Then copy skills/.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java into your agent's skills folder as azure-monitor-opentelemetry-exporter-java. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Connection string setup
Shows how to initialize the OpenTelemetry SDK with an environment variable or explicit Application Insights connection string.
Trace span patterns
Covers creating spans, nesting parent and child operations, and ending spans safely in finally blocks.
Exception recording
Demonstrates recording exceptions and setting error status on failing spans.
Custom span processors
Explains registering a span processor to add attributes to every span at start.
Metrics instrumentation
Shows building counters and histograms with units and attributes through the OpenTelemetry meter API.
Migration guidance
Notes the exporter is deprecated and outlines the switch to the autoconfigure package.

Good for

  • Add distributed tracing to a Java service that reports to Application Insights
  • Create custom spans and attributes around business operations in Java code
  • Record request counts and latency histograms from a Java application
  • Migrate an existing Java OpenTelemetry exporter setup to the autoconfigure package

Azure monitor opentelemetry exporter java FAQ

Is this exporter package still recommended?

No. The skill states the package is deprecated and recommends migrating to azure-monitor-opentelemetry-autoconfigure.

What configuration does it need?

An Application Insights connection string, either set in the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable or passed explicitly to the customize method.

Which telemetry types does it cover?

The skill covers traces and metrics with code examples; it describes the exporter as handling traces, metrics and logs.

How do I install Azure monitor opentelemetry exporter java in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/azure-monitor-opentelemetry-exporter-java to use it in all your projects, or to .claude/skills/azure-monitor-opentelemetry-exporter-java in one project.

Does Azure monitor opentelemetry exporter java run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Azure monitor opentelemetry exporter java?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Azure monitor opentelemetry exporter java?

The closest alternatives to Azure monitor opentelemetry exporter java are Gem devops guidelines, AWS cost optimize, AWS cdk python setup, Azure smart city iot solution builder and AWS resource health diagnose.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from microsoft/skills

  1. Finds AKS scheduling, bin-packing, node scaling and storage cost inefficiencies

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  2. Diagnoses AKS GPU and KAITO incidents using read-only cluster evidence

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  3. Matches exact AKS error signatures to documented fixes, with citations and read-only

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  4. Guides bounded packet captures on AKS nodes and Azure network evidence collection

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  5. Investigates live AKS incidents read-only, tracing pod, node, network and quota failures

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  6. Builds Azure portal deep links to the blade that performs a given operation

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure

Alternatives to Azure monitor opentelemetry exporter java

  1. A DevOps checklist for deploys, Docker, Kubernetes, CI/CD, rollback and mobile releases

    • Open source
    • 41.3K GitHub stars
    • Cloud and infrastructure
  2. Finds AWS savings in IaC and live resources and files GitHub issues for each fix

    • Open source
    • 41.3K GitHub stars
    • Cloud and infrastructure
  3. Walks through setting up an AWS CDK Python project from prerequisites to first deploy

    • Open source
    • 41.3K GitHub stars
    • Cloud and infrastructure
  4. Diagnoses one AWS resource's health from CloudWatch data and drafts a remediation plan

    • Open source
    • 41.3K GitHub stars
    • Cloud and infrastructure
  5. Runs the SWA CLI to set up, test locally and deploy Azure Static Web Apps

    • Open source
    • 41.3K GitHub stars
    • Cloud and infrastructure