Skip to main content

Interface: HttpAttributes

@arolariu/website


@arolariu/website / instrumentation.server / HttpAttributes

Interface: HttpAttributes

Defined in: instrumentation.server.ts:142

Standard semantic attribute keys for HTTP operations.

See

https://opentelemetry.io/docs/specs/semconv/http/

Properties

http.method

http.method: HttpMethod

Defined in: instrumentation.server.ts:146

HTTP request method


http.status_code

http.status_code: number

Defined in: instrumentation.server.ts:151

HTTP response status code


http.route?

optional http.route?: string

Defined in: instrumentation.server.ts:156

HTTP route pattern (e.g., "/api/users/:id")


http.url?

optional http.url?: string

Defined in: instrumentation.server.ts:161

Full HTTP request URL


http.target?

optional http.target?: string

Defined in: instrumentation.server.ts:166

HTTP request target (path + query string)


server.address?

optional server.address?: string

Defined in: instrumentation.server.ts:171

Server address (host)


client.address?

optional client.address?: string

Defined in: instrumentation.server.ts:176

Client IP address


http.user_agent?

optional http.user_agent?: string

Defined in: instrumentation.server.ts:181

User agent string

// was this page useful?