This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/struts-2.3.md.

Apache Struts

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

OptionTypeDefaultDescription
otel.instrumentation.common.experimental.controller-telemetry.enabledbooleanfalseEnables the creation of experimental controller spans.

Data

  • JSON: /data/javaagent/instrumentations/struts-2.3/struts-2.3-8bd21c21f624.json
  • Explore: /java-agent/instrumentation/struts-2.3