Official agent skill

Azure Monitor Opentelemetry Exporter Java

by microsoft in microsoft/skills

Azure Monitor OpenTelemetry Exporter for Java. An agent skill from microsoft/skills.

OfficialMITAuto-check passedDevOps & Cloud

Install Azure Monitor Opentelemetry Exporter Java

skills CLI
$ npx skills add microsoft/skills --skill azure-monitor-opentelemetry-exporter-java -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/skills azure-monitor-opentelemetry-exporter-java --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java .claude/skills/azure-monitor-opentelemetry-exporter-java && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
azure-monitor-opentelemetry-exporter-java
GitHub stars
3.1k
Used in
5 other repos
Token cost
~2.2k tokens
SKILL.md length
218 words
Files
2 (incl. references)
Skills in repo
150
Repo updated
First seen
Licence
MIT

At a glance

Azure Monitor OpenTelemetry Exporter for Java. An agent skill from microsoft/skills.

  • Works in 2 steps: Replace dependency → Update initialization code per Migration…
  • Tasks that involve Observability
  • SKILL.md covers Installation (Deprecated), Recommended: Use Autoconfigure…, Environment Variables and Basic Setup with Autoconfigure…, plus 10 more sections
  • Reaches xxx.in.applicationinsights.azure.com

What it does

Azure Monitor Opentelemetry Exporter Java is an agent skill from microsoft/skills, published by the product's own GitHub organization. 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.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/examples.md`).

It sits in DevOps & Cloud, covering Observability. It works with Azure Monitor, OpenTelemetry, Java and Microsoft Azure. The repository describes itself as: Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Observability

Example prompts

  • “AzureMonitorExporter java”
  • “opentelemetry azure java”
  • “application insights java otel”
  • “/azure-monitor-opentelemetry-exporter-java”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Replace dependency
  2. Update initialization code per Migration Guide

What it can do on your machine

Read from SKILL.md and the folder at commit d5741a1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java, xml and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • xxx.in.applicationinsights.azure.com

    Also links to:

    • github.com
    • central.sonatype.com
    • opentelemetry.io
    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Azure Monitor Opentelemetry Exporter Java loads about 2.2k tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 98 tokens; SKILL.md has 218 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/skills at commit d5741a1, republished under its MIT licence (© microsoft). 218 words, ~2,189 tokens.

Download SKILL.mdSave it as .claude/skills/azure-monitor-opentelemetry-exporter-java/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
azure-monitor-opentelemetry-exporter-java
description
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.
license
MIT
metadata.author
Microsoft
metadata.version
1.0.0
metadata.package
com.azure:azure-monitor-opentelemetry-exporter

Azure Monitor OpenTelemetry Exporter for Java

⚠️ DEPRECATION NOTICE: This package is deprecated. Migrate to azure-monitor-opentelemetry-autoconfigure.

See Migration Guide for detailed instructions.

Export OpenTelemetry telemetry data to Azure Monitor / Application Insights.

Installation (Deprecated)

xml
<dependency>
    <groupId>com.azure</groupId>
    <artifactId>azure-monitor-opentelemetry-exporter</artifactId>
    <version>1.0.0-beta.x</version>
</dependency>
xml
<dependency>
    <groupId>com.azure</groupId>
    <artifactId>azure-monitor-opentelemetry-autoconfigure</artifactId>
    <version>LATEST</version>
</dependency>

Environment Variables

bash
APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=xxx;IngestionEndpoint=https://xxx.in.applicationinsights.azure.com/
Using Environment Variable
java
import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk;
import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder;
import io.opentelemetry.api.OpenTelemetry;
import com.azure.monitor.opentelemetry.exporter.AzureMonitorExporter;

// Connection string from APPLICATIONINSIGHTS_CONNECTION_STRING env var
AutoConfiguredOpenTelemetrySdkBuilder sdkBuilder = AutoConfiguredOpenTelemetrySdk.builder();
AzureMonitorExporter.customize(sdkBuilder);
OpenTelemetry openTelemetry = sdkBuilder.build().getOpenTelemetrySdk();
With Explicit Connection String
java
AutoConfiguredOpenTelemetrySdkBuilder sdkBuilder = AutoConfiguredOpenTelemetrySdk.builder();
AzureMonitorExporter.customize(sdkBuilder, "{connection-string}");
OpenTelemetry openTelemetry = sdkBuilder.build().getOpenTelemetrySdk();

Creating Spans

java
import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.context.Scope;

// Get tracer
Tracer tracer = openTelemetry.getTracer("com.example.myapp");

// Create span
Span span = tracer.spanBuilder("myOperation").startSpan();

try (Scope scope = span.makeCurrent()) {
    // Your application logic
    doWork();
} catch (Throwable t) {
    span.recordException(t);
    throw t;
} finally {
    span.end();
}

Adding Span Attributes

java
import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.api.common.Attributes;

Span span = tracer.spanBuilder("processOrder")
    .setAttribute("order.id", "12345")
    .setAttribute("customer.tier", "premium")
    .startSpan();

try (Scope scope = span.makeCurrent()) {
    // Add attributes during execution
    span.setAttribute("items.count", 3);
    span.setAttribute("total.amount", 99.99);
    
    processOrder();
} finally {
    span.end();
}

Custom Span Processor

java
import io.opentelemetry.sdk.trace.SpanProcessor;
import io.opentelemetry.sdk.trace.ReadWriteSpan;
import io.opentelemetry.sdk.trace.ReadableSpan;
import io.opentelemetry.context.Context;

private static final AttributeKey<String> CUSTOM_ATTR = AttributeKey.stringKey("custom.attribute");

SpanProcessor customProcessor = new SpanProcessor() {
    @Override
    public void onStart(Context context, ReadWriteSpan span) {
        // Add custom attribute to every span
        span.setAttribute(CUSTOM_ATTR, "customValue");
    }

    @Override
    public boolean isStartRequired() {
        return true;
    }

    @Override
    public void onEnd(ReadableSpan span) {
        // Post-processing if needed
    }

    @Override
    public boolean isEndRequired() {
        return false;
    }
};

// Register processor
AutoConfiguredOpenTelemetrySdkBuilder sdkBuilder = AutoConfiguredOpenTelemetrySdk.builder();
AzureMonitorExporter.customize(sdkBuilder);

sdkBuilder.addTracerProviderCustomizer(
    (sdkTracerProviderBuilder, configProperties) -> 
        sdkTracerProviderBuilder.addSpanProcessor(customProcessor)
);

OpenTelemetry openTelemetry = sdkBuilder.build().getOpenTelemetrySdk();

Nested Spans

java
public void parentOperation() {
    Span parentSpan = tracer.spanBuilder("parentOperation").startSpan();
    try (Scope scope = parentSpan.makeCurrent()) {
        childOperation();
    } finally {
        parentSpan.end();
    }
}

public void childOperation() {
    // Automatically links to parent via Context
    Span childSpan = tracer.spanBuilder("childOperation").startSpan();
    try (Scope scope = childSpan.makeCurrent()) {
        // Child work
    } finally {
        childSpan.end();
    }
}

Recording Exceptions

java
Span span = tracer.spanBuilder("riskyOperation").startSpan();
try (Scope scope = span.makeCurrent()) {
    performRiskyWork();
} catch (Exception e) {
    span.recordException(e);
    span.setStatus(StatusCode.ERROR, e.getMessage());
    throw e;
} finally {
    span.end();
}

Metrics (via OpenTelemetry)

java
import io.opentelemetry.api.metrics.Meter;
import io.opentelemetry.api.metrics.LongCounter;
import io.opentelemetry.api.metrics.LongHistogram;

Meter meter = openTelemetry.getMeter("com.example.myapp");

// Counter
LongCounter requestCounter = meter.counterBuilder("http.requests")
    .setDescription("Total HTTP requests")
    .setUnit("requests")
    .build();

requestCounter.add(1, Attributes.of(
    AttributeKey.stringKey("http.method"), "GET",
    AttributeKey.longKey("http.status_code"), 200L
));

// Histogram
LongHistogram latencyHistogram = meter.histogramBuilder("http.latency")
    .setDescription("Request latency")
    .setUnit("ms")
    .ofLongs()
    .build();

latencyHistogram.record(150, Attributes.of(
    AttributeKey.stringKey("http.route"), "/api/users"
));

Key Concepts

ConceptDescription
Connection StringApplication Insights connection string with instrumentation key
TracerCreates spans for distributed tracing
SpanRepresents a unit of work with timing and attributes
SpanProcessorIntercepts span lifecycle for customization
ExporterSends telemetry to Azure Monitor

Migration to Autoconfigure

The azure-monitor-opentelemetry-autoconfigure package provides:

  • Automatic instrumentation of common libraries
  • Simplified configuration
  • Better integration with OpenTelemetry SDK
Migration Steps
  1. Replace dependency:

    xml
    <!-- Remove -->
    <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-monitor-opentelemetry-exporter</artifactId>
    </dependency>
    
    <!-- Add -->
    <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-monitor-opentelemetry-autoconfigure</artifactId>
    </dependency>
  2. Update initialization code per Migration Guide

Best Practices

  1. Use autoconfigure — Migrate to azure-monitor-opentelemetry-autoconfigure
  2. Set meaningful span names — Use descriptive operation names
  3. Add relevant attributes — Include contextual data for debugging
  4. Handle exceptions — Always record exceptions on spans
  5. Use semantic conventions — Follow OpenTelemetry semantic conventions
  6. End spans in finally — Ensure spans are always ended
  7. Use try-with-resources — Scope management with try-with-resources pattern

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java of microsoft/skills.

  • SKILL.md
  • references/examples.md

Open the folder on GitHubat commit d5741a1

Used in 5 other repositories

We found 15 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 5 other GitHub owners. This page covers the copy in microsoft/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Azure Monitor Opentelemetry Exporter Java next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Azure Monitor Opentelemetry Exporter Java compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Azure Monitor Opentelemetry Exporter Java this skillmicrosoft/skills3.1k5 repos~2.2kAutomated safety check: PassMIT
Azure Microsoft OpentelemetryMicrosoftDocs/Agent-Skills776—~555Automated safety check: PassCC-BY-4.0
Azure Monitor Opentelemetry Exporter Pyaiskillstore/marketplace4334 repos~1.6kAutomated safety check: PassNone
Deploying Scalable Agentsmicrosoft/ai-agents-for-beginners77k—~1.5kAutomated safety check: PassMIT
Deploying Scalable Agentsmicrosoft/ai-agents-for-beginners77k—~1.6kAutomated safety check: PassMIT
Database Observabilitygrafana/skills282—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Azure Microsoft Opentelemetry

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Microsoft Opentelemetry development including configuration.

    776 GitHub stars~555 tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Azure Monitor OpenTelemetry Exporter for Python. An agent skill from aiskillstore/marketplace.

    433 GitHub starsUsed in 4 repos~1.6k tokens
    DevOps & CloudAuto-check passed
  • Deploying Scalable Agents

    microsoft/ai-agents-for-beginners

    Official

    Take a working agent prototype to a scalable, observable production deployment on Microsoft Foundry.

    77k GitHub stars~1.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Deploying Scalable Agents

    microsoft/ai-agents-for-beginners

    Official

    Take one working agent prototype go scalable, observable production deployment for Microsoft Foundry.

    77k GitHub stars~1.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Official

    Set up Grafana Cloud Database Observability for MySQL and PostgreSQL — enables pgstatstatements / Performance Schema, creates a least-privilege monitoring user, configures the…

    282 GitHub stars~1.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Opentelemetry

    grafana/skills

    Official

    Instrument any app with OpenTelemetry and ship metrics / logs / traces to Grafana Cloud or self-hosted Mimir / Loki / Tempo / Pyroscope.

    282 GitHub stars~1.7k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

More from microsoft/skills

All 150 skills in this repo
  • Official

    Covers producer, consumer, and checkpoint-store setup for Azure Event Hubs streaming in Python, with Entra ID auth and partition targeting.

    3.1k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Official

    Builds podcast-style audio narration from text with Azure OpenAI's GPT Realtime Mini over WebSocket, from a Python FastAPI backend to a React player.

    3.1k GitHub starsUsed in 1 repo~947 tokens
    Auto-check passed
  • Frontend UI Dark TS

    microsoft/skills

    Official

    Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations.

    3.1k GitHub starsUsed in 5 repos~3.6k tokens
    Auto-check passed
  • Pydantic Models Py

    microsoft/skills

    Official

    Create Pydantic models following the multi-model pattern with Base, Create, Update, Response, and InDB variants.

    3.1k GitHub starsUsed in 5 repos~496 tokens
    Auto-check passed
  • Official

    Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.

    3.1k GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Skill Creator

    microsoft/skills

    Official

    Guide for creating effective skills for AI coding agents working with Azure SDKs and Microsoft Foundry services.

    3.1k GitHub starsUsed in 5 repos~17k tokens
    Auto-check passed

Categories

Questions about Azure Monitor Opentelemetry Exporter Java

What does Azure Monitor Opentelemetry Exporter Java do?

Azure Monitor OpenTelemetry Exporter for Java. An agent skill from microsoft/skills. Azure Monitor Opentelemetry Exporter Java is an agent skill from microsoft/skills, published by the product's own GitHub organization. Azure Monitor OpenTelemetry Exporter for Java.

When should I use Azure Monitor Opentelemetry Exporter Java?

Azure Monitor Opentelemetry Exporter Java fits situations like: tasks that involve Observability.

How do I install Azure Monitor Opentelemetry Exporter Java in Claude Code?

Run `npx skills add microsoft/skills --skill azure-monitor-opentelemetry-exporter-java -a claude-code`. Or copy the skill folder (.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java in microsoft/skills) into .claude/skills/azure-monitor-opentelemetry-exporter-java in your project. Claude Code loads it when a task matches its description.

How do I install Azure Monitor Opentelemetry Exporter Java in Codex?

Run `npx skills add microsoft/skills --skill azure-monitor-opentelemetry-exporter-java -a codex`. Or copy the skill folder (.github/plugins/azure-sdk-java/skills/azure-monitor-opentelemetry-exporter-java in microsoft/skills) into .agents/skills/azure-monitor-opentelemetry-exporter-java in your project. Codex loads it when a task matches its description.

Can I use Azure Monitor Opentelemetry Exporter Java in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/skills --skill azure-monitor-opentelemetry-exporter-java -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/azure-monitor-opentelemetry-exporter-java, .gemini/skills/azure-monitor-opentelemetry-exporter-java, .github/skills/azure-monitor-opentelemetry-exporter-java and .opencode/skills/azure-monitor-opentelemetry-exporter-java in your project.

What does Azure Monitor Opentelemetry Exporter Java need to run?

SKILL.md names no scripts, command-line tools or credentials: Azure Monitor Opentelemetry Exporter Java is instructions for the agent only.

Does Azure Monitor Opentelemetry Exporter Java access the network?

SKILL.md names 5 domains. In commands or code: xxx.in.applicationinsights.azure.com; the agent is likely to contact it when it follows the instructions. As links in the text: github.com, central.sonatype.com, opentelemetry.io and learn.microsoft.com. This is read from the text; nothing was executed.

Is Azure Monitor Opentelemetry Exporter Java safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Azure Monitor Opentelemetry Exporter Java use?

Azure Monitor Opentelemetry Exporter Java is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Azure Monitor Opentelemetry Exporter Java use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Azure Monitor Opentelemetry Exporter Java?

Skills that share tags, products or a category with Azure Monitor Opentelemetry Exporter Java: Azure Microsoft Opentelemetry (MicrosoftDocs/Agent-Skills, 776 stars), Azure Monitor Opentelemetry Exporter Py (aiskillstore/marketplace, 433 stars), Deploying Scalable Agents (microsoft/ai-agents-for-beginners, 77k stars) and Deploying Scalable Agents (microsoft/ai-agents-for-beginners, 77k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Azure Monitor Opentelemetry Exporter Java?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/skills, which has 3,097 GitHub stars. The repository holds 150 skills in this directory. The repository was last updated on October 9, 2026.

Source: microsoft/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.