Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions instrumentation/httpurlconnection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ the following occurs: the response stream is fully read, the stream is closed,
- Name: Determined by the HTTP span name extractor (typically `HTTP {method}` or derived from the URL)
- Description: Client-side HTTP request
- Attributes (following OpenTelemetry [HTTP semantic conventions](https://opentelemetry.io/docs/specs/semconv/http/http-spans/)):
- `http.method` — request method (GET, POST, etc.)
- `http.url` — full URL
- `http.target`, `http.host`, `http.scheme` — parts of the request URL when available
- `http.status_code` — response status code
- `http.flavor` — protocol (e.g. `1.1`)
- `net.peer.name` — server host
- `net.peer.port` — server port
- Request and response headers captured according to configuration: `http.request.header.*` / `http.response.header.*`
- `http.request.method` — request method (GET, POST, etc.)
- `url.full` — full request URL
- `url.scheme`, `url.path`, `url.query` — parts of the request URL when available
- `http.response.status_code` — response status code
- `network.protocol.version` — protocol version (e.g. `1.1`, `2` for HTTP/2)
- `server.address` — logical server host
- `server.port` — logical server port
- `network.peer.address` / `network.peer.port` — connection endpoint, when available
- Request and response headers captured according to configuration: `http.request.header.<name>` / `http.response.header.<name>`

If the request throws an IOException, the span is ended and the exception is recorded.

Expand Down
15 changes: 8 additions & 7 deletions instrumentation/okhttp3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ are provided by the OkHttp attributes getter.
* Name: Determined by the HTTP span name extractor (typically `HTTP {method}` or derived from the URL)
* Description: Client-side HTTP request
* Common attributes (following OpenTelemetry HTTP semantic conventions):
* `http.method` — request method (GET, POST, etc.)
* `http.url` — full URL
* `http.status_code` — response status code
* `http.flavor` — protocol (e.g. `1.1`)
* `net.peer.name` — server host
* `net.peer.port` — server port
* Captured request/response headers per configuration
* `http.request.method` — request method (GET, POST, etc.)
* `url.full` — full request URL
* `http.response.status_code` — response status code
* `network.protocol.version` — protocol version (e.g. `1.1`, `2` for HTTP/2)
* `server.address` — logical server host
* `server.port` — logical server port
* `network.peer.address` / `network.peer.port` — connection endpoint, when available
* Captured request/response headers per configuration (`http.request.header.<name>` / `http.response.header.<name>`)

If a request fails, the span is ended and the error is recorded.

Expand Down
Loading