Skip to main content

Interface: HttpAttributes

@arolariu/website


@arolariu/website / instrumentation.server / HttpAttributes

Interface: HttpAttributes

Defined in: instrumentation.server.ts:140

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:144

HTTP request method


http.status_code

http.status_code: number

Defined in: instrumentation.server.ts:149

HTTP response status code


http.route?

optional http.route?: string

Defined in: instrumentation.server.ts:154

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


http.url?

optional http.url?: string

Defined in: instrumentation.server.ts:159

Full HTTP request URL


http.target?

optional http.target?: string

Defined in: instrumentation.server.ts:164

HTTP request target (path + query string)


server.address?

optional server.address?: string

Defined in: instrumentation.server.ts:169

Server address (host)


client.address?

optional client.address?: string

Defined in: instrumentation.server.ts:174

Client IP address


http.user_agent?

optional http.user_agent?: string

Defined in: instrumentation.server.ts:179

User agent string

// was this page useful?