# Spring WebMVC

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

> OpenTelemetry Java agent instrumentation

This instrumentation provides a library integration for Spring WebMVC controllers, that enables the creation of HTTP server spans and metrics for requests processed by the Spring servlet container.

- **Name**: `spring-webmvc-5.3`
- **Scope**: `io.opentelemetry.spring-webmvc-5.3`
- **Library**: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/servlet/mvc/package-summary.html

## Telemetry

- **Metrics**: `http.server.request.duration`
- **Span attributes**: `client.address`, `error.type`, `http.request.method`, `http.request.method_original`, `http.response.status_code`, `http.route`, `network.peer.address`, `network.peer.port`, `network.protocol.version`, `server.address`, `server.port`, `url.path`, `url.query`, `url.scheme`, `user_agent.original`

## Data

- **JSON**: [/data/javaagent/instrumentations/spring-webmvc-5.3/spring-webmvc-5.3-ca9d312b0b27.json](/data/javaagent/instrumentations/spring-webmvc-5.3/spring-webmvc-5.3-ca9d312b0b27.json)
- **Explore**: [/java-agent/instrumentation/spring-webmvc-5.3](/java-agent/instrumentation/spring-webmvc-5.3)
