/** * Copyright 2019, OpenCensus Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** Request URL host. E.g. example.com:779 */ export declare const ATTRIBUTE_HTTP_HOST: string; /** Request URL method. E.g. GET */ export declare const ATTRIBUTE_HTTP_METHOD: string; /** Request URL path. If empty - set to /. E.g. /users/25f4c31d */ export declare const ATTRIBUTE_HTTP_PATH: string; /** Matched request URL route. E.g. /users/:userID */ export declare const ATTRIBUTE_HTTP_ROUTE: string; /** Request user-agent. E.g. HTTPClient/1.2 */ export declare const ATTRIBUTE_HTTP_USER_AGENT: string; /** Response status code. E.g. 200 */ export declare const ATTRIBUTE_HTTP_STATUS_CODE: string; /** Absolute request URL. E.g. https://example.com:779/path/12314/?q=ddds#123 */ export declare const ATTRIBUTE_HTTP_URL: string; /** * The ALPH Protocol ID of the network protocol used to make the request. See: * https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-nexthopprotocol */ export declare const ATTRIBUTE_HTTP_NEXT_HOP_PROTOCOL: string; /** * The type of resource that initiated the HTTP request. See: * https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-initiatortype */ export declare const ATTRIBUTE_HTTP_INITIATOR_TYPE: string; /** * The total size of the response in bytes transferred. See * https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-transfersize */ export declare const ATTRIBUTE_HTTP_RESP_SIZE: string; /** * The size in bytes of the compressed response body. See * https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-encodedbodysize */ export declare const ATTRIBUTE_HTTP_RESP_ENCODED_BODY_SIZE: string; /** * The size in bytes of the uncompressed response body. See * https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-decodedbodysize */ export declare const ATTRIBUTE_HTTP_RESP_DECODED_BODY_SIZE: string; /** * The type of browser navigation. See * https://www.w3.org/TR/navigation-timing-2/#sec-performance-navigation-types */ export declare const ATTRIBUTE_NAV_TYPE: string; /** * Number of redirects since the last non-redirect navigation. See * https://www.w3.org/TR/navigation-timing-2/#dom-performancenavigationtiming-redirectcount */ export declare const ATTRIBUTE_NAV_REDIRECT_COUNT: string; /** * Attribute prefix for spans that are for "long tasks" (long JS event loops). * See https://www.w3.org/TR/longtasks/ */ export declare const LONG_TASK_PREFIX = "long_task."; /** * A JSON string of the `attribution` field of a long task timing. This gives * a little additional information about what on the page may have caused the * long task. */ export declare const ATTRIBUTE_LONG_TASK_ATTRIBUTION: string; /** * Attribute for spans to be related back to the initial load trace. */ export declare const ATTRIBUTE_INITIAL_LOAD_TRACE_ID = "initial_load_trace_id";