{"version":3,"file":"semconv.cjs","names":[],"sources":["../src/semconv.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * The network IO operation direction.\n *\n * @example transmit\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_NETWORK_IO_DIRECTION = 'network.io.direction' as const;\n\n/**\n * Deprecated, use `cpu.mode` instead.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n *\n * @deprecated Replaced by `cpu.mode`.\n */\nexport const ATTR_PROCESS_CPU_STATE = 'process.cpu.state' as const;\n\n/**\n * Deprecated, use `cpu.logical_number` instead.\n *\n * @example 1\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_SYSTEM_CPU_LOGICAL_NUMBER =\n  'system.cpu.logical_number' as const;\n\n/**\n * Deprecated, use `cpu.mode` instead.\n *\n * @example idle\n * @example interrupt\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n *\n * @deprecated Replaced by `cpu.mode`.\n */\nexport const ATTR_SYSTEM_CPU_STATE = 'system.cpu.state' as const;\n\n/**\n * The device identifier\n *\n * @example (identifier)\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_SYSTEM_DEVICE = 'system.device' as const;\n\n/**\n * The memory state\n *\n * @example free\n * @example cached\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_SYSTEM_MEMORY_STATE = 'system.memory.state' as const;\n\n/**\n * Total CPU seconds broken down by different states.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_PROCESS_CPU_TIME = 'process.cpu.time' as const;\n\n/**\n * Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_PROCESS_CPU_UTILIZATION =\n  'process.cpu.utilization' as const;\n\n/**\n * The amount of physical memory in use.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_PROCESS_MEMORY_USAGE = 'process.memory.usage' as const;\n\n/**\n * Seconds each logical CPU spent on each mode.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_SYSTEM_CPU_TIME = 'system.cpu.time' as const;\n\n/**\n * For each logical CPU, the utilization is calculated as the change in cumulative CPU time (cpu.time) over a measurement interval, divided by the elapsed time.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_SYSTEM_CPU_UTILIZATION = 'system.cpu.utilization' as const;\n\n/**\n * Reports memory in use by state.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_SYSTEM_MEMORY_USAGE = 'system.memory.usage' as const;\n\n/**\n * TODO.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_SYSTEM_MEMORY_UTILIZATION =\n  'system.memory.utilization' as const;\n\n/**\n * Count of network errors detected.\n *\n * @note Measured as:\n *\n *   - Linux: the `errs` column in `/proc/net/dev` ([source](https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html)).\n *   - Windows: [`InErrors`/`OutErrors`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2)\n *     from [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2).\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_SYSTEM_NETWORK_ERRORS = 'system.network.errors' as const;\n\n/**\n * TODO.\n *\n * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const METRIC_SYSTEM_NETWORK_IO = 'system.network.io' as const;\n\n/**\n * Enum value \"receive\" for attribute {@link ATTR_NETWORK_IO_DIRECTION}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const NETWORK_IO_DIRECTION_VALUE_RECEIVE = 'receive' as const;\n\n/**\n * Enum value \"transmit\" for attribute {@link ATTR_NETWORK_IO_DIRECTION}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const NETWORK_IO_DIRECTION_VALUE_TRANSMIT = 'transmit' as const;\n\n/**\n * Enum value \"system\" for attribute {@link ATTR_PROCESS_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const PROCESS_CPU_STATE_VALUE_SYSTEM = 'system' as const;\n\n/**\n * Enum value \"user\" for attribute {@link ATTR_PROCESS_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const PROCESS_CPU_STATE_VALUE_USER = 'user' as const;\n\n/**\n * Enum value \"idle\" for attribute {@link ATTR_SYSTEM_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_CPU_STATE_VALUE_IDLE = 'idle' as const;\n\n/**\n * Enum value \"interrupt\" for attribute {@link ATTR_SYSTEM_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_CPU_STATE_VALUE_INTERRUPT = 'interrupt' as const;\n\n/**\n * Enum value \"nice\" for attribute {@link ATTR_SYSTEM_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_CPU_STATE_VALUE_NICE = 'nice' as const;\n\n/**\n * Enum value \"system\" for attribute {@link ATTR_SYSTEM_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_CPU_STATE_VALUE_SYSTEM = 'system' as const;\n\n/**\n * Enum value \"user\" for attribute {@link ATTR_SYSTEM_CPU_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_CPU_STATE_VALUE_USER = 'user' as const;\n\n/**\n * Enum value \"free\" for attribute {@link ATTR_SYSTEM_MEMORY_STATE}.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_MEMORY_STATE_VALUE_FREE = 'free' as const;\n\n/**\n * Enum value \"used\" for attribute {@link ATTR_SYSTEM_MEMORY_STATE}.\n *\n * Actual used virtual memory in bytes.\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const SYSTEM_MEMORY_STATE_VALUE_USED = 'used' as const;\n"],"mappings":";;;;;;;;AAkBA,MAAa,4BAA4B;;;;;;;;AASzC,MAAa,yBAAyB;;;;;;;;AAStC,MAAa,iCACX;;;;;;;;;;;AAYF,MAAa,wBAAwB;;;;;;;;AASrC,MAAa,qBAAqB;;;;;;;;;AAUlC,MAAa,2BAA2B;;;;;;AAOxC,MAAa,0BAA0B;;;;;;AAOvC,MAAa,iCACX;;;;;;AAOF,MAAa,8BAA8B;;;;;;AAO3C,MAAa,yBAAyB;;;;;;AAOtC,MAAa,gCAAgC;;;;;;AAO7C,MAAa,6BAA6B;;;;;;AAO1C,MAAa,mCACX;;;;;;;;;;;;AAaF,MAAa,+BAA+B;;;;;;AAO5C,MAAa,2BAA2B;;;;;;AAOxC,MAAa,qCAAqC;;;;;;AAOlD,MAAa,sCAAsC;;;;;;AAOnD,MAAa,iCAAiC;;;;;;AAO9C,MAAa,+BAA+B;;;;;;AAO5C,MAAa,8BAA8B;;;;;;AAO3C,MAAa,mCAAmC;;;;;;AAOhD,MAAa,8BAA8B;;;;;;AAO3C,MAAa,gCAAgC;;;;;;AAO7C,MAAa,8BAA8B;;;;;;AAO3C,MAAa,iCAAiC;;;;;;;;AAS9C,MAAa,iCAAiC"}