Spring WebMVC
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
When default
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
http.server.request.duration | histogram | HISTOGRAM | s | Duration of HTTP server requests. |
| Metric | Attributes |
|---|---|
http.server.request.duration | http.request.method (STRING), http.response.status_code (LONG), http.route (STRING), network.protocol.version (STRING), url.scheme (STRING) |
Spans
| Span kind | Attributes |
|---|---|
| SERVER | client.address (STRING), error.type (STRING), http.request.method (STRING), http.request.method_original (STRING), http.response.status_code (LONG), http.route (STRING), network.peer.address (STRING), network.peer.port (LONG), network.protocol.version (STRING), server.address (STRING), server.port (LONG), url.path (STRING), url.query (STRING), url.scheme (STRING), user_agent.original (STRING) |