# ActiveJ

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

> OpenTelemetry Java agent instrumentation

This instrumentation enables HTTP server spans and HTTP server metrics for the ActiveJ HTTP server.

- **Name**: `activej-http-6.0`
- **Scope**: `io.opentelemetry.activej-http-6.0`
- **Target versions**: `io.activej:activej-http:[6.0,)`
- **Library**: https://activej.io/

## Telemetry

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

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `otel.instrumentation.http.known-methods` | list | CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE | Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as `_OTHER`. |
| `otel.instrumentation.http.server.capture-request-headers` | list |  | List of HTTP request headers to capture in HTTP server telemetry. |
| `otel.instrumentation.http.server.capture-response-headers` | list |  | List of HTTP response headers to capture in HTTP server telemetry. |
| `otel.instrumentation.http.server.emit-experimental-telemetry` | boolean | false | Enable the capture of experimental HTTP server telemetry. Adds the `http.request.body.size` and `http.response.body.size` attributes to spans, and records `http.server.request.body.size` and `http.server.response.body.size` metrics. |

## Data

- **JSON**: [/data/javaagent/instrumentations/activej-http-6.0/activej-http-6.0-af573ab9c645.json](/data/javaagent/instrumentations/activej-http-6.0/activej-http-6.0-af573ab9c645.json)
- **Explore**: [/java-agent/instrumentation/activej-http-6.0](/java-agent/instrumentation/activej-http-6.0)
