# Ollygarden otel java setup

> Ollygarden otel java setup is an open-source agent skill for developer tools. Sets up OpenTelemetry in Java services with a checklist for setup path and telemetry. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ollygarden/skills/tree/main/deprecated/ollygarden-otel-java-setup
- **Repository:** https://github.com/ollygarden/skills
- **GitHub stars:** 5
- **License:** Apache-2.0
- **Skill name:** ollygarden-otel-java-setup
- **Collection:** https://github.com/ollygarden/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through adding OpenTelemetry to a Java project. It starts with a decision between the Javaagent, the Spring Boot Starter and manual autoconfigure, then gives the Maven BOM declarations that match each path. The checklist asks the agent to strip query strings from exported HTTP spans with a span processor, give in-memory databases a stable name so span names stay bounded, and keep startup database work from producing detached root spans.

The skill also covers declarative YAML configuration and how it interacts with standard OTEL_* environment variables, including substitution patterns for service name, resource attributes and the OTLP endpoint. It asks for a verification report with observed evidence for each checklist item, such as a marker value sent in a request and inspected in the exported spans. It also warns about agent jar and config path drift between image layers and deployment manifests.

The skill is Maven and Java oriented and refers to other skills for detailed mechanics. It is marked deprecated in its repository.

## When your agent uses it

> Ollygarden's recommended pattern for setting up OpenTelemetry in Java services. Covers the Javaagent vs Spring Boot Starter vs manual autoconfigure decision-making, the Maven BOM dependency pattern, and the setup checklist (no query strings in telemetry, startup DB span hygiene, declarative YAML config, standard OTEL_* env vars honored). Use when adding OTel to a Java project, choosing a setup path, or reviewing dependency declarations. Triggers on "java otel setup", "javaagent vs starter", "opentelemetry-bom", "url.query", "query parameter PII".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ollygarden/skills/tree/HEAD/deprecated/ollygarden-otel-java-setup)
- [License: Apache-2.0](https://github.com/ollygarden/skills/tree/HEAD/deprecated/ollygarden-otel-java-setup)

## Features

- **Setup path selection:** Guides choosing between the Javaagent, Spring Boot Starter and manual autoconfigure based on whether zero-code instrumentation is enough.
- **Maven BOM declarations:** Provides dependency management snippets for the OpenTelemetry BOM and instrumentation BOM.
- **Query string stripping:** Explains how to remove URL query strings from exported spans so user input is not captured.
- **Startup span hygiene:** Covers stable naming for in-memory databases and handling of parentless startup database spans.
- **Declarative YAML configuration:** Describes replacing scattered otel properties with one declarative configuration file per setup path.
- **Standard environment variable support:** Shows how to keep OTEL_* variables effective when a YAML file is active.
- **Verification report template:** Asks for observed evidence per checklist item, such as exported span excerpts and config changes.

## Good for

- Add OpenTelemetry to a Spring Boot service without the Javaagent
- Choose between the Javaagent and manual SDK setup for a Java service
- Review Maven dependency declarations for OpenTelemetry version alignment
- Stop query string parameters from appearing in exported HTTP spans
- Make OTEL_SERVICE_NAME and resource attributes take effect with a YAML config

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/ollygarden-otel-java-setup` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ollygarden-otel-java-setup &&
cp -R "$tmp/deprecated/ollygarden-otel-java-setup" ~/.claude/skills/ollygarden-otel-java-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ollygarden-otel-java-setup` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ollygarden-otel-java-setup` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ollygarden-otel-java-setup &&
cp -R "$tmp/deprecated/ollygarden-otel-java-setup" ~/.agents/skills/ollygarden-otel-java-setup &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ollygarden-otel-java-setup` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ollygarden-otel-java-setup` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ollygarden-otel-java-setup &&
cp -R "$tmp/deprecated/ollygarden-otel-java-setup" ~/.cursor/skills/ollygarden-otel-java-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ollygarden-otel-java-setup` inside it instead.

### Gemini CLI

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

```sh
gemini skills install https://github.com/ollygarden/skills.git --path deprecated/ollygarden-otel-java-setup
```

Or copy the folder to `~/.gemini/skills/ollygarden-otel-java-setup` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ollygarden-otel-java-setup`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ollygarden/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ollygarden-otel-java-setup &&
cp -R "$tmp/deprecated/ollygarden-otel-java-setup" ~/.copilot/skills/ollygarden-otel-java-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ollygarden-otel-java-setup` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ollygarden/skills.git
```

Then copy `skills/deprecated/ollygarden-otel-java-setup` into your agent's skills folder as `ollygarden-otel-java-setup`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which Java setup paths does the skill cover?

It covers the Javaagent with declarative config, the Spring Boot Starter, and manual autoconfigure for plain Java.

### Does the skill change how query strings are handled by default?

It instructs the agent to strip url.query and url.full from exported spans in a SpanProcessor or Collector processor, because the instrumentation exports them by default.

### Which tools or files does the skill rely on?

It refers to the otel-java and ollygarden-otel-declarative-config skills for detailed reference material. The skill folder contains a single SKILL.md file and no scripts.

### Is Ollygarden otel java setup still maintained?

The repository path marks it as deprecated.

### How do I install Ollygarden otel java setup in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ollygarden-otel-java-setup to use it in all your projects, or to .claude/skills/ollygarden-otel-java-setup in one project.

### Does Ollygarden otel java setup 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 Ollygarden otel java setup?

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 Ollygarden otel java setup?

The closest alternatives to Ollygarden otel java setup are Ollygarden otel js setup, Ollygarden otel manual instrumentation, Ollygarden otel SDK setup, Ollygarden otel go setup and Ollygarden otel instrumentation planning.

## Where this comes from

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

## Alternatives

- [Ollygarden otel js setup](https://ai-powered.com/skills/ollygarden-otel-js-setup): Ollygarden otel js setup is an open-source agent skill for developer tools.
- [Ollygarden otel manual instrumentation](https://ai-powered.com/skills/ollygarden-otel-manual-instrumentation): Ollygarden otel manual instrumentation is an open-source agent skill for developer tools.
- [Ollygarden otel SDK setup](https://ai-powered.com/skills/ollygarden-otel-sdk-setup): Ollygarden otel SDK setup is an open-source agent skill for developer tools.
- [Ollygarden otel go setup](https://ai-powered.com/skills/ollygarden-otel-go-setup): Ollygarden otel go setup is an open-source agent skill for developer tools.
- [Ollygarden otel instrumentation planning](https://ai-powered.com/skills/ollygarden-otel-instrumentation-planning): Ollygarden otel instrumentation planning is an open-source agent skill for developer tools.
- [Ollygarden otel declarative config](https://ai-powered.com/skills/ollygarden-otel-declarative-config): Ollygarden otel declarative config is an open-source agent skill for developer tools.
- [Ollygarden otel auto instrumentation](https://ai-powered.com/skills/ollygarden-otel-auto-instrumentation): Ollygarden otel auto instrumentation is an open-source agent skill for developer tools.
- [Spring observability](https://ai-powered.com/skills/spring-observability): Spring observability is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ollygarden-otel-java-setup
