UNPKG

autotel

Version:
24 lines (22 loc) 885 B
type Headers = Record<string, string | string[] | undefined>; interface UserAgentAttributes { 'user_agent.raw': string; 'user_agent.browser'?: string; 'user_agent.os'?: string; 'user_agent.device'?: string; } declare function userAgent(headers: Headers): UserAgentAttributes | undefined; interface GeoAttributes { 'geo.country'?: string; 'geo.region'?: string; 'geo.city'?: string; 'geo.latitude'?: string; 'geo.longitude'?: string; } declare function geo(headers: Headers): GeoAttributes | undefined; interface RequestSizeAttributes { 'http.request.body.size'?: number; 'http.response.body.size'?: number; } declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined; export { type GeoAttributes, type RequestSizeAttributes, type UserAgentAttributes, geo, requestSize, userAgent };