UNPKG

@dash0/sdk-web

Version:

Dash0's Web SDK to collect telemetry from end-users' web browsers

72 lines (71 loc) 3.24 kB
export declare const SERVICE_NAME = "service.name"; export declare const SERVICE_VERSION = "service.version"; export declare const DEPLOYMENT_ENVIRONMENT_NAME = "deployment.environment.name"; export declare const DEPLOYMENT_NAME = "deployment.name"; export declare const DEPLOYMENT_ID = "deployment.id"; export declare const EVENT_NAME = "event.name"; export declare const WEB_EVENT_TITLE = "dash0.web.event.title"; export declare const WEB_EVENT_ID = "dash0.web.event.id"; export declare const PAGE_LOAD_ID = "page.load.id"; export declare const SESSION_ID = "session.id"; export declare const USER_AGENT = "user_agent.original"; export declare const BROWSER_TAB_ID = "browser.tab.id"; export declare const WINDOW_WIDTH = "browser.window.width"; export declare const WINDOW_HEIGHT = "browser.window.height"; export declare const NETWORK_CONNECTION_TYPE = "network.connection.subtype"; export declare const EXCEPTION_COMPONENT_STACK = "exception.component_stack"; export declare const USER_ID = "user.id"; export declare const USER_NAME = "user.name"; export declare const USER_FULL_NAME = "user.full_name"; export declare const USER_EMAIL = "user.email"; export declare const USER_HASH = "user.hash"; export declare const USER_ROLES = "user.roles"; export declare const EXCEPTION_MESSAGE = "exception.message"; export declare const EXCEPTION_TYPE = "exception.type"; export declare const EXCEPTION_STACKTRACE = "exception.stacktrace"; export declare const ERROR_TYPE = "error.type"; export declare const PAGE_URL_ATTR_PREFIX = "page"; export declare const URL_DOMAIN = "url.domain"; export declare const URL_FRAGMENT = "url.fragment"; export declare const URL_FULL = "url.full"; export declare const URL_PATH = "url.path"; export declare const URL_QUERY = "url.query"; export declare const URL_SCHEME = "url.scheme"; export declare const HTTP_REQUEST_METHOD = "http.request.method"; export declare const HTTP_REQUEST_METHOD_ORIGINAL = "http.request.method_original"; export declare const HTTP_REQUEST_HEADER = "http.request.header"; export declare const HTTP_RESPONSE_STATUS_CODE = "http.response.status_code"; export declare const HTTP_RESPONSE_HEADER = "http.response.header"; export declare const HTTP_RESPONSE_BODY_SIZE = "http.response.body.size"; export declare const EVENT_NAMES: { PAGE_VIEW: string; NAVIGATION_TIMING: string; WEB_VITAL: string; ERROR: string; }; export declare const SPAN_EVENT_NAME_EXCEPTION = "exception"; export declare const LOG_SEVERITIES: { UNSPECIFIED: number; TRACE: number; DEBUG: number; INFO: number; WARN: number; ERROR: number; FATAL: number; }; export type LOG_SEVERITY_TEXT = keyof typeof LOG_SEVERITIES; export type LOG_SEVERITY_NUMBER = (typeof LOG_SEVERITIES)[LOG_SEVERITY_TEXT]; export declare const PAGE_VIEW_TYPE = "type"; export declare const PAGE_VIEW_TYPE_VALUES: { INITIAL: number; VIRTUAL: number; }; export declare const PAGE_VIEW_CHANGE_STATE = "change_state"; export declare const PAGE_VIEW_CHANGE_STATE_VALUES: { PUSH: string; REPLACE: string; }; export declare const SPAN_STATUS_UNSET = 0; export declare const SPAN_STATUS_OK = 1; export declare const SPAN_STATUS_ERROR = 2; export declare const SPAN_KIND_CLIENT = 3;