# Apache Struts

<!-- llms-txt-link: /llms.txt -->

> OpenTelemetry Java agent instrumentation

This instrumentation enriches HTTP server spans with route information, and enables controller spans for Apache Struts 2 actions (controller spans are disabled by default).

- **Name**: `struts-2.3`
- **Scope**: `io.opentelemetry.struts-2.3`
- **Target versions**: `org.apache.struts:struts2-core:[2.1.0,7)`
- **Library**: https://struts.apache.org/

## Telemetry

- **Span attributes**: `code.function`, `code.namespace`

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `otel.instrumentation.common.experimental.controller-telemetry.enabled` | boolean | false | Enables the creation of experimental controller spans. |

## Data

- **JSON**: [/data/javaagent/instrumentations/struts-2.3/struts-2.3-8bd21c21f624.json](/data/javaagent/instrumentations/struts-2.3/struts-2.3-8bd21c21f624.json)
- **Explore**: [/java-agent/instrumentation/struts-2.3](/java-agent/instrumentation/struts-2.3)
