diff --git a/scripts/semconv/generate.sh b/scripts/semconv/generate.sh index 24435b92fca..1bbba1a3a02 100755 --- a/scripts/semconv/generate.sh +++ b/scripts/semconv/generate.sh @@ -7,9 +7,9 @@ ROOT_DIR="${SCRIPT_DIR}/../../" # Get latest version by running `git tag -l --sort=version:refname | tail -1` # ... in git@github.com:open-telemetry/semantic-conventions.git -SPEC_VERSION=v1.36.0 +SPEC_VERSION=v1.37.0 # ... in git@github.com:open-telemetry/weaver.git -GENERATOR_VERSION=v0.16.1 +GENERATOR_VERSION=v0.17.1 # When running on windows and you are getting references to ";C" (like Telemetry;C) # then this is an issue with the bash shell, so first run the following in your shell: diff --git a/scripts/semconv/templates/registry/ts-experimental/docstring.ts.j2 b/scripts/semconv/templates/registry/ts-experimental/docstring.ts.j2 index a4175726bb0..a622ea4f2c5 100644 --- a/scripts/semconv/templates/registry/ts-experimental/docstring.ts.j2 +++ b/scripts/semconv/templates/registry/ts-experimental/docstring.ts.j2 @@ -46,7 +46,7 @@ {% endif -%} {%- if member.deprecated %} - {%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated) -%} + {%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated.note) -%} {%- endif -%} {%- set enum_jsdoc = "Enum value " ~ member.value | print_member_value ~ " for attribute {@link ATTR_" ~ attribute.name | screaming_snake_case ~ "}." -%} diff --git a/scripts/semconv/templates/registry/ts-stable/docstring.ts.j2 b/scripts/semconv/templates/registry/ts-stable/docstring.ts.j2 index a4175726bb0..a622ea4f2c5 100644 --- a/scripts/semconv/templates/registry/ts-stable/docstring.ts.j2 +++ b/scripts/semconv/templates/registry/ts-stable/docstring.ts.j2 @@ -46,7 +46,7 @@ {% endif -%} {%- if member.deprecated %} - {%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated) -%} + {%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated.note) -%} {%- endif -%} {%- set enum_jsdoc = "Enum value " ~ member.value | print_member_value ~ " for attribute {@link ATTR_" ~ attribute.name | screaming_snake_case ~ "}." -%} diff --git a/semantic-conventions/CHANGELOG.md b/semantic-conventions/CHANGELOG.md index 49ed7e06da8..941b15629b0 100644 --- a/semantic-conventions/CHANGELOG.md +++ b/semantic-conventions/CHANGELOG.md @@ -11,6 +11,325 @@ All notable changes to the semantic-conventions package will be documented in th * feat: add `EVENT_*` exports for event names in Semantic Conventions [#5832](https://github.com/open-telemetry/opentelemetry-js/pull/5832) @trentm +* feat: update semantic conventions to v1.37.0 [#5879](https://github.com/open-telemetry/opentelemetry-js/pull/5879) @trentm + * Semantic Conventions v1.37.0: [changelog](https://github.com/open-telemetry/semantic-conventions/blob/main/CHANGELOG.md#v1370) | [latest docs](https://opentelemetry.io/docs/specs/semconv/) + * `@opentelemetry/semantic-conventions` (stable) changes: *2 added exports* + * `@opentelemetry/semantic-conventions/incubating` (unstable) changes: *1 exported value changed, 6 newly deprecated exports, 1 newly undeprecated export, 246 added exports* + +#### Stable changes in v1.37.0 + +
+2 added exports + +```js +EVENT_EXCEPTION // exception + +ATTR_ASPNETCORE_USER_IS_AUTHENTICATED // aspnetcore.user.is_authenticated +``` + +
+ +#### Unstable changes in v1.37.0 + +
+1 exported value changed + +```js +GEN_AI_SYSTEM_VALUE_AZ_AI_OPENAI // "azure.ai.openai" -> "az.ai.openai" +``` + +
+ +
+6 newly deprecated exports + +```js +ATTR_CONTAINER_RUNTIME // container.runtime: Replaced by `container.runtime.name`. +ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER // gen_ai.openai.request.service_tier: Replaced by `openai.request.service_tier`. +ATTR_GEN_AI_OPENAI_RESPONSE_SERVICE_TIER // gen_ai.openai.response.service_tier: Replaced by `openai.response.service_tier`. +ATTR_GEN_AI_OPENAI_RESPONSE_SYSTEM_FINGERPRINT // gen_ai.openai.response.system_fingerprint: Replaced by `openai.response.system_fingerprint`. +ATTR_GEN_AI_SYSTEM // gen_ai.system: Replaced by `gen_ai.provider.name`. +GEN_AI_SYSTEM_VALUE_XAI // xai: Replaced by `x_ai`. +``` + +
+ +
+1 newly undeprecated export + +```js +GEN_AI_SYSTEM_VALUE_AZ_AI_INFERENCE // az.ai.inference +``` + +
+ +
+246 added exports + +```js +METRIC_ASPNETCORE_AUTHENTICATION_AUTHENTICATE_DURATION // aspnetcore.authentication.authenticate.duration +METRIC_ASPNETCORE_AUTHENTICATION_CHALLENGES // aspnetcore.authentication.challenges +METRIC_ASPNETCORE_AUTHENTICATION_FORBIDS // aspnetcore.authentication.forbids +METRIC_ASPNETCORE_AUTHENTICATION_SIGN_INS // aspnetcore.authentication.sign_ins +METRIC_ASPNETCORE_AUTHENTICATION_SIGN_OUTS // aspnetcore.authentication.sign_outs +METRIC_ASPNETCORE_AUTHORIZATION_ATTEMPTS // aspnetcore.authorization.attempts +METRIC_ASPNETCORE_IDENTITY_SIGN_IN_AUTHENTICATE_DURATION // aspnetcore.identity.sign_in.authenticate.duration +METRIC_ASPNETCORE_IDENTITY_SIGN_IN_CHECK_PASSWORD_ATTEMPTS // aspnetcore.identity.sign_in.check_password_attempts +METRIC_ASPNETCORE_IDENTITY_SIGN_IN_SIGN_INS // aspnetcore.identity.sign_in.sign_ins +METRIC_ASPNETCORE_IDENTITY_SIGN_IN_SIGN_OUTS // aspnetcore.identity.sign_in.sign_outs +METRIC_ASPNETCORE_IDENTITY_SIGN_IN_TWO_FACTOR_CLIENTS_FORGOTTEN // aspnetcore.identity.sign_in.two_factor_clients_forgotten +METRIC_ASPNETCORE_IDENTITY_SIGN_IN_TWO_FACTOR_CLIENTS_REMEMBERED // aspnetcore.identity.sign_in.two_factor_clients_remembered +METRIC_ASPNETCORE_IDENTITY_USER_CHECK_PASSWORD_ATTEMPTS // aspnetcore.identity.user.check_password_attempts +METRIC_ASPNETCORE_IDENTITY_USER_CREATE_DURATION // aspnetcore.identity.user.create.duration +METRIC_ASPNETCORE_IDENTITY_USER_DELETE_DURATION // aspnetcore.identity.user.delete.duration +METRIC_ASPNETCORE_IDENTITY_USER_GENERATED_TOKENS // aspnetcore.identity.user.generated_tokens +METRIC_ASPNETCORE_IDENTITY_USER_UPDATE_DURATION // aspnetcore.identity.user.update.duration +METRIC_ASPNETCORE_IDENTITY_USER_VERIFY_TOKEN_ATTEMPTS // aspnetcore.identity.user.verify_token_attempts +METRIC_ASPNETCORE_MEMORY_POOL_ALLOCATED // aspnetcore.memory_pool.allocated +METRIC_ASPNETCORE_MEMORY_POOL_EVICTED // aspnetcore.memory_pool.evicted +METRIC_ASPNETCORE_MEMORY_POOL_POOLED // aspnetcore.memory_pool.pooled +METRIC_ASPNETCORE_MEMORY_POOL_RENTED // aspnetcore.memory_pool.rented + +METRIC_CONTAINER_FILESYSTEM_AVAILABLE // container.filesystem.available +METRIC_CONTAINER_FILESYSTEM_CAPACITY // container.filesystem.capacity +METRIC_CONTAINER_FILESYSTEM_USAGE // container.filesystem.usage + +METRIC_HW_BATTERY_CHARGE // hw.battery.charge +METRIC_HW_BATTERY_CHARGE_LIMIT // hw.battery.charge.limit +METRIC_HW_BATTERY_TIME_LEFT // hw.battery.time_left +METRIC_HW_CPU_SPEED // hw.cpu.speed +METRIC_HW_CPU_SPEED_LIMIT // hw.cpu.speed.limit +METRIC_HW_FAN_SPEED // hw.fan.speed +METRIC_HW_FAN_SPEED_LIMIT // hw.fan.speed.limit +METRIC_HW_FAN_SPEED_RATIO // hw.fan.speed_ratio +METRIC_HW_GPU_IO // hw.gpu.io +METRIC_HW_GPU_MEMORY_LIMIT // hw.gpu.memory.limit +METRIC_HW_GPU_MEMORY_USAGE // hw.gpu.memory.usage +METRIC_HW_GPU_MEMORY_UTILIZATION // hw.gpu.memory.utilization +METRIC_HW_GPU_UTILIZATION // hw.gpu.utilization +METRIC_HW_LOGICAL_DISK_LIMIT // hw.logical_disk.limit +METRIC_HW_LOGICAL_DISK_USAGE // hw.logical_disk.usage +METRIC_HW_LOGICAL_DISK_UTILIZATION // hw.logical_disk.utilization +METRIC_HW_MEMORY_SIZE // hw.memory.size +METRIC_HW_NETWORK_BANDWIDTH_LIMIT // hw.network.bandwidth.limit +METRIC_HW_NETWORK_BANDWIDTH_UTILIZATION // hw.network.bandwidth.utilization +METRIC_HW_NETWORK_IO // hw.network.io +METRIC_HW_NETWORK_PACKETS // hw.network.packets +METRIC_HW_NETWORK_UP // hw.network.up +METRIC_HW_PHYSICAL_DISK_ENDURANCE_UTILIZATION // hw.physical_disk.endurance_utilization +METRIC_HW_PHYSICAL_DISK_SIZE // hw.physical_disk.size +METRIC_HW_PHYSICAL_DISK_SMART // hw.physical_disk.smart +METRIC_HW_POWER_SUPPLY_LIMIT // hw.power_supply.limit +METRIC_HW_POWER_SUPPLY_USAGE // hw.power_supply.usage +METRIC_HW_POWER_SUPPLY_UTILIZATION // hw.power_supply.utilization +METRIC_HW_TAPE_DRIVE_OPERATIONS // hw.tape_drive.operations +METRIC_HW_TEMPERATURE // hw.temperature +METRIC_HW_TEMPERATURE_LIMIT // hw.temperature.limit +METRIC_HW_VOLTAGE // hw.voltage +METRIC_HW_VOLTAGE_LIMIT // hw.voltage.limit +METRIC_HW_VOLTAGE_NOMINAL // hw.voltage.nominal + +METRIC_K8S_NODE_FILESYSTEM_AVAILABLE // k8s.node.filesystem.available +METRIC_K8S_NODE_FILESYSTEM_CAPACITY // k8s.node.filesystem.capacity +METRIC_K8S_NODE_FILESYSTEM_USAGE // k8s.node.filesystem.usage +METRIC_K8S_POD_FILESYSTEM_AVAILABLE // k8s.pod.filesystem.available +METRIC_K8S_POD_FILESYSTEM_CAPACITY // k8s.pod.filesystem.capacity +METRIC_K8S_POD_FILESYSTEM_USAGE // k8s.pod.filesystem.usage +METRIC_K8S_POD_VOLUME_AVAILABLE // k8s.pod.volume.available +METRIC_K8S_POD_VOLUME_CAPACITY // k8s.pod.volume.capacity +METRIC_K8S_POD_VOLUME_INODE_COUNT // k8s.pod.volume.inode.count +METRIC_K8S_POD_VOLUME_INODE_FREE // k8s.pod.volume.inode.free +METRIC_K8S_POD_VOLUME_INODE_USED // k8s.pod.volume.inode.used +METRIC_K8S_POD_VOLUME_USAGE // k8s.pod.volume.usage + +METRIC_SYSTEM_NETWORK_PACKET_COUNT // system.network.packet.count +METRIC_SYSTEM_NETWORK_PACKET_DROPPED // system.network.packet.dropped + +EVENT_APP_JANK // app.jank +EVENT_APP_SCREEN_CLICK // app.screen.click +EVENT_APP_WIDGET_CLICK // app.widget.click +EVENT_AZ_RESOURCE_LOG // az.resource.log +EVENT_AZURE_RESOURCE_LOG // azure.resource.log +EVENT_BROWSER_WEB_VITAL // browser.web_vital +EVENT_DEVICE_APP_LIFECYCLE // device.app.lifecycle +EVENT_FEATURE_FLAG_EVALUATION // feature_flag.evaluation +EVENT_GEN_AI_ASSISTANT_MESSAGE // gen_ai.assistant.message +EVENT_GEN_AI_CHOICE // gen_ai.choice +EVENT_GEN_AI_CLIENT_INFERENCE_OPERATION_DETAILS // gen_ai.client.inference.operation.details +EVENT_GEN_AI_SYSTEM_MESSAGE // gen_ai.system.message +EVENT_GEN_AI_TOOL_MESSAGE // gen_ai.tool.message +EVENT_GEN_AI_USER_MESSAGE // gen_ai.user.message +EVENT_RPC_MESSAGE // rpc.message +EVENT_SESSION_END // session.end +EVENT_SESSION_START // session.start + +ATTR_APP_BUILD_ID // app.build_id +ATTR_APP_JANK_FRAME_COUNT // app.jank.frame_count +ATTR_APP_JANK_PERIOD // app.jank.period +ATTR_APP_JANK_THRESHOLD // app.jank.threshold + +ATTR_ASPNETCORE_AUTHENTICATION_RESULT // aspnetcore.authentication.result + ASPNETCORE_AUTHENTICATION_RESULT_VALUE_FAILURE // "failure" + ASPNETCORE_AUTHENTICATION_RESULT_VALUE_NONE // "none" + ASPNETCORE_AUTHENTICATION_RESULT_VALUE_SUCCESS // "success" +ATTR_ASPNETCORE_AUTHENTICATION_SCHEME // aspnetcore.authentication.scheme +ATTR_ASPNETCORE_AUTHORIZATION_POLICY // aspnetcore.authorization.policy +ATTR_ASPNETCORE_AUTHORIZATION_RESULT // aspnetcore.authorization.result + ASPNETCORE_AUTHORIZATION_RESULT_VALUE_FAILURE // "failure" + ASPNETCORE_AUTHORIZATION_RESULT_VALUE_SUCCESS // "success" +ATTR_ASPNETCORE_IDENTITY_ERROR_CODE // aspnetcore.identity.error_code +ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT // aspnetcore.identity.password_check_result + ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_FAILURE // "failure" + ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_PASSWORD_MISSING // "password_missing" + ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_SUCCESS // "success" + ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_SUCCESS_REHASH_NEEDED // "success_rehash_needed" + ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_USER_MISSING // "user_missing" +ATTR_ASPNETCORE_IDENTITY_RESULT // aspnetcore.identity.result + ASPNETCORE_IDENTITY_RESULT_VALUE_FAILURE // "failure" + ASPNETCORE_IDENTITY_RESULT_VALUE_SUCCESS // "success" +ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT // aspnetcore.identity.sign_in.result + ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_FAILURE // "failure" + ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_LOCKED_OUT // "locked_out" + ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_NOT_ALLOWED // "not_allowed" + ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_REQUIRES_TWO_FACTOR // "requires_two_factor" + ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_SUCCESS // "success" +ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE // aspnetcore.identity.sign_in.type + ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_EXTERNAL // "external" + ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_PASSKEY // "passkey" + ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_PASSWORD // "password" + ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_TWO_FACTOR // "two_factor" + ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_TWO_FACTOR_AUTHENTICATOR // "two_factor_authenticator" + ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_TWO_FACTOR_RECOVERY_CODE // "two_factor_recovery_code" +ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE // aspnetcore.identity.token_purpose + ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_OTHER // "_OTHER" + ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_CHANGE_EMAIL // "change_email" + ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_CHANGE_PHONE_NUMBER // "change_phone_number" + ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_EMAIL_CONFIRMATION // "email_confirmation" + ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_RESET_PASSWORD // "reset_password" + ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_TWO_FACTOR // "two_factor" +ATTR_ASPNETCORE_IDENTITY_TOKEN_VERIFIED // aspnetcore.identity.token_verified + ASPNETCORE_IDENTITY_TOKEN_VERIFIED_VALUE_FAILURE // "failure" + ASPNETCORE_IDENTITY_TOKEN_VERIFIED_VALUE_SUCCESS // "success" +ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE // aspnetcore.identity.user.update_type + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_OTHER // "_OTHER" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ACCESS_FAILED // "access_failed" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_CLAIMS // "add_claims" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_LOGIN // "add_login" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_PASSWORD // "add_password" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_TO_ROLES // "add_to_roles" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CHANGE_EMAIL // "change_email" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CHANGE_PASSWORD // "change_password" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CHANGE_PHONE_NUMBER // "change_phone_number" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CONFIRM_EMAIL // "confirm_email" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_GENERATE_NEW_TWO_FACTOR_RECOVERY_CODES // "generate_new_two_factor_recovery_codes" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_PASSWORD_REHASH // "password_rehash" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REDEEM_TWO_FACTOR_RECOVERY_CODE // "redeem_two_factor_recovery_code" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_AUTHENTICATION_TOKEN // "remove_authentication_token" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_CLAIMS // "remove_claims" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_FROM_ROLES // "remove_from_roles" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_LOGIN // "remove_login" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_PASSKEY // "remove_passkey" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_PASSWORD // "remove_password" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REPLACE_CLAIM // "replace_claim" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_RESET_ACCESS_FAILED_COUNT // "reset_access_failed_count" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_RESET_AUTHENTICATOR_KEY // "reset_authenticator_key" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_RESET_PASSWORD // "reset_password" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SECURITY_STAMP // "security_stamp" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_AUTHENTICATION_TOKEN // "set_authentication_token" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_EMAIL // "set_email" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_LOCKOUT_ENABLED // "set_lockout_enabled" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_LOCKOUT_END_DATE // "set_lockout_end_date" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_PASSKEY // "set_passkey" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_PHONE_NUMBER // "set_phone_number" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_TWO_FACTOR_ENABLED // "set_two_factor_enabled" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_UPDATE // "update" + ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_USER_NAME // "user_name" +ATTR_ASPNETCORE_IDENTITY_USER_TYPE // aspnetcore.identity.user_type +ATTR_ASPNETCORE_MEMORY_POOL_OWNER // aspnetcore.memory_pool.owner +ATTR_ASPNETCORE_SIGN_IN_IS_PERSISTENT // aspnetcore.sign_in.is_persistent + +ATTR_CONTAINER_RUNTIME_DESCRIPTION // container.runtime.description +ATTR_CONTAINER_RUNTIME_NAME // container.runtime.name +ATTR_CONTAINER_RUNTIME_VERSION // container.runtime.version + +ATTR_GEN_AI_INPUT_MESSAGES // gen_ai.input.messages +ATTR_GEN_AI_OUTPUT_MESSAGES // gen_ai.output.messages +ATTR_GEN_AI_PROVIDER_NAME // gen_ai.provider.name + GEN_AI_PROVIDER_NAME_VALUE_ANTHROPIC // "anthropic" + GEN_AI_PROVIDER_NAME_VALUE_AWS_BEDROCK // "aws.bedrock" + GEN_AI_PROVIDER_NAME_VALUE_AZURE_AI_INFERENCE // "azure.ai.inference" + GEN_AI_PROVIDER_NAME_VALUE_AZURE_AI_OPENAI // "azure.ai.openai" + GEN_AI_PROVIDER_NAME_VALUE_COHERE // "cohere" + GEN_AI_PROVIDER_NAME_VALUE_DEEPSEEK // "deepseek" + GEN_AI_PROVIDER_NAME_VALUE_GCP_GEMINI // "gcp.gemini" + GEN_AI_PROVIDER_NAME_VALUE_GCP_GEN_AI // "gcp.gen_ai" + GEN_AI_PROVIDER_NAME_VALUE_GCP_VERTEX_AI // "gcp.vertex_ai" + GEN_AI_PROVIDER_NAME_VALUE_GROQ // "groq" + GEN_AI_PROVIDER_NAME_VALUE_IBM_WATSONX_AI // "ibm.watsonx.ai" + GEN_AI_PROVIDER_NAME_VALUE_MISTRAL_AI // "mistral_ai" + GEN_AI_PROVIDER_NAME_VALUE_OPENAI // "openai" + GEN_AI_PROVIDER_NAME_VALUE_PERPLEXITY // "perplexity" + GEN_AI_PROVIDER_NAME_VALUE_X_AI // "x_ai" +ATTR_GEN_AI_SYSTEM_INSTRUCTIONS // gen_ai.system_instructions + +ATTR_HW_BATTERY_CAPACITY // hw.battery.capacity +ATTR_HW_BATTERY_CHEMISTRY // hw.battery.chemistry +ATTR_HW_BATTERY_STATE // hw.battery.state + HW_BATTERY_STATE_VALUE_CHARGING // "charging" + HW_BATTERY_STATE_VALUE_DISCHARGING // "discharging" +ATTR_HW_BIOS_VERSION // hw.bios_version +ATTR_HW_DRIVER_VERSION // hw.driver_version +ATTR_HW_ENCLOSURE_TYPE // hw.enclosure.type +ATTR_HW_FIRMWARE_VERSION // hw.firmware_version +ATTR_HW_GPU_TASK // hw.gpu.task + HW_GPU_TASK_VALUE_DECODER // "decoder" + HW_GPU_TASK_VALUE_ENCODER // "encoder" + HW_GPU_TASK_VALUE_GENERAL // "general" +ATTR_HW_LIMIT_TYPE // hw.limit_type + HW_LIMIT_TYPE_VALUE_CRITICAL // "critical" + HW_LIMIT_TYPE_VALUE_DEGRADED // "degraded" + HW_LIMIT_TYPE_VALUE_HIGH_CRITICAL // "high.critical" + HW_LIMIT_TYPE_VALUE_HIGH_DEGRADED // "high.degraded" + HW_LIMIT_TYPE_VALUE_LOW_CRITICAL // "low.critical" + HW_LIMIT_TYPE_VALUE_LOW_DEGRADED // "low.degraded" + HW_LIMIT_TYPE_VALUE_MAX // "max" + HW_LIMIT_TYPE_VALUE_THROTTLED // "throttled" + HW_LIMIT_TYPE_VALUE_TURBO // "turbo" +ATTR_HW_LOGICAL_DISK_RAID_LEVEL // hw.logical_disk.raid_level +ATTR_HW_LOGICAL_DISK_STATE // hw.logical_disk.state + HW_LOGICAL_DISK_STATE_VALUE_FREE // "free" + HW_LOGICAL_DISK_STATE_VALUE_USED // "used" +ATTR_HW_MEMORY_TYPE // hw.memory.type +ATTR_HW_MODEL // hw.model +ATTR_HW_NETWORK_LOGICAL_ADDRESSES // hw.network.logical_addresses +ATTR_HW_NETWORK_PHYSICAL_ADDRESS // hw.network.physical_address +ATTR_HW_PHYSICAL_DISK_SMART_ATTRIBUTE // hw.physical_disk.smart_attribute +ATTR_HW_PHYSICAL_DISK_STATE // hw.physical_disk.state + HW_PHYSICAL_DISK_STATE_VALUE_REMAINING // "remaining" +ATTR_HW_PHYSICAL_DISK_TYPE // hw.physical_disk.type +ATTR_HW_SENSOR_LOCATION // hw.sensor_location +ATTR_HW_SERIAL_NUMBER // hw.serial_number +HW_STATE_VALUE_NEEDS_CLEANING // "needs_cleaning" +HW_STATE_VALUE_PREDICTED_FAILURE // "predicted_failure" +ATTR_HW_TAPE_DRIVE_OPERATION_TYPE // hw.tape_drive.operation_type + HW_TAPE_DRIVE_OPERATION_TYPE_VALUE_CLEAN // "clean" + HW_TAPE_DRIVE_OPERATION_TYPE_VALUE_MOUNT // "mount" + HW_TAPE_DRIVE_OPERATION_TYPE_VALUE_UNMOUNT // "unmount" +ATTR_HW_VENDOR // hw.vendor + +MESSAGING_SYSTEM_VALUE_AWS_SNS // "aws.sns" + +ATTR_OPENAI_REQUEST_SERVICE_TIER // openai.request.service_tier + OPENAI_REQUEST_SERVICE_TIER_VALUE_AUTO // "auto" + OPENAI_REQUEST_SERVICE_TIER_VALUE_DEFAULT // "default" +ATTR_OPENAI_RESPONSE_SERVICE_TIER // openai.response.service_tier +ATTR_OPENAI_RESPONSE_SYSTEM_FINGERPRINT // openai.response.system_fingerprint + +ATTR_OTEL_SCOPE_SCHEMA_URL // otel.scope.schema_url +``` + +
+ ### :bug: Bug Fixes * fix: prioritize `esnext` export condition as it is more specific [#5458](https://github.com/open-telemetry/opentelemetry-js/pull/5458) diff --git a/semantic-conventions/src/experimental_attributes.ts b/semantic-conventions/src/experimental_attributes.ts index fda7ad3950a..681815b4064 100644 --- a/semantic-conventions/src/experimental_attributes.ts +++ b/semantic-conventions/src/experimental_attributes.ts @@ -57,7 +57,7 @@ export const ANDROID_APP_STATE_VALUE_CREATED = "created" as const; export const ANDROID_APP_STATE_VALUE_FOREGROUND = "foreground" as const; /** - * Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). + * Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found in the [Android API levels documentation](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). * * @example 33 * @example 32 @@ -67,11 +67,11 @@ export const ANDROID_APP_STATE_VALUE_FOREGROUND = "foreground" as const; export const ATTR_ANDROID_OS_API_LEVEL = 'android.os.api_level' as const; /** - * Deprecated. Use `android.app.state` body field instead. + * Deprecated. Use `android.app.state` attribute instead. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Use `android.app.state` body field instead. + * @deprecated Replaced by `android.app.state`. */ export const ATTR_ANDROID_STATE = 'android.state' as const; @@ -102,6 +102,17 @@ export const ANDROID_STATE_VALUE_CREATED = "created" as const; */ export const ANDROID_STATE_VALUE_FOREGROUND = "foreground" as const; +/** + * Unique identifier for a particular build or compilation of the application. + * + * @example 6cff0a7e-cefc-4668-96f5-1273d8b334d0 + * @example 9f2b833506aa6973a92fde9733e6271f + * @example my-app-1.0.0-code-123 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_APP_BUILD_ID = 'app.build_id' as const; + /** * A unique identifier representing the installation of an application on a specific device * @@ -123,12 +134,46 @@ export const ANDROID_STATE_VALUE_FOREGROUND = "foreground" as const; * - [App set ID](https://developer.android.com/identity/app-set-id). * - [`Settings.getString(Settings.Secure.ANDROID_ID)`](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID). * - * More information about Android identifier best practices can be found [here](https://developer.android.com/training/articles/user-data-ids). + * More information about Android identifier best practices can be found in the [Android user data IDs guide](https://developer.android.com/training/articles/user-data-ids). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const ATTR_APP_INSTALLATION_ID = 'app.installation.id' as const; +/** + * A number of frame renders that experienced jank. + * + * @example 9 + * @example 42 + * + * @note Depending on platform limitations, the value provided **MAY** be approximation. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_APP_JANK_FRAME_COUNT = 'app.jank.frame_count' as const; + +/** + * The time period, in seconds, for which this jank is being reported. + * + * @example 1.0 + * @example 5.0 + * @example 10.24 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_APP_JANK_PERIOD = 'app.jank.period' as const; + +/** + * The minimum rendering threshold for this jank, in seconds. + * + * @example 0.016 + * @example 0.7 + * @example 1.024 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_APP_JANK_THRESHOLD = 'app.jank.threshold' as const; + /** * The x (horizontal) coordinate of a screen coordinate, in screen pixels. * @@ -261,6609 +306,8053 @@ export const ATTR_ARTIFACT_PURL = 'artifact.purl' as const; export const ATTR_ARTIFACT_VERSION = 'artifact.version' as const; /** - * The unique identifier of the AWS Bedrock Guardrail. A [guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) helps safeguard and prevent unwanted behavior from model responses or user messages. + * The result of the authentication operation. * - * @example sgi5gkybzqak + * @example success + * @example failure * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_BEDROCK_GUARDRAIL_ID = 'aws.bedrock.guardrail.id' as const; +export const ATTR_ASPNETCORE_AUTHENTICATION_RESULT = 'aspnetcore.authentication.result' as const; /** - * The unique identifier of the AWS Bedrock Knowledge base. A [knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) is a bank of information that can be queried by models to generate more relevant responses and augment prompts. + * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_AUTHENTICATION_RESULT}. * - * @example XFWUPB9PAW + * Authentication failed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_BEDROCK_KNOWLEDGE_BASE_ID = 'aws.bedrock.knowledge_base.id' as const; +export const ASPNETCORE_AUTHENTICATION_RESULT_VALUE_FAILURE = "failure" as const; /** - * The JSON-serialized value of each item in the `AttributeDefinitions` request field. + * Enum value "none" for attribute {@link ATTR_ASPNETCORE_AUTHENTICATION_RESULT}. * - * @example ["{ "AttributeName": "string", "AttributeType": "string" }"] + * No authentication information returned. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = 'aws.dynamodb.attribute_definitions' as const; +export const ASPNETCORE_AUTHENTICATION_RESULT_VALUE_NONE = "none" as const; /** - * The value of the `AttributesToGet` request parameter. + * Enum value "success" for attribute {@link ATTR_ASPNETCORE_AUTHENTICATION_RESULT}. * - * @example ["lives", "id"] + * Authentication was successful. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_ATTRIBUTES_TO_GET = 'aws.dynamodb.attributes_to_get' as const; +export const ASPNETCORE_AUTHENTICATION_RESULT_VALUE_SUCCESS = "success" as const; /** - * The value of the `ConsistentRead` request parameter. + * The identifier that names a particular authentication handler. + * + * @example Cookies + * @example Bearer + * @example Identity.Application * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_CONSISTENT_READ = 'aws.dynamodb.consistent_read' as const; +export const ATTR_ASPNETCORE_AUTHENTICATION_SCHEME = 'aspnetcore.authentication.scheme' as const; /** - * The JSON-serialized value of each item in the `ConsumedCapacity` response field. + * The name of the authorization policy. * - * @example ["{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }"] + * @example RequireAdminRole * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_CONSUMED_CAPACITY = 'aws.dynamodb.consumed_capacity' as const; +export const ATTR_ASPNETCORE_AUTHORIZATION_POLICY = 'aspnetcore.authorization.policy' as const; /** - * The value of the `Count` response parameter. + * The result of calling the authorization service. * - * @example 10 + * @example success + * @example failure * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_COUNT = 'aws.dynamodb.count' as const; +export const ATTR_ASPNETCORE_AUTHORIZATION_RESULT = 'aspnetcore.authorization.result' as const; /** - * The value of the `ExclusiveStartTableName` request parameter. + * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_AUTHORIZATION_RESULT}. * - * @example Users - * @example CatsTable + * Authorization failed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_EXCLUSIVE_START_TABLE = 'aws.dynamodb.exclusive_start_table' as const; +export const ASPNETCORE_AUTHORIZATION_RESULT_VALUE_FAILURE = "failure" as const; /** - * The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. + * Enum value "success" for attribute {@link ATTR_ASPNETCORE_AUTHORIZATION_RESULT}. * - * @example ["{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"] + * Authorization was successful. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = 'aws.dynamodb.global_secondary_index_updates' as const; +export const ASPNETCORE_AUTHORIZATION_RESULT_VALUE_SUCCESS = "success" as const; /** - * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field + * The error code for a failed identity operation. * - * @example ["{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"] + * @example DefaultError + * @example PasswordMismatch * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = 'aws.dynamodb.global_secondary_indexes' as const; +export const ATTR_ASPNETCORE_IDENTITY_ERROR_CODE = 'aspnetcore.identity.error_code' as const; /** - * The value of the `IndexName` request parameter. + * The result from checking the password. * - * @example name_to_group + * @example success + * @example failure * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_INDEX_NAME = 'aws.dynamodb.index_name' as const; +export const ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT = 'aspnetcore.identity.password_check_result' as const; /** - * The JSON-serialized value of the `ItemCollectionMetrics` response field. + * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT}. * - * @example { "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] } + * Password check failed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_ITEM_COLLECTION_METRICS = 'aws.dynamodb.item_collection_metrics' as const; +export const ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_FAILURE = "failure" as const; /** - * The value of the `Limit` request parameter. + * Enum value "password_missing" for attribute {@link ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT}. * - * @example 10 + * Password check couldn't proceed because the password was missing from the user. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_LIMIT = 'aws.dynamodb.limit' as const; +export const ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_PASSWORD_MISSING = "password_missing" as const; /** - * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. + * Enum value "success" for attribute {@link ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT}. * - * @example ["{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }"] + * Password check was successful. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = 'aws.dynamodb.local_secondary_indexes' as const; +export const ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_SUCCESS = "success" as const; /** - * The value of the `ProjectionExpression` request parameter. + * Enum value "success_rehash_needed" for attribute {@link ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT}. * - * @example Title - * @example Title, Price, Color - * @example Title, Description, RelatedItems, ProductReviews + * Password check was successful however the password was encoded using a deprecated algorithm and should be rehashed and updated. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_PROJECTION = 'aws.dynamodb.projection' as const; +export const ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_SUCCESS_REHASH_NEEDED = "success_rehash_needed" as const; /** - * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. + * Enum value "user_missing" for attribute {@link ATTR_ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT}. * - * @example 1.0 - * @example 2.0 + * Password check couldn't proceed because the user was missing. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = 'aws.dynamodb.provisioned_read_capacity' as const; +export const ASPNETCORE_IDENTITY_PASSWORD_CHECK_RESULT_VALUE_USER_MISSING = "user_missing" as const; /** - * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. + * The result of the identity operation. * - * @example 1.0 - * @example 2.0 + * @example success + * @example failure * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = 'aws.dynamodb.provisioned_write_capacity' as const; +export const ATTR_ASPNETCORE_IDENTITY_RESULT = 'aspnetcore.identity.result' as const; /** - * The value of the `ScanIndexForward` request parameter. + * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_IDENTITY_RESULT}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Identity operation failed. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_SCAN_FORWARD = 'aws.dynamodb.scan_forward' as const; +export const ASPNETCORE_IDENTITY_RESULT_VALUE_FAILURE = "failure" as const; /** - * The value of the `ScannedCount` response parameter. + * Enum value "success" for attribute {@link ATTR_ASPNETCORE_IDENTITY_RESULT}. * - * @example 50 + * Identity operation was successful. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_SCANNED_COUNT = 'aws.dynamodb.scanned_count' as const; +export const ASPNETCORE_IDENTITY_RESULT_VALUE_SUCCESS = "success" as const; /** - * The value of the `Segment` request parameter. + * Whether the sign in result was success or failure. * - * @example 10 + * @example password + * @example two_factor * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_SEGMENT = 'aws.dynamodb.segment' as const; +export const ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT = 'aspnetcore.identity.sign_in.result' as const; /** - * The value of the `Select` request parameter. + * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT}. * - * @example ALL_ATTRIBUTES - * @example COUNT + * Sign in failed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_SELECT = 'aws.dynamodb.select' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_FAILURE = "failure" as const; /** - * The number of items in the `TableNames` response parameter. + * Enum value "locked_out" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT}. * - * @example 20 + * User is locked out. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_TABLE_COUNT = 'aws.dynamodb.table_count' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_LOCKED_OUT = "locked_out" as const; /** - * The keys in the `RequestItems` object field. + * Enum value "not_allowed" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT}. * - * @example ["Users", "Cats"] + * User is not allowed to sign in. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_TABLE_NAMES = 'aws.dynamodb.table_names' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_NOT_ALLOWED = "not_allowed" as const; /** - * The value of the `TotalSegments` request parameter. + * Enum value "requires_two_factor" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT}. * - * @example 100 + * User requires two factory authentication to sign in. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_DYNAMODB_TOTAL_SEGMENTS = 'aws.dynamodb.total_segments' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_REQUIRES_TWO_FACTOR = "requires_two_factor" as const; /** - * The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). + * Enum value "success" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_RESULT}. * - * @example arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster + * Sign in was successful. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_CLUSTER_ARN = 'aws.ecs.cluster.arn' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_RESULT_VALUE_SUCCESS = "success" as const; /** - * The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). + * The authentication type. * - * @example arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9 + * @example password + * @example two_factor * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_CONTAINER_ARN = 'aws.ecs.container.arn' as const; +export const ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE = 'aspnetcore.identity.sign_in.type' as const; /** - * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + * Enum value "external" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Sign in with a previously registered third-party login. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_LAUNCHTYPE = 'aws.ecs.launchtype' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_EXTERNAL = "external" as const; /** - * Enum value "ec2" for attribute {@link ATTR_AWS_ECS_LAUNCHTYPE}. + * Enum value "passkey" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE}. + * + * Sign in with passkey. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AWS_ECS_LAUNCHTYPE_VALUE_EC2 = "ec2" as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_PASSKEY = "passkey" as const; /** - * Enum value "fargate" for attribute {@link ATTR_AWS_ECS_LAUNCHTYPE}. + * Enum value "password" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE}. + * + * Sign in with password. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AWS_ECS_LAUNCHTYPE_VALUE_FARGATE = "fargate" as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_PASSWORD = "password" as const; /** - * The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). + * Enum value "two_factor" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE}. * - * @example arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b - * @example arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd + * Sign in with a two factor provider. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_TASK_ARN = 'aws.ecs.task.arn' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_TWO_FACTOR = "two_factor" as const; /** - * The family name of the [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) used to create the ECS task. + * Enum value "two_factor_authenticator" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE}. * - * @example opentelemetry-family + * Sign in with two factor authenticator app. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_TASK_FAMILY = 'aws.ecs.task.family' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_TWO_FACTOR_AUTHENTICATOR = "two_factor_authenticator" as const; /** - * The ID of a running ECS task. The ID **MUST** be extracted from `task.arn`. + * Enum value "two_factor_recovery_code" for attribute {@link ATTR_ASPNETCORE_IDENTITY_SIGN_IN_TYPE}. * - * @example 10838bed-421f-43ef-870a-f43feacbbb5b - * @example 23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd + * Sign in with two factory recovery code. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_TASK_ID = 'aws.ecs.task.id' as const; +export const ASPNETCORE_IDENTITY_SIGN_IN_TYPE_VALUE_TWO_FACTOR_RECOVERY_CODE = "two_factor_recovery_code" as const; /** - * The revision for the task definition used to create the ECS task. + * What the token will be used for. * - * @example 8 - * @example 26 + * @example success + * @example failure * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_ECS_TASK_REVISION = 'aws.ecs.task.revision' as const; +export const ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE = 'aspnetcore.identity.token_purpose' as const; /** - * The ARN of an EKS cluster. + * Enum value "_OTHER" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE}. * - * @example arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster + * Any token purpose that the instrumentation has no prior knowledge of. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_EKS_CLUSTER_ARN = 'aws.eks.cluster.arn' as const; +export const ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_OTHER = "_OTHER" as const; /** - * The AWS extended request ID as returned in the response header `x-amz-id-2`. + * Enum value "change_email" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE}. * - * @example wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ= + * The token is for changing the user email address. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_EXTENDED_REQUEST_ID = 'aws.extended_request_id' as const; +export const ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_CHANGE_EMAIL = "change_email" as const; /** - * The name of the AWS Kinesis [stream](https://docs.aws.amazon.com/streams/latest/dev/introduction.html) the request refers to. Corresponds to the `--stream-name` parameter of the Kinesis [describe-stream](https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html) operation. + * Enum value "change_phone_number" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE}. * - * @example some-stream-name + * The token is for changing a user phone number. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_KINESIS_STREAM_NAME = 'aws.kinesis.stream_name' as const; +export const ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_CHANGE_PHONE_NUMBER = "change_phone_number" as const; /** - * The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). + * Enum value "email_confirmation" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE}. * - * @example arn:aws:lambda:us-east-1:123456:function:myfunction:myalias + * The token is for confirming user email address. * - * @note This may be different from `cloud.resource_id` if an alias is involved. - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn' as const; +export const ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_EMAIL_CONFIRMATION = "email_confirmation" as const; /** - * The UUID of the [AWS Lambda EvenSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. It's contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environtment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping. + * Enum value "reset_password" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE}. * - * @example 587ad24b-03b9-4413-8202-bbd56b36e5b7 + * The token is for resetting a user password. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_LAMBDA_RESOURCE_MAPPING_ID = 'aws.lambda.resource_mapping.id' as const; +export const ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_RESET_PASSWORD = "reset_password" as const; /** - * The Amazon Resource Name(s) (ARN) of the AWS log group(s). - * - * @example ["arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"] + * Enum value "two_factor" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_PURPOSE}. * - * @note See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). + * The token is for changing user two factor settings. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_LOG_GROUP_ARNS = 'aws.log.group.arns' as const; +export const ASPNETCORE_IDENTITY_TOKEN_PURPOSE_VALUE_TWO_FACTOR = "two_factor" as const; /** - * The name(s) of the AWS log group(s) an application is writing to. - * - * @example ["/aws/lambda/my-function", "opentelemetry-service"] + * The result of token verification. * - * @note Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group. + * @example success + * @example failure * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_LOG_GROUP_NAMES = 'aws.log.group.names' as const; +export const ATTR_ASPNETCORE_IDENTITY_TOKEN_VERIFIED = 'aspnetcore.identity.token_verified' as const; /** - * The ARN(s) of the AWS log stream(s). + * Enum value "failure" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_VERIFIED}. * - * @example ["arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"] - * - * @note See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream. + * Token verification failed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_LOG_STREAM_ARNS = 'aws.log.stream.arns' as const; +export const ASPNETCORE_IDENTITY_TOKEN_VERIFIED_VALUE_FAILURE = "failure" as const; /** - * The name(s) of the AWS log stream(s) an application is writing to. + * Enum value "success" for attribute {@link ATTR_ASPNETCORE_IDENTITY_TOKEN_VERIFIED}. * - * @example ["logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"] + * Token verification was successful. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names' as const; +export const ASPNETCORE_IDENTITY_TOKEN_VERIFIED_VALUE_SUCCESS = "success" as const; /** - * The AWS request ID as returned in the response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`. + * The user update type. * - * @example 79b9da39-b7ae-508a-a6bc-864b2829c622 - * @example C9ER4AJX75574TDJ + * @example update + * @example user_name + * @example reset_password * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_REQUEST_ID = 'aws.request_id' as const; +export const ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE = 'aspnetcore.identity.user.update_type' as const; /** - * The S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations. + * Enum value "_OTHER" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example some-bucket-name - * - * @note The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter. - * This applies to almost all S3 operations except `list-buckets`. + * Any update type that the instrumentation has no prior knowledge of. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_S3_BUCKET = 'aws.s3.bucket' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_OTHER = "_OTHER" as const; /** - * The source object (in the form `bucket`/`key`) for the copy operation. + * Enum value "access_failed" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example someFile.yml + * Identity user access failure recorded. * - * @note The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter - * of the [copy-object operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html). - * This applies in particular to the following operations: - * - * - [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html) - * - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) - * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_S3_COPY_SOURCE = 'aws.s3.copy_source' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ACCESS_FAILED = "access_failed" as const; /** - * The delete request container that specifies the objects to be deleted. + * Enum value "add_claims" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean - * - * @note The `delete` attribute is only applicable to the [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) operation. - * The `delete` attribute corresponds to the `--delete` parameter of the - * [delete-objects operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html). + * Identity user claims added. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_S3_DELETE = 'aws.s3.delete' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_CLAIMS = "add_claims" as const; /** - * The S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations. + * Enum value "add_login" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example someFile.yml + * Identity user login added. * - * @note The `key` attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter. - * This applies in particular to the following operations: + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_LOGIN = "add_login" as const; + +/** + * Enum value "add_password" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * - [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html) - * - [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) - * - [get-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html) - * - [head-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html) - * - [put-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html) - * - [restore-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html) - * - [select-object-content](https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html) - * - [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html) - * - [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html) - * - [create-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html) - * - [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html) - * - [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) - * - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) + * Identity user password added. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_S3_KEY = 'aws.s3.key' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_PASSWORD = "add_password" as const; /** - * The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. - * - * @example 3456 + * Enum value "add_to_roles" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @note The `part_number` attribute is only applicable to the [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) - * and [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) operations. - * The `part_number` attribute corresponds to the `--part-number` parameter of the - * [upload-part operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html). + * Identity user added to roles. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_S3_PART_NUMBER = 'aws.s3.part_number' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_ADD_TO_ROLES = "add_to_roles" as const; /** - * Upload ID that identifies the multipart upload. + * Enum value "change_email" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ + * Identity user email changed. * - * @note The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter - * of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) multipart operations. - * This applies in particular to the following operations: + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CHANGE_EMAIL = "change_email" as const; + +/** + * Enum value "change_password" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * - [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html) - * - [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html) - * - [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html) - * - [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) - * - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) + * Identity user password changed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_S3_UPLOAD_ID = 'aws.s3.upload_id' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CHANGE_PASSWORD = "change_password" as const; /** - * The ARN of the Secret stored in the Secrets Mangger + * Enum value "change_phone_number" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters + * Identity user phone number changed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_SECRETSMANAGER_SECRET_ARN = 'aws.secretsmanager.secret.arn' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CHANGE_PHONE_NUMBER = "change_phone_number" as const; /** - * The ARN of the AWS SNS Topic. An Amazon SNS [topic](https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html) is a logical access point that acts as a communication channel. + * Enum value "confirm_email" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE + * Identity user email confirmed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_SNS_TOPIC_ARN = 'aws.sns.topic.arn' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_CONFIRM_EMAIL = "confirm_email" as const; /** - * The URL of the AWS SQS Queue. It's a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it. + * Enum value "generate_new_two_factor_recovery_codes" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue + * Identity user new two-factor recovery codes generated. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_SQS_QUEUE_URL = 'aws.sqs.queue.url' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_GENERATE_NEW_TWO_FACTOR_RECOVERY_CODES = "generate_new_two_factor_recovery_codes" as const; /** - * The ARN of the AWS Step Functions Activity. + * Enum value "password_rehash" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example arn:aws:states:us-east-1:123456789012:activity:get-greeting + * Identity user password rehashed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_STEP_FUNCTIONS_ACTIVITY_ARN = 'aws.step_functions.activity.arn' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_PASSWORD_REHASH = "password_rehash" as const; /** - * The ARN of the AWS Step Functions State Machine. + * Enum value "redeem_two_factor_recovery_code" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1 + * Identity user two-factor recovery code redeemed. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN = 'aws.step_functions.state_machine.arn' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REDEEM_TWO_FACTOR_RECOVERY_CODE = "redeem_two_factor_recovery_code" as const; /** - * Deprecated, use `azure.resource_provider.namespace` instead. - * - * @example Microsoft.Storage - * @example Microsoft.KeyVault - * @example Microsoft.ServiceBus + * Enum value "remove_authentication_token" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Identity user authentication token removed. * - * @deprecated Replaced by `azure.resource_provider.namespace`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZ_NAMESPACE = 'az.namespace' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_AUTHENTICATION_TOKEN = "remove_authentication_token" as const; /** - * Deprecated, use `azure.service.request.id` instead. - * - * @example 00000000-0000-0000-0000-000000000000 + * Enum value "remove_claims" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Identity user claims removed. * - * @deprecated Replaced by `azure.service.request.id`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZ_SERVICE_REQUEST_ID = 'az.service_request_id' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_CLAIMS = "remove_claims" as const; /** - * The unique identifier of the client instance. + * Enum value "remove_from_roles" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example 3ba4827d-4422-483f-b59f-85b74211c11d - * @example storage-client-1 + * Identity user removed from roles. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_CLIENT_ID = 'azure.client.id' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_FROM_ROLES = "remove_from_roles" as const; /** - * Cosmos client connection mode. + * Enum value "remove_login" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Identity user login removed. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_COSMOSDB_CONNECTION_MODE = 'azure.cosmosdb.connection.mode' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_LOGIN = "remove_login" as const; /** - * Enum value "direct" for attribute {@link ATTR_AZURE_COSMOSDB_CONNECTION_MODE}. + * Enum value "remove_passkey" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * Direct connection. + * Identity user passkey removed. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONNECTION_MODE_VALUE_DIRECT = "direct" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_PASSKEY = "remove_passkey" as const; /** - * Enum value "gateway" for attribute {@link ATTR_AZURE_COSMOSDB_CONNECTION_MODE}. + * Enum value "remove_password" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * Gateway (HTTP) connection. + * Identity user password removed. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONNECTION_MODE_VALUE_GATEWAY = "gateway" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REMOVE_PASSWORD = "remove_password" as const; /** - * Account or request [consistency level](https://learn.microsoft.com/azure/cosmos-db/consistency-levels). + * Enum value "replace_claim" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example Eventual - * @example ConsistentPrefix - * @example BoundedStaleness - * @example Strong - * @example Session + * Identity user claim replaced. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL = 'azure.cosmosdb.consistency.level' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_REPLACE_CLAIM = "replace_claim" as const; /** - * Enum value "BoundedStaleness" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "reset_access_failed_count" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. + * + * Identity user access failure count reset. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_BOUNDED_STALENESS = "BoundedStaleness" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_RESET_ACCESS_FAILED_COUNT = "reset_access_failed_count" as const; /** - * Enum value "ConsistentPrefix" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "reset_authenticator_key" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. + * + * Identity user authenticator key reset. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_CONSISTENT_PREFIX = "ConsistentPrefix" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_RESET_AUTHENTICATOR_KEY = "reset_authenticator_key" as const; /** - * Enum value "Eventual" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "reset_password" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. + * + * Identity user password reset. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_EVENTUAL = "Eventual" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_RESET_PASSWORD = "reset_password" as const; /** - * Enum value "Session" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "security_stamp" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. + * + * Identity user security stamp updated. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_SESSION = "Session" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SECURITY_STAMP = "security_stamp" as const; /** - * Enum value "Strong" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "set_authentication_token" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. + * + * Identity user authentication token set. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_STRONG = "Strong" as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_AUTHENTICATION_TOKEN = "set_authentication_token" as const; /** - * List of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call. - * - * @example ["North Central US", "Australia East", "Australia Southeast"] + * Enum value "set_email" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @note Region name matches the format of `displayName` in [Azure Location API](https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location) + * Identity user email set. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_COSMOSDB_OPERATION_CONTACTED_REGIONS = 'azure.cosmosdb.operation.contacted_regions' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_EMAIL = "set_email" as const; /** - * The number of request units consumed by the operation. + * Enum value "set_lockout_enabled" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example 46.18 - * @example 1.0 + * Identity user lockout enabled or disabled. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_COSMOSDB_OPERATION_REQUEST_CHARGE = 'azure.cosmosdb.operation.request_charge' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_LOCKOUT_ENABLED = "set_lockout_enabled" as const; /** - * Request payload size in bytes. + * Enum value "set_lockout_end_date" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Identity user lockout end date set. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_COSMOSDB_REQUEST_BODY_SIZE = 'azure.cosmosdb.request.body.size' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_LOCKOUT_END_DATE = "set_lockout_end_date" as const; /** - * Cosmos DB sub status code. + * Enum value "set_passkey" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example 1000 - * @example 1002 + * Identity user passkey set. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_COSMOSDB_RESPONSE_SUB_STATUS_CODE = 'azure.cosmosdb.response.sub_status_code' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_PASSKEY = "set_passkey" as const; /** - * [Azure Resource Provider Namespace](https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers) as recognized by the client. + * Enum value "set_phone_number" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example Microsoft.Storage - * @example Microsoft.KeyVault - * @example Microsoft.ServiceBus + * Identity user phone number set. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_RESOURCE_PROVIDER_NAMESPACE = 'azure.resource_provider.namespace' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_PHONE_NUMBER = "set_phone_number" as const; /** - * The unique identifier of the service request. It's generated by the Azure service and returned with the response. + * Enum value "set_two_factor_enabled" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @example 00000000-0000-0000-0000-000000000000 + * Identity user two-factor authentication enabled or disabled. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_AZURE_SERVICE_REQUEST_ID = 'azure.service.request.id' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_SET_TWO_FACTOR_ENABLED = "set_two_factor_enabled" as const; /** - * Array of brand name and version separated by a space - * - * @example [" Not A;Brand 99", "Chromium 99", "Chrome 99"] + * Enum value "update" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @note This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`). + * Identity user updated. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_BROWSER_BRANDS = 'browser.brands' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_UPDATE = "update" as const; /** - * Preferred language of the user using the browser - * - * @example en - * @example en-US - * @example fr - * @example fr-FR + * Enum value "user_name" for attribute {@link ATTR_ASPNETCORE_IDENTITY_USER_UPDATE_TYPE}. * - * @note This value is intended to be taken from the Navigator API `navigator.language`. + * Identity user name updated. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_BROWSER_LANGUAGE = 'browser.language' as const; +export const ASPNETCORE_IDENTITY_USER_UPDATE_TYPE_VALUE_USER_NAME = "user_name" as const; /** - * A boolean that is true if the browser is running on a mobile device + * The full name of the identity user type. * - * @note This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.mobile`). If unavailable, this attribute **SHOULD** be left unset. + * @example Contoso.ContosoUser * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_BROWSER_MOBILE = 'browser.mobile' as const; +export const ATTR_ASPNETCORE_IDENTITY_USER_TYPE = 'aspnetcore.identity.user_type' as const; /** - * The platform on which the browser is running - * - * @example Windows - * @example macOS - * @example Android + * The name of the library or subsystem using the memory pool instance. * - * @note This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API **SHOULD NOT** be used instead and this attribute **SHOULD** be left unset in order for the values to be consistent. - * The list of possible values is defined in the [W3C User-Agent Client Hints specification](https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform). Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes](./os.md). However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides. + * @example kestrel + * @example iis * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_BROWSER_PLATFORM = 'browser.platform' as const; +export const ATTR_ASPNETCORE_MEMORY_POOL_OWNER = 'aspnetcore.memory_pool.owner' as const; /** - * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + * A flag indicating whether the sign in is persistent. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CASSANDRA_CONSISTENCY_LEVEL = 'cassandra.consistency.level' as const; +export const ATTR_ASPNETCORE_SIGN_IN_IS_PERSISTENT = 'aspnetcore.sign_in.is_persistent' as const; /** - * Enum value "all" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The unique identifier of the AWS Bedrock Guardrail. A [guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) helps safeguard and prevent unwanted behavior from model responses or user messages. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example sgi5gkybzqak + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_ALL = "all" as const; +export const ATTR_AWS_BEDROCK_GUARDRAIL_ID = 'aws.bedrock.guardrail.id' as const; /** - * Enum value "any" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The unique identifier of the AWS Bedrock Knowledge base. A [knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) is a bank of information that can be queried by models to generate more relevant responses and augment prompts. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example XFWUPB9PAW + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_ANY = "any" as const; +export const ATTR_AWS_BEDROCK_KNOWLEDGE_BASE_ID = 'aws.bedrock.knowledge_base.id' as const; /** - * Enum value "each_quorum" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The JSON-serialized value of each item in the `AttributeDefinitions` request field. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example ["{ "AttributeName": "string", "AttributeType": "string" }"] + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_EACH_QUORUM = "each_quorum" as const; +export const ATTR_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = 'aws.dynamodb.attribute_definitions' as const; /** - * Enum value "local_one" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The value of the `AttributesToGet` request parameter. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example ["lives", "id"] + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_ONE = "local_one" as const; +export const ATTR_AWS_DYNAMODB_ATTRIBUTES_TO_GET = 'aws.dynamodb.attributes_to_get' as const; /** - * Enum value "local_quorum" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The value of the `ConsistentRead` request parameter. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_QUORUM = "local_quorum" as const; +export const ATTR_AWS_DYNAMODB_CONSISTENT_READ = 'aws.dynamodb.consistent_read' as const; /** - * Enum value "local_serial" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The JSON-serialized value of each item in the `ConsumedCapacity` response field. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_SERIAL = "local_serial" as const; - -/** - * Enum value "one" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * @example ["{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_ONE = "one" as const; +export const ATTR_AWS_DYNAMODB_CONSUMED_CAPACITY = 'aws.dynamodb.consumed_capacity' as const; /** - * Enum value "quorum" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The value of the `Count` response parameter. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_QUORUM = "quorum" as const; - -/** - * Enum value "serial" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * @example 10 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_SERIAL = "serial" as const; +export const ATTR_AWS_DYNAMODB_COUNT = 'aws.dynamodb.count' as const; /** - * Enum value "three" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * The value of the `ExclusiveStartTableName` request parameter. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_THREE = "three" as const; - -/** - * Enum value "two" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * @example Users + * @example CatsTable * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_TWO = "two" as const; +export const ATTR_AWS_DYNAMODB_EXCLUSIVE_START_TABLE = 'aws.dynamodb.exclusive_start_table' as const; /** - * The data center of the coordinating node for a query. + * The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. * - * @example "us-west-2" + * @example ["{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CASSANDRA_COORDINATOR_DC = 'cassandra.coordinator.dc' as const; +export const ATTR_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = 'aws.dynamodb.global_secondary_index_updates' as const; /** - * The ID of the coordinating node for a query. + * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field * - * @example "be13faa2-8574-4d71-926d-27f16cf8a7af" + * @example ["{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CASSANDRA_COORDINATOR_ID = 'cassandra.coordinator.id' as const; +export const ATTR_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = 'aws.dynamodb.global_secondary_indexes' as const; /** - * The fetch size used for paging, i.e. how many rows will be returned at once. + * The value of the `IndexName` request parameter. * - * @example 5000 + * @example name_to_group * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CASSANDRA_PAGE_SIZE = 'cassandra.page.size' as const; +export const ATTR_AWS_DYNAMODB_INDEX_NAME = 'aws.dynamodb.index_name' as const; /** - * Whether or not the query is idempotent. + * The JSON-serialized value of the `ItemCollectionMetrics` response field. + * + * @example { "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] } * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CASSANDRA_QUERY_IDEMPOTENT = 'cassandra.query.idempotent' as const; +export const ATTR_AWS_DYNAMODB_ITEM_COLLECTION_METRICS = 'aws.dynamodb.item_collection_metrics' as const; /** - * The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. + * The value of the `Limit` request parameter. * - * @example 0 - * @example 2 + * @example 10 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = 'cassandra.speculative_execution.count' as const; +export const ATTR_AWS_DYNAMODB_LIMIT = 'aws.dynamodb.limit' as const; /** - * The kind of action a pipeline run is performing. + * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. * - * @example BUILD - * @example RUN - * @example SYNC + * @example ["{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_ACTION_NAME = 'cicd.pipeline.action.name' as const; +export const ATTR_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = 'aws.dynamodb.local_secondary_indexes' as const; /** - * Enum value "BUILD" for attribute {@link ATTR_CICD_PIPELINE_ACTION_NAME}. + * The value of the `ProjectionExpression` request parameter. * - * The pipeline run is executing a build. + * @example Title + * @example Title, Price, Color + * @example Title, Description, RelatedItems, ProductReviews * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_ACTION_NAME_VALUE_BUILD = "BUILD" as const; +export const ATTR_AWS_DYNAMODB_PROJECTION = 'aws.dynamodb.projection' as const; /** - * Enum value "RUN" for attribute {@link ATTR_CICD_PIPELINE_ACTION_NAME}. + * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. * - * The pipeline run is executing. + * @example 1.0 + * @example 2.0 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_ACTION_NAME_VALUE_RUN = "RUN" as const; +export const ATTR_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = 'aws.dynamodb.provisioned_read_capacity' as const; /** - * Enum value "SYNC" for attribute {@link ATTR_CICD_PIPELINE_ACTION_NAME}. + * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. * - * The pipeline run is executing a sync. + * @example 1.0 + * @example 2.0 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_ACTION_NAME_VALUE_SYNC = "SYNC" as const; +export const ATTR_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = 'aws.dynamodb.provisioned_write_capacity' as const; /** - * The human readable name of the pipeline within a CI/CD system. - * - * @example Build and Test - * @example Lint - * @example Deploy Go Project - * @example deploy_to_environment + * The value of the `ScanIndexForward` request parameter. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_NAME = 'cicd.pipeline.name' as const; +export const ATTR_AWS_DYNAMODB_SCAN_FORWARD = 'aws.dynamodb.scan_forward' as const; /** - * The result of a pipeline run. + * The value of the `ScannedCount` response parameter. * - * @example success - * @example failure - * @example timeout - * @example skipped + * @example 50 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_RESULT = 'cicd.pipeline.result' as const; +export const ATTR_AWS_DYNAMODB_SCANNED_COUNT = 'aws.dynamodb.scanned_count' as const; /** - * Enum value "cancellation" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * The value of the `Segment` request parameter. * - * The pipeline run was cancelled, eg. by a user manually cancelling the pipeline run. + * @example 10 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RESULT_VALUE_CANCELLATION = "cancellation" as const; +export const ATTR_AWS_DYNAMODB_SEGMENT = 'aws.dynamodb.segment' as const; /** - * Enum value "error" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * The value of the `Select` request parameter. * - * The pipeline run failed due to an error in the CICD system, eg. due to the worker being killed. + * @example ALL_ATTRIBUTES + * @example COUNT * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RESULT_VALUE_ERROR = "error" as const; +export const ATTR_AWS_DYNAMODB_SELECT = 'aws.dynamodb.select' as const; /** - * Enum value "failure" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * The number of items in the `TableNames` response parameter. * - * The pipeline run did not finish successfully, eg. due to a compile error or a failing test. Such failures are usually detected by non-zero exit codes of the tools executed in the pipeline run. + * @example 20 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RESULT_VALUE_FAILURE = "failure" as const; +export const ATTR_AWS_DYNAMODB_TABLE_COUNT = 'aws.dynamodb.table_count' as const; /** - * Enum value "skip" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * The keys in the `RequestItems` object field. * - * The pipeline run was skipped, eg. due to a precondition not being met. + * @example ["Users", "Cats"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RESULT_VALUE_SKIP = "skip" as const; +export const ATTR_AWS_DYNAMODB_TABLE_NAMES = 'aws.dynamodb.table_names' as const; /** - * Enum value "success" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * The value of the `TotalSegments` request parameter. * - * The pipeline run finished successfully. + * @example 100 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RESULT_VALUE_SUCCESS = "success" as const; +export const ATTR_AWS_DYNAMODB_TOTAL_SEGMENTS = 'aws.dynamodb.total_segments' as const; /** - * Enum value "timeout" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). * - * A timeout caused the pipeline run to be interrupted. + * @example arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RESULT_VALUE_TIMEOUT = "timeout" as const; +export const ATTR_AWS_ECS_CLUSTER_ARN = 'aws.ecs.cluster.arn' as const; /** - * The unique identifier of a pipeline run within a CI/CD system. + * The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). * - * @example 120912 + * @example arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_RUN_ID = 'cicd.pipeline.run.id' as const; +export const ATTR_AWS_ECS_CONTAINER_ARN = 'aws.ecs.container.arn' as const; /** - * The pipeline run goes through these states during its lifecycle. - * - * @example pending - * @example executing - * @example finalizing + * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_RUN_STATE = 'cicd.pipeline.run.state' as const; +export const ATTR_AWS_ECS_LAUNCHTYPE = 'aws.ecs.launchtype' as const; /** - * Enum value "executing" for attribute {@link ATTR_CICD_PIPELINE_RUN_STATE}. + * Enum value "ec2" for attribute {@link ATTR_AWS_ECS_LAUNCHTYPE}. * - * The executing state spans the execution of any run tasks (eg. build, test). + * Amazon EC2 * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RUN_STATE_VALUE_EXECUTING = "executing" as const; +export const AWS_ECS_LAUNCHTYPE_VALUE_EC2 = "ec2" as const; /** - * Enum value "finalizing" for attribute {@link ATTR_CICD_PIPELINE_RUN_STATE}. + * Enum value "fargate" for attribute {@link ATTR_AWS_ECS_LAUNCHTYPE}. * - * The finalizing state spans from when the run has finished executing (eg. cleanup of run resources). + * Amazon Fargate * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RUN_STATE_VALUE_FINALIZING = "finalizing" as const; +export const AWS_ECS_LAUNCHTYPE_VALUE_FARGATE = "fargate" as const; /** - * Enum value "pending" for attribute {@link ATTR_CICD_PIPELINE_RUN_STATE}. + * The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). * - * The run pending state spans from the event triggering the pipeline run until the execution of the run starts (eg. time spent in a queue, provisioning agents, creating run resources). + * @example arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b + * @example arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_RUN_STATE_VALUE_PENDING = "pending" as const; +export const ATTR_AWS_ECS_TASK_ARN = 'aws.ecs.task.arn' as const; /** - * The [URL](https://wikipedia.org/wiki/URL) of the pipeline run, providing the complete address in order to locate and identify the pipeline run. + * The family name of the [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) used to create the ECS task. * - * @example https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075 + * @example opentelemetry-family * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_RUN_URL_FULL = 'cicd.pipeline.run.url.full' as const; +export const ATTR_AWS_ECS_TASK_FAMILY = 'aws.ecs.task.family' as const; /** - * The human readable name of a task within a pipeline. Task here most closely aligns with a [computing process](https://wikipedia.org/wiki/Pipeline_(computing)) in a pipeline. Other terms for tasks include commands, steps, and procedures. + * The ID of a running ECS task. The ID **MUST** be extracted from `task.arn`. * - * @example Run GoLang Linter - * @example Go Build - * @example go-test - * @example deploy_binary + * @example 10838bed-421f-43ef-870a-f43feacbbb5b + * @example 23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_TASK_NAME = 'cicd.pipeline.task.name' as const; +export const ATTR_AWS_ECS_TASK_ID = 'aws.ecs.task.id' as const; /** - * The unique identifier of a task run within a pipeline. + * The revision for the task definition used to create the ECS task. * - * @example 12097 + * @example 8 + * @example 26 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_TASK_RUN_ID = 'cicd.pipeline.task.run.id' as const; +export const ATTR_AWS_ECS_TASK_REVISION = 'aws.ecs.task.revision' as const; /** - * The result of a task run. + * The ARN of an EKS cluster. * - * @example success - * @example failure - * @example timeout - * @example skipped + * @example arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_TASK_RUN_RESULT = 'cicd.pipeline.task.run.result' as const; +export const ATTR_AWS_EKS_CLUSTER_ARN = 'aws.eks.cluster.arn' as const; /** - * Enum value "cancellation" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * The AWS extended request ID as returned in the response header `x-amz-id-2`. * - * The task run was cancelled, eg. by a user manually cancelling the task run. + * @example wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ= * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_CANCELLATION = "cancellation" as const; +export const ATTR_AWS_EXTENDED_REQUEST_ID = 'aws.extended_request_id' as const; /** - * Enum value "error" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * The name of the AWS Kinesis [stream](https://docs.aws.amazon.com/streams/latest/dev/introduction.html) the request refers to. Corresponds to the `--stream-name` parameter of the Kinesis [describe-stream](https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html) operation. * - * The task run failed due to an error in the CICD system, eg. due to the worker being killed. + * @example some-stream-name * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_ERROR = "error" as const; +export const ATTR_AWS_KINESIS_STREAM_NAME = 'aws.kinesis.stream_name' as const; /** - * Enum value "failure" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). * - * The task run did not finish successfully, eg. due to a compile error or a failing test. Such failures are usually detected by non-zero exit codes of the tools executed in the task run. + * @example arn:aws:lambda:us-east-1:123456:function:myfunction:myalias * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note This may be different from `cloud.resource_id` if an alias is involved. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_FAILURE = "failure" as const; +export const ATTR_AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn' as const; /** - * Enum value "skip" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * The UUID of the [AWS Lambda EvenSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. It's contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environtment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping. * - * The task run was skipped, eg. due to a precondition not being met. + * @example 587ad24b-03b9-4413-8202-bbd56b36e5b7 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_SKIP = "skip" as const; +export const ATTR_AWS_LAMBDA_RESOURCE_MAPPING_ID = 'aws.lambda.resource_mapping.id' as const; /** - * Enum value "success" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * The Amazon Resource Name(s) (ARN) of the AWS log group(s). * - * The task run finished successfully. + * @example ["arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_SUCCESS = "success" as const; +export const ATTR_AWS_LOG_GROUP_ARNS = 'aws.log.group.arns' as const; /** - * Enum value "timeout" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * The name(s) of the AWS log group(s) an application is writing to. * - * A timeout caused the task run to be interrupted. + * @example ["/aws/lambda/my-function", "opentelemetry-service"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_TIMEOUT = "timeout" as const; +export const ATTR_AWS_LOG_GROUP_NAMES = 'aws.log.group.names' as const; /** - * The [URL](https://wikipedia.org/wiki/URL) of the pipeline task run, providing the complete address in order to locate and identify the pipeline task run. + * The ARN(s) of the AWS log stream(s). * - * @example https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075 + * @example ["arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"] + * + * @note See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_TASK_RUN_URL_FULL = 'cicd.pipeline.task.run.url.full' as const; +export const ATTR_AWS_LOG_STREAM_ARNS = 'aws.log.stream.arns' as const; /** - * The type of the task within a pipeline. + * The name(s) of the AWS log stream(s) an application is writing to. * - * @example build - * @example test - * @example deploy + * @example ["logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_PIPELINE_TASK_TYPE = 'cicd.pipeline.task.type' as const; +export const ATTR_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names' as const; /** - * Enum value "build" for attribute {@link ATTR_CICD_PIPELINE_TASK_TYPE}. + * The AWS request ID as returned in the response headers `x-amzn-requestid`, `x-amzn-request-id` or `x-amz-request-id`. * - * build + * @example 79b9da39-b7ae-508a-a6bc-864b2829c622 + * @example C9ER4AJX75574TDJ * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_TYPE_VALUE_BUILD = "build" as const; +export const ATTR_AWS_REQUEST_ID = 'aws.request_id' as const; /** - * Enum value "deploy" for attribute {@link ATTR_CICD_PIPELINE_TASK_TYPE}. + * The S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations. * - * deploy + * @example some-bucket-name * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter. + * This applies to almost all S3 operations except `list-buckets`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_TYPE_VALUE_DEPLOY = "deploy" as const; +export const ATTR_AWS_S3_BUCKET = 'aws.s3.bucket' as const; /** - * Enum value "test" for attribute {@link ATTR_CICD_PIPELINE_TASK_TYPE}. + * The source object (in the form `bucket`/`key`) for the copy operation. * - * test + * @example someFile.yml * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter + * of the [copy-object operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html). + * This applies in particular to the following operations: + * + * - [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html) + * - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_PIPELINE_TASK_TYPE_VALUE_TEST = "test" as const; +export const ATTR_AWS_S3_COPY_SOURCE = 'aws.s3.copy_source' as const; /** - * The name of a component of the CICD system. + * The delete request container that specifies the objects to be deleted. * - * @example controller - * @example scheduler - * @example agent + * @example Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean + * + * @note The `delete` attribute is only applicable to the [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) operation. + * The `delete` attribute corresponds to the `--delete` parameter of the + * [delete-objects operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_SYSTEM_COMPONENT = 'cicd.system.component' as const; +export const ATTR_AWS_S3_DELETE = 'aws.s3.delete' as const; /** - * The unique identifier of a worker within a CICD system. + * The S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations. * - * @example abc123 - * @example 10.0.1.2 - * @example controller + * @example someFile.yml + * + * @note The `key` attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter. + * This applies in particular to the following operations: + * + * - [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html) + * - [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) + * - [get-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html) + * - [head-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html) + * - [put-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html) + * - [restore-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html) + * - [select-object-content](https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html) + * - [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html) + * - [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html) + * - [create-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.html) + * - [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html) + * - [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) + * - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_WORKER_ID = 'cicd.worker.id' as const; +export const ATTR_AWS_S3_KEY = 'aws.s3.key' as const; /** - * The name of a worker within a CICD system. + * The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. * - * @example agent-abc - * @example controller - * @example Ubuntu LTS + * @example 3456 + * + * @note The `part_number` attribute is only applicable to the [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) + * and [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) operations. + * The `part_number` attribute corresponds to the `--part-number` parameter of the + * [upload-part operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_WORKER_NAME = 'cicd.worker.name' as const; +export const ATTR_AWS_S3_PART_NUMBER = 'aws.s3.part_number' as const; /** - * The state of a CICD worker / agent. + * Upload ID that identifies the multipart upload. * - * @example idle - * @example busy - * @example down + * @example dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ + * + * @note The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter + * of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) multipart operations. + * This applies in particular to the following operations: + * + * - [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html) + * - [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html) + * - [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html) + * - [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) + * - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_WORKER_STATE = 'cicd.worker.state' as const; +export const ATTR_AWS_S3_UPLOAD_ID = 'aws.s3.upload_id' as const; /** - * Enum value "available" for attribute {@link ATTR_CICD_WORKER_STATE}. + * The ARN of the Secret stored in the Secrets Mangger * - * The worker is not performing work for the CICD system. It is available to the CICD system to perform work on (online / idle). + * @example arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_WORKER_STATE_VALUE_AVAILABLE = "available" as const; +export const ATTR_AWS_SECRETSMANAGER_SECRET_ARN = 'aws.secretsmanager.secret.arn' as const; /** - * Enum value "busy" for attribute {@link ATTR_CICD_WORKER_STATE}. + * The ARN of the AWS SNS Topic. An Amazon SNS [topic](https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html) is a logical access point that acts as a communication channel. * - * The worker is performing work for the CICD system. + * @example arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_WORKER_STATE_VALUE_BUSY = "busy" as const; +export const ATTR_AWS_SNS_TOPIC_ARN = 'aws.sns.topic.arn' as const; /** - * Enum value "offline" for attribute {@link ATTR_CICD_WORKER_STATE}. + * The URL of the AWS SQS Queue. It's a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it. * - * The worker is not available to the CICD system (disconnected / down). + * @example https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CICD_WORKER_STATE_VALUE_OFFLINE = "offline" as const; +export const ATTR_AWS_SQS_QUEUE_URL = 'aws.sqs.queue.url' as const; /** - * The [URL](https://wikipedia.org/wiki/URL) of the worker, providing the complete address in order to locate and identify the worker. + * The ARN of the AWS Step Functions Activity. * - * @example https://cicd.example.org/worker/abc123 + * @example arn:aws:states:us-east-1:123456789012:activity:get-greeting * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CICD_WORKER_URL_FULL = 'cicd.worker.url.full' as const; +export const ATTR_AWS_STEP_FUNCTIONS_ACTIVITY_ARN = 'aws.step_functions.activity.arn' as const; /** - * The cloud account ID the resource is assigned to. + * The ARN of the AWS Step Functions State Machine. * - * @example 111111111111 - * @example opentelemetry + * @example arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUD_ACCOUNT_ID = 'cloud.account.id' as const; +export const ATTR_AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN = 'aws.step_functions.state_machine.arn' as const; /** - * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. - * - * @example us-east-1c + * Deprecated, use `azure.resource_provider.namespace` instead. * - * @note Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + * @example Microsoft.Storage + * @example Microsoft.KeyVault + * @example Microsoft.ServiceBus * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.resource_provider.namespace`. */ -export const ATTR_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone' as const; +export const ATTR_AZ_NAMESPACE = 'az.namespace' as const; /** - * The cloud platform in use. + * Deprecated, use `azure.service.request.id` instead. * - * @note The prefix of the service **SHOULD** match the one specified in `cloud.provider`. + * @example 00000000-0000-0000-0000-000000000000 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.service.request.id`. */ -export const ATTR_CLOUD_PLATFORM = 'cloud.platform' as const; +export const ATTR_AZ_SERVICE_REQUEST_ID = 'az.service_request_id' as const; /** - * Enum value "alibaba_cloud_ecs" for attribute {@link ATTR_CLOUD_PLATFORM}. + * The unique identifier of the client instance. * - * Alibaba Cloud Elastic Compute Service + * @example 3ba4827d-4422-483f-b59f-85b74211c11d + * @example storage-client-1 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs" as const; +export const ATTR_AZURE_CLIENT_ID = 'azure.client.id' as const; /** - * Enum value "alibaba_cloud_fc" for attribute {@link ATTR_CLOUD_PLATFORM}. - * - * Alibaba Cloud Function Compute + * Cosmos client connection mode. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_FC = "alibaba_cloud_fc" as const; +export const ATTR_AZURE_COSMOSDB_CONNECTION_MODE = 'azure.cosmosdb.connection.mode' as const; /** - * Enum value "alibaba_cloud_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "direct" for attribute {@link ATTR_AZURE_COSMOSDB_CONNECTION_MODE}. * - * Red Hat OpenShift on Alibaba Cloud + * Direct connection. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift" as const; +export const AZURE_COSMOSDB_CONNECTION_MODE_VALUE_DIRECT = "direct" as const; /** - * Enum value "aws_app_runner" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "gateway" for attribute {@link ATTR_AZURE_COSMOSDB_CONNECTION_MODE}. * - * AWS App Runner + * Gateway (HTTP) connection. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_APP_RUNNER = "aws_app_runner" as const; +export const AZURE_COSMOSDB_CONNECTION_MODE_VALUE_GATEWAY = "gateway" as const; /** - * Enum value "aws_ec2" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Account or request [consistency level](https://learn.microsoft.com/azure/cosmos-db/consistency-levels). * - * AWS Elastic Compute Cloud + * @example Eventual + * @example ConsistentPrefix + * @example BoundedStaleness + * @example Strong + * @example Session * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_EC2 = "aws_ec2" as const; +export const ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL = 'azure.cosmosdb.consistency.level' as const; /** - * Enum value "aws_ecs" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "BoundedStaleness" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. * - * AWS Elastic Container Service + * Bounded Staleness * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_ECS = "aws_ecs" as const; +export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_BOUNDED_STALENESS = "BoundedStaleness" as const; /** - * Enum value "aws_eks" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "ConsistentPrefix" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. * - * AWS Elastic Kubernetes Service + * Consistent Prefix * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_EKS = "aws_eks" as const; +export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_CONSISTENT_PREFIX = "ConsistentPrefix" as const; /** - * Enum value "aws_elastic_beanstalk" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "Eventual" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. * - * AWS Elastic Beanstalk + * Eventual * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk" as const; +export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_EVENTUAL = "Eventual" as const; /** - * Enum value "aws_lambda" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "Session" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. * - * AWS Lambda + * Session * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_LAMBDA = "aws_lambda" as const; +export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_SESSION = "Session" as const; /** - * Enum value "aws_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "Strong" for attribute {@link ATTR_AZURE_COSMOSDB_CONSISTENCY_LEVEL}. * - * Red Hat OpenShift on AWS (ROSA) + * Strong * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AWS_OPENSHIFT = "aws_openshift" as const; +export const AZURE_COSMOSDB_CONSISTENCY_LEVEL_VALUE_STRONG = "Strong" as const; /** - * Enum value "azure.aks" for attribute {@link ATTR_CLOUD_PLATFORM}. + * List of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call. * - * Azure Kubernetes Service + * @example ["North Central US", "Australia East", "Australia Southeast"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note Region name matches the format of `displayName` in [Azure Location API](https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location) + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_AKS = "azure.aks" as const; +export const ATTR_AZURE_COSMOSDB_OPERATION_CONTACTED_REGIONS = 'azure.cosmosdb.operation.contacted_regions' as const; /** - * Enum value "azure.app_service" for attribute {@link ATTR_CLOUD_PLATFORM}. + * The number of request units consumed by the operation. * - * Azure App Service + * @example 46.18 + * @example 1.0 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE = "azure.app_service" as const; +export const ATTR_AZURE_COSMOSDB_OPERATION_REQUEST_CHARGE = 'azure.cosmosdb.operation.request_charge' as const; /** - * Enum value "azure.container_apps" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Request payload size in bytes. * - * Azure Container Apps + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_AZURE_COSMOSDB_REQUEST_BODY_SIZE = 'azure.cosmosdb.request.body.size' as const; + +/** + * Cosmos DB sub status code. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example 1000 + * @example 1002 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_CONTAINER_APPS = "azure.container_apps" as const; +export const ATTR_AZURE_COSMOSDB_RESPONSE_SUB_STATUS_CODE = 'azure.cosmosdb.response.sub_status_code' as const; /** - * Enum value "azure.container_instances" for attribute {@link ATTR_CLOUD_PLATFORM}. + * [Azure Resource Provider Namespace](https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers) as recognized by the client. * - * Azure Container Instances + * @example Microsoft.Storage + * @example Microsoft.KeyVault + * @example Microsoft.ServiceBus * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_CONTAINER_INSTANCES = "azure.container_instances" as const; +export const ATTR_AZURE_RESOURCE_PROVIDER_NAMESPACE = 'azure.resource_provider.namespace' as const; /** - * Enum value "azure.functions" for attribute {@link ATTR_CLOUD_PLATFORM}. + * The unique identifier of the service request. It's generated by the Azure service and returned with the response. * - * Azure Functions + * @example 00000000-0000-0000-0000-000000000000 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS = "azure.functions" as const; +export const ATTR_AZURE_SERVICE_REQUEST_ID = 'azure.service.request.id' as const; /** - * Enum value "azure.openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Array of brand name and version separated by a space * - * Azure Red Hat OpenShift + * @example [" Not A;Brand 99", "Chromium 99", "Chrome 99"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`). + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_OPENSHIFT = "azure.openshift" as const; +export const ATTR_BROWSER_BRANDS = 'browser.brands' as const; /** - * Enum value "azure.vm" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Preferred language of the user using the browser * - * Azure Virtual Machines + * @example en + * @example en-US + * @example fr + * @example fr-FR * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note This value is intended to be taken from the Navigator API `navigator.language`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_AZURE_VM = "azure.vm" as const; +export const ATTR_BROWSER_LANGUAGE = 'browser.language' as const; /** - * Enum value "gcp_app_engine" for attribute {@link ATTR_CLOUD_PLATFORM}. + * A boolean that is true if the browser is running on a mobile device * - * Google Cloud App Engine (GAE) + * @note This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.mobile`). If unavailable, this attribute **SHOULD** be left unset. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_APP_ENGINE = "gcp_app_engine" as const; +export const ATTR_BROWSER_MOBILE = 'browser.mobile' as const; /** - * Enum value "gcp_bare_metal_solution" for attribute {@link ATTR_CLOUD_PLATFORM}. + * The platform on which the browser is running * - * Google Bare Metal Solution (BMS) + * @example Windows + * @example macOS + * @example Android * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API **SHOULD NOT** be used instead and this attribute **SHOULD** be left unset in order for the values to be consistent. + * The list of possible values is defined in the [W3C User-Agent Client Hints specification](https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform). Note that some (but not all) of these values can overlap with values in the [`os.type` and `os.name` attributes](./os.md). However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution" as const; +export const ATTR_BROWSER_PLATFORM = 'browser.platform' as const; /** - * Enum value "gcp_cloud_functions" for attribute {@link ATTR_CLOUD_PLATFORM}. + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). * - * Google Cloud Functions (GCF) + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CASSANDRA_CONSISTENCY_LEVEL = 'cassandra.consistency.level' as const; + +/** + * Enum value "all" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. + * + * All * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_ALL = "all" as const; /** - * Enum value "gcp_cloud_run" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "any" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Google Cloud Run + * Any * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_CLOUD_RUN = "gcp_cloud_run" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_ANY = "any" as const; /** - * Enum value "gcp_compute_engine" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "each_quorum" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Google Cloud Compute Engine (GCE) + * Each Quorum * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_COMPUTE_ENGINE = "gcp_compute_engine" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_EACH_QUORUM = "each_quorum" as const; /** - * Enum value "gcp_kubernetes_engine" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "local_one" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Google Cloud Kubernetes Engine (GKE) + * Local One * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_ONE = "local_one" as const; /** - * Enum value "gcp_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "local_quorum" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Red Hat OpenShift on Google Cloud + * Local Quorum * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_GCP_OPENSHIFT = "gcp_openshift" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_QUORUM = "local_quorum" as const; /** - * Enum value "ibm_cloud_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "local_serial" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Red Hat OpenShift on IBM Cloud + * Local Serial * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_SERIAL = "local_serial" as const; /** - * Enum value "oracle_cloud_compute" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "one" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Compute on Oracle Cloud Infrastructure (OCI) + * One * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_ORACLE_CLOUD_COMPUTE = "oracle_cloud_compute" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_ONE = "one" as const; /** - * Enum value "oracle_cloud_oke" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "quorum" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI) + * Quorum * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_ORACLE_CLOUD_OKE = "oracle_cloud_oke" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_QUORUM = "quorum" as const; /** - * Enum value "tencent_cloud_cvm" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "serial" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Tencent Cloud Cloud Virtual Machine (CVM) + * Serial * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_TENCENT_CLOUD_CVM = "tencent_cloud_cvm" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_SERIAL = "serial" as const; /** - * Enum value "tencent_cloud_eks" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "three" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Tencent Cloud Elastic Kubernetes Service (EKS) + * Three * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_TENCENT_CLOUD_EKS = "tencent_cloud_eks" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_THREE = "three" as const; /** - * Enum value "tencent_cloud_scf" for attribute {@link ATTR_CLOUD_PLATFORM}. + * Enum value "two" for attribute {@link ATTR_CASSANDRA_CONSISTENCY_LEVEL}. * - * Tencent Cloud Serverless Cloud Function (SCF) + * Two * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PLATFORM_VALUE_TENCENT_CLOUD_SCF = "tencent_cloud_scf" as const; +export const CASSANDRA_CONSISTENCY_LEVEL_VALUE_TWO = "two" as const; /** - * Name of the cloud provider. + * The data center of the coordinating node for a query. + * + * @example "us-west-2" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUD_PROVIDER = 'cloud.provider' as const; +export const ATTR_CASSANDRA_COORDINATOR_DC = 'cassandra.coordinator.dc' as const; /** - * Enum value "alibaba_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * The ID of the coordinating node for a query. * - * Alibaba Cloud + * @example "be13faa2-8574-4d71-926d-27f16cf8a7af" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_ALIBABA_CLOUD = "alibaba_cloud" as const; +export const ATTR_CASSANDRA_COORDINATOR_ID = 'cassandra.coordinator.id' as const; /** - * Enum value "aws" for attribute {@link ATTR_CLOUD_PROVIDER}. + * The fetch size used for paging, i.e. how many rows will be returned at once. * - * Amazon Web Services + * @example 5000 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_AWS = "aws" as const; +export const ATTR_CASSANDRA_PAGE_SIZE = 'cassandra.page.size' as const; /** - * Enum value "azure" for attribute {@link ATTR_CLOUD_PROVIDER}. - * - * Microsoft Azure + * Whether or not the query is idempotent. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_AZURE = "azure" as const; +export const ATTR_CASSANDRA_QUERY_IDEMPOTENT = 'cassandra.query.idempotent' as const; /** - * Enum value "gcp" for attribute {@link ATTR_CLOUD_PROVIDER}. + * The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. * - * Google Cloud Platform + * @example 0 + * @example 2 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_GCP = "gcp" as const; +export const ATTR_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = 'cassandra.speculative_execution.count' as const; /** - * Enum value "heroku" for attribute {@link ATTR_CLOUD_PROVIDER}. + * The kind of action a pipeline run is performing. * - * Heroku Platform as a Service + * @example BUILD + * @example RUN + * @example SYNC * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_HEROKU = "heroku" as const; +export const ATTR_CICD_PIPELINE_ACTION_NAME = 'cicd.pipeline.action.name' as const; /** - * Enum value "ibm_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * Enum value "BUILD" for attribute {@link ATTR_CICD_PIPELINE_ACTION_NAME}. * - * IBM Cloud + * The pipeline run is executing a build. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_IBM_CLOUD = "ibm_cloud" as const; +export const CICD_PIPELINE_ACTION_NAME_VALUE_BUILD = "BUILD" as const; /** - * Enum value "oracle_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * Enum value "RUN" for attribute {@link ATTR_CICD_PIPELINE_ACTION_NAME}. * - * Oracle Cloud Infrastructure (OCI) + * The pipeline run is executing. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_ORACLE_CLOUD = "oracle_cloud" as const; +export const CICD_PIPELINE_ACTION_NAME_VALUE_RUN = "RUN" as const; /** - * Enum value "tencent_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * Enum value "SYNC" for attribute {@link ATTR_CICD_PIPELINE_ACTION_NAME}. * - * Tencent Cloud + * The pipeline run is executing a sync. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CLOUD_PROVIDER_VALUE_TENCENT_CLOUD = "tencent_cloud" as const; +export const CICD_PIPELINE_ACTION_NAME_VALUE_SYNC = "SYNC" as const; /** - * The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. - * - * @example us-central1 - * @example us-east-1 + * The human readable name of the pipeline within a CI/CD system. * - * @note Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091). + * @example Build and Test + * @example Lint + * @example Deploy Go Project + * @example deploy_to_environment * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUD_REGION = 'cloud.region' as const; +export const ATTR_CICD_PIPELINE_NAME = 'cicd.pipeline.name' as const; + +/** + * The result of a pipeline run. + * + * @example success + * @example failure + * @example timeout + * @example skipped + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_RESULT = 'cicd.pipeline.result' as const; + +/** + * Enum value "cancellation" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * + * The pipeline run was cancelled, eg. by a user manually cancelling the pipeline run. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RESULT_VALUE_CANCELLATION = "cancellation" as const; + +/** + * Enum value "error" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * + * The pipeline run failed due to an error in the CICD system, eg. due to the worker being killed. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RESULT_VALUE_ERROR = "error" as const; + +/** + * Enum value "failure" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * + * The pipeline run did not finish successfully, eg. due to a compile error or a failing test. Such failures are usually detected by non-zero exit codes of the tools executed in the pipeline run. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RESULT_VALUE_FAILURE = "failure" as const; + +/** + * Enum value "skip" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * + * The pipeline run was skipped, eg. due to a precondition not being met. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RESULT_VALUE_SKIP = "skip" as const; + +/** + * Enum value "success" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * + * The pipeline run finished successfully. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RESULT_VALUE_SUCCESS = "success" as const; + +/** + * Enum value "timeout" for attribute {@link ATTR_CICD_PIPELINE_RESULT}. + * + * A timeout caused the pipeline run to be interrupted. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RESULT_VALUE_TIMEOUT = "timeout" as const; + +/** + * The unique identifier of a pipeline run within a CI/CD system. + * + * @example 120912 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_RUN_ID = 'cicd.pipeline.run.id' as const; + +/** + * The pipeline run goes through these states during its lifecycle. + * + * @example pending + * @example executing + * @example finalizing + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_RUN_STATE = 'cicd.pipeline.run.state' as const; + +/** + * Enum value "executing" for attribute {@link ATTR_CICD_PIPELINE_RUN_STATE}. + * + * The executing state spans the execution of any run tasks (eg. build, test). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RUN_STATE_VALUE_EXECUTING = "executing" as const; + +/** + * Enum value "finalizing" for attribute {@link ATTR_CICD_PIPELINE_RUN_STATE}. + * + * The finalizing state spans from when the run has finished executing (eg. cleanup of run resources). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RUN_STATE_VALUE_FINALIZING = "finalizing" as const; + +/** + * Enum value "pending" for attribute {@link ATTR_CICD_PIPELINE_RUN_STATE}. + * + * The run pending state spans from the event triggering the pipeline run until the execution of the run starts (eg. time spent in a queue, provisioning agents, creating run resources). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_RUN_STATE_VALUE_PENDING = "pending" as const; + +/** + * The [URL](https://wikipedia.org/wiki/URL) of the pipeline run, providing the complete address in order to locate and identify the pipeline run. + * + * @example https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763?pr=1075 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_RUN_URL_FULL = 'cicd.pipeline.run.url.full' as const; + +/** + * The human readable name of a task within a pipeline. Task here most closely aligns with a [computing process](https://wikipedia.org/wiki/Pipeline_(computing)) in a pipeline. Other terms for tasks include commands, steps, and procedures. + * + * @example Run GoLang Linter + * @example Go Build + * @example go-test + * @example deploy_binary + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_TASK_NAME = 'cicd.pipeline.task.name' as const; + +/** + * The unique identifier of a task run within a pipeline. + * + * @example 12097 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_TASK_RUN_ID = 'cicd.pipeline.task.run.id' as const; + +/** + * The result of a task run. + * + * @example success + * @example failure + * @example timeout + * @example skipped + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_TASK_RUN_RESULT = 'cicd.pipeline.task.run.result' as const; + +/** + * Enum value "cancellation" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * + * The task run was cancelled, eg. by a user manually cancelling the task run. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_CANCELLATION = "cancellation" as const; + +/** + * Enum value "error" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * + * The task run failed due to an error in the CICD system, eg. due to the worker being killed. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_ERROR = "error" as const; + +/** + * Enum value "failure" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * + * The task run did not finish successfully, eg. due to a compile error or a failing test. Such failures are usually detected by non-zero exit codes of the tools executed in the task run. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_FAILURE = "failure" as const; + +/** + * Enum value "skip" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * + * The task run was skipped, eg. due to a precondition not being met. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_SKIP = "skip" as const; + +/** + * Enum value "success" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * + * The task run finished successfully. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_SUCCESS = "success" as const; + +/** + * Enum value "timeout" for attribute {@link ATTR_CICD_PIPELINE_TASK_RUN_RESULT}. + * + * A timeout caused the task run to be interrupted. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_RUN_RESULT_VALUE_TIMEOUT = "timeout" as const; + +/** + * The [URL](https://wikipedia.org/wiki/URL) of the pipeline task run, providing the complete address in order to locate and identify the pipeline task run. + * + * @example https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_TASK_RUN_URL_FULL = 'cicd.pipeline.task.run.url.full' as const; + +/** + * The type of the task within a pipeline. + * + * @example build + * @example test + * @example deploy + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_PIPELINE_TASK_TYPE = 'cicd.pipeline.task.type' as const; + +/** + * Enum value "build" for attribute {@link ATTR_CICD_PIPELINE_TASK_TYPE}. + * + * build + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_TYPE_VALUE_BUILD = "build" as const; + +/** + * Enum value "deploy" for attribute {@link ATTR_CICD_PIPELINE_TASK_TYPE}. + * + * deploy + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_TYPE_VALUE_DEPLOY = "deploy" as const; + +/** + * Enum value "test" for attribute {@link ATTR_CICD_PIPELINE_TASK_TYPE}. + * + * test + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_PIPELINE_TASK_TYPE_VALUE_TEST = "test" as const; + +/** + * The name of a component of the CICD system. + * + * @example controller + * @example scheduler + * @example agent + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_SYSTEM_COMPONENT = 'cicd.system.component' as const; + +/** + * The unique identifier of a worker within a CICD system. + * + * @example abc123 + * @example 10.0.1.2 + * @example controller + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_WORKER_ID = 'cicd.worker.id' as const; + +/** + * The name of a worker within a CICD system. + * + * @example agent-abc + * @example controller + * @example Ubuntu LTS + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_WORKER_NAME = 'cicd.worker.name' as const; + +/** + * The state of a CICD worker / agent. + * + * @example idle + * @example busy + * @example down + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_WORKER_STATE = 'cicd.worker.state' as const; + +/** + * Enum value "available" for attribute {@link ATTR_CICD_WORKER_STATE}. + * + * The worker is not performing work for the CICD system. It is available to the CICD system to perform work on (online / idle). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_WORKER_STATE_VALUE_AVAILABLE = "available" as const; + +/** + * Enum value "busy" for attribute {@link ATTR_CICD_WORKER_STATE}. + * + * The worker is performing work for the CICD system. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_WORKER_STATE_VALUE_BUSY = "busy" as const; + +/** + * Enum value "offline" for attribute {@link ATTR_CICD_WORKER_STATE}. + * + * The worker is not available to the CICD system (disconnected / down). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CICD_WORKER_STATE_VALUE_OFFLINE = "offline" as const; + +/** + * The [URL](https://wikipedia.org/wiki/URL) of the worker, providing the complete address in order to locate and identify the worker. + * + * @example https://cicd.example.org/worker/abc123 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CICD_WORKER_URL_FULL = 'cicd.worker.url.full' as const; + +/** + * The cloud account ID the resource is assigned to. + * + * @example 111111111111 + * @example opentelemetry + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUD_ACCOUNT_ID = 'cloud.account.id' as const; + +/** + * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. + * + * @example us-east-1c + * + * @note Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone' as const; + +/** + * The cloud platform in use. + * + * @note The prefix of the service **SHOULD** match the one specified in `cloud.provider`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUD_PLATFORM = 'cloud.platform' as const; + +/** + * Enum value "alibaba_cloud_ecs" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Alibaba Cloud Elastic Compute Service + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_ECS = "alibaba_cloud_ecs" as const; + +/** + * Enum value "alibaba_cloud_fc" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Alibaba Cloud Function Compute + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_FC = "alibaba_cloud_fc" as const; + +/** + * Enum value "alibaba_cloud_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Red Hat OpenShift on Alibaba Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_OPENSHIFT = "alibaba_cloud_openshift" as const; + +/** + * Enum value "aws_app_runner" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * AWS App Runner + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_APP_RUNNER = "aws_app_runner" as const; + +/** + * Enum value "aws_ec2" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * AWS Elastic Compute Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_EC2 = "aws_ec2" as const; + +/** + * Enum value "aws_ecs" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * AWS Elastic Container Service + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_ECS = "aws_ecs" as const; + +/** + * Enum value "aws_eks" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * AWS Elastic Kubernetes Service + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_EKS = "aws_eks" as const; + +/** + * Enum value "aws_elastic_beanstalk" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * AWS Elastic Beanstalk + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK = "aws_elastic_beanstalk" as const; + +/** + * Enum value "aws_lambda" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * AWS Lambda + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_LAMBDA = "aws_lambda" as const; + +/** + * Enum value "aws_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Red Hat OpenShift on AWS (ROSA) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AWS_OPENSHIFT = "aws_openshift" as const; + +/** + * Enum value "azure.aks" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure Kubernetes Service + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_AKS = "azure.aks" as const; + +/** + * Enum value "azure.app_service" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure App Service + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE = "azure.app_service" as const; + +/** + * Enum value "azure.container_apps" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure Container Apps + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_CONTAINER_APPS = "azure.container_apps" as const; + +/** + * Enum value "azure.container_instances" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure Container Instances + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_CONTAINER_INSTANCES = "azure.container_instances" as const; + +/** + * Enum value "azure.functions" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure Functions + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS = "azure.functions" as const; + +/** + * Enum value "azure.openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure Red Hat OpenShift + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_OPENSHIFT = "azure.openshift" as const; + +/** + * Enum value "azure.vm" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Azure Virtual Machines + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_AZURE_VM = "azure.vm" as const; + +/** + * Enum value "gcp_app_engine" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Google Cloud App Engine (GAE) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_APP_ENGINE = "gcp_app_engine" as const; + +/** + * Enum value "gcp_bare_metal_solution" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Google Bare Metal Solution (BMS) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_BARE_METAL_SOLUTION = "gcp_bare_metal_solution" as const; + +/** + * Enum value "gcp_cloud_functions" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Google Cloud Functions (GCF) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_CLOUD_FUNCTIONS = "gcp_cloud_functions" as const; + +/** + * Enum value "gcp_cloud_run" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Google Cloud Run + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_CLOUD_RUN = "gcp_cloud_run" as const; + +/** + * Enum value "gcp_compute_engine" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Google Cloud Compute Engine (GCE) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_COMPUTE_ENGINE = "gcp_compute_engine" as const; + +/** + * Enum value "gcp_kubernetes_engine" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Google Cloud Kubernetes Engine (GKE) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_KUBERNETES_ENGINE = "gcp_kubernetes_engine" as const; + +/** + * Enum value "gcp_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Red Hat OpenShift on Google Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_GCP_OPENSHIFT = "gcp_openshift" as const; + +/** + * Enum value "ibm_cloud_openshift" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Red Hat OpenShift on IBM Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_IBM_CLOUD_OPENSHIFT = "ibm_cloud_openshift" as const; + +/** + * Enum value "oracle_cloud_compute" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Compute on Oracle Cloud Infrastructure (OCI) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_ORACLE_CLOUD_COMPUTE = "oracle_cloud_compute" as const; + +/** + * Enum value "oracle_cloud_oke" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Kubernetes Engine (OKE) on Oracle Cloud Infrastructure (OCI) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_ORACLE_CLOUD_OKE = "oracle_cloud_oke" as const; + +/** + * Enum value "tencent_cloud_cvm" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Tencent Cloud Cloud Virtual Machine (CVM) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_TENCENT_CLOUD_CVM = "tencent_cloud_cvm" as const; + +/** + * Enum value "tencent_cloud_eks" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Tencent Cloud Elastic Kubernetes Service (EKS) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_TENCENT_CLOUD_EKS = "tencent_cloud_eks" as const; + +/** + * Enum value "tencent_cloud_scf" for attribute {@link ATTR_CLOUD_PLATFORM}. + * + * Tencent Cloud Serverless Cloud Function (SCF) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PLATFORM_VALUE_TENCENT_CLOUD_SCF = "tencent_cloud_scf" as const; + +/** + * Name of the cloud provider. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUD_PROVIDER = 'cloud.provider' as const; + +/** + * Enum value "alibaba_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Alibaba Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_ALIBABA_CLOUD = "alibaba_cloud" as const; + +/** + * Enum value "aws" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Amazon Web Services + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_AWS = "aws" as const; + +/** + * Enum value "azure" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Microsoft Azure + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_AZURE = "azure" as const; + +/** + * Enum value "gcp" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Google Cloud Platform + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_GCP = "gcp" as const; + +/** + * Enum value "heroku" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Heroku Platform as a Service + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_HEROKU = "heroku" as const; + +/** + * Enum value "ibm_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * IBM Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_IBM_CLOUD = "ibm_cloud" as const; + +/** + * Enum value "oracle_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Oracle Cloud Infrastructure (OCI) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_ORACLE_CLOUD = "oracle_cloud" as const; + +/** + * Enum value "tencent_cloud" for attribute {@link ATTR_CLOUD_PROVIDER}. + * + * Tencent Cloud + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CLOUD_PROVIDER_VALUE_TENCENT_CLOUD = "tencent_cloud" as const; + +/** + * The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed. + * + * @example us-central1 + * @example us-east-1 + * + * @note Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091). + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUD_REGION = 'cloud.region' as const; + +/** + * Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) + * + * @example arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function + * @example //run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID + * @example /subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/ + * + * @note On some cloud providers, it may not be possible to determine the full ID at startup, + * so it may be necessary to set `cloud.resource_id` as a span attribute instead. + * + * The exact value to use for `cloud.resource_id` depends on the cloud provider. + * The following well-known definitions **MUST** be used if you set this attribute and they apply: + * + * - **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). + * Take care not to use the "invoked ARN" directly but replace any + * [alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) + * with the resolved function version, as the same runtime instance may be invocable with + * multiple different aliases. + * - **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names) + * - **Azure:** The [Fully Qualified Resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) of the invoked function, + * *not* the function app, having the form + * `/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/`. + * This means that a span attribute **MUST** be used, as an Azure function app can host multiple functions that would usually share + * a TracerProvider. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUD_RESOURCE_ID = 'cloud.resource_id' as const; + +/** + * The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. + * + * @example 123e4567-e89b-12d3-a456-426614174000 + * @example 0001 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDEVENTS_EVENT_ID = 'cloudevents.event_id' as const; + +/** + * The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. + * + * @example https://github.com/cloudevents + * @example /cloudevents/spec/pull/123 + * @example my-service + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDEVENTS_EVENT_SOURCE = 'cloudevents.event_source' as const; + +/** + * The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. + * + * @example "1.0" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDEVENTS_EVENT_SPEC_VERSION = 'cloudevents.event_spec_version' as const; + +/** + * The [subject](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject) of the event in the context of the event producer (identified by source). + * + * @example "mynewfile.jpg" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDEVENTS_EVENT_SUBJECT = 'cloudevents.event_subject' as const; + +/** + * The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type) contains a value describing the type of event related to the originating occurrence. + * + * @example com.github.pull_request.opened + * @example com.example.object.deleted.v2 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDEVENTS_EVENT_TYPE = 'cloudevents.event_type' as const; + +/** + * The guid of the application. + * + * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.application_id`. This is the same value as + * reported by `cf app --guid`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_APP_ID = 'cloudfoundry.app.id' as const; + +/** + * The index of the application instance. 0 when just one instance is active. + * + * @example 0 + * @example 1 + * + * @note CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope](https://github.com/cloudfoundry/loggregator-api#v2-envelope). + * It is used for logs and metrics emitted by CloudFoundry. It is + * supposed to contain the application instance index for applications + * deployed on the runtime. + * + * Application instrumentation should use the value from environment + * variable `CF_INSTANCE_INDEX`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_APP_INSTANCE_ID = 'cloudfoundry.app.instance.id' as const; + +/** + * The name of the application. + * + * @example my-app-name + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.application_name`. This is the same value + * as reported by `cf apps`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_APP_NAME = 'cloudfoundry.app.name' as const; + +/** + * The guid of the CloudFoundry org the application is running in. + * + * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.org_id`. This is the same value as + * reported by `cf org --guid`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_ORG_ID = 'cloudfoundry.org.id' as const; + +/** + * The name of the CloudFoundry organization the app is running in. + * + * @example my-org-name + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.org_name`. This is the same value as + * reported by `cf orgs`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_ORG_NAME = 'cloudfoundry.org.name' as const; + +/** + * The UID identifying the process. + * + * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to + * `VCAP_APPLICATION.app_id` for applications deployed to the runtime. + * For system components, this could be the actual PID. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_PROCESS_ID = 'cloudfoundry.process.id' as const; + +/** + * The type of process. + * + * @example web + * + * @note CloudFoundry applications can consist of multiple jobs. Usually the + * main process will be of type `web`. There can be additional background + * tasks or side-cars with different process types. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_PROCESS_TYPE = 'cloudfoundry.process.type' as const; + +/** + * The guid of the CloudFoundry space the application is running in. + * + * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.space_id`. This is the same value as + * reported by `cf space --guid`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_SPACE_ID = 'cloudfoundry.space.id' as const; + +/** + * The name of the CloudFoundry space the application is running in. + * + * @example my-space-name + * + * @note Application instrumentation should use the value from environment + * variable `VCAP_APPLICATION.space_name`. This is the same value as + * reported by `cf spaces`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_SPACE_NAME = 'cloudfoundry.space.name' as const; + +/** + * A guid or another name describing the event source. + * + * @example cf/gorouter + * + * @note CloudFoundry defines the `source_id` in the [Loggregator v2 envelope](https://github.com/cloudfoundry/loggregator-api#v2-envelope). + * It is used for logs and metrics emitted by CloudFoundry. It is + * supposed to contain the component name, e.g. "gorouter", for + * CloudFoundry components. + * + * When system components are instrumented, values from the + * [Bosh spec](https://bosh.io/docs/jobs/#properties-spec) + * should be used. The `system.id` should be set to + * `spec.deployment/spec.name`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_SYSTEM_ID = 'cloudfoundry.system.id' as const; + +/** + * A guid describing the concrete instance of the event source. + * + * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * + * @note CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope](https://github.com/cloudfoundry/loggregator-api#v2-envelope). + * It is used for logs and metrics emitted by CloudFoundry. It is + * supposed to contain the vm id for CloudFoundry components. + * + * When system components are instrumented, values from the + * [Bosh spec](https://bosh.io/docs/jobs/#properties-spec) + * should be used. The `system.instance.id` should be set to `spec.id`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CLOUDFOUNDRY_SYSTEM_INSTANCE_ID = 'cloudfoundry.system.instance.id' as const; + +/** + * Deprecated, use `code.column.number` + * + * @example 16 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `code.column.number`. + */ +export const ATTR_CODE_COLUMN = 'code.column' as const; + +/** + * Deprecated, use `code.file.path` instead + * + * @example "/usr/local/MyApplication/content_root/app/index.php" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `code.file.path`. + */ +export const ATTR_CODE_FILEPATH = 'code.filepath' as const; + +/** + * Deprecated, use `code.function.name` instead + * + * @example "serveRequest" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Value should be included in `code.function.name` which is expected to be a fully-qualified name. + */ +export const ATTR_CODE_FUNCTION = 'code.function' as const; + +/** + * Deprecated, use `code.line.number` instead + * + * @example 42 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `code.line.number`. + */ +export const ATTR_CODE_LINENO = 'code.lineno' as const; + +/** + * Deprecated, namespace is now included into `code.function.name` + * + * @example "com.example.MyHttpService" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Value should be included in `code.function.name` which is expected to be a fully-qualified name. + */ +export const ATTR_CODE_NAMESPACE = 'code.namespace' as const; + +/** + * The command used to run the container (i.e. the command name). + * + * @example otelcontribcol + * + * @note If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_COMMAND = 'container.command' as const; + +/** + * All the command arguments (including the command/executable itself) run by the container. + * + * @example ["otelcontribcol", "--config", "config.yaml"] + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_COMMAND_ARGS = 'container.command_args' as const; + +/** + * The full command run by the container as a single string representing the full command. + * + * @example otelcontribcol --config config.yaml + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_COMMAND_LINE = 'container.command_line' as const; + +/** + * Deprecated, use `cpu.mode` instead. + * + * @example user + * @example kernel + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `cpu.mode`. + */ +export const ATTR_CONTAINER_CPU_STATE = 'container.cpu.state' as const; + +/** + * Enum value "kernel" for attribute {@link ATTR_CONTAINER_CPU_STATE}. + * + * When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CONTAINER_CPU_STATE_VALUE_KERNEL = "kernel" as const; + +/** + * Enum value "system" for attribute {@link ATTR_CONTAINER_CPU_STATE}. + * + * When CPU is used by the system (host OS) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CONTAINER_CPU_STATE_VALUE_SYSTEM = "system" as const; + +/** + * Enum value "user" for attribute {@link ATTR_CONTAINER_CPU_STATE}. + * + * When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CONTAINER_CPU_STATE_VALUE_USER = "user" as const; + +/** + * The name of the CSI ([Container Storage Interface](https://github.com/container-storage-interface/spec)) plugin used by the volume. + * + * @example pd.csi.storage.gke.io + * + * @note This can sometimes be referred to as a "driver" in CSI implementations. This should represent the `name` field of the GetPluginInfo RPC. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_CSI_PLUGIN_NAME = 'container.csi.plugin.name' as const; + +/** + * The unique volume ID returned by the CSI ([Container Storage Interface](https://github.com/container-storage-interface/spec)) plugin. + * + * @example projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk + * + * @note This can sometimes be referred to as a "volume handle" in CSI implementations. This should represent the `Volume.volume_id` field in CSI spec. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_CSI_VOLUME_ID = 'container.csi.volume.id' as const; + +/** + * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated. + * + * @example a3bf90e006b2 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_ID = 'container.id' as const; /** - * Cloud provider-specific native identifier of the monitored cloud resource (e.g. an [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) on AWS, a [fully qualified resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) on Azure, a [full resource name](https://google.aip.dev/122#full-resource-names) on GCP) + * Runtime specific image identifier. Usually a hash algorithm followed by a UUID. * - * @example arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function - * @example //run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID - * @example /subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/ + * @example sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f * - * @note On some cloud providers, it may not be possible to determine the full ID at startup, - * so it may be necessary to set `cloud.resource_id` as a span attribute instead. + * @note Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API](https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect) endpoint. + * K8s defines a link to the container registry repository with digest `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`. + * The ID is assigned by the container runtime and can vary in different environments. Consider using `oci.manifest.digest` if it is important to identify the same image in different environments/runtimes. * - * The exact value to use for `cloud.resource_id` depends on the cloud provider. - * The following well-known definitions **MUST** be used if you set this attribute and they apply: + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_IMAGE_ID = 'container.image.id' as const; + +/** + * Name of the image the container was built on. * - * - **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). - * Take care not to use the "invoked ARN" directly but replace any - * [alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) - * with the resolved function version, as the same runtime instance may be invocable with - * multiple different aliases. - * - **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names) - * - **Azure:** The [Fully Qualified Resource ID](https://learn.microsoft.com/rest/api/resources/resources/get-by-id) of the invoked function, - * *not* the function app, having the form - * `/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/`. - * This means that a span attribute **MUST** be used, as an Azure function app can host multiple functions that would usually share - * a TracerProvider. + * @example gcr.io/opentelemetry/operator * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUD_RESOURCE_ID = 'cloud.resource_id' as const; +export const ATTR_CONTAINER_IMAGE_NAME = 'container.image.name' as const; /** - * The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. + * Repo digests of the container image as provided by the container runtime. * - * @example 123e4567-e89b-12d3-a456-426614174000 - * @example 0001 + * @example ["example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"] + * + * @note [Docker](https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDEVENTS_EVENT_ID = 'cloudevents.event_id' as const; +export const ATTR_CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests' as const; /** - * The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. + * Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect). Should be only the `` section of the full name for example from `registry.example.com/my-org/my-image:`. * - * @example https://github.com/cloudevents - * @example /cloudevents/spec/pull/123 - * @example my-service + * @example ["v1.27.1", "3.5.7-0"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDEVENTS_EVENT_SOURCE = 'cloudevents.event_source' as const; +export const ATTR_CONTAINER_IMAGE_TAGS = 'container.image.tags' as const; /** - * The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. + * Container labels, `` being the label name, the value being the label value. * - * @example "1.0" + * @example nginx + * + * @note For example, a docker container label `app` with value `nginx` **SHOULD** be recorded as the `container.label.app` attribute with value `"nginx"`. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDEVENTS_EVENT_SPEC_VERSION = 'cloudevents.event_spec_version' as const; +export const ATTR_CONTAINER_LABEL = (key: string) => `container.label.${key}`; /** - * The [subject](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject) of the event in the context of the event producer (identified by source). + * Deprecated, use `container.label` instead. * - * @example "mynewfile.jpg" + * @example nginx * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `container.label`. */ -export const ATTR_CLOUDEVENTS_EVENT_SUBJECT = 'cloudevents.event_subject' as const; +export const ATTR_CONTAINER_LABELS = (key: string) => `container.labels.${key}`; /** - * The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type) contains a value describing the type of event related to the originating occurrence. + * Container name used by container runtime. * - * @example com.github.pull_request.opened - * @example com.example.object.deleted.v2 + * @example opentelemetry-autoconf * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDEVENTS_EVENT_TYPE = 'cloudevents.event_type' as const; +export const ATTR_CONTAINER_NAME = 'container.name' as const; /** - * The guid of the application. + * The container runtime managing this container. * - * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * @example docker + * @example containerd + * @example rkt * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.application_id`. This is the same value as - * reported by `cf app --guid`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `container.runtime.name`. + */ +export const ATTR_CONTAINER_RUNTIME = 'container.runtime' as const; + +/** + * A description about the runtime which could include, for example details about the CRI/API version being used or other customisations. + * + * @example docker://19.3.1 - CRI: 1.22.0 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_APP_ID = 'cloudfoundry.app.id' as const; +export const ATTR_CONTAINER_RUNTIME_DESCRIPTION = 'container.runtime.description' as const; /** - * The index of the application instance. 0 when just one instance is active. + * The container runtime managing this container. * - * @example 0 - * @example 1 + * @example docker + * @example containerd + * @example rkt * - * @note CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope](https://github.com/cloudfoundry/loggregator-api#v2-envelope). - * It is used for logs and metrics emitted by CloudFoundry. It is - * supposed to contain the application instance index for applications - * deployed on the runtime. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CONTAINER_RUNTIME_NAME = 'container.runtime.name' as const; + +/** + * The version of the runtime of this process, as returned by the runtime without modification. * - * Application instrumentation should use the value from environment - * variable `CF_INSTANCE_INDEX`. + * @example "1.0.0" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_APP_INSTANCE_ID = 'cloudfoundry.app.instance.id' as const; +export const ATTR_CONTAINER_RUNTIME_VERSION = 'container.runtime.version' as const; /** - * The name of the application. + * The logical CPU number [0..n-1] * - * @example my-app-name + * @example 1 * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.application_name`. This is the same value - * as reported by `cf apps`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_CPU_LOGICAL_NUMBER = 'cpu.logical_number' as const; + +/** + * The mode of the CPU + * + * @example user + * @example system * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_APP_NAME = 'cloudfoundry.app.name' as const; +export const ATTR_CPU_MODE = 'cpu.mode' as const; /** - * The guid of the CloudFoundry org the application is running in. + * Enum value "idle" for attribute {@link ATTR_CPU_MODE}. * - * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * Idle * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.org_id`. This is the same value as - * reported by `cf org --guid`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_IDLE = "idle" as const; + +/** + * Enum value "interrupt" for attribute {@link ATTR_CPU_MODE}. + * + * Interrupt + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_INTERRUPT = "interrupt" as const; + +/** + * Enum value "iowait" for attribute {@link ATTR_CPU_MODE}. + * + * IO Wait + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_IOWAIT = "iowait" as const; + +/** + * Enum value "kernel" for attribute {@link ATTR_CPU_MODE}. + * + * Kernel + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_KERNEL = "kernel" as const; + +/** + * Enum value "nice" for attribute {@link ATTR_CPU_MODE}. + * + * Nice + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_NICE = "nice" as const; + +/** + * Enum value "steal" for attribute {@link ATTR_CPU_MODE}. + * + * Steal + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_STEAL = "steal" as const; + +/** + * Enum value "system" for attribute {@link ATTR_CPU_MODE}. + * + * System + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_SYSTEM = "system" as const; + +/** + * Enum value "user" for attribute {@link ATTR_CPU_MODE}. + * + * User + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPU_MODE_VALUE_USER = "user" as const; + +/** + * Value of the garbage collector collection generation. + * + * @example 0 + * @example 1 + * @example 2 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_ORG_ID = 'cloudfoundry.org.id' as const; +export const ATTR_CPYTHON_GC_GENERATION = 'cpython.gc.generation' as const; /** - * The name of the CloudFoundry organization the app is running in. + * Enum value 0 for attribute {@link ATTR_CPYTHON_GC_GENERATION}. * - * @example my-org-name + * Generation 0 * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.org_name`. This is the same value as - * reported by `cf orgs`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPYTHON_GC_GENERATION_VALUE_GENERATION_0 = 0 as const; + +/** + * Enum value 1 for attribute {@link ATTR_CPYTHON_GC_GENERATION}. + * + * Generation 1 + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPYTHON_GC_GENERATION_VALUE_GENERATION_1 = 1 as const; + +/** + * Enum value 2 for attribute {@link ATTR_CPYTHON_GC_GENERATION}. + * + * Generation 2 + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const CPYTHON_GC_GENERATION_VALUE_GENERATION_2 = 2 as const; + +/** + * Deprecated, use `cassandra.consistency.level` instead. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `cassandra.consistency.level`. */ -export const ATTR_CLOUDFOUNDRY_ORG_NAME = 'cloudfoundry.org.name' as const; +export const ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL = 'db.cassandra.consistency_level' as const; /** - * The UID identifying the process. + * Enum value "all" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_ALL = "all" as const; + +/** + * Enum value "any" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.process_id`. It is supposed to be equal to - * `VCAP_APPLICATION.app_id` for applications deployed to the runtime. - * For system components, this could be the actual PID. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_ANY = "any" as const; + +/** + * Enum value "each_quorum" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_PROCESS_ID = 'cloudfoundry.process.id' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_EACH_QUORUM = "each_quorum" as const; /** - * The type of process. - * - * @example web - * - * @note CloudFoundry applications can consist of multiple jobs. Usually the - * main process will be of type `web`. There can be additional background - * tasks or side-cars with different process types. + * Enum value "local_one" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_PROCESS_TYPE = 'cloudfoundry.process.type' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_ONE = "local_one" as const; /** - * The guid of the CloudFoundry space the application is running in. - * - * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d - * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.space_id`. This is the same value as - * reported by `cf space --guid`. + * Enum value "local_quorum" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_SPACE_ID = 'cloudfoundry.space.id' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_QUORUM = "local_quorum" as const; /** - * The name of the CloudFoundry space the application is running in. - * - * @example my-space-name - * - * @note Application instrumentation should use the value from environment - * variable `VCAP_APPLICATION.space_name`. This is the same value as - * reported by `cf spaces`. + * Enum value "local_serial" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_SPACE_NAME = 'cloudfoundry.space.name' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_SERIAL = "local_serial" as const; /** - * A guid or another name describing the event source. - * - * @example cf/gorouter - * - * @note CloudFoundry defines the `source_id` in the [Loggregator v2 envelope](https://github.com/cloudfoundry/loggregator-api#v2-envelope). - * It is used for logs and metrics emitted by CloudFoundry. It is - * supposed to contain the component name, e.g. "gorouter", for - * CloudFoundry components. - * - * When system components are instrumented, values from the - * [Bosh spec](https://bosh.io/docs/jobs/#properties-spec) - * should be used. The `system.id` should be set to - * `spec.deployment/spec.name`. + * Enum value "one" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_SYSTEM_ID = 'cloudfoundry.system.id' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_ONE = "one" as const; /** - * A guid describing the concrete instance of the event source. - * - * @example 218fc5a9-a5f1-4b54-aa05-46717d0ab26d - * - * @note CloudFoundry defines the `instance_id` in the [Loggregator v2 envelope](https://github.com/cloudfoundry/loggregator-api#v2-envelope). - * It is used for logs and metrics emitted by CloudFoundry. It is - * supposed to contain the vm id for CloudFoundry components. - * - * When system components are instrumented, values from the - * [Bosh spec](https://bosh.io/docs/jobs/#properties-spec) - * should be used. The `system.instance.id` should be set to `spec.id`. + * Enum value "quorum" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CLOUDFOUNDRY_SYSTEM_INSTANCE_ID = 'cloudfoundry.system.instance.id' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_QUORUM = "quorum" as const; /** - * Deprecated, use `code.column.number` - * - * @example 16 - * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Enum value "serial" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @deprecated Replaced by `code.column.number`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CODE_COLUMN = 'code.column' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_SERIAL = "serial" as const; /** - * Deprecated, use `code.file.path` instead - * - * @example "/usr/local/MyApplication/content_root/app/index.php" + * Enum value "three" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_THREE = "three" as const; + +/** + * Enum value "two" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. * - * @deprecated Replaced by `code.file.path`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CODE_FILEPATH = 'code.filepath' as const; +export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_TWO = "two" as const; /** - * Deprecated, use `code.function.name` instead + * Deprecated, use `cassandra.coordinator.dc` instead. * - * @example "serveRequest" + * @example "us-west-2" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Value should be included in `code.function.name` which is expected to be a fully-qualified name. + * @deprecated Replaced by `cassandra.coordinator.dc`. */ -export const ATTR_CODE_FUNCTION = 'code.function' as const; +export const ATTR_DB_CASSANDRA_COORDINATOR_DC = 'db.cassandra.coordinator.dc' as const; /** - * Deprecated, use `code.line.number` instead + * Deprecated, use `cassandra.coordinator.id` instead. * - * @example 42 + * @example "be13faa2-8574-4d71-926d-27f16cf8a7af" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `code.line.number`. + * @deprecated Replaced by `cassandra.coordinator.id`. */ -export const ATTR_CODE_LINENO = 'code.lineno' as const; +export const ATTR_DB_CASSANDRA_COORDINATOR_ID = 'db.cassandra.coordinator.id' as const; /** - * Deprecated, namespace is now included into `code.function.name` - * - * @example "com.example.MyHttpService" + * Deprecated, use `cassandra.query.idempotent` instead. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Value should be included in `code.function.name` which is expected to be a fully-qualified name. + * @deprecated Replaced by `cassandra.query.idempotent`. */ -export const ATTR_CODE_NAMESPACE = 'code.namespace' as const; +export const ATTR_DB_CASSANDRA_IDEMPOTENCE = 'db.cassandra.idempotence' as const; /** - * The command used to run the container (i.e. the command name). - * - * @example otelcontribcol + * Deprecated, use `cassandra.page.size` instead. * - * @note If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. + * @example 5000 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `cassandra.page.size`. */ -export const ATTR_CONTAINER_COMMAND = 'container.command' as const; +export const ATTR_DB_CASSANDRA_PAGE_SIZE = 'db.cassandra.page_size' as const; /** - * All the command arguments (including the command/executable itself) run by the container. + * Deprecated, use `cassandra.speculative_execution.count` instead. * - * @example ["otelcontribcol", "--config", "config.yaml"] + * @example 0 + * @example 2 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `cassandra.speculative_execution.count`. */ -export const ATTR_CONTAINER_COMMAND_ARGS = 'container.command_args' as const; +export const ATTR_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = 'db.cassandra.speculative_execution_count' as const; /** - * The full command run by the container as a single string representing the full command. + * Deprecated, use `db.collection.name` instead. * - * @example otelcontribcol --config config.yaml + * @example "mytable" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.collection.name`. */ -export const ATTR_CONTAINER_COMMAND_LINE = 'container.command_line' as const; +export const ATTR_DB_CASSANDRA_TABLE = 'db.cassandra.table' as const; /** - * Deprecated, use `cpu.mode` instead. + * The name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation **SHOULD** use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns **SHOULD** document it. * - * @example user - * @example kernel + * @example myDataSource * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `cpu.mode`. */ -export const ATTR_CONTAINER_CPU_STATE = 'container.cpu.state' as const; +export const ATTR_DB_CLIENT_CONNECTION_POOL_NAME = 'db.client.connection.pool.name' as const; /** - * Enum value "kernel" for attribute {@link ATTR_CONTAINER_CPU_STATE}. + * The state of a connection in the pool * - * When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). + * @example idle * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CONTAINER_CPU_STATE_VALUE_KERNEL = "kernel" as const; +export const ATTR_DB_CLIENT_CONNECTION_STATE = 'db.client.connection.state' as const; /** - * Enum value "system" for attribute {@link ATTR_CONTAINER_CPU_STATE}. - * - * When CPU is used by the system (host OS) + * Enum value "idle" for attribute {@link ATTR_DB_CLIENT_CONNECTION_STATE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CONTAINER_CPU_STATE_VALUE_SYSTEM = "system" as const; +export const DB_CLIENT_CONNECTION_STATE_VALUE_IDLE = "idle" as const; /** - * Enum value "user" for attribute {@link ATTR_CONTAINER_CPU_STATE}. - * - * When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). + * Enum value "used" for attribute {@link ATTR_DB_CLIENT_CONNECTION_STATE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CONTAINER_CPU_STATE_VALUE_USER = "user" as const; +export const DB_CLIENT_CONNECTION_STATE_VALUE_USED = "used" as const; /** - * The name of the CSI ([Container Storage Interface](https://github.com/container-storage-interface/spec)) plugin used by the volume. - * - * @example pd.csi.storage.gke.io + * Deprecated, use `db.client.connection.pool.name` instead. * - * @note This can sometimes be referred to as a "driver" in CSI implementations. This should represent the `name` field of the GetPluginInfo RPC. + * @example myDataSource * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.client.connection.pool.name`. */ -export const ATTR_CONTAINER_CSI_PLUGIN_NAME = 'container.csi.plugin.name' as const; +export const ATTR_DB_CLIENT_CONNECTIONS_POOL_NAME = 'db.client.connections.pool.name' as const; /** - * The unique volume ID returned by the CSI ([Container Storage Interface](https://github.com/container-storage-interface/spec)) plugin. - * - * @example projects/my-gcp-project/zones/my-gcp-zone/disks/my-gcp-disk + * Deprecated, use `db.client.connection.state` instead. * - * @note This can sometimes be referred to as a "volume handle" in CSI implementations. This should represent the `Volume.volume_id` field in CSI spec. + * @example idle * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.client.connection.state`. */ -export const ATTR_CONTAINER_CSI_VOLUME_ID = 'container.csi.volume.id' as const; +export const ATTR_DB_CLIENT_CONNECTIONS_STATE = 'db.client.connections.state' as const; /** - * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated. - * - * @example a3bf90e006b2 + * Enum value "idle" for attribute {@link ATTR_DB_CLIENT_CONNECTIONS_STATE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CONTAINER_ID = 'container.id' as const; +export const DB_CLIENT_CONNECTIONS_STATE_VALUE_IDLE = "idle" as const; /** - * Runtime specific image identifier. Usually a hash algorithm followed by a UUID. - * - * @example sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f - * - * @note Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API](https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect) endpoint. - * K8s defines a link to the container registry repository with digest `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`. - * The ID is assigned by the container runtime and can vary in different environments. Consider using `oci.manifest.digest` if it is important to identify the same image in different environments/runtimes. + * Enum value "used" for attribute {@link ATTR_DB_CLIENT_CONNECTIONS_STATE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CONTAINER_IMAGE_ID = 'container.image.id' as const; +export const DB_CLIENT_CONNECTIONS_STATE_VALUE_USED = "used" as const; /** - * Name of the image the container was built on. + * Deprecated, use `server.address`, `server.port` attributes instead. * - * @example gcr.io/opentelemetry/operator + * @example "Server=(localdb)\\v11.0;Integrated Security=true;" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `server.address` and `server.port`. */ -export const ATTR_CONTAINER_IMAGE_NAME = 'container.image.name' as const; +export const ATTR_DB_CONNECTION_STRING = 'db.connection_string' as const; /** - * Repo digests of the container image as provided by the container runtime. - * - * @example ["example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"] + * Deprecated, use `azure.client.id` instead. * - * @note [Docker](https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field. + * @example "3ba4827d-4422-483f-b59f-85b74211c11d" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.client.id`. */ -export const ATTR_CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests' as const; +export const ATTR_DB_COSMOSDB_CLIENT_ID = 'db.cosmosdb.client_id' as const; /** - * Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect). Should be only the `` section of the full name for example from `registry.example.com/my-org/my-image:`. - * - * @example ["v1.27.1", "3.5.7-0"] + * Deprecated, use `azure.cosmosdb.connection.mode` instead. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.cosmosdb.connection.mode`. */ -export const ATTR_CONTAINER_IMAGE_TAGS = 'container.image.tags' as const; +export const ATTR_DB_COSMOSDB_CONNECTION_MODE = 'db.cosmosdb.connection_mode' as const; /** - * Container labels, `` being the label name, the value being the label value. - * - * @example nginx + * Enum value "direct" for attribute {@link ATTR_DB_COSMOSDB_CONNECTION_MODE}. * - * @note For example, a docker container label `app` with value `nginx` **SHOULD** be recorded as the `container.label.app` attribute with value `"nginx"`. + * Direct connection. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CONTAINER_LABEL = (key: string) => `container.label.${key}`; +export const DB_COSMOSDB_CONNECTION_MODE_VALUE_DIRECT = "direct" as const; /** - * Deprecated, use `container.label` instead. - * - * @example nginx + * Enum value "gateway" for attribute {@link ATTR_DB_COSMOSDB_CONNECTION_MODE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Gateway (HTTP) connection. * - * @deprecated Replaced by `container.label`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CONTAINER_LABELS = (key: string) => `container.labels.${key}`; +export const DB_COSMOSDB_CONNECTION_MODE_VALUE_GATEWAY = "gateway" as const; /** - * Container name used by container runtime. + * Deprecated, use `cosmosdb.consistency.level` instead. * - * @example opentelemetry-autoconf + * @example Eventual + * @example ConsistentPrefix + * @example BoundedStaleness + * @example Strong + * @example Session * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.cosmosdb.consistency.level`. */ -export const ATTR_CONTAINER_NAME = 'container.name' as const; +export const ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL = 'db.cosmosdb.consistency_level' as const; /** - * The container runtime managing this container. - * - * @example docker - * @example containerd - * @example rkt + * Enum value "BoundedStaleness" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CONTAINER_RUNTIME = 'container.runtime' as const; +export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_BOUNDED_STALENESS = "BoundedStaleness" as const; /** - * The logical CPU number [0..n-1] - * - * @example 1 + * Enum value "ConsistentPrefix" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CPU_LOGICAL_NUMBER = 'cpu.logical_number' as const; +export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_CONSISTENT_PREFIX = "ConsistentPrefix" as const; /** - * The mode of the CPU - * - * @example user - * @example system + * Enum value "Eventual" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CPU_MODE = 'cpu.mode' as const; +export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_EVENTUAL = "Eventual" as const; /** - * Enum value "idle" for attribute {@link ATTR_CPU_MODE}. + * Enum value "Session" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPU_MODE_VALUE_IDLE = "idle" as const; +export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_SESSION = "Session" as const; /** - * Enum value "interrupt" for attribute {@link ATTR_CPU_MODE}. + * Enum value "Strong" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPU_MODE_VALUE_INTERRUPT = "interrupt" as const; +export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_STRONG = "Strong" as const; /** - * Enum value "iowait" for attribute {@link ATTR_CPU_MODE}. + * Deprecated, use `db.collection.name` instead. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example "mytable" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.collection.name`. */ -export const CPU_MODE_VALUE_IOWAIT = "iowait" as const; +export const ATTR_DB_COSMOSDB_CONTAINER = 'db.cosmosdb.container' as const; /** - * Enum value "kernel" for attribute {@link ATTR_CPU_MODE}. + * Deprecated, no replacement at this time. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Removed, no replacement at this time. */ -export const CPU_MODE_VALUE_KERNEL = "kernel" as const; +export const ATTR_DB_COSMOSDB_OPERATION_TYPE = 'db.cosmosdb.operation_type' as const; /** - * Enum value "nice" for attribute {@link ATTR_CPU_MODE}. + * Enum value "batch" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPU_MODE_VALUE_NICE = "nice" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_BATCH = "batch" as const; /** - * Enum value "steal" for attribute {@link ATTR_CPU_MODE}. + * Enum value "create" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPU_MODE_VALUE_STEAL = "steal" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_CREATE = "create" as const; /** - * Enum value "system" for attribute {@link ATTR_CPU_MODE}. + * Enum value "delete" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPU_MODE_VALUE_SYSTEM = "system" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_DELETE = "delete" as const; /** - * Enum value "user" for attribute {@link ATTR_CPU_MODE}. + * Enum value "execute" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPU_MODE_VALUE_USER = "user" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_EXECUTE = "execute" as const; /** - * Value of the garbage collector collection generation. - * - * @example 0 - * @example 1 - * @example 2 + * Enum value "execute_javascript" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_CPYTHON_GC_GENERATION = 'cpython.gc.generation' as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_EXECUTE_JAVASCRIPT = "execute_javascript" as const; /** - * Enum value 0 for attribute {@link ATTR_CPYTHON_GC_GENERATION}. - * - * Generation 0 + * Enum value "head" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPYTHON_GC_GENERATION_VALUE_GENERATION_0 = 0 as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_HEAD = "head" as const; /** - * Enum value 1 for attribute {@link ATTR_CPYTHON_GC_GENERATION}. - * - * Generation 1 + * Enum value "head_feed" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPYTHON_GC_GENERATION_VALUE_GENERATION_1 = 1 as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_HEAD_FEED = "head_feed" as const; /** - * Enum value 2 for attribute {@link ATTR_CPYTHON_GC_GENERATION}. - * - * Generation 2 + * Enum value "invalid" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const CPYTHON_GC_GENERATION_VALUE_GENERATION_2 = 2 as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_INVALID = "invalid" as const; /** - * Deprecated, use `cassandra.consistency.level` instead. - * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Enum value "patch" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * - * @deprecated Replaced by `cassandra.consistency.level`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL = 'db.cassandra.consistency_level' as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_PATCH = "patch" as const; /** - * Enum value "all" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Enum value "query" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_ALL = "all" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_QUERY = "query" as const; /** - * Enum value "any" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Enum value "query_plan" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_ANY = "any" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_QUERY_PLAN = "query_plan" as const; /** - * Enum value "each_quorum" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Enum value "read" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_EACH_QUORUM = "each_quorum" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_READ = "read" as const; /** - * Enum value "local_one" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Enum value "read_feed" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_ONE = "local_one" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_READ_FEED = "read_feed" as const; /** - * Enum value "local_quorum" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Enum value "replace" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_QUORUM = "local_quorum" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_REPLACE = "replace" as const; /** - * Enum value "local_serial" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Enum value "upsert" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_LOCAL_SERIAL = "local_serial" as const; +export const DB_COSMOSDB_OPERATION_TYPE_VALUE_UPSERT = "upsert" as const; /** - * Enum value "one" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Deprecated, use `azure.cosmosdb.operation.contacted_regions` instead. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example ["North Central US", "Australia East", "Australia Southeast"] + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.cosmosdb.operation.contacted_regions`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_ONE = "one" as const; +export const ATTR_DB_COSMOSDB_REGIONS_CONTACTED = 'db.cosmosdb.regions_contacted' as const; /** - * Enum value "quorum" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Deprecated, use `azure.cosmosdb.operation.request_charge` instead. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example 46.18 + * @example 1.0 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.cosmosdb.operation.request_charge`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_QUORUM = "quorum" as const; +export const ATTR_DB_COSMOSDB_REQUEST_CHARGE = 'db.cosmosdb.request_charge' as const; /** - * Enum value "serial" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Deprecated, use `azure.cosmosdb.request.body.size` instead. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.cosmosdb.request.body.size`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_SERIAL = "serial" as const; +export const ATTR_DB_COSMOSDB_REQUEST_CONTENT_LENGTH = 'db.cosmosdb.request_content_length' as const; /** - * Enum value "three" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Deprecated, use `db.response.status_code` instead. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example 200 + * @example 201 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.response.status_code`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_THREE = "three" as const; +export const ATTR_DB_COSMOSDB_STATUS_CODE = 'db.cosmosdb.status_code' as const; /** - * Enum value "two" for attribute {@link ATTR_DB_CASSANDRA_CONSISTENCY_LEVEL}. + * Deprecated, use `azure.cosmosdb.response.sub_status_code` instead. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example 1000 + * @example 1002 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `azure.cosmosdb.response.sub_status_code`. */ -export const DB_CASSANDRA_CONSISTENCY_LEVEL_VALUE_TWO = "two" as const; +export const ATTR_DB_COSMOSDB_SUB_STATUS_CODE = 'db.cosmosdb.sub_status_code' as const; /** - * Deprecated, use `cassandra.coordinator.dc` instead. + * Deprecated, use `db.namespace` instead. * - * @example "us-west-2" + * @example e9106fc68e3044f0b1475b04bf4ffd5f * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `cassandra.coordinator.dc`. + * @deprecated Replaced by `db.namespace`. */ -export const ATTR_DB_CASSANDRA_COORDINATOR_DC = 'db.cassandra.coordinator.dc' as const; +export const ATTR_DB_ELASTICSEARCH_CLUSTER_NAME = 'db.elasticsearch.cluster.name' as const; /** - * Deprecated, use `cassandra.coordinator.id` instead. + * Deprecated, use `elasticsearch.node.name` instead. * - * @example "be13faa2-8574-4d71-926d-27f16cf8a7af" + * @example instance-0000000001 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `cassandra.coordinator.id`. + * @deprecated Replaced by `elasticsearch.node.name`. */ -export const ATTR_DB_CASSANDRA_COORDINATOR_ID = 'db.cassandra.coordinator.id' as const; +export const ATTR_DB_ELASTICSEARCH_NODE_NAME = 'db.elasticsearch.node.name' as const; /** - * Deprecated, use `cassandra.query.idempotent` instead. + * Deprecated, use `db.operation.parameter` instead. + * + * @example test-index + * @example 123 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `cassandra.query.idempotent`. + * @deprecated Replaced by `db.operation.parameter`. */ -export const ATTR_DB_CASSANDRA_IDEMPOTENCE = 'db.cassandra.idempotence' as const; +export const ATTR_DB_ELASTICSEARCH_PATH_PARTS = (key: string) => `db.elasticsearch.path_parts.${key}`; /** - * Deprecated, use `cassandra.page.size` instead. + * Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. * - * @example 5000 + * @example "mysql-e26b99z.example.com" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `cassandra.page.size`. + * @deprecated Removed, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. */ -export const ATTR_DB_CASSANDRA_PAGE_SIZE = 'db.cassandra.page_size' as const; +export const ATTR_DB_INSTANCE_ID = 'db.instance.id' as const; /** - * Deprecated, use `cassandra.speculative_execution.count` instead. + * Removed, no replacement at this time. * - * @example 0 - * @example 2 + * @example org.postgresql.Driver + * @example com.microsoft.sqlserver.jdbc.SQLServerDriver * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `cassandra.speculative_execution.count`. + * @deprecated Removed, no replacement at this time. */ -export const ATTR_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = 'db.cassandra.speculative_execution_count' as const; +export const ATTR_DB_JDBC_DRIVER_CLASSNAME = 'db.jdbc.driver_classname' as const; /** * Deprecated, use `db.collection.name` instead. * - * @example "mytable" + * @example "mytable" + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.collection.name`. + */ +export const ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection' as const; + +/** + * Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. + * + * @example "MSSQLSERVER" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `db.collection.name`. + * @deprecated Removed, no replacement at this time. */ -export const ATTR_DB_CASSANDRA_TABLE = 'db.cassandra.table' as const; +export const ATTR_DB_MSSQL_INSTANCE_NAME = 'db.mssql.instance_name' as const; /** - * The name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation **SHOULD** use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns **SHOULD** document it. + * Deprecated, use `db.namespace` instead. * - * @example myDataSource + * @example customers + * @example main * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `db.namespace`. */ -export const ATTR_DB_CLIENT_CONNECTION_POOL_NAME = 'db.client.connection.pool.name' as const; +export const ATTR_DB_NAME = 'db.name' as const; /** - * The state of a connection in the pool + * Deprecated, use `db.operation.name` instead. * - * @example idle + * @example findAndModify + * @example HMSET + * @example SELECT * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const ATTR_DB_CLIENT_CONNECTION_STATE = 'db.client.connection.state' as const; - -/** - * Enum value "idle" for attribute {@link ATTR_DB_CLIENT_CONNECTION_STATE}. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @deprecated Replaced by `db.operation.name`. */ -export const DB_CLIENT_CONNECTION_STATE_VALUE_IDLE = "idle" as const; +export const ATTR_DB_OPERATION = 'db.operation' as const; /** - * Enum value "used" for attribute {@link ATTR_DB_CLIENT_CONNECTION_STATE}. + * A database operation parameter, with `` being the parameter name, and the attribute value being a string representation of the parameter value. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example someval + * @example 55 + * + * @note For example, a client-side maximum number of rows to read from the database + * **MAY** be recorded as the `db.operation.parameter.max_rows` attribute. + * + * `db.query.text` parameters **SHOULD** be captured using `db.query.parameter.` + * instead of `db.operation.parameter.`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CLIENT_CONNECTION_STATE_VALUE_USED = "used" as const; +export const ATTR_DB_OPERATION_PARAMETER = (key: string) => `db.operation.parameter.${key}`; /** - * Deprecated, use `db.client.connection.pool.name` instead. + * A database query parameter, with `` being the parameter name, and the attribute value being a string representation of the parameter value. * - * @example myDataSource + * @example someval + * @example 55 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note If a query parameter has no name and instead is referenced only by index, + * then `` **SHOULD** be the 0-based index. * - * @deprecated Replaced by `db.client.connection.pool.name`. + * `db.query.parameter.` **SHOULD** match + * up with the parameterized placeholders present in `db.query.text`. + * + * `db.query.parameter.` **SHOULD NOT** be captured on batch operations. + * + * Examples: + * + * - For a query `SELECT * FROM users where username = %s` with the parameter `"jdoe"`, + * the attribute `db.query.parameter.0` **SHOULD** be set to `"jdoe"`. + * - For a query `"SELECT * FROM users WHERE username = %(username)s;` with parameter + * `username = "jdoe"`, the attribute `db.query.parameter.username` **SHOULD** be set to `"jdoe"`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_CLIENT_CONNECTIONS_POOL_NAME = 'db.client.connections.pool.name' as const; +export const ATTR_DB_QUERY_PARAMETER = (key: string) => `db.query.parameter.${key}`; /** - * Deprecated, use `db.client.connection.state` instead. + * Deprecated, use `db.namespace` instead. * - * @example idle + * @example 0 + * @example 1 + * @example 15 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `db.client.connection.state`. + * @deprecated Replaced by `db.namespace`. */ -export const ATTR_DB_CLIENT_CONNECTIONS_STATE = 'db.client.connections.state' as const; +export const ATTR_DB_REDIS_DATABASE_INDEX = 'db.redis.database_index' as const; /** - * Enum value "idle" for attribute {@link ATTR_DB_CLIENT_CONNECTIONS_STATE}. + * Number of rows returned by the operation. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const DB_CLIENT_CONNECTIONS_STATE_VALUE_IDLE = "idle" as const; - -/** - * Enum value "used" for attribute {@link ATTR_DB_CLIENT_CONNECTIONS_STATE}. + * @example 10 + * @example 30 + * @example 1000 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_CLIENT_CONNECTIONS_STATE_VALUE_USED = "used" as const; +export const ATTR_DB_RESPONSE_RETURNED_ROWS = 'db.response.returned_rows' as const; /** - * Deprecated, use `server.address`, `server.port` attributes instead. + * Deprecated, use `db.collection.name` instead. * - * @example "Server=(localdb)\\v11.0;Integrated Security=true;" + * @example "mytable" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `server.address` and `server.port`. + * @deprecated Replaced by `db.collection.name`, but only if not extracting the value from `db.query.text`. */ -export const ATTR_DB_CONNECTION_STRING = 'db.connection_string' as const; +export const ATTR_DB_SQL_TABLE = 'db.sql.table' as const; /** - * Deprecated, use `azure.client.id` instead. + * The database statement being executed. * - * @example "3ba4827d-4422-483f-b59f-85b74211c11d" + * @example SELECT * FROM wuser_table + * @example SET mykey "WuValue" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `azure.client.id`. + * @deprecated Replaced by `db.query.text`. */ -export const ATTR_DB_COSMOSDB_CLIENT_ID = 'db.cosmosdb.client_id' as const; +export const ATTR_DB_STATEMENT = 'db.statement' as const; /** - * Deprecated, use `azure.cosmosdb.connection.mode` instead. + * Deprecated, use `db.system.name` instead. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `azure.cosmosdb.connection.mode`. + * @deprecated Replaced by `db.system.name`. */ -export const ATTR_DB_COSMOSDB_CONNECTION_MODE = 'db.cosmosdb.connection_mode' as const; +export const ATTR_DB_SYSTEM = 'db.system' as const; /** - * Enum value "direct" for attribute {@link ATTR_DB_COSMOSDB_CONNECTION_MODE}. + * Enum value "adabas" for attribute {@link ATTR_DB_SYSTEM}. * - * Direct connection. + * Adabas (Adaptable Database System) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_CONNECTION_MODE_VALUE_DIRECT = "direct" as const; +export const DB_SYSTEM_VALUE_ADABAS = "adabas" as const; /** - * Enum value "gateway" for attribute {@link ATTR_DB_COSMOSDB_CONNECTION_MODE}. + * Enum value "cache" for attribute {@link ATTR_DB_SYSTEM}. * - * Gateway (HTTP) connection. + * Deprecated, use `intersystems_cache` instead. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const DB_COSMOSDB_CONNECTION_MODE_VALUE_GATEWAY = "gateway" as const; - -/** - * Deprecated, use `cosmosdb.consistency.level` instead. - * - * @example Eventual - * @example ConsistentPrefix - * @example BoundedStaleness - * @example Strong - * @example Session - * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `azure.cosmosdb.consistency.level`. + * @deprecated Replaced by `intersystems_cache`. */ -export const ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL = 'db.cosmosdb.consistency_level' as const; +export const DB_SYSTEM_VALUE_CACHE = "cache" as const; /** - * Enum value "BoundedStaleness" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "cassandra" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - */ -export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_BOUNDED_STALENESS = "BoundedStaleness" as const; - -/** - * Enum value "ConsistentPrefix" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. + * Apache Cassandra * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_CONSISTENT_PREFIX = "ConsistentPrefix" as const; +export const DB_SYSTEM_VALUE_CASSANDRA = "cassandra" as const; /** - * Enum value "Eventual" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "clickhouse" for attribute {@link ATTR_DB_SYSTEM}. + * + * ClickHouse * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_EVENTUAL = "Eventual" as const; +export const DB_SYSTEM_VALUE_CLICKHOUSE = "clickhouse" as const; /** - * Enum value "Session" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "cloudscape" for attribute {@link ATTR_DB_SYSTEM}. + * + * Deprecated, use `other_sql` instead. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `other_sql`. */ -export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_SESSION = "Session" as const; +export const DB_SYSTEM_VALUE_CLOUDSCAPE = "cloudscape" as const; /** - * Enum value "Strong" for attribute {@link ATTR_DB_COSMOSDB_CONSISTENCY_LEVEL}. + * Enum value "cockroachdb" for attribute {@link ATTR_DB_SYSTEM}. + * + * CockroachDB * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_CONSISTENCY_LEVEL_VALUE_STRONG = "Strong" as const; +export const DB_SYSTEM_VALUE_COCKROACHDB = "cockroachdb" as const; /** - * Deprecated, use `db.collection.name` instead. + * Enum value "coldfusion" for attribute {@link ATTR_DB_SYSTEM}. * - * @example "mytable" + * Deprecated, no replacement at this time. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `db.collection.name`. + * @deprecated Obsoleted. */ -export const ATTR_DB_COSMOSDB_CONTAINER = 'db.cosmosdb.container' as const; +export const DB_SYSTEM_VALUE_COLDFUSION = "coldfusion" as const; /** - * Deprecated, no replacement at this time. + * Enum value "cosmosdb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Microsoft Azure Cosmos DB * - * @deprecated Removed, no replacement at this time. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_COSMOSDB_OPERATION_TYPE = 'db.cosmosdb.operation_type' as const; +export const DB_SYSTEM_VALUE_COSMOSDB = "cosmosdb" as const; /** - * Enum value "batch" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "couchbase" for attribute {@link ATTR_DB_SYSTEM}. + * + * Couchbase * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_BATCH = "batch" as const; +export const DB_SYSTEM_VALUE_COUCHBASE = "couchbase" as const; /** - * Enum value "create" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "couchdb" for attribute {@link ATTR_DB_SYSTEM}. + * + * CouchDB * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_CREATE = "create" as const; +export const DB_SYSTEM_VALUE_COUCHDB = "couchdb" as const; /** - * Enum value "delete" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "db2" for attribute {@link ATTR_DB_SYSTEM}. + * + * IBM Db2 * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_DELETE = "delete" as const; +export const DB_SYSTEM_VALUE_DB2 = "db2" as const; /** - * Enum value "execute" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "derby" for attribute {@link ATTR_DB_SYSTEM}. + * + * Apache Derby * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_EXECUTE = "execute" as const; +export const DB_SYSTEM_VALUE_DERBY = "derby" as const; /** - * Enum value "execute_javascript" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "dynamodb" for attribute {@link ATTR_DB_SYSTEM}. + * + * Amazon DynamoDB * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_EXECUTE_JAVASCRIPT = "execute_javascript" as const; +export const DB_SYSTEM_VALUE_DYNAMODB = "dynamodb" as const; /** - * Enum value "head" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "edb" for attribute {@link ATTR_DB_SYSTEM}. + * + * EnterpriseDB * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_HEAD = "head" as const; +export const DB_SYSTEM_VALUE_EDB = "edb" as const; /** - * Enum value "head_feed" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "elasticsearch" for attribute {@link ATTR_DB_SYSTEM}. + * + * Elasticsearch * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_HEAD_FEED = "head_feed" as const; +export const DB_SYSTEM_VALUE_ELASTICSEARCH = "elasticsearch" as const; /** - * Enum value "invalid" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "filemaker" for attribute {@link ATTR_DB_SYSTEM}. + * + * FileMaker * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_INVALID = "invalid" as const; +export const DB_SYSTEM_VALUE_FILEMAKER = "filemaker" as const; /** - * Enum value "patch" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "firebird" for attribute {@link ATTR_DB_SYSTEM}. + * + * Firebird * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_PATCH = "patch" as const; +export const DB_SYSTEM_VALUE_FIREBIRD = "firebird" as const; /** - * Enum value "query" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "firstsql" for attribute {@link ATTR_DB_SYSTEM}. + * + * Deprecated, use `other_sql` instead. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `other_sql`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_QUERY = "query" as const; +export const DB_SYSTEM_VALUE_FIRSTSQL = "firstsql" as const; /** - * Enum value "query_plan" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "geode" for attribute {@link ATTR_DB_SYSTEM}. + * + * Apache Geode * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_QUERY_PLAN = "query_plan" as const; +export const DB_SYSTEM_VALUE_GEODE = "geode" as const; /** - * Enum value "read" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "h2" for attribute {@link ATTR_DB_SYSTEM}. + * + * H2 * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_READ = "read" as const; +export const DB_SYSTEM_VALUE_H2 = "h2" as const; /** - * Enum value "read_feed" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "hanadb" for attribute {@link ATTR_DB_SYSTEM}. + * + * SAP HANA * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_READ_FEED = "read_feed" as const; +export const DB_SYSTEM_VALUE_HANADB = "hanadb" as const; /** - * Enum value "replace" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "hbase" for attribute {@link ATTR_DB_SYSTEM}. + * + * Apache HBase * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_REPLACE = "replace" as const; +export const DB_SYSTEM_VALUE_HBASE = "hbase" as const; /** - * Enum value "upsert" for attribute {@link ATTR_DB_COSMOSDB_OPERATION_TYPE}. + * Enum value "hive" for attribute {@link ATTR_DB_SYSTEM}. + * + * Apache Hive * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_COSMOSDB_OPERATION_TYPE_VALUE_UPSERT = "upsert" as const; +export const DB_SYSTEM_VALUE_HIVE = "hive" as const; /** - * Deprecated, use `azure.cosmosdb.operation.contacted_regions` instead. - * - * @example ["North Central US", "Australia East", "Australia Southeast"] + * Enum value "hsqldb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * HyperSQL DataBase * - * @deprecated Replaced by `azure.cosmosdb.operation.contacted_regions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_COSMOSDB_REGIONS_CONTACTED = 'db.cosmosdb.regions_contacted' as const; +export const DB_SYSTEM_VALUE_HSQLDB = "hsqldb" as const; /** - * Deprecated, use `azure.cosmosdb.operation.request_charge` instead. - * - * @example 46.18 - * @example 1.0 + * Enum value "influxdb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * InfluxDB * - * @deprecated Replaced by `azure.cosmosdb.operation.request_charge`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_COSMOSDB_REQUEST_CHARGE = 'db.cosmosdb.request_charge' as const; +export const DB_SYSTEM_VALUE_INFLUXDB = "influxdb" as const; /** - * Deprecated, use `azure.cosmosdb.request.body.size` instead. + * Enum value "informix" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Informix * - * @deprecated Replaced by `azure.cosmosdb.request.body.size`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_COSMOSDB_REQUEST_CONTENT_LENGTH = 'db.cosmosdb.request_content_length' as const; +export const DB_SYSTEM_VALUE_INFORMIX = "informix" as const; /** - * Deprecated, use `db.response.status_code` instead. - * - * @example 200 - * @example 201 + * Enum value "ingres" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Ingres * - * @deprecated Replaced by `db.response.status_code`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_COSMOSDB_STATUS_CODE = 'db.cosmosdb.status_code' as const; +export const DB_SYSTEM_VALUE_INGRES = "ingres" as const; /** - * Deprecated, use `azure.cosmosdb.response.sub_status_code` instead. - * - * @example 1000 - * @example 1002 + * Enum value "instantdb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * InstantDB * - * @deprecated Replaced by `azure.cosmosdb.response.sub_status_code`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_COSMOSDB_SUB_STATUS_CODE = 'db.cosmosdb.sub_status_code' as const; +export const DB_SYSTEM_VALUE_INSTANTDB = "instantdb" as const; /** - * Deprecated, use `db.namespace` instead. - * - * @example e9106fc68e3044f0b1475b04bf4ffd5f + * Enum value "interbase" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * InterBase * - * @deprecated Replaced by `db.namespace`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_ELASTICSEARCH_CLUSTER_NAME = 'db.elasticsearch.cluster.name' as const; +export const DB_SYSTEM_VALUE_INTERBASE = "interbase" as const; /** - * Deprecated, use `elasticsearch.node.name` instead. - * - * @example instance-0000000001 + * Enum value "intersystems_cache" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * InterSystems Caché * - * @deprecated Replaced by `elasticsearch.node.name`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_ELASTICSEARCH_NODE_NAME = 'db.elasticsearch.node.name' as const; +export const DB_SYSTEM_VALUE_INTERSYSTEMS_CACHE = "intersystems_cache" as const; /** - * Deprecated, use `db.operation.parameter` instead. - * - * @example test-index - * @example 123 + * Enum value "mariadb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * MariaDB * - * @deprecated Replaced by `db.operation.parameter`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_ELASTICSEARCH_PATH_PARTS = (key: string) => `db.elasticsearch.path_parts.${key}`; +export const DB_SYSTEM_VALUE_MARIADB = "mariadb" as const; /** - * Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. - * - * @example "mysql-e26b99z.example.com" + * Enum value "maxdb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * SAP MaxDB * - * @deprecated Removed, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_INSTANCE_ID = 'db.instance.id' as const; +export const DB_SYSTEM_VALUE_MAXDB = "maxdb" as const; /** - * Removed, no replacement at this time. - * - * @example org.postgresql.Driver - * @example com.microsoft.sqlserver.jdbc.SQLServerDriver + * Enum value "memcached" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Memcached * - * @deprecated Removed, no replacement at this time. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_JDBC_DRIVER_CLASSNAME = 'db.jdbc.driver_classname' as const; +export const DB_SYSTEM_VALUE_MEMCACHED = "memcached" as const; /** - * Deprecated, use `db.collection.name` instead. - * - * @example "mytable" + * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * MongoDB * - * @deprecated Replaced by `db.collection.name`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_MONGODB_COLLECTION = 'db.mongodb.collection' as const; +export const DB_SYSTEM_VALUE_MONGODB = "mongodb" as const; /** - * Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. - * - * @example "MSSQLSERVER" + * Enum value "mssql" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Microsoft SQL Server * - * @deprecated Removed, no replacement at this time. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_MSSQL_INSTANCE_NAME = 'db.mssql.instance_name' as const; +export const DB_SYSTEM_VALUE_MSSQL = "mssql" as const; /** - * Deprecated, use `db.namespace` instead. + * Enum value "mssqlcompact" for attribute {@link ATTR_DB_SYSTEM}. * - * @example customers - * @example main + * Deprecated, Microsoft SQL Server Compact is discontinued. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by `db.namespace`. + * @deprecated Replaced by `other_sql`. */ -export const ATTR_DB_NAME = 'db.name' as const; +export const DB_SYSTEM_VALUE_MSSQLCOMPACT = "mssqlcompact" as const; /** - * Deprecated, use `db.operation.name` instead. - * - * @example findAndModify - * @example HMSET - * @example SELECT + * Enum value "mysql" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * MySQL * - * @deprecated Replaced by `db.operation.name`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_OPERATION = 'db.operation' as const; +export const DB_SYSTEM_VALUE_MYSQL = "mysql" as const; /** - * A database operation parameter, with `` being the parameter name, and the attribute value being a string representation of the parameter value. - * - * @example someval - * @example 55 - * - * @note For example, a client-side maximum number of rows to read from the database - * **MAY** be recorded as the `db.operation.parameter.max_rows` attribute. + * Enum value "neo4j" for attribute {@link ATTR_DB_SYSTEM}. * - * `db.query.text` parameters **SHOULD** be captured using `db.query.parameter.` - * instead of `db.operation.parameter.`. + * Neo4j * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_OPERATION_PARAMETER = (key: string) => `db.operation.parameter.${key}`; +export const DB_SYSTEM_VALUE_NEO4J = "neo4j" as const; /** - * A database query parameter, with `` being the parameter name, and the attribute value being a string representation of the parameter value. - * - * @example someval - * @example 55 - * - * @note If a query parameter has no name and instead is referenced only by index, - * then `` **SHOULD** be the 0-based index. - * - * `db.query.parameter.` **SHOULD** match - * up with the parameterized placeholders present in `db.query.text`. - * - * `db.query.parameter.` **SHOULD NOT** be captured on batch operations. - * - * Examples: + * Enum value "netezza" for attribute {@link ATTR_DB_SYSTEM}. * - * - For a query `SELECT * FROM users where username = %s` with the parameter `"jdoe"`, - * the attribute `db.query.parameter.0` **SHOULD** be set to `"jdoe"`. - * - For a query `"SELECT * FROM users WHERE username = %(username)s;` with parameter - * `username = "jdoe"`, the attribute `db.query.parameter.username` **SHOULD** be set to `"jdoe"`. + * Netezza * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_QUERY_PARAMETER = (key: string) => `db.query.parameter.${key}`; +export const DB_SYSTEM_VALUE_NETEZZA = "netezza" as const; /** - * Deprecated, use `db.namespace` instead. - * - * @example 0 - * @example 1 - * @example 15 + * Enum value "opensearch" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * OpenSearch * - * @deprecated Replaced by `db.namespace`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_REDIS_DATABASE_INDEX = 'db.redis.database_index' as const; +export const DB_SYSTEM_VALUE_OPENSEARCH = "opensearch" as const; /** - * Number of rows returned by the operation. + * Enum value "oracle" for attribute {@link ATTR_DB_SYSTEM}. * - * @example 10 - * @example 30 - * @example 1000 + * Oracle Database * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_RESPONSE_RETURNED_ROWS = 'db.response.returned_rows' as const; +export const DB_SYSTEM_VALUE_ORACLE = "oracle" as const; /** - * Deprecated, use `db.collection.name` instead. - * - * @example "mytable" + * Enum value "other_sql" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Some other SQL database. Fallback only. See notes. * - * @deprecated Replaced by `db.collection.name`, but only if not extracting the value from `db.query.text`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_SQL_TABLE = 'db.sql.table' as const; +export const DB_SYSTEM_VALUE_OTHER_SQL = "other_sql" as const; /** - * The database statement being executed. - * - * @example SELECT * FROM wuser_table - * @example SET mykey "WuValue" + * Enum value "pervasive" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Pervasive PSQL * - * @deprecated Replaced by `db.query.text`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_STATEMENT = 'db.statement' as const; +export const DB_SYSTEM_VALUE_PERVASIVE = "pervasive" as const; /** - * Deprecated, use `db.system.name` instead. + * Enum value "pointbase" for attribute {@link ATTR_DB_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * PointBase * - * @deprecated Replaced by `db.system.name`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_SYSTEM = 'db.system' as const; +export const DB_SYSTEM_VALUE_POINTBASE = "pointbase" as const; /** - * Enum value "adabas" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "postgresql" for attribute {@link ATTR_DB_SYSTEM}. * - * Adabas (Adaptable Database System) + * PostgreSQL * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_ADABAS = "adabas" as const; +export const DB_SYSTEM_VALUE_POSTGRESQL = "postgresql" as const; /** - * Enum value "cache" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "progress" for attribute {@link ATTR_DB_SYSTEM}. * - * Deprecated, use `intersystems_cache` instead. + * Progress Database * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `intersystems_cache`. */ -export const DB_SYSTEM_VALUE_CACHE = "cache" as const; +export const DB_SYSTEM_VALUE_PROGRESS = "progress" as const; /** - * Enum value "cassandra" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "redis" for attribute {@link ATTR_DB_SYSTEM}. * - * Apache Cassandra + * Redis * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_CASSANDRA = "cassandra" as const; +export const DB_SYSTEM_VALUE_REDIS = "redis" as const; /** - * Enum value "clickhouse" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "redshift" for attribute {@link ATTR_DB_SYSTEM}. * - * ClickHouse + * Amazon Redshift * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_CLICKHOUSE = "clickhouse" as const; +export const DB_SYSTEM_VALUE_REDSHIFT = "redshift" as const; /** - * Enum value "cloudscape" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "spanner" for attribute {@link ATTR_DB_SYSTEM}. * - * Deprecated, use `other_sql` instead. + * Cloud Spanner * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `other_sql`. */ -export const DB_SYSTEM_VALUE_CLOUDSCAPE = "cloudscape" as const; +export const DB_SYSTEM_VALUE_SPANNER = "spanner" as const; /** - * Enum value "cockroachdb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "sqlite" for attribute {@link ATTR_DB_SYSTEM}. * - * CockroachDB + * SQLite * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_COCKROACHDB = "cockroachdb" as const; +export const DB_SYSTEM_VALUE_SQLITE = "sqlite" as const; /** - * Enum value "coldfusion" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "sybase" for attribute {@link ATTR_DB_SYSTEM}. * - * Deprecated, no replacement at this time. + * Sybase * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Removed. */ -export const DB_SYSTEM_VALUE_COLDFUSION = "coldfusion" as const; +export const DB_SYSTEM_VALUE_SYBASE = "sybase" as const; /** - * Enum value "cosmosdb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "teradata" for attribute {@link ATTR_DB_SYSTEM}. * - * Microsoft Azure Cosmos DB + * Teradata * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_COSMOSDB = "cosmosdb" as const; +export const DB_SYSTEM_VALUE_TERADATA = "teradata" as const; /** - * Enum value "couchbase" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "trino" for attribute {@link ATTR_DB_SYSTEM}. * - * Couchbase + * Trino * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_COUCHBASE = "couchbase" as const; +export const DB_SYSTEM_VALUE_TRINO = "trino" as const; /** - * Enum value "couchdb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "vertica" for attribute {@link ATTR_DB_SYSTEM}. * - * CouchDB + * Vertica * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_COUCHDB = "couchdb" as const; +export const DB_SYSTEM_VALUE_VERTICA = "vertica" as const; /** - * Enum value "db2" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "actian.ingres" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * IBM Db2 + * [Actian Ingres](https://www.actian.com/databases/ingres/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_DB2 = "db2" as const; +export const DB_SYSTEM_NAME_VALUE_ACTIAN_INGRES = "actian.ingres" as const; /** - * Enum value "derby" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "aws.dynamodb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Apache Derby + * [Amazon DynamoDB](https://aws.amazon.com/pm/dynamodb/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_DERBY = "derby" as const; +export const DB_SYSTEM_NAME_VALUE_AWS_DYNAMODB = "aws.dynamodb" as const; /** - * Enum value "dynamodb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "aws.redshift" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Amazon DynamoDB + * [Amazon Redshift](https://aws.amazon.com/redshift/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_DYNAMODB = "dynamodb" as const; +export const DB_SYSTEM_NAME_VALUE_AWS_REDSHIFT = "aws.redshift" as const; /** - * Enum value "edb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "azure.cosmosdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * EnterpriseDB + * [Azure Cosmos DB](https://learn.microsoft.com/azure/cosmos-db) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_EDB = "edb" as const; +export const DB_SYSTEM_NAME_VALUE_AZURE_COSMOSDB = "azure.cosmosdb" as const; /** - * Enum value "elasticsearch" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "cassandra" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Elasticsearch + * [Apache Cassandra](https://cassandra.apache.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_ELASTICSEARCH = "elasticsearch" as const; +export const DB_SYSTEM_NAME_VALUE_CASSANDRA = "cassandra" as const; /** - * Enum value "filemaker" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "clickhouse" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * FileMaker + * [ClickHouse](https://clickhouse.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_FILEMAKER = "filemaker" as const; +export const DB_SYSTEM_NAME_VALUE_CLICKHOUSE = "clickhouse" as const; /** - * Enum value "firebird" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "cockroachdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Firebird + * [CockroachDB](https://www.cockroachlabs.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_FIREBIRD = "firebird" as const; +export const DB_SYSTEM_NAME_VALUE_COCKROACHDB = "cockroachdb" as const; /** - * Enum value "firstsql" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "couchbase" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Deprecated, use `other_sql` instead. + * [Couchbase](https://www.couchbase.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `other_sql`. */ -export const DB_SYSTEM_VALUE_FIRSTSQL = "firstsql" as const; +export const DB_SYSTEM_NAME_VALUE_COUCHBASE = "couchbase" as const; /** - * Enum value "geode" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "couchdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Apache Geode + * [Apache CouchDB](https://couchdb.apache.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_GEODE = "geode" as const; +export const DB_SYSTEM_NAME_VALUE_COUCHDB = "couchdb" as const; /** - * Enum value "h2" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "derby" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * H2 + * [Apache Derby](https://db.apache.org/derby/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_H2 = "h2" as const; +export const DB_SYSTEM_NAME_VALUE_DERBY = "derby" as const; /** - * Enum value "hanadb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "elasticsearch" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * SAP HANA + * [Elasticsearch](https://www.elastic.co/elasticsearch) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_HANADB = "hanadb" as const; +export const DB_SYSTEM_NAME_VALUE_ELASTICSEARCH = "elasticsearch" as const; /** - * Enum value "hbase" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "firebirdsql" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Apache HBase + * [Firebird](https://www.firebirdsql.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_HBASE = "hbase" as const; +export const DB_SYSTEM_NAME_VALUE_FIREBIRDSQL = "firebirdsql" as const; /** - * Enum value "hive" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "gcp.spanner" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Apache Hive + * [Google Cloud Spanner](https://cloud.google.com/spanner) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_HIVE = "hive" as const; +export const DB_SYSTEM_NAME_VALUE_GCP_SPANNER = "gcp.spanner" as const; /** - * Enum value "hsqldb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "geode" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * HyperSQL DataBase + * [Apache Geode](https://geode.apache.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_HSQLDB = "hsqldb" as const; +export const DB_SYSTEM_NAME_VALUE_GEODE = "geode" as const; /** - * Enum value "influxdb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "h2database" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * InfluxDB + * [H2 Database](https://h2database.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_INFLUXDB = "influxdb" as const; +export const DB_SYSTEM_NAME_VALUE_H2DATABASE = "h2database" as const; /** - * Enum value "informix" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "hbase" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Informix + * [Apache HBase](https://hbase.apache.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_INFORMIX = "informix" as const; +export const DB_SYSTEM_NAME_VALUE_HBASE = "hbase" as const; /** - * Enum value "ingres" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "hive" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Ingres + * [Apache Hive](https://hive.apache.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_INGRES = "ingres" as const; +export const DB_SYSTEM_NAME_VALUE_HIVE = "hive" as const; /** - * Enum value "instantdb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "hsqldb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * InstantDB + * [HyperSQL Database](https://hsqldb.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_INSTANTDB = "instantdb" as const; +export const DB_SYSTEM_NAME_VALUE_HSQLDB = "hsqldb" as const; /** - * Enum value "interbase" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "ibm.db2" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * InterBase + * [IBM Db2](https://www.ibm.com/db2) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_INTERBASE = "interbase" as const; +export const DB_SYSTEM_NAME_VALUE_IBM_DB2 = "ibm.db2" as const; /** - * Enum value "intersystems_cache" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "ibm.informix" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * InterSystems Caché + * [IBM Informix](https://www.ibm.com/products/informix) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_INTERSYSTEMS_CACHE = "intersystems_cache" as const; +export const DB_SYSTEM_NAME_VALUE_IBM_INFORMIX = "ibm.informix" as const; /** - * Enum value "mariadb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "ibm.netezza" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * MariaDB + * [IBM Netezza](https://www.ibm.com/products/netezza) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_MARIADB = "mariadb" as const; +export const DB_SYSTEM_NAME_VALUE_IBM_NETEZZA = "ibm.netezza" as const; /** - * Enum value "maxdb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "influxdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * SAP MaxDB + * [InfluxDB](https://www.influxdata.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_MAXDB = "maxdb" as const; +export const DB_SYSTEM_NAME_VALUE_INFLUXDB = "influxdb" as const; /** - * Enum value "memcached" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "instantdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Memcached + * [Instant](https://www.instantdb.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_MEMCACHED = "memcached" as const; +export const DB_SYSTEM_NAME_VALUE_INSTANTDB = "instantdb" as const; /** - * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "intersystems.cache" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * MongoDB + * [InterSystems Caché](https://www.intersystems.com/products/cache/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_MONGODB = "mongodb" as const; +export const DB_SYSTEM_NAME_VALUE_INTERSYSTEMS_CACHE = "intersystems.cache" as const; /** - * Enum value "mssql" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "memcached" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Microsoft SQL Server + * [Memcached](https://memcached.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_MSSQL = "mssql" as const; +export const DB_SYSTEM_NAME_VALUE_MEMCACHED = "memcached" as const; /** - * Enum value "mssqlcompact" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Deprecated, Microsoft SQL Server Compact is discontinued. + * [MongoDB](https://www.mongodb.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Removed, use `other_sql` instead. */ -export const DB_SYSTEM_VALUE_MSSQLCOMPACT = "mssqlcompact" as const; +export const DB_SYSTEM_NAME_VALUE_MONGODB = "mongodb" as const; /** - * Enum value "mysql" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "neo4j" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * MySQL + * [Neo4j](https://neo4j.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_MYSQL = "mysql" as const; +export const DB_SYSTEM_NAME_VALUE_NEO4J = "neo4j" as const; /** - * Enum value "neo4j" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "opensearch" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Neo4j + * [OpenSearch](https://opensearch.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_NEO4J = "neo4j" as const; +export const DB_SYSTEM_NAME_VALUE_OPENSEARCH = "opensearch" as const; /** - * Enum value "netezza" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "oracle.db" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Netezza + * [Oracle Database](https://www.oracle.com/database/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_NETEZZA = "netezza" as const; +export const DB_SYSTEM_NAME_VALUE_ORACLE_DB = "oracle.db" as const; /** - * Enum value "opensearch" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "other_sql" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * OpenSearch + * Some other SQL database. Fallback only. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_OPENSEARCH = "opensearch" as const; +export const DB_SYSTEM_NAME_VALUE_OTHER_SQL = "other_sql" as const; /** - * Enum value "oracle" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "redis" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Oracle Database + * [Redis](https://redis.io/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_ORACLE = "oracle" as const; +export const DB_SYSTEM_NAME_VALUE_REDIS = "redis" as const; /** - * Enum value "other_sql" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "sap.hana" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Some other SQL database. Fallback only. See notes. + * [SAP HANA](https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_OTHER_SQL = "other_sql" as const; +export const DB_SYSTEM_NAME_VALUE_SAP_HANA = "sap.hana" as const; /** - * Enum value "pervasive" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "sap.maxdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Pervasive PSQL + * [SAP MaxDB](https://maxdb.sap.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_PERVASIVE = "pervasive" as const; +export const DB_SYSTEM_NAME_VALUE_SAP_MAXDB = "sap.maxdb" as const; /** - * Enum value "pointbase" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "softwareag.adabas" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * PointBase + * [Adabas (Adaptable Database System)](https://documentation.softwareag.com/?pf=adabas) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_POINTBASE = "pointbase" as const; +export const DB_SYSTEM_NAME_VALUE_SOFTWAREAG_ADABAS = "softwareag.adabas" as const; /** - * Enum value "postgresql" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "sqlite" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * PostgreSQL + * [SQLite](https://www.sqlite.org/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_POSTGRESQL = "postgresql" as const; +export const DB_SYSTEM_NAME_VALUE_SQLITE = "sqlite" as const; /** - * Enum value "progress" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "teradata" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Progress Database + * [Teradata](https://www.teradata.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_PROGRESS = "progress" as const; +export const DB_SYSTEM_NAME_VALUE_TERADATA = "teradata" as const; /** - * Enum value "redis" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "trino" for attribute {@link ATTR_DB_SYSTEM_NAME}. * - * Redis + * [Trino](https://trino.io/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_REDIS = "redis" as const; +export const DB_SYSTEM_NAME_VALUE_TRINO = "trino" as const; /** - * Enum value "redshift" for attribute {@link ATTR_DB_SYSTEM}. + * Deprecated, no replacement at this time. * - * Amazon Redshift + * @example readonly_user + * @example reporting_user * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Removed, no replacement at this time. */ -export const DB_SYSTEM_VALUE_REDSHIFT = "redshift" as const; +export const ATTR_DB_USER = 'db.user' as const; /** - * Enum value "spanner" for attribute {@link ATTR_DB_SYSTEM}. + * Deprecated, use `deployment.environment.name` instead. * - * Cloud Spanner + * @example staging + * @example production * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `deployment.environment.name`. */ -export const DB_SYSTEM_VALUE_SPANNER = "spanner" as const; +export const ATTR_DEPLOYMENT_ENVIRONMENT = 'deployment.environment' as const; /** - * Enum value "sqlite" for attribute {@link ATTR_DB_SYSTEM}. + * Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). * - * SQLite + * @example staging + * @example production * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note `deployment.environment.name` does not affect the uniqueness constraints defined through + * the `service.namespace`, `service.name` and `service.instance.id` resource attributes. + * This implies that resources carrying the following attribute combinations **MUST** be + * considered to be identifying the same service: + * + * - `service.name=frontend`, `deployment.environment.name=production` + * - `service.name=frontend`, `deployment.environment.name=staging`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_SQLITE = "sqlite" as const; +export const ATTR_DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name' as const; /** - * Enum value "sybase" for attribute {@link ATTR_DB_SYSTEM}. + * The id of the deployment. * - * Sybase + * @example 1208 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_SYBASE = "sybase" as const; +export const ATTR_DEPLOYMENT_ID = 'deployment.id' as const; /** - * Enum value "teradata" for attribute {@link ATTR_DB_SYSTEM}. + * The name of the deployment. * - * Teradata + * @example deploy my app + * @example deploy-frontend * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_TERADATA = "teradata" as const; +export const ATTR_DEPLOYMENT_NAME = 'deployment.name' as const; /** - * Enum value "trino" for attribute {@link ATTR_DB_SYSTEM}. - * - * Trino + * The status of the deployment. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_TRINO = "trino" as const; +export const ATTR_DEPLOYMENT_STATUS = 'deployment.status' as const; /** - * Enum value "vertica" for attribute {@link ATTR_DB_SYSTEM}. + * Enum value "failed" for attribute {@link ATTR_DEPLOYMENT_STATUS}. * - * Vertica + * failed * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_VALUE_VERTICA = "vertica" as const; +export const DEPLOYMENT_STATUS_VALUE_FAILED = "failed" as const; /** - * Enum value "actian.ingres" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "succeeded" for attribute {@link ATTR_DEPLOYMENT_STATUS}. * - * [Actian Ingres](https://www.actian.com/databases/ingres/) + * succeeded * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_ACTIAN_INGRES = "actian.ingres" as const; +export const DEPLOYMENT_STATUS_VALUE_SUCCEEDED = "succeeded" as const; /** - * Enum value "aws.dynamodb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. * - * [Amazon DynamoDB](https://aws.amazon.com/pm/dynamodb/) + * @example destination.example.com + * @example 10.1.2.80 + * @example /tmp/my.sock * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note When observed from the source side, and when communicating through an intermediary, `destination.address` **SHOULD** represent the destination address behind any intermediaries, for example proxies, if it's available. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_AWS_DYNAMODB = "aws.dynamodb" as const; +export const ATTR_DESTINATION_ADDRESS = 'destination.address' as const; /** - * Enum value "aws.redshift" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Destination port number * - * [Amazon Redshift](https://aws.amazon.com/redshift/) + * @example 3389 + * @example 2888 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_AWS_REDSHIFT = "aws.redshift" as const; +export const ATTR_DESTINATION_PORT = 'destination.port' as const; /** - * Enum value "azure.cosmosdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * A unique identifier representing the device * - * [Azure Cosmos DB](https://learn.microsoft.com/azure/cosmos-db) + * @example 123456789012345 + * @example 01:23:45:67:89:AB * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note Its value **SHOULD** be identical for all apps on a device and it **SHOULD NOT** change if an app is uninstalled and re-installed. + * However, it might be resettable by the user for all apps on a device. + * Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) **MAY** be used as values. + * + * More information about Android identifier best practices can be found in the [Android user data IDs guide](https://developer.android.com/training/articles/user-data-ids). + * + * > [!WARNING]> This attribute may contain sensitive (PII) information. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, + * > ensure you do your own due diligence.> Due to these reasons, this identifier is not recommended for consumer applications and will likely result in rejection from both Google Play and App Store. + * > However, it may be appropriate for specific enterprise scenarios, such as kiosk devices or enterprise-managed devices, with appropriate compliance clearance. + * > Any instrumentation providing this identifier **> MUST**> implement it as an opt-in feature.> See [`app.installation.id`](/docs/registry/attributes/app.md#app-installation-id)> for a more privacy-preserving alternative. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_AZURE_COSMOSDB = "azure.cosmosdb" as const; +export const ATTR_DEVICE_ID = 'device.id' as const; /** - * Enum value "cassandra" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The name of the device manufacturer * - * [Apache Cassandra](https://cassandra.apache.org/) + * @example Apple + * @example Samsung * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_CASSANDRA = "cassandra" as const; +export const ATTR_DEVICE_MANUFACTURER = 'device.manufacturer' as const; /** - * Enum value "clickhouse" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The model identifier for the device * - * [ClickHouse](https://clickhouse.com/) + * @example iPhone3,4 + * @example SM-G920F * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note It's recommended this value represents a machine-readable version of the model identifier rather than the market or consumer-friendly name of the device. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_CLICKHOUSE = "clickhouse" as const; +export const ATTR_DEVICE_MODEL_IDENTIFIER = 'device.model.identifier' as const; /** - * Enum value "cockroachdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The marketing name for the device model * - * [CockroachDB](https://www.cockroachlabs.com/) + * @example iPhone 6s Plus + * @example Samsung Galaxy S6 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_COCKROACHDB = "cockroachdb" as const; +export const ATTR_DEVICE_MODEL_NAME = 'device.model.name' as const; /** - * Enum value "couchbase" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The disk IO operation direction. * - * [Couchbase](https://www.couchbase.com/) + * @example read * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_COUCHBASE = "couchbase" as const; +export const ATTR_DISK_IO_DIRECTION = 'disk.io.direction' as const; /** - * Enum value "couchdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. - * - * [Apache CouchDB](https://couchdb.apache.org/) + * Enum value "read" for attribute {@link ATTR_DISK_IO_DIRECTION}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_COUCHDB = "couchdb" as const; +export const DISK_IO_DIRECTION_VALUE_READ = "read" as const; /** - * Enum value "derby" for attribute {@link ATTR_DB_SYSTEM_NAME}. - * - * [Apache Derby](https://db.apache.org/derby/) + * Enum value "write" for attribute {@link ATTR_DISK_IO_DIRECTION}. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_DERBY = "derby" as const; +export const DISK_IO_DIRECTION_VALUE_WRITE = "write" as const; /** - * Enum value "elasticsearch" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The list of IPv4 or IPv6 addresses resolved during DNS lookup. * - * [Elasticsearch](https://www.elastic.co/elasticsearch) + * @example ["10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_ELASTICSEARCH = "elasticsearch" as const; +export const ATTR_DNS_ANSWERS = 'dns.answers' as const; /** - * Enum value "firebirdsql" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The name being queried. * - * [Firebird](https://www.firebirdsql.org/) + * @example www.example.com + * @example opentelemetry.io * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \\t, \\r, and \\n respectively. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_FIREBIRDSQL = "firebirdsql" as const; +export const ATTR_DNS_QUESTION_NAME = 'dns.question.name' as const; /** - * Enum value "gcp.spanner" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Represents the human-readable identifier of the node/instance to which a request was routed. * - * [Google Cloud Spanner](https://cloud.google.com/spanner) + * @example instance-0000000001 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_GCP_SPANNER = "gcp.spanner" as const; +export const ATTR_ELASTICSEARCH_NODE_NAME = 'elasticsearch.node.name' as const; /** - * Enum value "geode" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Unique identifier of an end user in the system. It maybe a username, email address, or other identifier. * - * [Apache Geode](https://geode.apache.org/) + * @example username * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note Unique identifier of an end user in the system. + * + * > [!Warning] + * > This field contains sensitive (PII) information. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_GEODE = "geode" as const; +export const ATTR_ENDUSER_ID = 'enduser.id' as const; /** - * Enum value "h2database" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Pseudonymous identifier of an end user. This identifier should be a random value that is not directly linked or associated with the end user's actual identity. + * + * @example QdH5CAWJgqVT4rOr0qtumf + * + * @note Pseudonymous identifier of an end user. * - * [H2 Database](https://h2database.com/) + * > [!Warning] + * > This field contains sensitive (linkable PII) information. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_H2DATABASE = "h2database" as const; +export const ATTR_ENDUSER_PSEUDO_ID = 'enduser.pseudo.id' as const; /** - * Enum value "hbase" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Deprecated, use `user.roles` instead. * - * [Apache HBase](https://hbase.apache.org/) + * @example "admin" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `user.roles`. */ -export const DB_SYSTEM_NAME_VALUE_HBASE = "hbase" as const; +export const ATTR_ENDUSER_ROLE = 'enduser.role' as const; /** - * Enum value "hive" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Deprecated, no replacement at this time. * - * [Apache Hive](https://hive.apache.org/) + * @example "read:message, write:files" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Removed, no replacement at this time. */ -export const DB_SYSTEM_NAME_VALUE_HIVE = "hive" as const; +export const ATTR_ENDUSER_SCOPE = 'enduser.scope' as const; /** - * Enum value "hsqldb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * A message providing more detail about an error in human-readable form. * - * [HyperSQL Database](https://hsqldb.org/) + * @example Unexpected input type: string + * @example The user has exceeded their storage quota * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note `error.message` should provide additional context and detail about an error. + * It is NOT **RECOMMENDED** to duplicate the value of `error.type` in `error.message`. + * It is also NOT **RECOMMENDED** to duplicate the value of `exception.message` in `error.message`. + * + * `error.message` is NOT **RECOMMENDED** for metrics or spans due to its unbounded cardinality and overlap with span status. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_HSQLDB = "hsqldb" as const; +export const ATTR_ERROR_MESSAGE = 'error.message' as const; /** - * Enum value "ibm.db2" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Identifies the class / type of event. * - * [IBM Db2](https://www.ibm.com/db2) + * @example browser.mouse.click + * @example device.app.lifecycle * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by EventName top-level field on the LogRecord. */ -export const DB_SYSTEM_NAME_VALUE_IBM_DB2 = "ibm.db2" as const; +export const ATTR_EVENT_NAME = 'event.name' as const; /** - * Enum value "ibm.informix" for attribute {@link ATTR_DB_SYSTEM_NAME}. - * - * [IBM Informix](https://www.ibm.com/products/informix) + * A boolean that is true if the serverless function is executed for the first time (aka cold-start). * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_IBM_INFORMIX = "ibm.informix" as const; +export const ATTR_FAAS_COLDSTART = 'faas.coldstart' as const; /** - * Enum value "ibm.netezza" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). * - * [IBM Netezza](https://www.ibm.com/products/netezza) + * @example "0/5 * * * ? *" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_IBM_NETEZZA = "ibm.netezza" as const; +export const ATTR_FAAS_CRON = 'faas.cron' as const; /** - * Enum value "influxdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. * - * [InfluxDB](https://www.influxdata.com/) + * @example myBucketName + * @example myDbName * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_INFLUXDB = "influxdb" as const; +export const ATTR_FAAS_DOCUMENT_COLLECTION = 'faas.document.collection' as const; /** - * Enum value "instantdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. * - * [Instant](https://www.instantdb.com/) + * @example myFile.txt + * @example myTableName * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_INSTANTDB = "instantdb" as const; +export const ATTR_FAAS_DOCUMENT_NAME = 'faas.document.name' as const; /** - * Enum value "intersystems.cache" for attribute {@link ATTR_DB_SYSTEM_NAME}. - * - * [InterSystems Caché](https://www.intersystems.com/products/cache/) + * Describes the type of the operation that was performed on the data. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_INTERSYSTEMS_CACHE = "intersystems.cache" as const; +export const ATTR_FAAS_DOCUMENT_OPERATION = 'faas.document.operation' as const; /** - * Enum value "memcached" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "delete" for attribute {@link ATTR_FAAS_DOCUMENT_OPERATION}. * - * [Memcached](https://memcached.org/) + * When an object is deleted. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_MEMCACHED = "memcached" as const; +export const FAAS_DOCUMENT_OPERATION_VALUE_DELETE = "delete" as const; /** - * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "edit" for attribute {@link ATTR_FAAS_DOCUMENT_OPERATION}. * - * [MongoDB](https://www.mongodb.com/) + * When an object is modified. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_MONGODB = "mongodb" as const; +export const FAAS_DOCUMENT_OPERATION_VALUE_EDIT = "edit" as const; /** - * Enum value "neo4j" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "insert" for attribute {@link ATTR_FAAS_DOCUMENT_OPERATION}. * - * [Neo4j](https://neo4j.com/) + * When a new object is created. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_NEO4J = "neo4j" as const; +export const FAAS_DOCUMENT_OPERATION_VALUE_INSERT = "insert" as const; /** - * Enum value "opensearch" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). * - * [OpenSearch](https://opensearch.org/) + * @example "2020-01-23T13:47:06Z" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_OPENSEARCH = "opensearch" as const; +export const ATTR_FAAS_DOCUMENT_TIME = 'faas.document.time' as const; /** - * Enum value "oracle.db" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. * - * [Oracle Database](https://www.oracle.com/database/) + * @example 2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note - **AWS Lambda:** Use the (full) log stream name. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_ORACLE_DB = "oracle.db" as const; +export const ATTR_FAAS_INSTANCE = 'faas.instance' as const; /** - * Enum value "other_sql" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The invocation ID of the current function invocation. * - * Some other SQL database. Fallback only. + * @example "af9d5aa4-a685-4c5f-a22b-444f80b3cc28" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_OTHER_SQL = "other_sql" as const; +export const ATTR_FAAS_INVOCATION_ID = 'faas.invocation_id' as const; /** - * Enum value "redis" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The name of the invoked function. * - * [Redis](https://redis.io/) + * @example "my-function" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note **SHOULD** be equal to the `faas.name` resource attribute of the invoked function. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_REDIS = "redis" as const; +export const ATTR_FAAS_INVOKED_NAME = 'faas.invoked_name' as const; /** - * Enum value "sap.hana" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * The cloud provider of the invoked function. * - * [SAP HANA](https://www.sap.com/products/technology-platform/hana/what-is-sap-hana.html) + * @note **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_SAP_HANA = "sap.hana" as const; +export const ATTR_FAAS_INVOKED_PROVIDER = 'faas.invoked_provider' as const; /** - * Enum value "sap.maxdb" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "alibaba_cloud" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. * - * [SAP MaxDB](https://maxdb.sap.com/) + * Alibaba Cloud * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_SAP_MAXDB = "sap.maxdb" as const; +export const FAAS_INVOKED_PROVIDER_VALUE_ALIBABA_CLOUD = "alibaba_cloud" as const; /** - * Enum value "softwareag.adabas" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "aws" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. * - * [Adabas (Adaptable Database System)](https://documentation.softwareag.com/?pf=adabas) + * Amazon Web Services * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_SOFTWAREAG_ADABAS = "softwareag.adabas" as const; +export const FAAS_INVOKED_PROVIDER_VALUE_AWS = "aws" as const; /** - * Enum value "sqlite" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "azure" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. * - * [SQLite](https://www.sqlite.org/) + * Microsoft Azure * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_SQLITE = "sqlite" as const; +export const FAAS_INVOKED_PROVIDER_VALUE_AZURE = "azure" as const; /** - * Enum value "teradata" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "gcp" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. * - * [Teradata](https://www.teradata.com/) + * Google Cloud Platform * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_TERADATA = "teradata" as const; +export const FAAS_INVOKED_PROVIDER_VALUE_GCP = "gcp" as const; /** - * Enum value "trino" for attribute {@link ATTR_DB_SYSTEM_NAME}. + * Enum value "tencent_cloud" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. * - * [Trino](https://trino.io/) + * Tencent Cloud * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DB_SYSTEM_NAME_VALUE_TRINO = "trino" as const; +export const FAAS_INVOKED_PROVIDER_VALUE_TENCENT_CLOUD = "tencent_cloud" as const; /** - * Deprecated, no replacement at this time. + * The cloud region of the invoked function. * - * @example readonly_user - * @example reporting_user + * @example "eu-central-1" * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function. * - * @deprecated Removed, no replacement at this time. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DB_USER = 'db.user' as const; +export const ATTR_FAAS_INVOKED_REGION = 'faas.invoked_region' as const; /** - * 'Deprecated, use `deployment.environment.name` instead.' + * The amount of memory available to the serverless function converted to Bytes. * - * @example staging - * @example production + * @example 134217728 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576). * - * @deprecated Replaced by `deployment.environment.name`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEPLOYMENT_ENVIRONMENT = 'deployment.environment' as const; +export const ATTR_FAAS_MAX_MEMORY = 'faas.max_memory' as const; /** - * Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). + * The name of the single function that this runtime instance executes. * - * @example staging - * @example production + * @example my-function + * @example myazurefunctionapp/some-function-name * - * @note `deployment.environment.name` does not affect the uniqueness constraints defined through - * the `service.namespace`, `service.name` and `service.instance.id` resource attributes. - * This implies that resources carrying the following attribute combinations **MUST** be - * considered to be identifying the same service: + * @note This is the name of the function as configured/deployed on the FaaS + * platform and is usually different from the name of the callback + * function (which may be stored in the + * [`code.namespace`/`code.function.name`](/docs/general/attributes.md#source-code-attributes) + * span attributes). * - * - `service.name=frontend`, `deployment.environment.name=production` - * - `service.name=frontend`, `deployment.environment.name=staging`. + * For some cloud providers, the above definition is ambiguous. The following + * definition of function name **MUST** be used for this attribute + * (and consequently the span name) for the listed cloud providers/products: + * + * - **Azure:** The full name `/`, i.e., function app name + * followed by a forward slash followed by the function name (this form + * can also be seen in the resource JSON for the function). + * This means that a span attribute **MUST** be used, as an Azure function + * app can host multiple functions that would usually share + * a TracerProvider (see also the `cloud.resource_id` attribute). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name' as const; +export const ATTR_FAAS_NAME = 'faas.name' as const; /** - * The id of the deployment. + * A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). * - * @example 1208 + * @example "2020-01-23T13:47:06Z" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEPLOYMENT_ID = 'deployment.id' as const; +export const ATTR_FAAS_TIME = 'faas.time' as const; /** - * The name of the deployment. - * - * @example deploy my app - * @example deploy-frontend + * Type of the trigger which caused this function invocation. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEPLOYMENT_NAME = 'deployment.name' as const; +export const ATTR_FAAS_TRIGGER = 'faas.trigger' as const; /** - * The status of the deployment. + * Enum value "datasource" for attribute {@link ATTR_FAAS_TRIGGER}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * A response to some data source operation such as a database or filesystem read/write + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEPLOYMENT_STATUS = 'deployment.status' as const; +export const FAAS_TRIGGER_VALUE_DATASOURCE = "datasource" as const; /** - * Enum value "failed" for attribute {@link ATTR_DEPLOYMENT_STATUS}. + * Enum value "http" for attribute {@link ATTR_FAAS_TRIGGER}. * - * failed + * To provide an answer to an inbound HTTP request * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DEPLOYMENT_STATUS_VALUE_FAILED = "failed" as const; +export const FAAS_TRIGGER_VALUE_HTTP = "http" as const; /** - * Enum value "succeeded" for attribute {@link ATTR_DEPLOYMENT_STATUS}. + * Enum value "other" for attribute {@link ATTR_FAAS_TRIGGER}. * - * succeeded + * If none of the others apply * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DEPLOYMENT_STATUS_VALUE_SUCCEEDED = "succeeded" as const; +export const FAAS_TRIGGER_VALUE_OTHER = "other" as const; /** - * Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. - * - * @example destination.example.com - * @example 10.1.2.80 - * @example /tmp/my.sock + * Enum value "pubsub" for attribute {@link ATTR_FAAS_TRIGGER}. * - * @note When observed from the source side, and when communicating through an intermediary, `destination.address` **SHOULD** represent the destination address behind any intermediaries, for example proxies, if it's available. + * A function is set to be executed when messages are sent to a messaging system * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DESTINATION_ADDRESS = 'destination.address' as const; +export const FAAS_TRIGGER_VALUE_PUBSUB = "pubsub" as const; /** - * Destination port number + * Enum value "timer" for attribute {@link ATTR_FAAS_TRIGGER}. * - * @example 3389 - * @example 2888 + * A function is scheduled to be executed regularly * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DESTINATION_PORT = 'destination.port' as const; +export const FAAS_TRIGGER_VALUE_TIMER = "timer" as const; /** - * A unique identifier representing the device - * - * @example 123456789012345 - * @example 01:23:45:67:89:AB + * The immutable version of the function being executed. * - * @note Its value **SHOULD** be identical for all apps on a device and it **SHOULD NOT** change if an app is uninstalled and re-installed. - * However, it might be resettable by the user for all apps on a device. - * Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) **MAY** be used as values. + * @example 26 + * @example pinkfroid-00002 * - * More information about Android identifier best practices can be found [here](https://developer.android.com/training/articles/user-data-ids). + * @note Depending on the cloud provider and platform, use: * - * > [!WARNING]> This attribute may contain sensitive (PII) information. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, - * > ensure you do your own due diligence.> Due to these reasons, this identifier is not recommended for consumer applications and will likely result in rejection from both Google Play and App Store. - * > However, it may be appropriate for specific enterprise scenarios, such as kiosk devices or enterprise-managed devices, with appropriate compliance clearance. - * > Any instrumentation providing this identifier **> MUST**> implement it as an opt-in feature.> See [`app.installation.id`](/docs/registry/attributes/app.md#app-installation-id)> for a more privacy-preserving alternative. + * - **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html) + * (an integer represented as a decimal string). + * - **Google Cloud Run (Services):** The [revision](https://cloud.google.com/run/docs/managing/revisions) + * (i.e., the function name plus the revision suffix). + * - **Google Cloud Functions:** The value of the + * [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically). + * - **Azure Functions:** Not applicable. Do not set this attribute. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEVICE_ID = 'device.id' as const; +export const ATTR_FAAS_VERSION = 'faas.version' as const; /** - * The name of the device manufacturer - * - * @example Apple - * @example Samsung + * The unique identifier for the flag evaluation context. For example, the targeting key. * - * @note The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple`. + * @example 5157782b-2203-4c80-a857-dbbd5e7761db * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DEVICE_MANUFACTURER = 'device.manufacturer' as const; +export const ATTR_FEATURE_FLAG_CONTEXT_ID = 'feature_flag.context.id' as const; /** - * The model identifier for the device - * - * @example iPhone3,4 - * @example SM-G920F + * Deprecated, use `error.message` instead. * - * @note It's recommended this value represents a machine-readable version of the model identifier rather than the market or consumer-friendly name of the device. + * @example Flag `header-color` expected type `string` but found type `number` * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `error.message`. */ -export const ATTR_DEVICE_MODEL_IDENTIFIER = 'device.model.identifier' as const; +export const ATTR_FEATURE_FLAG_EVALUATION_ERROR_MESSAGE = 'feature_flag.evaluation.error.message' as const; /** - * The marketing name for the device model - * - * @example iPhone 6s Plus - * @example Samsung Galaxy S6 + * Deprecated, use `feature_flag.result.reason` instead. * - * @note It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + * @example static + * @example targeting_match + * @example error + * @example default * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `feature_flag.result.reason`. */ -export const ATTR_DEVICE_MODEL_NAME = 'device.model.name' as const; +export const ATTR_FEATURE_FLAG_EVALUATION_REASON = 'feature_flag.evaluation.reason' as const; /** - * The disk IO operation direction. + * Enum value "cached" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * @example read + * The resolved value was retrieved from cache. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DISK_IO_DIRECTION = 'disk.io.direction' as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_CACHED = "cached" as const; /** - * Enum value "read" for attribute {@link ATTR_DISK_IO_DIRECTION}. + * Enum value "default" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * + * The resolved value fell back to a pre-configured value (no dynamic evaluation occurred or dynamic evaluation yielded no result). * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DISK_IO_DIRECTION_VALUE_READ = "read" as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_DEFAULT = "default" as const; /** - * Enum value "write" for attribute {@link ATTR_DISK_IO_DIRECTION}. + * Enum value "disabled" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * + * The resolved value was the result of the flag being disabled in the management system. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const DISK_IO_DIRECTION_VALUE_WRITE = "write" as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_DISABLED = "disabled" as const; /** - * The list of IPv4 or IPv6 addresses resolved during DNS lookup. + * Enum value "error" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * @example ["10.0.0.1", "2001:0db8:85a3:0000:0000:8a2e:0370:7334"] + * The resolved value was the result of an error. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DNS_ANSWERS = 'dns.answers' as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_ERROR = "error" as const; /** - * The name being queried. - * - * @example www.example.com - * @example opentelemetry.io + * Enum value "split" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * @note If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \\t, \\r, and \\n respectively. + * The resolved value was the result of pseudorandom assignment. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_DNS_QUESTION_NAME = 'dns.question.name' as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_SPLIT = "split" as const; /** - * Represents the human-readable identifier of the node/instance to which a request was routed. + * Enum value "stale" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * @example instance-0000000001 + * The resolved value is non-authoritative or possibly out of date * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_ELASTICSEARCH_NODE_NAME = 'elasticsearch.node.name' as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_STALE = "stale" as const; /** - * Unique identifier of an end user in the system. It maybe a username, email address, or other identifier. - * - * @example username - * - * @note Unique identifier of an end user in the system. + * Enum value "static" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * > [!Warning] - * > This field contains sensitive (PII) information. + * The resolved value is static (no dynamic evaluation). * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_ENDUSER_ID = 'enduser.id' as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_STATIC = "static" as const; /** - * Pseudonymous identifier of an end user. This identifier should be a random value that is not directly linked or associated with the end user's actual identity. + * Enum value "targeting_match" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * @example QdH5CAWJgqVT4rOr0qtumf + * The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting. * - * @note Pseudonymous identifier of an end user. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_TARGETING_MATCH = "targeting_match" as const; + +/** + * Enum value "unknown" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. * - * > [!Warning] - * > This field contains sensitive (linkable PII) information. + * The reason for the resolved value could not be determined. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_ENDUSER_PSEUDO_ID = 'enduser.pseudo.id' as const; +export const FEATURE_FLAG_EVALUATION_REASON_VALUE_UNKNOWN = "unknown" as const; /** - * Deprecated, use `user.roles` instead. + * The lookup key of the feature flag. * - * @example "admin" + * @example logo-color * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Use `user.roles` attribute instead. */ -export const ATTR_ENDUSER_ROLE = 'enduser.role' as const; +export const ATTR_FEATURE_FLAG_KEY = 'feature_flag.key' as const; /** - * Deprecated, no replacement at this time. + * Identifies the feature flag provider. * - * @example "read:message, write:files" + * @example Flag Manager * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Removed, no replacement at this time. */ -export const ATTR_ENDUSER_SCOPE = 'enduser.scope' as const; +export const ATTR_FEATURE_FLAG_PROVIDER_NAME = 'feature_flag.provider.name' as const; /** - * A message providing more detail about an error in human-readable form. - * - * @example Unexpected input type: string - * @example The user has exceeded their storage quota - * - * @note `error.message` should provide additional context and detail about an error. - * It is NOT **RECOMMENDED** to duplicate the value of `error.type` in `error.message`. - * It is also NOT **RECOMMENDED** to duplicate the value of `exception.message` in `error.message`. + * The reason code which shows how a feature flag value was determined. * - * `error.message` is NOT **RECOMMENDED** for metrics or spans due to its unbounded cardinality and overlap with span status. + * @example static + * @example targeting_match + * @example error + * @example default * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_ERROR_MESSAGE = 'error.message' as const; +export const ATTR_FEATURE_FLAG_RESULT_REASON = 'feature_flag.result.reason' as const; /** - * Identifies the class / type of event. - * - * @example browser.mouse.click - * @example device.app.lifecycle + * Enum value "cached" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * The resolved value was retrieved from cache. * - * @deprecated Replaced by EventName top-level field on the LogRecord. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_EVENT_NAME = 'event.name' as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_CACHED = "cached" as const; /** - * A boolean that is true if the serverless function is executed for the first time (aka cold-start). + * Enum value "default" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * The resolved value fell back to a pre-configured value (no dynamic evaluation occurred or dynamic evaluation yielded no result). + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_COLDSTART = 'faas.coldstart' as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_DEFAULT = "default" as const; /** - * A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). + * Enum value "disabled" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * @example "0/5 * * * ? *" + * The resolved value was the result of the flag being disabled in the management system. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_CRON = 'faas.cron' as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_DISABLED = "disabled" as const; /** - * The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. + * Enum value "error" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * @example myBucketName - * @example myDbName + * The resolved value was the result of an error. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_DOCUMENT_COLLECTION = 'faas.document.collection' as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_ERROR = "error" as const; /** - * The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. + * Enum value "split" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * @example myFile.txt - * @example myTableName + * The resolved value was the result of pseudorandom assignment. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_DOCUMENT_NAME = 'faas.document.name' as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_SPLIT = "split" as const; /** - * Describes the type of the operation that was performed on the data. + * Enum value "stale" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * The resolved value is non-authoritative or possibly out of date + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_DOCUMENT_OPERATION = 'faas.document.operation' as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_STALE = "stale" as const; /** - * Enum value "delete" for attribute {@link ATTR_FAAS_DOCUMENT_OPERATION}. + * Enum value "static" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * When an object is deleted. + * The resolved value is static (no dynamic evaluation). * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_DOCUMENT_OPERATION_VALUE_DELETE = "delete" as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_STATIC = "static" as const; /** - * Enum value "edit" for attribute {@link ATTR_FAAS_DOCUMENT_OPERATION}. + * Enum value "targeting_match" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * When an object is modified. + * The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_DOCUMENT_OPERATION_VALUE_EDIT = "edit" as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_TARGETING_MATCH = "targeting_match" as const; /** - * Enum value "insert" for attribute {@link ATTR_FAAS_DOCUMENT_OPERATION}. + * Enum value "unknown" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. * - * When a new object is created. + * The reason for the resolved value could not be determined. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_DOCUMENT_OPERATION_VALUE_INSERT = "insert" as const; +export const FEATURE_FLAG_RESULT_REASON_VALUE_UNKNOWN = "unknown" as const; /** - * A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). + * The evaluated value of the feature flag. * - * @example "2020-01-23T13:47:06Z" + * @example #ff0000 + * @example true + * @example 3 + * + * @note With some feature flag providers, feature flag results can be quite large or contain private or sensitive details. + * Because of this, `feature_flag.result.variant` is often the preferred attribute if it is available. + * + * It may be desirable to redact or otherwise limit the size and scope of `feature_flag.result.value` if possible. + * Because the evaluated flag value is unstructured and may be any type, it is left to the instrumentation author to determine how best to achieve this. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_DOCUMENT_TIME = 'faas.document.time' as const; +export const ATTR_FEATURE_FLAG_RESULT_VALUE = 'feature_flag.result.value' as const; /** - * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. - * - * @example 2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de + * A semantic identifier for an evaluated flag value. * - * @note - **AWS Lambda:** Use the (full) log stream name. + * @example red + * @example true + * @example on * + * @note A semantic identifier, commonly referred to as a variant, provides a means + * for referring to a value without including the value itself. This can + * provide additional context for understanding the meaning behind a value. + * For example, the variant `red` maybe be used for the value `#c05543`. * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_INSTANCE = 'faas.instance' as const; +export const ATTR_FEATURE_FLAG_RESULT_VARIANT = 'feature_flag.result.variant' as const; /** - * The invocation ID of the current function invocation. + * The identifier of the [flag set](https://openfeature.dev/specification/glossary/#flag-set) to which the feature flag belongs. * - * @example "af9d5aa4-a685-4c5f-a22b-444f80b3cc28" + * @example proj-1 + * @example ab98sgs + * @example service1/dev * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_INVOCATION_ID = 'faas.invocation_id' as const; +export const ATTR_FEATURE_FLAG_SET_ID = 'feature_flag.set.id' as const; /** - * The name of the invoked function. - * - * @example "my-function" + * Deprecated, use `feature_flag.result.variant` instead. * - * @note **SHOULD** be equal to the `faas.name` resource attribute of the invoked function. + * @example red + * @example true + * @example on * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `feature_flag.result.variant`. */ -export const ATTR_FAAS_INVOKED_NAME = 'faas.invoked_name' as const; +export const ATTR_FEATURE_FLAG_VARIANT = 'feature_flag.variant' as const; /** - * The cloud provider of the invoked function. + * The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset. * - * @note **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function. + * @example 1 + * @example 01ABCDEF * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_INVOKED_PROVIDER = 'faas.invoked_provider' as const; +export const ATTR_FEATURE_FLAG_VERSION = 'feature_flag.version' as const; /** - * Enum value "alibaba_cloud" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. + * Time when the file was last accessed, in ISO 8601 format. * - * Alibaba Cloud + * @example 2021-01-01T12:00:00Z * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_INVOKED_PROVIDER_VALUE_ALIBABA_CLOUD = "alibaba_cloud" as const; +export const ATTR_FILE_ACCESSED = 'file.accessed' as const; /** - * Enum value "aws" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. + * Array of file attributes. * - * Amazon Web Services + * @example ["readonly", "hidden"] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note Attributes names depend on the OS or file system. Here’s a non-exhaustive list of values expected for this attribute: `archive`, `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, `write`. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_INVOKED_PROVIDER_VALUE_AWS = "aws" as const; +export const ATTR_FILE_ATTRIBUTES = 'file.attributes' as const; /** - * Enum value "azure" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. + * Time when the file attributes or metadata was last changed, in ISO 8601 format. * - * Microsoft Azure + * @example 2021-01-01T12:00:00Z * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note `file.changed` captures the time when any of the file's properties or attributes (including the content) are changed, while `file.modified` captures the timestamp when the file content is modified. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_INVOKED_PROVIDER_VALUE_AZURE = "azure" as const; +export const ATTR_FILE_CHANGED = 'file.changed' as const; /** - * Enum value "gcp" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. + * Time when the file was created, in ISO 8601 format. * - * Google Cloud Platform + * @example 2021-01-01T12:00:00Z * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_INVOKED_PROVIDER_VALUE_GCP = "gcp" as const; +export const ATTR_FILE_CREATED = 'file.created' as const; /** - * Enum value "tencent_cloud" for attribute {@link ATTR_FAAS_INVOKED_PROVIDER}. + * Directory where the file is located. It should include the drive letter, when appropriate. * - * Tencent Cloud + * @example /home/user + * @example C:\\Program Files\\MyApp * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_INVOKED_PROVIDER_VALUE_TENCENT_CLOUD = "tencent_cloud" as const; +export const ATTR_FILE_DIRECTORY = 'file.directory' as const; /** - * The cloud region of the invoked function. + * File extension, excluding the leading dot. * - * @example "eu-central-1" + * @example png + * @example gz * - * @note **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function. + * @note When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_INVOKED_REGION = 'faas.invoked_region' as const; +export const ATTR_FILE_EXTENSION = 'file.extension' as const; /** - * The amount of memory available to the serverless function converted to Bytes. + * Name of the fork. A fork is additional data associated with a filesystem object. * - * @example 134217728 + * @example Zone.Identifier * - * @note It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information (which must be multiplied by 1,048,576). + * @note On Linux, a resource fork is used to store additional data with a filesystem object. A file always has at least one fork for the data portion, and additional forks may exist. + * On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default data stream for a file is just called $DATA. Zone.Identifier is commonly used by Windows to track contents downloaded from the Internet. An ADS is typically of the form: C:\\path\\to\\filename.extension:some_fork_name, and some_fork_name is the value that should populate `fork_name`. `filename.extension` should populate `file.name`, and `extension` should populate `file.extension`. The full path, `file.path`, will include the fork name. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_MAX_MEMORY = 'faas.max_memory' as const; +export const ATTR_FILE_FORK_NAME = 'file.fork_name' as const; /** - * The name of the single function that this runtime instance executes. - * - * @example my-function - * @example myazurefunctionapp/some-function-name + * Primary Group ID (GID) of the file. * - * @note This is the name of the function as configured/deployed on the FaaS - * platform and is usually different from the name of the callback - * function (which may be stored in the - * [`code.namespace`/`code.function.name`](/docs/general/attributes.md#source-code-attributes) - * span attributes). + * @example 1000 * - * For some cloud providers, the above definition is ambiguous. The following - * definition of function name **MUST** be used for this attribute - * (and consequently the span name) for the listed cloud providers/products: + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_FILE_GROUP_ID = 'file.group.id' as const; + +/** + * Primary group name of the file. * - * - **Azure:** The full name `/`, i.e., function app name - * followed by a forward slash followed by the function name (this form - * can also be seen in the resource JSON for the function). - * This means that a span attribute **MUST** be used, as an Azure function - * app can host multiple functions that would usually share - * a TracerProvider (see also the `cloud.resource_id` attribute). + * @example users * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_NAME = 'faas.name' as const; +export const ATTR_FILE_GROUP_NAME = 'file.group.name' as const; /** - * A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). + * Inode representing the file in the filesystem. * - * @example "2020-01-23T13:47:06Z" + * @example 256383 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_TIME = 'faas.time' as const; +export const ATTR_FILE_INODE = 'file.inode' as const; /** - * Type of the trigger which caused this function invocation. + * Mode of the file in octal representation. + * + * @example 0640 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_TRIGGER = 'faas.trigger' as const; +export const ATTR_FILE_MODE = 'file.mode' as const; /** - * Enum value "datasource" for attribute {@link ATTR_FAAS_TRIGGER}. + * Time when the file content was last modified, in ISO 8601 format. * - * A response to some data source operation such as a database or filesystem read/write + * @example 2021-01-01T12:00:00Z * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_TRIGGER_VALUE_DATASOURCE = "datasource" as const; +export const ATTR_FILE_MODIFIED = 'file.modified' as const; /** - * Enum value "http" for attribute {@link ATTR_FAAS_TRIGGER}. + * Name of the file including the extension, without the directory. * - * To provide an answer to an inbound HTTP request + * @example example.png * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_TRIGGER_VALUE_HTTP = "http" as const; +export const ATTR_FILE_NAME = 'file.name' as const; /** - * Enum value "other" for attribute {@link ATTR_FAAS_TRIGGER}. + * The user ID (UID) or security identifier (SID) of the file owner. * - * If none of the others apply + * @example 1000 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_TRIGGER_VALUE_OTHER = "other" as const; +export const ATTR_FILE_OWNER_ID = 'file.owner.id' as const; /** - * Enum value "pubsub" for attribute {@link ATTR_FAAS_TRIGGER}. + * Username of the file owner. * - * A function is set to be executed when messages are sent to a messaging system + * @example root * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_TRIGGER_VALUE_PUBSUB = "pubsub" as const; +export const ATTR_FILE_OWNER_NAME = 'file.owner.name' as const; /** - * Enum value "timer" for attribute {@link ATTR_FAAS_TRIGGER}. + * Full path to the file, including the file name. It should include the drive letter, when appropriate. * - * A function is scheduled to be executed regularly + * @example /home/alice/example.png + * @example C:\\Program Files\\MyApp\\myapp.exe * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FAAS_TRIGGER_VALUE_TIMER = "timer" as const; +export const ATTR_FILE_PATH = 'file.path' as const; /** - * The immutable version of the function being executed. + * File size in bytes. * - * @example 26 - * @example pinkfroid-00002 + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_FILE_SIZE = 'file.size' as const; + +/** + * Path to the target of a symbolic link. * - * @note Depending on the cloud provider and platform, use: + * @example /usr/bin/python3 * - * - **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html) - * (an integer represented as a decimal string). - * - **Google Cloud Run (Services):** The [revision](https://cloud.google.com/run/docs/managing/revisions) - * (i.e., the function name plus the revision suffix). - * - **Google Cloud Functions:** The value of the - * [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically). - * - **Azure Functions:** Not applicable. Do not set this attribute. + * @note This attribute is only applicable to symbolic links. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FAAS_VERSION = 'faas.version' as const; +export const ATTR_FILE_SYMBOLIC_LINK_TARGET_PATH = 'file.symbolic_link.target_path' as const; /** - * The unique identifier for the flag evaluation context. For example, the targeting key. + * The container within GCP where the AppHub application is defined. * - * @example 5157782b-2203-4c80-a857-dbbd5e7761db + * @example projects/my-container-project * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_CONTEXT_ID = 'feature_flag.context.id' as const; +export const ATTR_GCP_APPHUB_APPLICATION_CONTAINER = 'gcp.apphub.application.container' as const; + +/** + * The name of the application as configured in AppHub. + * + * @example my-application + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GCP_APPHUB_APPLICATION_ID = 'gcp.apphub.application.id' as const; /** - * Deprecated, use `error.message` instead. + * The GCP zone or region where the application is defined. * - * @example Flag `header-color` expected type `string` but found type `number` + * @example us-central1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `error.message`. */ -export const ATTR_FEATURE_FLAG_EVALUATION_ERROR_MESSAGE = 'feature_flag.evaluation.error.message' as const; +export const ATTR_GCP_APPHUB_APPLICATION_LOCATION = 'gcp.apphub.application.location' as const; /** - * Deprecated, use `feature_flag.result.reason` instead. + * Criticality of a service indicates its importance to the business. * - * @example static - * @example targeting_match - * @example error - * @example default + * @note [See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `feature_flag.result.reason`. */ -export const ATTR_FEATURE_FLAG_EVALUATION_REASON = 'feature_flag.evaluation.reason' as const; +export const ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE = 'gcp.apphub.service.criticality_type' as const; /** - * Enum value "cached" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "HIGH" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. * - * The resolved value was retrieved from cache. + * High impact. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_CACHED = "cached" as const; +export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_HIGH = "HIGH" as const; /** - * Enum value "default" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "LOW" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. * - * The resolved value fell back to a pre-configured value (no dynamic evaluation occurred or dynamic evaluation yielded no result). + * Low impact. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_DEFAULT = "default" as const; +export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_LOW = "LOW" as const; /** - * Enum value "disabled" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "MEDIUM" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. * - * The resolved value was the result of the flag being disabled in the management system. + * Medium impact. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_DISABLED = "disabled" as const; +export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_MEDIUM = "MEDIUM" as const; /** - * Enum value "error" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "MISSION_CRITICAL" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. * - * The resolved value was the result of an error. + * Mission critical service. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_ERROR = "error" as const; +export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_MISSION_CRITICAL = "MISSION_CRITICAL" as const; /** - * Enum value "split" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Environment of a service is the stage of a software lifecycle. * - * The resolved value was the result of pseudorandom assignment. + * @note [See AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1) * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_SPLIT = "split" as const; +export const ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE = 'gcp.apphub.service.environment_type' as const; /** - * Enum value "stale" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "DEVELOPMENT" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. * - * The resolved value is non-authoritative or possibly out of date + * Development environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_STALE = "stale" as const; +export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_DEVELOPMENT = "DEVELOPMENT" as const; /** - * Enum value "static" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "PRODUCTION" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. * - * The resolved value is static (no dynamic evaluation). + * Production environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_STATIC = "static" as const; +export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_PRODUCTION = "PRODUCTION" as const; /** - * Enum value "targeting_match" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "STAGING" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. * - * The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting. + * Staging environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_TARGETING_MATCH = "targeting_match" as const; +export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_STAGING = "STAGING" as const; /** - * Enum value "unknown" for attribute {@link ATTR_FEATURE_FLAG_EVALUATION_REASON}. + * Enum value "TEST" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. * - * The reason for the resolved value could not be determined. + * Test environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_EVALUATION_REASON_VALUE_UNKNOWN = "unknown" as const; +export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_TEST = "TEST" as const; /** - * The lookup key of the feature flag. + * The name of the service as configured in AppHub. * - * @example logo-color + * @example my-service * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_KEY = 'feature_flag.key' as const; +export const ATTR_GCP_APPHUB_SERVICE_ID = 'gcp.apphub.service.id' as const; /** - * Identifies the feature flag provider. + * Criticality of a workload indicates its importance to the business. * - * @example Flag Manager + * @note [See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_PROVIDER_NAME = 'feature_flag.provider.name' as const; +export const ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE = 'gcp.apphub.workload.criticality_type' as const; /** - * The reason code which shows how a feature flag value was determined. + * Enum value "HIGH" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. * - * @example static - * @example targeting_match - * @example error - * @example default + * High impact. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_RESULT_REASON = 'feature_flag.result.reason' as const; +export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_HIGH = "HIGH" as const; /** - * Enum value "cached" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "LOW" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. * - * The resolved value was retrieved from cache. + * Low impact. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_CACHED = "cached" as const; +export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_LOW = "LOW" as const; /** - * Enum value "default" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "MEDIUM" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. * - * The resolved value fell back to a pre-configured value (no dynamic evaluation occurred or dynamic evaluation yielded no result). + * Medium impact. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_DEFAULT = "default" as const; +export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_MEDIUM = "MEDIUM" as const; /** - * Enum value "disabled" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "MISSION_CRITICAL" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. * - * The resolved value was the result of the flag being disabled in the management system. + * Mission critical service. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_DISABLED = "disabled" as const; +export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_MISSION_CRITICAL = "MISSION_CRITICAL" as const; /** - * Enum value "error" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Environment of a workload is the stage of a software lifecycle. * - * The resolved value was the result of an error. + * @note [See AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1) * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_ERROR = "error" as const; +export const ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE = 'gcp.apphub.workload.environment_type' as const; /** - * Enum value "split" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "DEVELOPMENT" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. * - * The resolved value was the result of pseudorandom assignment. + * Development environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_SPLIT = "split" as const; +export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_DEVELOPMENT = "DEVELOPMENT" as const; /** - * Enum value "stale" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "PRODUCTION" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. * - * The resolved value is non-authoritative or possibly out of date + * Production environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_STALE = "stale" as const; +export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_PRODUCTION = "PRODUCTION" as const; /** - * Enum value "static" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "STAGING" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. * - * The resolved value is static (no dynamic evaluation). + * Staging environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_STATIC = "static" as const; +export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_STAGING = "STAGING" as const; /** - * Enum value "targeting_match" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * Enum value "TEST" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. * - * The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting. + * Test environment. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_TARGETING_MATCH = "targeting_match" as const; +export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_TEST = "TEST" as const; /** - * Enum value "unknown" for attribute {@link ATTR_FEATURE_FLAG_RESULT_REASON}. + * The name of the workload as configured in AppHub. * - * The reason for the resolved value could not be determined. + * @example my-workload * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const FEATURE_FLAG_RESULT_REASON_VALUE_UNKNOWN = "unknown" as const; +export const ATTR_GCP_APPHUB_WORKLOAD_ID = 'gcp.apphub.workload.id' as const; /** - * The evaluated value of the feature flag. + * Identifies the Google Cloud service for which the official client library is intended. * - * @example #ff0000 - * @example true - * @example 3 + * @example appengine + * @example run + * @example firestore + * @example alloydb + * @example spanner * - * @note With some feature flag providers, feature flag results can be quite large or contain private or sensitive details. - * Because of this, `feature_flag.result.variant` is often the preferred attribute if it is available. + * @note Intended to be a stable identifier for Google Cloud client libraries that is uniform across implementation languages. The value should be derived from the canonical service domain for the service; for example, 'foo.googleapis.com' should result in a value of 'foo'. * - * It may be desirable to redact or otherwise limit the size and scope of `feature_flag.result.value` if possible. - * Because the evaluated flag value is unstructured and may be any type, it is left to the instrumentation author to determine how best to achieve this. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GCP_CLIENT_SERVICE = 'gcp.client.service' as const; + +/** + * The name of the Cloud Run [execution](https://cloud.google.com/run/docs/managing/job-executions) being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) environment variable. + * + * @example job-name-xxxx + * @example sample-job-mdw84 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_RESULT_VALUE = 'feature_flag.result.value' as const; +export const ATTR_GCP_CLOUD_RUN_JOB_EXECUTION = 'gcp.cloud_run.job.execution' as const; /** - * A semantic identifier for an evaluated flag value. + * The index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) environment variable. * - * @example red - * @example true - * @example on + * @example 0 + * @example 1 * - * @note A semantic identifier, commonly referred to as a variant, provides a means - * for referring to a value without including the value itself. This can - * provide additional context for understanding the meaning behind a value. - * For example, the variant `red` maybe be used for the value `#c05543`. * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_RESULT_VARIANT = 'feature_flag.result.variant' as const; +export const ATTR_GCP_CLOUD_RUN_JOB_TASK_INDEX = 'gcp.cloud_run.job.task_index' as const; /** - * The identifier of the [flag set](https://openfeature.dev/specification/glossary/#flag-set) to which the feature flag belongs. + * The hostname of a GCE instance. This is the full value of the default or [custom hostname](https://cloud.google.com/compute/docs/instances/custom-hostname-vm). * - * @example proj-1 - * @example ab98sgs - * @example service1/dev + * @example my-host1234.example.com + * @example sample-vm.us-west1-b.c.my-project.internal * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_SET_ID = 'feature_flag.set.id' as const; +export const ATTR_GCP_GCE_INSTANCE_HOSTNAME = 'gcp.gce.instance.hostname' as const; /** - * Deprecated, use `feature_flag.result.variant` instead. + * The instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names). * - * @example red - * @example true - * @example on + * @example instance-1 + * @example my-vm-name * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GCP_GCE_INSTANCE_NAME = 'gcp.gce.instance.name' as const; + +/** + * Free-form description of the GenAI agent provided by the application. * - * @deprecated Replaced by `feature_flag.result.variant`. + * @example Helps with math problems + * @example Generates fiction stories + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_VARIANT = 'feature_flag.variant' as const; +export const ATTR_GEN_AI_AGENT_DESCRIPTION = 'gen_ai.agent.description' as const; /** - * The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset. + * The unique identifier of the GenAI agent. * - * @example 1 - * @example 01ABCDEF + * @example asst_5j66UpCpwteGg4YSxUnt7lPY + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GEN_AI_AGENT_ID = 'gen_ai.agent.id' as const; + +/** + * Human-readable name of the GenAI agent provided by the application. + * + * @example Math Tutor + * @example Fiction Writer + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GEN_AI_AGENT_NAME = 'gen_ai.agent.name' as const; + +/** + * Deprecated, use Event API to report completions contents. + * + * @example [{'role': 'assistant', 'content': 'The capital of France is Paris.'}] + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Removed, no replacement at this time. + */ +export const ATTR_GEN_AI_COMPLETION = 'gen_ai.completion' as const; + +/** + * The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. + * + * @example conv_5j66UpCpwteGg4YSxUnt7lPY * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FEATURE_FLAG_VERSION = 'feature_flag.version' as const; +export const ATTR_GEN_AI_CONVERSATION_ID = 'gen_ai.conversation.id' as const; /** - * Time when the file was last accessed, in ISO 8601 format. + * The data source identifier. * - * @example 2021-01-01T12:00:00Z + * @example H7STPQYOND * - * @note This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + * @note Data sources are used by AI agents and RAG applications to store grounding data. A data source may be an external database, object store, document collection, website, or any other storage system used by the GenAI agent or application. The `gen_ai.data_source.id` **SHOULD** match the identifier used by the GenAI system rather than a name specific to the external storage, such as a database or object store. Semantic conventions referencing `gen_ai.data_source.id` **MAY** also leverage additional attributes, such as `db.*`, to further identify and describe the data source. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_ACCESSED = 'file.accessed' as const; +export const ATTR_GEN_AI_DATA_SOURCE_ID = 'gen_ai.data_source.id' as const; /** - * Array of file attributes. + * The chat history provided to the model as an input. + * + * @example [ + * { + * "role": "user", + * "parts": [ + * { + * "type": "text", + * "content": "Weather in Paris?" + * } + * ] + * }, + * { + * "role": "assistant", + * "parts": [ + * { + * "type": "tool_call", + * "id": "call_VSPygqKTWdrhaFErNvMV18Yl", + * "name": "get_weather", + * "arguments": { + * "location": "Paris" + * } + * } + * ] + * }, + * { + * "role": "tool", + * "parts": [ + * { + * "type": "tool_call_response", + * "id": " call_VSPygqKTWdrhaFErNvMV18Yl", + * "result": "rainy, 57°F" + * } + * ] + * } + * ] + * + * @note Instrumentations **MUST** follow [Input messages JSON schema](/docs/gen-ai/gen-ai-input-messages.json). + * When the attribute is recorded on events, it **MUST** be recorded in structured + * form. When recorded on spans, it **MAY** be recorded as a JSON string if structured + * format is not supported and **SHOULD** be recorded in structured form otherwise. + * + * Messages **MUST** be provided in the order they were sent to the model. + * Instrumentations **MAY** provide a way for users to filter or truncate + * input messages. * - * @example ["readonly", "hidden"] + * > [!Warning] + * > This attribute is likely to contain sensitive information including user/PII data. * - * @note Attributes names depend on the OS or file system. Here’s a non-exhaustive list of values expected for this attribute: `archive`, `compressed`, `directory`, `encrypted`, `execute`, `hidden`, `immutable`, `journaled`, `read`, `readonly`, `symbolic link`, `system`, `temporary`, `write`. + * See [Recording content on attributes](/docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes) + * section for more details. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_ATTRIBUTES = 'file.attributes' as const; +export const ATTR_GEN_AI_INPUT_MESSAGES = 'gen_ai.input.messages' as const; /** - * Time when the file attributes or metadata was last changed, in ISO 8601 format. - * - * @example 2021-01-01T12:00:00Z - * - * @note `file.changed` captures the time when any of the file's properties or attributes (including the content) are changed, while `file.modified` captures the timestamp when the file content is modified. + * Deprecated, use `gen_ai.output.type`. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `gen_ai.output.type`. */ -export const ATTR_FILE_CHANGED = 'file.changed' as const; +export const ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT = 'gen_ai.openai.request.response_format' as const; /** - * Time when the file was created, in ISO 8601 format. - * - * @example 2021-01-01T12:00:00Z + * Enum value "json_object" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT}. * - * @note This attribute might not be supported by some file systems — NFS, FAT32, in embedded OS, etc. + * JSON object response format * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_CREATED = 'file.created' as const; +export const GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT_VALUE_JSON_OBJECT = "json_object" as const; /** - * Directory where the file is located. It should include the drive letter, when appropriate. + * Enum value "json_schema" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT}. * - * @example /home/user - * @example C:\\Program Files\\MyApp + * JSON schema response format * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_DIRECTORY = 'file.directory' as const; +export const GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT_VALUE_JSON_SCHEMA = "json_schema" as const; /** - * File extension, excluding the leading dot. - * - * @example png - * @example gz + * Enum value "text" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT}. * - * @note When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). + * Text response format * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_EXTENSION = 'file.extension' as const; +export const GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT_VALUE_TEXT = "text" as const; /** - * Name of the fork. A fork is additional data associated with a filesystem object. - * - * @example Zone.Identifer + * Deprecated, use `gen_ai.request.seed`. * - * @note On Linux, a resource fork is used to store additional data with a filesystem object. A file always has at least one fork for the data portion, and additional forks may exist. - * On NTFS, this is analogous to an Alternate Data Stream (ADS), and the default data stream for a file is just called $DATA. Zone.Identifier is commonly used by Windows to track contents downloaded from the Internet. An ADS is typically of the form: C:\\path\\to\\filename.extension:some_fork_name, and some_fork_name is the value that should populate `fork_name`. `filename.extension` should populate `file.name`, and `extension` should populate `file.extension`. The full path, `file.path`, will include the fork name. + * @example 100 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `gen_ai.request.seed`. */ -export const ATTR_FILE_FORK_NAME = 'file.fork_name' as const; +export const ATTR_GEN_AI_OPENAI_REQUEST_SEED = 'gen_ai.openai.request.seed' as const; /** - * Primary Group ID (GID) of the file. - * - * @example 1000 + * Deprecated, use `openai.request.service_tier`. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `openai.request.service_tier`. */ -export const ATTR_FILE_GROUP_ID = 'file.group.id' as const; +export const ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER = 'gen_ai.openai.request.service_tier' as const; /** - * Primary group name of the file. + * Enum value "auto" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER}. * - * @example users + * The system will utilize scale tier credits until they are exhausted. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_GROUP_NAME = 'file.group.name' as const; +export const GEN_AI_OPENAI_REQUEST_SERVICE_TIER_VALUE_AUTO = "auto" as const; /** - * Inode representing the file in the filesystem. + * Enum value "default" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER}. * - * @example 256383 + * The system will utilize the default scale tier. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_INODE = 'file.inode' as const; +export const GEN_AI_OPENAI_REQUEST_SERVICE_TIER_VALUE_DEFAULT = "default" as const; /** - * Mode of the file in octal representation. + * Deprecated, use `openai.response.service_tier`. * - * @example 0640 + * @example scale + * @example default * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `openai.response.service_tier`. */ -export const ATTR_FILE_MODE = 'file.mode' as const; +export const ATTR_GEN_AI_OPENAI_RESPONSE_SERVICE_TIER = 'gen_ai.openai.response.service_tier' as const; /** - * Time when the file content was last modified, in ISO 8601 format. + * Deprecated, use `openai.response.system_fingerprint`. * - * @example 2021-01-01T12:00:00Z + * @example fp_44709d6fcb * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `openai.response.system_fingerprint`. */ -export const ATTR_FILE_MODIFIED = 'file.modified' as const; +export const ATTR_GEN_AI_OPENAI_RESPONSE_SYSTEM_FINGERPRINT = 'gen_ai.openai.response.system_fingerprint' as const; /** - * Name of the file including the extension, without the directory. + * The name of the operation being performed. * - * @example example.png + * @note If one of the predefined values applies, but specific system uses a different name it's **RECOMMENDED** to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries **SHOULD** use applicable predefined value. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_NAME = 'file.name' as const; +export const ATTR_GEN_AI_OPERATION_NAME = 'gen_ai.operation.name' as const; /** - * The user ID (UID) or security identifier (SID) of the file owner. + * Enum value "chat" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @example 1000 + * Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_OWNER_ID = 'file.owner.id' as const; +export const GEN_AI_OPERATION_NAME_VALUE_CHAT = "chat" as const; /** - * Username of the file owner. + * Enum value "create_agent" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @example root + * Create GenAI agent * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_OWNER_NAME = 'file.owner.name' as const; +export const GEN_AI_OPERATION_NAME_VALUE_CREATE_AGENT = "create_agent" as const; /** - * Full path to the file, including the file name. It should include the drive letter, when appropriate. + * Enum value "embeddings" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @example /home/alice/example.png - * @example C:\\Program Files\\MyApp\\myapp.exe + * Embeddings operation such as [OpenAI Create embeddings API](https://platform.openai.com/docs/api-reference/embeddings/create) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_PATH = 'file.path' as const; +export const GEN_AI_OPERATION_NAME_VALUE_EMBEDDINGS = "embeddings" as const; /** - * File size in bytes. + * Enum value "execute_tool" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Execute a tool + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_SIZE = 'file.size' as const; +export const GEN_AI_OPERATION_NAME_VALUE_EXECUTE_TOOL = "execute_tool" as const; /** - * Path to the target of a symbolic link. - * - * @example /usr/bin/python3 + * Enum value "generate_content" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @note This attribute is only applicable to symbolic links. + * Multimodal content generation operation such as [Gemini Generate Content](https://ai.google.dev/api/generate-content) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_FILE_SYMBOLIC_LINK_TARGET_PATH = 'file.symbolic_link.target_path' as const; +export const GEN_AI_OPERATION_NAME_VALUE_GENERATE_CONTENT = "generate_content" as const; /** - * The container within GCP where the AppHub application is defined. + * Enum value "invoke_agent" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @example projects/my-container-project + * Invoke GenAI agent * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_APPLICATION_CONTAINER = 'gcp.apphub.application.container' as const; +export const GEN_AI_OPERATION_NAME_VALUE_INVOKE_AGENT = "invoke_agent" as const; /** - * The name of the application as configured in AppHub. + * Enum value "text_completion" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. * - * @example my-application + * Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_APPLICATION_ID = 'gcp.apphub.application.id' as const; +export const GEN_AI_OPERATION_NAME_VALUE_TEXT_COMPLETION = "text_completion" as const; /** - * The GCP zone or region where the application is defined. + * Messages returned by the model where each message represents a specific model response (choice, candidate). * - * @example us-central1 + * @example [ + * { + * "role": "assistant", + * "parts": [ + * { + * "type": "text", + * "content": "The weather in Paris is currently rainy with a temperature of 57°F." + * } + * ], + * "finish_reason": "stop" + * } + * ] + * + * @note Instrumentations **MUST** follow [Output messages JSON schema](/docs/gen-ai/gen-ai-output-messages.json) + * + * Each message represents a single output choice/candidate generated by + * the model. Each message corresponds to exactly one generation + * (choice/candidate) and vice versa - one choice cannot be split across + * multiple messages or one message cannot contain parts from multiple choices. + * + * When the attribute is recorded on events, it **MUST** be recorded in structured + * form. When recorded on spans, it **MAY** be recorded as a JSON string if structured + * format is not supported and **SHOULD** be recorded in structured form otherwise. + * + * Instrumentations **MAY** provide a way for users to filter or truncate + * output messages. + * + * > [!Warning] + * > This attribute is likely to contain sensitive information including user/PII data. + * + * See [Recording content on attributes](/docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes) + * section for more details. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_APPLICATION_LOCATION = 'gcp.apphub.application.location' as const; +export const ATTR_GEN_AI_OUTPUT_MESSAGES = 'gen_ai.output.messages' as const; /** - * Criticality of a service indicates its importance to the business. + * Represents the content type requested by the client. * - * @note [See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) + * @note This attribute **SHOULD** be used when the client requests output of a specific type. The model may return zero or more outputs of this type. + * This attribute specifies the output modality and not the actual output format. For example, if an image is requested, the actual output could be a URL pointing to an image file. + * Additional output format details may be recorded in the future in the `gen_ai.output.{type}.*` attributes. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE = 'gcp.apphub.service.criticality_type' as const; +export const ATTR_GEN_AI_OUTPUT_TYPE = 'gen_ai.output.type' as const; /** - * Enum value "HIGH" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. + * Enum value "image" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. * - * High impact. + * Image * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_HIGH = "HIGH" as const; +export const GEN_AI_OUTPUT_TYPE_VALUE_IMAGE = "image" as const; /** - * Enum value "LOW" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. + * Enum value "json" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. * - * Low impact. + * JSON object with known or unknown schema * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_LOW = "LOW" as const; +export const GEN_AI_OUTPUT_TYPE_VALUE_JSON = "json" as const; /** - * Enum value "MEDIUM" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. + * Enum value "speech" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. * - * Medium impact. + * Speech * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_MEDIUM = "MEDIUM" as const; +export const GEN_AI_OUTPUT_TYPE_VALUE_SPEECH = "speech" as const; /** - * Enum value "MISSION_CRITICAL" for attribute {@link ATTR_GCP_APPHUB_SERVICE_CRITICALITY_TYPE}. + * Enum value "text" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. * - * Mission critical service. + * Plain text * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_CRITICALITY_TYPE_VALUE_MISSION_CRITICAL = "MISSION_CRITICAL" as const; +export const GEN_AI_OUTPUT_TYPE_VALUE_TEXT = "text" as const; /** - * Environment of a service is the stage of a software lifecycle. + * Deprecated, use Event API to report prompt contents. * - * @note [See AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1) + * @example [{'role': 'user', 'content': 'What is the capital of France?'}] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Removed, no replacement at this time. */ -export const ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE = 'gcp.apphub.service.environment_type' as const; +export const ATTR_GEN_AI_PROMPT = 'gen_ai.prompt' as const; /** - * Enum value "DEVELOPMENT" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. + * The Generative AI provider as identified by the client or server instrumentation. * - * Development environment. + * @note The attribute **SHOULD** be set based on the instrumentation's best + * knowledge and may differ from the actual model provider. + * + * Multiple providers, including Azure OpenAI, Gemini, and AI hosting platforms + * are accessible using the OpenAI REST API and corresponding client libraries, + * but may proxy or host models from different providers. + * + * The `gen_ai.request.model`, `gen_ai.response.model`, and `server.address` + * attributes may help identify the actual system in use. + * + * The `gen_ai.provider.name` attribute acts as a discriminator that + * identifies the GenAI telemetry format flavor specific to that provider + * within GenAI semantic conventions. + * It **SHOULD** be set consistently with provider-specific attributes and signals. + * For example, GenAI spans, metrics, and events related to AWS Bedrock + * should have the `gen_ai.provider.name` set to `aws.bedrock` and include + * applicable `aws.bedrock.*` attributes and are not expected to include + * `openai.*` attributes. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GEN_AI_PROVIDER_NAME = 'gen_ai.provider.name' as const; + +/** + * Enum value "anthropic" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. + * + * [Anthropic](https://www.anthropic.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_DEVELOPMENT = "DEVELOPMENT" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_ANTHROPIC = "anthropic" as const; /** - * Enum value "PRODUCTION" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. + * Enum value "aws.bedrock" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Production environment. + * [AWS Bedrock](https://aws.amazon.com/bedrock) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_PRODUCTION = "PRODUCTION" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_AWS_BEDROCK = "aws.bedrock" as const; /** - * Enum value "STAGING" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. + * Enum value "azure.ai.inference" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Staging environment. + * Azure AI Inference * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_STAGING = "STAGING" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_AZURE_AI_INFERENCE = "azure.ai.inference" as const; /** - * Enum value "TEST" for attribute {@link ATTR_GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE}. + * Enum value "azure.ai.openai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Test environment. + * [Azure OpenAI](https://azure.microsoft.com/products/ai-services/openai-service/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE_VALUE_TEST = "TEST" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_AZURE_AI_OPENAI = "azure.ai.openai" as const; /** - * The name of the service as configured in AppHub. + * Enum value "cohere" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * @example my-service + * [Cohere](https://cohere.com/) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_SERVICE_ID = 'gcp.apphub.service.id' as const; +export const GEN_AI_PROVIDER_NAME_VALUE_COHERE = "cohere" as const; /** - * Criticality of a workload indicates its importance to the business. + * Enum value "deepseek" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * @note [See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) + * [DeepSeek](https://www.deepseek.com/) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE = 'gcp.apphub.workload.criticality_type' as const; +export const GEN_AI_PROVIDER_NAME_VALUE_DEEPSEEK = "deepseek" as const; /** - * Enum value "HIGH" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. + * Enum value "gcp.gemini" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * High impact. + * [Gemini](https://cloud.google.com/products/gemini) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_HIGH = "HIGH" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_GCP_GEMINI = "gcp.gemini" as const; /** - * Enum value "LOW" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. + * Enum value "gcp.gen_ai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Low impact. + * Any Google generative AI endpoint * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_LOW = "LOW" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_GCP_GEN_AI = "gcp.gen_ai" as const; /** - * Enum value "MEDIUM" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. + * Enum value "gcp.vertex_ai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Medium impact. + * [Vertex AI](https://cloud.google.com/vertex-ai) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_MEDIUM = "MEDIUM" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_GCP_VERTEX_AI = "gcp.vertex_ai" as const; /** - * Enum value "MISSION_CRITICAL" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE}. + * Enum value "groq" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Mission critical service. + * [Groq](https://groq.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE_VALUE_MISSION_CRITICAL = "MISSION_CRITICAL" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_GROQ = "groq" as const; /** - * Environment of a workload is the stage of a software lifecycle. + * Enum value "ibm.watsonx.ai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * @note [See AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1) + * [IBM Watsonx AI](https://www.ibm.com/products/watsonx-ai) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE = 'gcp.apphub.workload.environment_type' as const; +export const GEN_AI_PROVIDER_NAME_VALUE_IBM_WATSONX_AI = "ibm.watsonx.ai" as const; /** - * Enum value "DEVELOPMENT" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. + * Enum value "mistral_ai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Development environment. + * [Mistral AI](https://mistral.ai/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_DEVELOPMENT = "DEVELOPMENT" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_MISTRAL_AI = "mistral_ai" as const; /** - * Enum value "PRODUCTION" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. + * Enum value "openai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Production environment. + * [OpenAI](https://openai.com/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_PRODUCTION = "PRODUCTION" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_OPENAI = "openai" as const; /** - * Enum value "STAGING" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. + * Enum value "perplexity" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Staging environment. + * [Perplexity](https://www.perplexity.ai/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_STAGING = "STAGING" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_PERPLEXITY = "perplexity" as const; /** - * Enum value "TEST" for attribute {@link ATTR_GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE}. + * Enum value "x_ai" for attribute {@link ATTR_GEN_AI_PROVIDER_NAME}. * - * Test environment. + * [xAI](https://x.ai/) * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE_VALUE_TEST = "TEST" as const; +export const GEN_AI_PROVIDER_NAME_VALUE_X_AI = "x_ai" as const; /** - * The name of the workload as configured in AppHub. + * The target number of candidate completions to return. * - * @example my-workload + * @example 3 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_APPHUB_WORKLOAD_ID = 'gcp.apphub.workload.id' as const; +export const ATTR_GEN_AI_REQUEST_CHOICE_COUNT = 'gen_ai.request.choice.count' as const; /** - * Identifies the Google Cloud service for which the official client library is intended. + * The encoding formats requested in an embeddings operation, if specified. * - * @example appengine - * @example run - * @example firestore - * @example alloydb - * @example spanner + * @example ["base64"] + * @example ["float", "binary"] * - * @note Intended to be a stable identifier for Google Cloud client libraries that is uniform across implementation languages. The value should be derived from the canonical service domain for the service; for example, 'foo.googleapis.com' should result in a value of 'foo'. + * @note In some GenAI systems the encoding formats are called embedding types. Also, some GenAI systems only accept a single format per request. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_CLIENT_SERVICE = 'gcp.client.service' as const; +export const ATTR_GEN_AI_REQUEST_ENCODING_FORMATS = 'gen_ai.request.encoding_formats' as const; /** - * The name of the Cloud Run [execution](https://cloud.google.com/run/docs/managing/job-executions) being run for the Job, as set by the [`CLOUD_RUN_EXECUTION`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) environment variable. + * The frequency penalty setting for the GenAI request. * - * @example job-name-xxxx - * @example sample-job-mdw84 + * @example 0.1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_CLOUD_RUN_JOB_EXECUTION = 'gcp.cloud_run.job.execution' as const; +export const ATTR_GEN_AI_REQUEST_FREQUENCY_PENALTY = 'gen_ai.request.frequency_penalty' as const; /** - * The index for a task within an execution as provided by the [`CLOUD_RUN_TASK_INDEX`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) environment variable. + * The maximum number of tokens the model generates for a request. * - * @example 0 - * @example 1 + * @example 100 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_CLOUD_RUN_JOB_TASK_INDEX = 'gcp.cloud_run.job.task_index' as const; +export const ATTR_GEN_AI_REQUEST_MAX_TOKENS = 'gen_ai.request.max_tokens' as const; /** - * The hostname of a GCE instance. This is the full value of the default or [custom hostname](https://cloud.google.com/compute/docs/instances/custom-hostname-vm). + * The name of the GenAI model a request is being made to. * - * @example my-host1234.example.com - * @example sample-vm.us-west1-b.c.my-project.internal + * @example "gpt-4" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_GCE_INSTANCE_HOSTNAME = 'gcp.gce.instance.hostname' as const; +export const ATTR_GEN_AI_REQUEST_MODEL = 'gen_ai.request.model' as const; /** - * The instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names). + * The presence penalty setting for the GenAI request. * - * @example instance-1 - * @example my-vm-name + * @example 0.1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GCP_GCE_INSTANCE_NAME = 'gcp.gce.instance.name' as const; +export const ATTR_GEN_AI_REQUEST_PRESENCE_PENALTY = 'gen_ai.request.presence_penalty' as const; /** - * Free-form description of the GenAI agent provided by the application. + * Requests with same seed value more likely to return same result. * - * @example Helps with math problems - * @example Generates fiction stories + * @example 100 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_AGENT_DESCRIPTION = 'gen_ai.agent.description' as const; +export const ATTR_GEN_AI_REQUEST_SEED = 'gen_ai.request.seed' as const; /** - * The unique identifier of the GenAI agent. + * List of sequences that the model will use to stop generating further tokens. * - * @example asst_5j66UpCpwteGg4YSxUnt7lPY + * @example ["forest", "lived"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_AGENT_ID = 'gen_ai.agent.id' as const; +export const ATTR_GEN_AI_REQUEST_STOP_SEQUENCES = 'gen_ai.request.stop_sequences' as const; /** - * Human-readable name of the GenAI agent provided by the application. + * The temperature setting for the GenAI request. * - * @example Math Tutor - * @example Fiction Writer + * @example 0.0 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_AGENT_NAME = 'gen_ai.agent.name' as const; +export const ATTR_GEN_AI_REQUEST_TEMPERATURE = 'gen_ai.request.temperature' as const; /** - * Deprecated, use Event API to report completions contents. + * The top_k sampling setting for the GenAI request. * - * @example [{'role': 'assistant', 'content': 'The capital of France is Paris.'}] + * @example 1.0 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Removed, no replacement at this time. */ -export const ATTR_GEN_AI_COMPLETION = 'gen_ai.completion' as const; +export const ATTR_GEN_AI_REQUEST_TOP_K = 'gen_ai.request.top_k' as const; /** - * The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. + * The top_p sampling setting for the GenAI request. * - * @example conv_5j66UpCpwteGg4YSxUnt7lPY + * @example 1.0 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_CONVERSATION_ID = 'gen_ai.conversation.id' as const; +export const ATTR_GEN_AI_REQUEST_TOP_P = 'gen_ai.request.top_p' as const; /** - * The data source identifier. - * - * @example H7STPQYOND + * Array of reasons the model stopped generating tokens, corresponding to each generation received. * - * @note Data sources are used by AI agents and RAG applications to store grounding data. A data source may be an external database, object store, document collection, website, or any other storage system used by the GenAI agent or application. The `gen_ai.data_source.id` **SHOULD** match the identifier used by the GenAI system rather than a name specific to the external storage, such as a database or object store. Semantic conventions referencing `gen_ai.data_source.id` **MAY** also leverage additional attributes, such as `db.*`, to further identify and describe the data source. + * @example ["stop"] + * @example ["stop", "length"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_DATA_SOURCE_ID = 'gen_ai.data_source.id' as const; +export const ATTR_GEN_AI_RESPONSE_FINISH_REASONS = 'gen_ai.response.finish_reasons' as const; /** - * Deprecated, use `gen_ai.output.type`. + * The unique identifier for the completion. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example chatcmpl-123 * - * @deprecated Replaced by `gen_ai.output.type`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT = 'gen_ai.openai.request.response_format' as const; +export const ATTR_GEN_AI_RESPONSE_ID = 'gen_ai.response.id' as const; /** - * Enum value "json_object" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT}. + * The name of the model that generated the response. * - * JSON object response format + * @example gpt-4-0613 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT_VALUE_JSON_OBJECT = "json_object" as const; +export const ATTR_GEN_AI_RESPONSE_MODEL = 'gen_ai.response.model' as const; /** - * Enum value "json_schema" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT}. + * Deprecated, use `gen_ai.provider.name` instead. * - * JSON schema response format + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @deprecated Replaced by `gen_ai.provider.name`. */ -export const GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT_VALUE_JSON_SCHEMA = "json_schema" as const; +export const ATTR_GEN_AI_SYSTEM = 'gen_ai.system' as const; /** - * Enum value "text" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT}. + * Enum value "anthropic" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Text response format + * Anthropic * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT_VALUE_TEXT = "text" as const; +export const GEN_AI_SYSTEM_VALUE_ANTHROPIC = "anthropic" as const; /** - * Deprecated, use `gen_ai.request.seed`. - * - * @example 100 + * Enum value "aws.bedrock" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * AWS Bedrock * - * @deprecated Replaced by `gen_ai.request.seed`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OPENAI_REQUEST_SEED = 'gen_ai.openai.request.seed' as const; +export const GEN_AI_SYSTEM_VALUE_AWS_BEDROCK = "aws.bedrock" as const; /** - * The service tier requested. May be a specific tier, default, or auto. + * Enum value "az.ai.inference" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * @example auto - * @example default + * Azure AI Inference * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER = 'gen_ai.openai.request.service_tier' as const; +export const GEN_AI_SYSTEM_VALUE_AZ_AI_INFERENCE = "az.ai.inference" as const; /** - * Enum value "auto" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER}. + * Enum value "az.ai.openai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * The system will utilize scale tier credits until they are exhausted. + * Azure OpenAI * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPENAI_REQUEST_SERVICE_TIER_VALUE_AUTO = "auto" as const; +export const GEN_AI_SYSTEM_VALUE_AZ_AI_OPENAI = "az.ai.openai" as const; /** - * Enum value "default" for attribute {@link ATTR_GEN_AI_OPENAI_REQUEST_SERVICE_TIER}. + * Enum value "azure.ai.inference" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * The system will utilize the default scale tier. + * Azure AI Inference * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPENAI_REQUEST_SERVICE_TIER_VALUE_DEFAULT = "default" as const; +export const GEN_AI_SYSTEM_VALUE_AZURE_AI_INFERENCE = "azure.ai.inference" as const; /** - * The service tier used for the response. + * Enum value "azure.ai.openai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * @example scale - * @example default + * Azure OpenAI * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OPENAI_RESPONSE_SERVICE_TIER = 'gen_ai.openai.response.service_tier' as const; +export const GEN_AI_SYSTEM_VALUE_AZURE_AI_OPENAI = "azure.ai.openai" as const; /** - * A fingerprint to track any eventual change in the Generative AI environment. + * Enum value "cohere" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * @example fp_44709d6fcb + * Cohere * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OPENAI_RESPONSE_SYSTEM_FINGERPRINT = 'gen_ai.openai.response.system_fingerprint' as const; +export const GEN_AI_SYSTEM_VALUE_COHERE = "cohere" as const; /** - * The name of the operation being performed. + * Enum value "deepseek" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * @note If one of the predefined values applies, but specific system uses a different name it's **RECOMMENDED** to document it in the semantic conventions for specific GenAI system and use system-specific name in the instrumentation. If a different name is not documented, instrumentation libraries **SHOULD** use applicable predefined value. + * DeepSeek * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OPERATION_NAME = 'gen_ai.operation.name' as const; +export const GEN_AI_SYSTEM_VALUE_DEEPSEEK = "deepseek" as const; /** - * Enum value "chat" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "gcp.gemini" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat) + * Gemini * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPERATION_NAME_VALUE_CHAT = "chat" as const; +export const GEN_AI_SYSTEM_VALUE_GCP_GEMINI = "gcp.gemini" as const; /** - * Enum value "create_agent" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "gcp.gen_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Create GenAI agent + * Any Google generative AI endpoint * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPERATION_NAME_VALUE_CREATE_AGENT = "create_agent" as const; +export const GEN_AI_SYSTEM_VALUE_GCP_GEN_AI = "gcp.gen_ai" as const; /** - * Enum value "embeddings" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "gcp.vertex_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Embeddings operation such as [OpenAI Create embeddings API](https://platform.openai.com/docs/api-reference/embeddings/create) + * Vertex AI * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPERATION_NAME_VALUE_EMBEDDINGS = "embeddings" as const; +export const GEN_AI_SYSTEM_VALUE_GCP_VERTEX_AI = "gcp.vertex_ai" as const; /** - * Enum value "execute_tool" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "gemini" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Execute a tool + * Gemini * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `gcp.gemini`. */ -export const GEN_AI_OPERATION_NAME_VALUE_EXECUTE_TOOL = "execute_tool" as const; +export const GEN_AI_SYSTEM_VALUE_GEMINI = "gemini" as const; /** - * Enum value "generate_content" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "groq" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Multimodal content generation operation such as [Gemini Generate Content](https://ai.google.dev/api/generate-content) + * Groq * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPERATION_NAME_VALUE_GENERATE_CONTENT = "generate_content" as const; +export const GEN_AI_SYSTEM_VALUE_GROQ = "groq" as const; /** - * Enum value "invoke_agent" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "ibm.watsonx.ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Invoke GenAI agent + * IBM Watsonx AI * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPERATION_NAME_VALUE_INVOKE_AGENT = "invoke_agent" as const; +export const GEN_AI_SYSTEM_VALUE_IBM_WATSONX_AI = "ibm.watsonx.ai" as const; /** - * Enum value "text_completion" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}. + * Enum value "mistral_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions) + * Mistral AI * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OPERATION_NAME_VALUE_TEXT_COMPLETION = "text_completion" as const; +export const GEN_AI_SYSTEM_VALUE_MISTRAL_AI = "mistral_ai" as const; /** - * Represents the content type requested by the client. + * Enum value "openai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * @note This attribute **SHOULD** be used when the client requests output of a specific type. The model may return zero or more outputs of this type. - * This attribute specifies the output modality and not the actual output format. For example, if an image is requested, the actual output could be a URL pointing to an image file. - * Additional output format details may be recorded in the future in the `gen_ai.output.{type}.*` attributes. + * OpenAI * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_OUTPUT_TYPE = 'gen_ai.output.type' as const; +export const GEN_AI_SYSTEM_VALUE_OPENAI = "openai" as const; /** - * Enum value "image" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. + * Enum value "perplexity" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Image + * Perplexity * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OUTPUT_TYPE_VALUE_IMAGE = "image" as const; +export const GEN_AI_SYSTEM_VALUE_PERPLEXITY = "perplexity" as const; /** - * Enum value "json" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. + * Enum value "vertex_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * JSON object with known or unknown schema + * Vertex AI * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `gcp.vertex_ai`. */ -export const GEN_AI_OUTPUT_TYPE_VALUE_JSON = "json" as const; +export const GEN_AI_SYSTEM_VALUE_VERTEX_AI = "vertex_ai" as const; /** - * Enum value "speech" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. + * Enum value "xai" for attribute {@link ATTR_GEN_AI_SYSTEM}. * - * Speech + * xAI * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `x_ai`. */ -export const GEN_AI_OUTPUT_TYPE_VALUE_SPEECH = "speech" as const; +export const GEN_AI_SYSTEM_VALUE_XAI = "xai" as const; /** - * Enum value "text" for attribute {@link ATTR_GEN_AI_OUTPUT_TYPE}. + * The system message or instructions provided to the GenAI model separately from the chat history. * - * Plain text + * @example [ + * { + * "type": "text", + * "content": "You are an Agent that greet users, always use greetings tool to respond" + * } + * ] * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @example [ + * { + * "type": "text", + * "content": "You are a language translator." + * }, + * { + * "type": "text", + * "content": "Your mission is to translate text in English to French." + * } + * ] + * + * @note This attribute **SHOULD** be used when the corresponding provider or API + * allows to provide system instructions or messages separately from the + * chat history. + * + * Instructions that are part of the chat history **SHOULD** be recorded in + * `gen_ai.input.messages` attribute instead. + * + * Instrumentations **MUST** follow [System instructions JSON schema](/docs/gen-ai/gen-ai-system-instructions.json). + * + * When recorded on spans, it **MAY** be recorded as a JSON string if structured + * format is not supported and **SHOULD** be recorded in structured form otherwise. + * + * Instrumentations **MAY** provide a way for users to filter or truncate + * system instructions. + * + * > [!Warning] + * > This attribute may contain sensitive information. + * + * See [Recording content on attributes](/docs/gen-ai/gen-ai-spans.md#recording-content-on-attributes) + * section for more details. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_OUTPUT_TYPE_VALUE_TEXT = "text" as const; +export const ATTR_GEN_AI_SYSTEM_INSTRUCTIONS = 'gen_ai.system_instructions' as const; /** - * Deprecated, use Event API to report prompt contents. + * The type of token being counted. * - * @example [{'role': 'user', 'content': 'What is the capital of France?'}] + * @example input + * @example output * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Removed, no replacement at this time. */ -export const ATTR_GEN_AI_PROMPT = 'gen_ai.prompt' as const; +export const ATTR_GEN_AI_TOKEN_TYPE = 'gen_ai.token.type' as const; /** - * The target number of candidate completions to return. + * Enum value "input" for attribute {@link ATTR_GEN_AI_TOKEN_TYPE}. * - * @example 3 + * Input tokens (prompt, input, etc.) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_CHOICE_COUNT = 'gen_ai.request.choice.count' as const; +export const GEN_AI_TOKEN_TYPE_VALUE_INPUT = "input" as const; /** - * The encoding formats requested in an embeddings operation, if specified. + * Enum value "output" for attribute {@link ATTR_GEN_AI_TOKEN_TYPE}. * - * @example ["base64"] - * @example ["float", "binary"] + * Output tokens (completion, response, etc.) * - * @note In some GenAI systems the encoding formats are called embedding types. Also, some GenAI systems only accept a single format per request. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @deprecated Replaced by `output`. */ -export const ATTR_GEN_AI_REQUEST_ENCODING_FORMATS = 'gen_ai.request.encoding_formats' as const; +export const GEN_AI_TOKEN_TYPE_VALUE_COMPLETION = "output" as const; /** - * The frequency penalty setting for the GenAI request. + * Enum value "output" for attribute {@link ATTR_GEN_AI_TOKEN_TYPE}. * - * @example 0.1 + * Output tokens (completion, response, etc.) * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_FREQUENCY_PENALTY = 'gen_ai.request.frequency_penalty' as const; +export const GEN_AI_TOKEN_TYPE_VALUE_OUTPUT = "output" as const; /** - * The maximum number of tokens the model generates for a request. + * The tool call identifier. * - * @example 100 + * @example call_mszuSIzqtI65i1wAUOE8w5H4 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_MAX_TOKENS = 'gen_ai.request.max_tokens' as const; +export const ATTR_GEN_AI_TOOL_CALL_ID = 'gen_ai.tool.call.id' as const; /** - * The name of the GenAI model a request is being made to. + * The tool description. * - * @example "gpt-4" + * @example Multiply two numbers * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_MODEL = 'gen_ai.request.model' as const; +export const ATTR_GEN_AI_TOOL_DESCRIPTION = 'gen_ai.tool.description' as const; /** - * The presence penalty setting for the GenAI request. + * Name of the tool utilized by the agent. * - * @example 0.1 + * @example Flights * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_PRESENCE_PENALTY = 'gen_ai.request.presence_penalty' as const; +export const ATTR_GEN_AI_TOOL_NAME = 'gen_ai.tool.name' as const; /** - * Requests with same seed value more likely to return same result. + * Type of the tool utilized by the agent * - * @example 100 + * @example function + * @example extension + * @example datastore + * + * @note Extension: A tool executed on the agent-side to directly call external APIs, bridging the gap between the agent and real-world systems. + * Agent-side operations involve actions that are performed by the agent on the server or within the agent's controlled environment. + * Function: A tool executed on the client-side, where the agent generates parameters for a predefined function, and the client executes the logic. + * Client-side operations are actions taken on the user's end or within the client application. + * Datastore: A tool used by the agent to access and query structured or unstructured external data for retrieval-augmented tasks or knowledge updates. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_SEED = 'gen_ai.request.seed' as const; +export const ATTR_GEN_AI_TOOL_TYPE = 'gen_ai.tool.type' as const; /** - * List of sequences that the model will use to stop generating further tokens. + * Deprecated, use `gen_ai.usage.output_tokens` instead. * - * @example ["forest", "lived"] + * @example 42 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `gen_ai.usage.output_tokens`. */ -export const ATTR_GEN_AI_REQUEST_STOP_SEQUENCES = 'gen_ai.request.stop_sequences' as const; +export const ATTR_GEN_AI_USAGE_COMPLETION_TOKENS = 'gen_ai.usage.completion_tokens' as const; /** - * The temperature setting for the GenAI request. + * The number of tokens used in the GenAI input (prompt). * - * @example 0.0 + * @example 100 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_TEMPERATURE = 'gen_ai.request.temperature' as const; +export const ATTR_GEN_AI_USAGE_INPUT_TOKENS = 'gen_ai.usage.input_tokens' as const; /** - * The top_k sampling setting for the GenAI request. + * The number of tokens used in the GenAI response (completion). * - * @example 1.0 + * @example 180 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_REQUEST_TOP_K = 'gen_ai.request.top_k' as const; +export const ATTR_GEN_AI_USAGE_OUTPUT_TOKENS = 'gen_ai.usage.output_tokens' as const; /** - * The top_p sampling setting for the GenAI request. + * Deprecated, use `gen_ai.usage.input_tokens` instead. * - * @example 1.0 + * @example 42 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `gen_ai.usage.input_tokens`. */ -export const ATTR_GEN_AI_REQUEST_TOP_P = 'gen_ai.request.top_p' as const; +export const ATTR_GEN_AI_USAGE_PROMPT_TOKENS = 'gen_ai.usage.prompt_tokens' as const; /** - * Array of reasons the model stopped generating tokens, corresponding to each generation received. - * - * @example ["stop"] - * @example ["stop", "length"] + * Two-letter code representing continent’s name. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_RESPONSE_FINISH_REASONS = 'gen_ai.response.finish_reasons' as const; +export const ATTR_GEO_CONTINENT_CODE = 'geo.continent.code' as const; /** - * The unique identifier for the completion. + * Enum value "AF" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * @example chatcmpl-123 + * Africa * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_RESPONSE_ID = 'gen_ai.response.id' as const; +export const GEO_CONTINENT_CODE_VALUE_AF = "AF" as const; /** - * The name of the model that generated the response. + * Enum value "AN" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * @example gpt-4-0613 + * Antarctica * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_RESPONSE_MODEL = 'gen_ai.response.model' as const; +export const GEO_CONTINENT_CODE_VALUE_AN = "AN" as const; /** - * The Generative AI product as identified by the client or server instrumentation. - * - * @example "openai" - * - * @note The `gen_ai.system` describes a family of GenAI models with specific model identified - * by `gen_ai.request.model` and `gen_ai.response.model` attributes. - * - * The actual GenAI product may differ from the one identified by the client. - * Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI client - * libraries. In such cases, the `gen_ai.system` is set to `openai` based on the - * instrumentation's best knowledge, instead of the actual system. The `server.address` - * attribute may help identify the actual system in use for `openai`. + * Enum value "AS" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * For custom model, a custom friendly name **SHOULD** be used. - * If none of these options apply, the `gen_ai.system` **SHOULD** be set to `_OTHER`. + * Asia * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_SYSTEM = 'gen_ai.system' as const; +export const GEO_CONTINENT_CODE_VALUE_AS = "AS" as const; /** - * Enum value "anthropic" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "EU" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * Anthropic + * Europe * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_ANTHROPIC = "anthropic" as const; +export const GEO_CONTINENT_CODE_VALUE_EU = "EU" as const; /** - * Enum value "aws.bedrock" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "NA" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * AWS Bedrock + * North America * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_AWS_BEDROCK = "aws.bedrock" as const; +export const GEO_CONTINENT_CODE_VALUE_NA = "NA" as const; /** - * Enum value "az.ai.inference" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "OC" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * Azure AI Inference + * Oceania * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by azure.ai.inference */ -export const GEN_AI_SYSTEM_VALUE_AZ_AI_INFERENCE = "az.ai.inference" as const; +export const GEO_CONTINENT_CODE_VALUE_OC = "OC" as const; /** - * Enum value "azure.ai.inference" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "SA" for attribute {@link ATTR_GEO_CONTINENT_CODE}. * - * Azure AI Inference + * South America * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_AZURE_AI_INFERENCE = "azure.ai.inference" as const; +export const GEO_CONTINENT_CODE_VALUE_SA = "SA" as const; /** - * Enum value "azure.ai.openai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Two-letter ISO Country Code ([ISO 3166-1 alpha2](https://wikipedia.org/wiki/ISO_3166-1#Codes)). * - * Azure OpenAI + * @example CA * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_AZURE_AI_OPENAI = "azure.ai.openai" as const; +export const ATTR_GEO_COUNTRY_ISO_CODE = 'geo.country.iso_code' as const; /** - * Enum value "azure.ai.openai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Locality name. Represents the name of a city, town, village, or similar populated place. * - * Azure OpenAI + * @example Montreal + * @example Berlin * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_GEO_LOCALITY_NAME = 'geo.locality.name' as const; + +/** + * Latitude of the geo location in [WGS84](https://wikipedia.org/wiki/World_Geodetic_System#WGS84). + * + * @example 45.505918 * - * @deprecated Replaced by azure.ai.openai + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_AZ_AI_OPENAI = "azure.ai.openai" as const; +export const ATTR_GEO_LOCATION_LAT = 'geo.location.lat' as const; /** - * Enum value "cohere" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Longitude of the geo location in [WGS84](https://wikipedia.org/wiki/World_Geodetic_System#WGS84). * - * Cohere + * @example -73.61483 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_COHERE = "cohere" as const; +export const ATTR_GEO_LOCATION_LON = 'geo.location.lon' as const; /** - * Enum value "deepseek" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Postal code associated with the location. Values appropriate for this field may also be known as a postcode or ZIP code and will vary widely from country to country. * - * DeepSeek + * @example 94040 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_DEEPSEEK = "deepseek" as const; +export const ATTR_GEO_POSTAL_CODE = 'geo.postal_code' as const; /** - * Enum value "gcp.gemini" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Region ISO code ([ISO 3166-2](https://wikipedia.org/wiki/ISO_3166-2)). * - * Gemini + * @example CA-QC * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_GCP_GEMINI = "gcp.gemini" as const; +export const ATTR_GEO_REGION_ISO_CODE = 'geo.region.iso_code' as const; /** - * Enum value "gcp.gen_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * The type of memory. * - * Any Google generative AI endpoint + * @example other + * @example stack * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_GCP_GEN_AI = "gcp.gen_ai" as const; +export const ATTR_GO_MEMORY_TYPE = 'go.memory.type' as const; /** - * Enum value "gcp.vertex_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "other" for attribute {@link ATTR_GO_MEMORY_TYPE}. * - * Vertex AI + * Memory used by the Go runtime, excluding other categories of memory usage described in this enumeration. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_GCP_VERTEX_AI = "gcp.vertex_ai" as const; +export const GO_MEMORY_TYPE_VALUE_OTHER = "other" as const; /** - * Enum value "gemini" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "stack" for attribute {@link ATTR_GO_MEMORY_TYPE}. * - * Gemini + * Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Use 'gcp.gemini' instead. */ -export const GEN_AI_SYSTEM_VALUE_GEMINI = "gemini" as const; +export const GO_MEMORY_TYPE_VALUE_STACK = "stack" as const; /** - * Enum value "groq" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * The GraphQL document being executed. * - * Groq + * @example "query findBookById { bookById(id: ?) { name } }" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note The value may be sanitized to exclude sensitive information. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_GROQ = "groq" as const; +export const ATTR_GRAPHQL_DOCUMENT = 'graphql.document' as const; /** - * Enum value "ibm.watsonx.ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * The name of the operation being executed. * - * IBM Watsonx AI + * @example "findBookById" * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_IBM_WATSONX_AI = "ibm.watsonx.ai" as const; +export const ATTR_GRAPHQL_OPERATION_NAME = 'graphql.operation.name' as const; /** - * Enum value "mistral_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * The type of the operation being executed. * - * Mistral AI + * @example query + * @example mutation + * @example subscription * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_MISTRAL_AI = "mistral_ai" as const; +export const ATTR_GRAPHQL_OPERATION_TYPE = 'graphql.operation.type' as const; /** - * Enum value "openai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "mutation" for attribute {@link ATTR_GRAPHQL_OPERATION_TYPE}. * - * OpenAI + * GraphQL mutation * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_OPENAI = "openai" as const; +export const GRAPHQL_OPERATION_TYPE_VALUE_MUTATION = "mutation" as const; /** - * Enum value "perplexity" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "query" for attribute {@link ATTR_GRAPHQL_OPERATION_TYPE}. * - * Perplexity + * GraphQL query * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_PERPLEXITY = "perplexity" as const; +export const GRAPHQL_OPERATION_TYPE_VALUE_QUERY = "query" as const; /** - * Enum value "vertex_ai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Enum value "subscription" for attribute {@link ATTR_GRAPHQL_OPERATION_TYPE}. * - * Vertex AI + * GraphQL subscription * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Use 'gcp.vertex_ai' instead. */ -export const GEN_AI_SYSTEM_VALUE_VERTEX_AI = "vertex_ai" as const; +export const GRAPHQL_OPERATION_TYPE_VALUE_SUBSCRIPTION = "subscription" as const; /** - * Enum value "xai" for attribute {@link ATTR_GEN_AI_SYSTEM}. + * Unique identifier for the application * - * xAI + * @example 2daa2797-e42b-4624-9322-ec3f968df4da * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_SYSTEM_VALUE_XAI = "xai" as const; +export const ATTR_HEROKU_APP_ID = 'heroku.app.id' as const; /** - * The type of token being counted. + * Commit hash for the current release * - * @example input - * @example output + * @example e6134959463efd8966b20e75b913cafe3f5ec * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_TOKEN_TYPE = 'gen_ai.token.type' as const; +export const ATTR_HEROKU_RELEASE_COMMIT = 'heroku.release.commit' as const; /** - * Enum value "input" for attribute {@link ATTR_GEN_AI_TOKEN_TYPE}. + * Time and date the release was created * - * Input tokens (prompt, input, etc.) + * @example 2022-10-23T18:00:42Z * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_TOKEN_TYPE_VALUE_INPUT = "input" as const; +export const ATTR_HEROKU_RELEASE_CREATION_TIMESTAMP = 'heroku.release.creation_timestamp' as const; /** - * Enum value "output" for attribute {@link ATTR_GEN_AI_TOKEN_TYPE}. - * - * Output tokens (completion, response, etc.) - * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * The CPU architecture the host system is running on. * - * @deprecated Replaced by `output`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_TOKEN_TYPE_VALUE_COMPLETION = "output" as const; +export const ATTR_HOST_ARCH = 'host.arch' as const; /** - * Enum value "output" for attribute {@link ATTR_GEN_AI_TOKEN_TYPE}. + * Enum value "amd64" for attribute {@link ATTR_HOST_ARCH}. * - * Output tokens (completion, response, etc.) + * AMD64 * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEN_AI_TOKEN_TYPE_VALUE_OUTPUT = "output" as const; +export const HOST_ARCH_VALUE_AMD64 = "amd64" as const; /** - * The tool call identifier. + * Enum value "arm32" for attribute {@link ATTR_HOST_ARCH}. * - * @example call_mszuSIzqtI65i1wAUOE8w5H4 + * ARM32 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_TOOL_CALL_ID = 'gen_ai.tool.call.id' as const; +export const HOST_ARCH_VALUE_ARM32 = "arm32" as const; /** - * The tool description. + * Enum value "arm64" for attribute {@link ATTR_HOST_ARCH}. * - * @example Multiply two numbers + * ARM64 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_TOOL_DESCRIPTION = 'gen_ai.tool.description' as const; +export const HOST_ARCH_VALUE_ARM64 = "arm64" as const; /** - * Name of the tool utilized by the agent. + * Enum value "ia64" for attribute {@link ATTR_HOST_ARCH}. * - * @example Flights + * Itanium * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_TOOL_NAME = 'gen_ai.tool.name' as const; +export const HOST_ARCH_VALUE_IA64 = "ia64" as const; /** - * Type of the tool utilized by the agent - * - * @example function - * @example extension - * @example datastore + * Enum value "ppc32" for attribute {@link ATTR_HOST_ARCH}. * - * @note Extension: A tool executed on the agent-side to directly call external APIs, bridging the gap between the agent and real-world systems. - * Agent-side operations involve actions that are performed by the agent on the server or within the agent's controlled environment. - * Function: A tool executed on the client-side, where the agent generates parameters for a predefined function, and the client executes the logic. - * Client-side operations are actions taken on the user's end or within the client application. - * Datastore: A tool used by the agent to access and query structured or unstructured external data for retrieval-augmented tasks or knowledge updates. + * 32-bit PowerPC * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_TOOL_TYPE = 'gen_ai.tool.type' as const; +export const HOST_ARCH_VALUE_PPC32 = "ppc32" as const; /** - * Deprecated, use `gen_ai.usage.output_tokens` instead. - * - * @example 42 + * Enum value "ppc64" for attribute {@link ATTR_HOST_ARCH}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * 64-bit PowerPC * - * @deprecated Replaced by `gen_ai.usage.output_tokens`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_USAGE_COMPLETION_TOKENS = 'gen_ai.usage.completion_tokens' as const; +export const HOST_ARCH_VALUE_PPC64 = "ppc64" as const; /** - * The number of tokens used in the GenAI input (prompt). + * Enum value "s390x" for attribute {@link ATTR_HOST_ARCH}. * - * @example 100 + * IBM z/Architecture * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_USAGE_INPUT_TOKENS = 'gen_ai.usage.input_tokens' as const; +export const HOST_ARCH_VALUE_S390X = "s390x" as const; /** - * The number of tokens used in the GenAI response (completion). + * Enum value "x86" for attribute {@link ATTR_HOST_ARCH}. * - * @example 180 + * 32-bit x86 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEN_AI_USAGE_OUTPUT_TOKENS = 'gen_ai.usage.output_tokens' as const; +export const HOST_ARCH_VALUE_X86 = "x86" as const; /** - * Deprecated, use `gen_ai.usage.input_tokens` instead. + * The amount of level 2 memory cache available to the processor (in Bytes). * - * @example 42 + * @example 12288000 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `gen_ai.usage.input_tokens`. */ -export const ATTR_GEN_AI_USAGE_PROMPT_TOKENS = 'gen_ai.usage.prompt_tokens' as const; +export const ATTR_HOST_CPU_CACHE_L2_SIZE = 'host.cpu.cache.l2.size' as const; /** - * Two-letter code representing continent’s name. + * Family or generation of the CPU. + * + * @example 6 + * @example PA-RISC 1.1e * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEO_CONTINENT_CODE = 'geo.continent.code' as const; +export const ATTR_HOST_CPU_FAMILY = 'host.cpu.family' as const; /** - * Enum value "AF" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. * - * Africa + * @example 6 + * @example 9000/778/B180L * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_AF = "AF" as const; +export const ATTR_HOST_CPU_MODEL_ID = 'host.cpu.model.id' as const; /** - * Enum value "AN" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * Model designation of the processor. * - * Antarctica + * @example 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_AN = "AN" as const; +export const ATTR_HOST_CPU_MODEL_NAME = 'host.cpu.model.name' as const; /** - * Enum value "AS" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * Stepping or core revisions. * - * Asia + * @example 1 + * @example r1p1 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_AS = "AS" as const; +export const ATTR_HOST_CPU_STEPPING = 'host.cpu.stepping' as const; /** - * Enum value "EU" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * Processor manufacturer identifier. A maximum 12-character string. * - * Europe + * @example GenuineIntel * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @note [CPUID](https://wiki.osdev.org/CPUID) command returns the vendor ID string in EBX, EDX and ECX registers. Writing these to memory in this order results in a 12-character string. + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_EU = "EU" as const; +export const ATTR_HOST_CPU_VENDOR_ID = 'host.cpu.vendor.id' as const; /** - * Enum value "NA" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. * - * North America + * @example fdbf79e8af94cb7f9e8df36789187052 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_NA = "NA" as const; +export const ATTR_HOST_ID = 'host.id' as const; /** - * Enum value "OC" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * VM image ID or host OS image ID. For Cloud, this value is from the provider. * - * Oceania + * @example ami-07b06b442921831e5 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_OC = "OC" as const; +export const ATTR_HOST_IMAGE_ID = 'host.image.id' as const; /** - * Enum value "SA" for attribute {@link ATTR_GEO_CONTINENT_CODE}. + * Name of the VM image or OS install the host was instantiated from. * - * South America + * @example infra-ami-eks-worker-node-7d4ec78312 + * @example CentOS-8-x86_64-1905 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GEO_CONTINENT_CODE_VALUE_SA = "SA" as const; +export const ATTR_HOST_IMAGE_NAME = 'host.image.name' as const; /** - * Two-letter ISO Country Code ([ISO 3166-1 alpha2](https://wikipedia.org/wiki/ISO_3166-1#Codes)). + * The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). * - * @example CA + * @example 0.1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEO_COUNTRY_ISO_CODE = 'geo.country.iso_code' as const; +export const ATTR_HOST_IMAGE_VERSION = 'host.image.version' as const; /** - * Locality name. Represents the name of a city, town, village, or similar populated place. + * Available IP addresses of the host, excluding loopback interfaces. * - * @example Montreal - * @example Berlin + * @example ["192.168.1.140", "fe80::abc2:4a28:737a:609e"] + * + * @note IPv4 Addresses **MUST** be specified in dotted-quad notation. IPv6 addresses **MUST** be specified in the [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html) format. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEO_LOCALITY_NAME = 'geo.locality.name' as const; +export const ATTR_HOST_IP = 'host.ip' as const; /** - * Latitude of the geo location in [WGS84](https://wikipedia.org/wiki/World_Geodetic_System#WGS84). + * Available MAC addresses of the host, excluding loopback interfaces. * - * @example 45.505918 + * @example ["AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"] + * + * @note MAC Addresses **MUST** be represented in [IEEE RA hexadecimal form](https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf): as hyphen-separated octets in uppercase hexadecimal form from most to least significant. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEO_LOCATION_LAT = 'geo.location.lat' as const; +export const ATTR_HOST_MAC = 'host.mac' as const; /** - * Longitude of the geo location in [WGS84](https://wikipedia.org/wiki/World_Geodetic_System#WGS84). + * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. * - * @example -73.61483 + * @example opentelemetry-test * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEO_LOCATION_LON = 'geo.location.lon' as const; +export const ATTR_HOST_NAME = 'host.name' as const; /** - * Postal code associated with the location. Values appropriate for this field may also be known as a postcode or ZIP code and will vary widely from country to country. + * Type of host. For Cloud, this must be the machine type. * - * @example 94040 + * @example n1-standard-1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GEO_POSTAL_CODE = 'geo.postal_code' as const; +export const ATTR_HOST_TYPE = 'host.type' as const; /** - * Region ISO code ([ISO 3166-2](https://wikipedia.org/wiki/ISO_3166-2)). + * Deprecated, use `client.address` instead. * - * @example CA-QC + * @example "83.164.160.102" * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `client.address`. */ -export const ATTR_GEO_REGION_ISO_CODE = 'geo.region.iso_code' as const; +export const ATTR_HTTP_CLIENT_IP = 'http.client_ip' as const; /** - * The type of memory. + * State of the HTTP connection in the HTTP connection pool. * - * @example other - * @example stack + * @example active + * @example idle * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GO_MEMORY_TYPE = 'go.memory.type' as const; +export const ATTR_HTTP_CONNECTION_STATE = 'http.connection.state' as const; /** - * Enum value "other" for attribute {@link ATTR_GO_MEMORY_TYPE}. + * Enum value "active" for attribute {@link ATTR_HTTP_CONNECTION_STATE}. * - * Memory used by the Go runtime, excluding other categories of memory usage described in this enumeration. + * active state. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GO_MEMORY_TYPE_VALUE_OTHER = "other" as const; +export const HTTP_CONNECTION_STATE_VALUE_ACTIVE = "active" as const; /** - * Enum value "stack" for attribute {@link ATTR_GO_MEMORY_TYPE}. + * Enum value "idle" for attribute {@link ATTR_HTTP_CONNECTION_STATE}. * - * Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. + * idle state. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GO_MEMORY_TYPE_VALUE_STACK = "stack" as const; +export const HTTP_CONNECTION_STATE_VALUE_IDLE = "idle" as const; /** - * The GraphQL document being executed. - * - * @example "query findBookById { bookById(id: ?) { name } }" + * Deprecated, use `network.protocol.name` instead. * - * @note The value may be sanitized to exclude sensitive information. * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `network.protocol.name`. */ -export const ATTR_GRAPHQL_DOCUMENT = 'graphql.document' as const; +export const ATTR_HTTP_FLAVOR = 'http.flavor' as const; /** - * The name of the operation being executed. + * Enum value "1.0" for attribute {@link ATTR_HTTP_FLAVOR}. * - * @example "findBookById" + * HTTP/1.0 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GRAPHQL_OPERATION_NAME = 'graphql.operation.name' as const; +export const HTTP_FLAVOR_VALUE_HTTP_1_0 = "1.0" as const; /** - * The type of the operation being executed. + * Enum value "1.1" for attribute {@link ATTR_HTTP_FLAVOR}. * - * @example query - * @example mutation - * @example subscription + * HTTP/1.1 * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_GRAPHQL_OPERATION_TYPE = 'graphql.operation.type' as const; +export const HTTP_FLAVOR_VALUE_HTTP_1_1 = "1.1" as const; /** - * Enum value "mutation" for attribute {@link ATTR_GRAPHQL_OPERATION_TYPE}. + * Enum value "2.0" for attribute {@link ATTR_HTTP_FLAVOR}. * - * GraphQL mutation + * HTTP/2 * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GRAPHQL_OPERATION_TYPE_VALUE_MUTATION = "mutation" as const; +export const HTTP_FLAVOR_VALUE_HTTP_2_0 = "2.0" as const; /** - * Enum value "query" for attribute {@link ATTR_GRAPHQL_OPERATION_TYPE}. + * Enum value "3.0" for attribute {@link ATTR_HTTP_FLAVOR}. * - * GraphQL query + * HTTP/3 * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GRAPHQL_OPERATION_TYPE_VALUE_QUERY = "query" as const; +export const HTTP_FLAVOR_VALUE_HTTP_3_0 = "3.0" as const; /** - * Enum value "subscription" for attribute {@link ATTR_GRAPHQL_OPERATION_TYPE}. + * Enum value "QUIC" for attribute {@link ATTR_HTTP_FLAVOR}. * - * GraphQL subscription + * QUIC protocol. * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const GRAPHQL_OPERATION_TYPE_VALUE_SUBSCRIPTION = "subscription" as const; +export const HTTP_FLAVOR_VALUE_QUIC = "QUIC" as const; /** - * Unique identifier for the application + * Enum value "SPDY" for attribute {@link ATTR_HTTP_FLAVOR}. * - * @example 2daa2797-e42b-4624-9322-ec3f968df4da + * SPDY protocol. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HEROKU_APP_ID = 'heroku.app.id' as const; +export const HTTP_FLAVOR_VALUE_SPDY = "SPDY" as const; /** - * Commit hash for the current release + * Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. * - * @example e6134959463efd8966b20e75b913cafe3f5ec + * @example www.example.org * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. */ -export const ATTR_HEROKU_RELEASE_COMMIT = 'heroku.release.commit' as const; +export const ATTR_HTTP_HOST = 'http.host' as const; /** - * Time and date the release was created + * Deprecated, use `http.request.method` instead. * - * @example 2022-10-23T18:00:42Z + * @example GET + * @example POST + * @example HEAD * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `http.request.method`. */ -export const ATTR_HEROKU_RELEASE_CREATION_TIMESTAMP = 'heroku.release.creation_timestamp' as const; +export const ATTR_HTTP_METHOD = 'http.method' as const; /** - * The CPU architecture the host system is running on. + * The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. + * + * @example 3495 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_ARCH = 'host.arch' as const; +export const ATTR_HTTP_REQUEST_BODY_SIZE = 'http.request.body.size' as const; /** - * Enum value "amd64" for attribute {@link ATTR_HOST_ARCH}. + * The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. * - * AMD64 + * @example 1437 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HOST_ARCH_VALUE_AMD64 = "amd64" as const; +export const ATTR_HTTP_REQUEST_SIZE = 'http.request.size' as const; /** - * Enum value "arm32" for attribute {@link ATTR_HOST_ARCH}. + * Deprecated, use `http.request.header.content-length` instead. * - * ARM32 + * @example 3495 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `http.request.header.content-length`. */ -export const HOST_ARCH_VALUE_ARM32 = "arm32" as const; +export const ATTR_HTTP_REQUEST_CONTENT_LENGTH = 'http.request_content_length' as const; /** - * Enum value "arm64" for attribute {@link ATTR_HOST_ARCH}. + * Deprecated, use `http.request.body.size` instead. * - * ARM64 + * @example 5493 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `http.request.body.size`. */ -export const HOST_ARCH_VALUE_ARM64 = "arm64" as const; +export const ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = 'http.request_content_length_uncompressed' as const; /** - * Enum value "ia64" for attribute {@link ATTR_HOST_ARCH}. + * The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. * - * Itanium + * @example 3495 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HOST_ARCH_VALUE_IA64 = "ia64" as const; +export const ATTR_HTTP_RESPONSE_BODY_SIZE = 'http.response.body.size' as const; /** - * Enum value "ppc32" for attribute {@link ATTR_HOST_ARCH}. + * The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. * - * 32-bit PowerPC + * @example 1437 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HOST_ARCH_VALUE_PPC32 = "ppc32" as const; +export const ATTR_HTTP_RESPONSE_SIZE = 'http.response.size' as const; /** - * Enum value "ppc64" for attribute {@link ATTR_HOST_ARCH}. + * Deprecated, use `http.response.header.content-length` instead. * - * 64-bit PowerPC + * @example 3495 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `http.response.header.content-length`. */ -export const HOST_ARCH_VALUE_PPC64 = "ppc64" as const; +export const ATTR_HTTP_RESPONSE_CONTENT_LENGTH = 'http.response_content_length' as const; /** - * Enum value "s390x" for attribute {@link ATTR_HOST_ARCH}. + * Deprecated, use `http.response.body.size` instead. * - * IBM z/Architecture + * @example 5493 * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `http.response.body.size`. */ -export const HOST_ARCH_VALUE_S390X = "s390x" as const; +export const ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_length_uncompressed' as const; /** - * Enum value "x86" for attribute {@link ATTR_HOST_ARCH}. + * Deprecated, use `url.scheme` instead. * - * 32-bit x86 + * @example http + * @example https * - * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `url.scheme`. */ -export const HOST_ARCH_VALUE_X86 = "x86" as const; +export const ATTR_HTTP_SCHEME = 'http.scheme' as const; /** - * The amount of level 2 memory cache available to the processor (in Bytes). + * Deprecated, use `server.address` instead. * - * @example 12288000 + * @example example.com * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `server.address`. */ -export const ATTR_HOST_CPU_CACHE_L2_SIZE = 'host.cpu.cache.l2.size' as const; +export const ATTR_HTTP_SERVER_NAME = 'http.server_name' as const; /** - * Family or generation of the CPU. + * Deprecated, use `http.response.status_code` instead. * - * @example 6 - * @example PA-RISC 1.1e + * @example 200 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `http.response.status_code`. */ -export const ATTR_HOST_CPU_FAMILY = 'host.cpu.family' as const; +export const ATTR_HTTP_STATUS_CODE = 'http.status_code' as const; /** - * Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. + * Deprecated, use `url.path` and `url.query` instead. * - * @example 6 - * @example 9000/778/B180L + * @example /search?q=OpenTelemetry#SemConv * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Split to `url.path` and `url.query`. */ -export const ATTR_HOST_CPU_MODEL_ID = 'host.cpu.model.id' as const; +export const ATTR_HTTP_TARGET = 'http.target' as const; /** - * Model designation of the processor. + * Deprecated, use `url.full` instead. * - * @example 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz + * @example https://www.foo.bar/search?q=OpenTelemetry#SemConv * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `url.full`. */ -export const ATTR_HOST_CPU_MODEL_NAME = 'host.cpu.model.name' as const; +export const ATTR_HTTP_URL = 'http.url' as const; /** - * Stepping or core revisions. + * Deprecated, use `user_agent.original` instead. * - * @example 1 - * @example r1p1 + * @example CERN-LineMode/2.15 libwww/2.17b3 + * @example Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Replaced by `user_agent.original`. */ -export const ATTR_HOST_CPU_STEPPING = 'host.cpu.stepping' as const; +export const ATTR_HTTP_USER_AGENT = 'http.user_agent' as const; /** - * Processor manufacturer identifier. A maximum 12-character string. + * Design capacity in Watts-hours or Amper-hours * - * @example GenuineIntel - * - * @note [CPUID](https://wiki.osdev.org/CPUID) command returns the vendor ID string in EBX, EDX and ECX registers. Writing these to memory in this order results in a 12-character string. + * @example 9.3Ah + * @example 50Wh * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_CPU_VENDOR_ID = 'host.cpu.vendor.id' as const; +export const ATTR_HW_BATTERY_CAPACITY = 'hw.battery.capacity' as const; /** - * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. For non-containerized systems, this should be the `machine-id`. See the table below for the sources to use to determine the `machine-id` based on operating system. + * Battery [chemistry](https://schemas.dmtf.org/wbem/cim-html/2.31.0/CIM_Battery.html), e.g. Lithium-Ion, Nickel-Cadmium, etc. * - * @example fdbf79e8af94cb7f9e8df36789187052 + * @example Li-ion + * @example NiMH * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_ID = 'host.id' as const; +export const ATTR_HW_BATTERY_CHEMISTRY = 'hw.battery.chemistry' as const; /** - * VM image ID or host OS image ID. For Cloud, this value is from the provider. - * - * @example ami-07b06b442921831e5 + * The current state of the battery * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_IMAGE_ID = 'host.image.id' as const; +export const ATTR_HW_BATTERY_STATE = 'hw.battery.state' as const; /** - * Name of the VM image or OS install the host was instantiated from. + * Enum value "charging" for attribute {@link ATTR_HW_BATTERY_STATE}. * - * @example infra-ami-eks-worker-node-7d4ec78312 - * @example CentOS-8-x86_64-1905 + * Charging * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_IMAGE_NAME = 'host.image.name' as const; +export const HW_BATTERY_STATE_VALUE_CHARGING = "charging" as const; /** - * The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). + * Enum value "discharging" for attribute {@link ATTR_HW_BATTERY_STATE}. * - * @example 0.1 + * Discharging * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_IMAGE_VERSION = 'host.image.version' as const; +export const HW_BATTERY_STATE_VALUE_DISCHARGING = "discharging" as const; /** - * Available IP addresses of the host, excluding loopback interfaces. - * - * @example ["192.168.1.140", "fe80::abc2:4a28:737a:609e"] + * BIOS version of the hardware component * - * @note IPv4 Addresses **MUST** be specified in dotted-quad notation. IPv6 addresses **MUST** be specified in the [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html) format. + * @example 1.2.3 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_IP = 'host.ip' as const; +export const ATTR_HW_BIOS_VERSION = 'hw.bios_version' as const; /** - * Available MAC addresses of the host, excluding loopback interfaces. - * - * @example ["AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"] + * Driver version for the hardware component * - * @note MAC Addresses **MUST** be represented in [IEEE RA hexadecimal form](https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf): as hyphen-separated octets in uppercase hexadecimal form from most to least significant. + * @example 10.2.1-3 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_MAC = 'host.mac' as const; +export const ATTR_HW_DRIVER_VERSION = 'hw.driver_version' as const; /** - * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. + * Type of the enclosure (useful for modular systems) * - * @example opentelemetry-test + * @example Computer + * @example Storage + * @example Switch * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_NAME = 'host.name' as const; +export const ATTR_HW_ENCLOSURE_TYPE = 'hw.enclosure.type' as const; /** - * Type of host. For Cloud, this must be the machine type. + * Firmware version of the hardware component * - * @example n1-standard-1 + * @example 2.0.1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HOST_TYPE = 'host.type' as const; +export const ATTR_HW_FIRMWARE_VERSION = 'hw.firmware_version' as const; /** - * Deprecated, use `client.address` instead. - * - * @example "83.164.160.102" + * Type of task the GPU is performing * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `client.address`. */ -export const ATTR_HTTP_CLIENT_IP = 'http.client_ip' as const; +export const ATTR_HW_GPU_TASK = 'hw.gpu.task' as const; /** - * State of the HTTP connection in the HTTP connection pool. + * Enum value "decoder" for attribute {@link ATTR_HW_GPU_TASK}. * - * @example active - * @example idle + * Decoder * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_CONNECTION_STATE = 'http.connection.state' as const; +export const HW_GPU_TASK_VALUE_DECODER = "decoder" as const; /** - * Enum value "active" for attribute {@link ATTR_HTTP_CONNECTION_STATE}. + * Enum value "encoder" for attribute {@link ATTR_HW_GPU_TASK}. * - * active state. + * Encoder * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_CONNECTION_STATE_VALUE_ACTIVE = "active" as const; +export const HW_GPU_TASK_VALUE_ENCODER = "encoder" as const; /** - * Enum value "idle" for attribute {@link ATTR_HTTP_CONNECTION_STATE}. + * Enum value "general" for attribute {@link ATTR_HW_GPU_TASK}. * - * idle state. + * General * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_CONNECTION_STATE_VALUE_IDLE = "idle" as const; +export const HW_GPU_TASK_VALUE_GENERAL = "general" as const; /** - * Deprecated, use `network.protocol.name` instead. + * An identifier for the hardware component, unique within the monitored host + * + * @example win32battery_battery_testsysa33_1 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_HW_ID = 'hw.id' as const; + +/** + * Type of limit for hardware components * - * @deprecated Replaced by `network.protocol.name`. + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_FLAVOR = 'http.flavor' as const; +export const ATTR_HW_LIMIT_TYPE = 'hw.limit_type' as const; /** - * Enum value "1.0" for attribute {@link ATTR_HTTP_FLAVOR}. + * Enum value "critical" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * HTTP/1.0 + * Critical * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_FLAVOR_VALUE_HTTP_1_0 = "1.0" as const; +export const HW_LIMIT_TYPE_VALUE_CRITICAL = "critical" as const; /** - * Enum value "1.1" for attribute {@link ATTR_HTTP_FLAVOR}. + * Enum value "degraded" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * HTTP/1.1 + * Degraded * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_FLAVOR_VALUE_HTTP_1_1 = "1.1" as const; +export const HW_LIMIT_TYPE_VALUE_DEGRADED = "degraded" as const; /** - * Enum value "2.0" for attribute {@link ATTR_HTTP_FLAVOR}. + * Enum value "high.critical" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * HTTP/2 + * High Critical * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_FLAVOR_VALUE_HTTP_2_0 = "2.0" as const; +export const HW_LIMIT_TYPE_VALUE_HIGH_CRITICAL = "high.critical" as const; /** - * Enum value "3.0" for attribute {@link ATTR_HTTP_FLAVOR}. + * Enum value "high.degraded" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * HTTP/3 + * High Degraded * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_FLAVOR_VALUE_HTTP_3_0 = "3.0" as const; +export const HW_LIMIT_TYPE_VALUE_HIGH_DEGRADED = "high.degraded" as const; /** - * Enum value "QUIC" for attribute {@link ATTR_HTTP_FLAVOR}. + * Enum value "low.critical" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * QUIC protocol. + * Low Critical * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_FLAVOR_VALUE_QUIC = "QUIC" as const; +export const HW_LIMIT_TYPE_VALUE_LOW_CRITICAL = "low.critical" as const; /** - * Enum value "SPDY" for attribute {@link ATTR_HTTP_FLAVOR}. + * Enum value "low.degraded" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * SPDY protocol. + * Low Degraded * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const HTTP_FLAVOR_VALUE_SPDY = "SPDY" as const; +export const HW_LIMIT_TYPE_VALUE_LOW_DEGRADED = "low.degraded" as const; /** - * Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. + * Enum value "max" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * @example www.example.org - * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Maximum * - * @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_HOST = 'http.host' as const; +export const HW_LIMIT_TYPE_VALUE_MAX = "max" as const; /** - * Deprecated, use `http.request.method` instead. - * - * @example GET - * @example POST - * @example HEAD + * Enum value "throttled" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Throttled * - * @deprecated Replaced by `http.request.method`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_METHOD = 'http.method' as const; +export const HW_LIMIT_TYPE_VALUE_THROTTLED = "throttled" as const; /** - * The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. + * Enum value "turbo" for attribute {@link ATTR_HW_LIMIT_TYPE}. * - * @example 3495 + * Turbo * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_REQUEST_BODY_SIZE = 'http.request.body.size' as const; +export const HW_LIMIT_TYPE_VALUE_TURBO = "turbo" as const; /** - * The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and request body if any. + * RAID Level of the logical disk * - * @example 1437 + * @example RAID0+1 + * @example RAID5 + * @example RAID10 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_REQUEST_SIZE = 'http.request.size' as const; +export const ATTR_HW_LOGICAL_DISK_RAID_LEVEL = 'hw.logical_disk.raid_level' as const; /** - * Deprecated, use `http.request.header.content-length` instead. - * - * @example 3495 + * State of the logical disk space usage * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `http.request.header.content-length`. */ -export const ATTR_HTTP_REQUEST_CONTENT_LENGTH = 'http.request_content_length' as const; +export const ATTR_HW_LOGICAL_DISK_STATE = 'hw.logical_disk.state' as const; /** - * Deprecated, use `http.request.body.size` instead. - * - * @example 5493 + * Enum value "free" for attribute {@link ATTR_HW_LOGICAL_DISK_STATE}. * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Free * - * @deprecated Replaced by `http.request.body.size`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = 'http.request_content_length_uncompressed' as const; +export const HW_LOGICAL_DISK_STATE_VALUE_FREE = "free" as const; /** - * The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. + * Enum value "used" for attribute {@link ATTR_HW_LOGICAL_DISK_STATE}. * - * @example 3495 + * Used * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_RESPONSE_BODY_SIZE = 'http.response.body.size' as const; +export const HW_LOGICAL_DISK_STATE_VALUE_USED = "used" as const; /** - * The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. + * Type of the memory module * - * @example 1437 + * @example DDR4 + * @example DDR5 + * @example LPDDR5 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_RESPONSE_SIZE = 'http.response.size' as const; +export const ATTR_HW_MEMORY_TYPE = 'hw.memory.type' as const; /** - * Deprecated, use `http.response.header.content-length` instead. + * Descriptive model name of the hardware component * - * @example 3495 + * @example PERC H740P + * @example Intel(R) Core(TM) i7-10700K + * @example Dell XPS 15 Battery * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `http.response.header.content-length`. */ -export const ATTR_HTTP_RESPONSE_CONTENT_LENGTH = 'http.response_content_length' as const; +export const ATTR_HW_MODEL = 'hw.model' as const; /** - * Deprecated, use `http.response.body.size` instead. + * An easily-recognizable name for the hardware component * - * @example 5493 + * @example eth0 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `http.response.body.size`. */ -export const ATTR_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_length_uncompressed' as const; +export const ATTR_HW_NAME = 'hw.name' as const; /** - * Deprecated, use `url.scheme` instead. + * Logical addresses of the adapter (e.g. IP address, or WWPN) * - * @example http - * @example https + * @example ["172.16.8.21", "57.11.193.42"] * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `url.scheme`. */ -export const ATTR_HTTP_SCHEME = 'http.scheme' as const; +export const ATTR_HW_NETWORK_LOGICAL_ADDRESSES = 'hw.network.logical_addresses' as const; /** - * Deprecated, use `server.address` instead. + * Physical address of the adapter (e.g. MAC address, or WWNN) * - * @example example.com + * @example 00-90-F5-E9-7B-36 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `server.address`. */ -export const ATTR_HTTP_SERVER_NAME = 'http.server_name' as const; +export const ATTR_HW_NETWORK_PHYSICAL_ADDRESS = 'hw.network.physical_address' as const; /** - * Deprecated, use `http.response.status_code` instead. + * Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) * - * @example 200 + * @example dellStorage_perc_0 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `http.response.status_code`. */ -export const ATTR_HTTP_STATUS_CODE = 'http.status_code' as const; +export const ATTR_HW_PARENT = 'hw.parent' as const; /** - * Deprecated, use `url.path` and `url.query` instead. + * [S.M.A.R.T.](https://wikipedia.org/wiki/S.M.A.R.T.) (Self-Monitoring, Analysis, and Reporting Technology) attribute of the physical disk * - * @example /search?q=OpenTelemetry#SemConv + * @example Spin Retry Count + * @example Seek Error Rate + * @example Raw Read Error Rate * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Split to `url.path` and `url.query`. */ -export const ATTR_HTTP_TARGET = 'http.target' as const; +export const ATTR_HW_PHYSICAL_DISK_SMART_ATTRIBUTE = 'hw.physical_disk.smart_attribute' as const; /** - * Deprecated, use `url.full` instead. - * - * @example https://www.foo.bar/search?q=OpenTelemetry#SemConv + * State of the physical disk endurance utilization * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. - * - * @deprecated Replaced by `url.full`. */ -export const ATTR_HTTP_URL = 'http.url' as const; +export const ATTR_HW_PHYSICAL_DISK_STATE = 'hw.physical_disk.state' as const; /** - * Deprecated, use `user_agent.original` instead. + * Enum value "remaining" for attribute {@link ATTR_HW_PHYSICAL_DISK_STATE}. * - * @example CERN-LineMode/2.15 libwww/2.17b3 - * @example Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1 - * - * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * Remaining * - * @deprecated Replaced by `user_agent.original`. + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HTTP_USER_AGENT = 'http.user_agent' as const; +export const HW_PHYSICAL_DISK_STATE_VALUE_REMAINING = "remaining" as const; /** - * An identifier for the hardware component, unique within the monitored host + * Type of the physical disk * - * @example win32battery_battery_testsysa33_1 + * @example HDD + * @example SSD + * @example 10K * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HW_ID = 'hw.id' as const; +export const ATTR_HW_PHYSICAL_DISK_TYPE = 'hw.physical_disk.type' as const; /** - * An easily-recognizable name for the hardware component + * Location of the sensor * - * @example eth0 + * @example cpu0 + * @example ps1 + * @example INLET + * @example CPU0_DIE + * @example AMBIENT + * @example MOTHERBOARD + * @example PS0 V3_3 + * @example MAIN_12V + * @example CPU_VCORE * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HW_NAME = 'hw.name' as const; +export const ATTR_HW_SENSOR_LOCATION = 'hw.sensor_location' as const; /** - * Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) + * Serial number of the hardware component * - * @example dellStorage_perc_0 + * @example CNFCP0123456789 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const ATTR_HW_PARENT = 'hw.parent' as const; +export const ATTR_HW_SERIAL_NUMBER = 'hw.serial_number' as const; /** * The current state of the component @@ -6890,15 +8379,67 @@ export const HW_STATE_VALUE_DEGRADED = "degraded" as const; */ export const HW_STATE_VALUE_FAILED = "failed" as const; +/** + * Enum value "needs_cleaning" for attribute {@link ATTR_HW_STATE}. + * + * Needs Cleaning + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const HW_STATE_VALUE_NEEDS_CLEANING = "needs_cleaning" as const; + /** * Enum value "ok" for attribute {@link ATTR_HW_STATE}. * - * Ok + * OK * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const HW_STATE_VALUE_OK = "ok" as const; +/** + * Enum value "predicted_failure" for attribute {@link ATTR_HW_STATE}. + * + * Predicted Failure + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const HW_STATE_VALUE_PREDICTED_FAILURE = "predicted_failure" as const; + +/** + * Type of tape drive operation + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_HW_TAPE_DRIVE_OPERATION_TYPE = 'hw.tape_drive.operation_type' as const; + +/** + * Enum value "clean" for attribute {@link ATTR_HW_TAPE_DRIVE_OPERATION_TYPE}. + * + * Clean + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const HW_TAPE_DRIVE_OPERATION_TYPE_VALUE_CLEAN = "clean" as const; + +/** + * Enum value "mount" for attribute {@link ATTR_HW_TAPE_DRIVE_OPERATION_TYPE}. + * + * Mount + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const HW_TAPE_DRIVE_OPERATION_TYPE_VALUE_MOUNT = "mount" as const; + +/** + * Enum value "unmount" for attribute {@link ATTR_HW_TAPE_DRIVE_OPERATION_TYPE}. + * + * Unmount + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const HW_TAPE_DRIVE_OPERATION_TYPE_VALUE_UNMOUNT = "unmount" as const; + /** * Type of the component * @@ -7034,6 +8575,20 @@ export const HW_TYPE_VALUE_TEMPERATURE = "temperature" as const; */ export const HW_TYPE_VALUE_VOLTAGE = "voltage" as const; +/** + * Vendor name of the hardware component + * + * @example Dell + * @example HP + * @example Intel + * @example AMD + * @example LSI + * @example Lenovo + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_HW_VENDOR = 'hw.vendor' as const; + /** * This attribute represents the state of the application. * @@ -7089,11 +8644,13 @@ export const IOS_APP_STATE_VALUE_INACTIVE = "inactive" as const; export const IOS_APP_STATE_VALUE_TERMINATE = "terminate" as const; /** + * Deprecated. Use the `ios.app.state` attribute. + * * @note The iOS lifecycle states are defined in the [UIApplicationDelegate documentation](https://developer.apple.com/documentation/uikit/uiapplicationdelegate), and from which the `OS terminology` column values are derived. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * - * @deprecated Replaced by the `ios.app.state` event body field. + * @deprecated Replaced by `ios.app.state`. */ export const ATTR_IOS_STATE = 'ios.state' as const; @@ -8972,6 +10529,15 @@ export const ATTR_MESSAGING_SYSTEM = 'messaging.system' as const; */ export const MESSAGING_SYSTEM_VALUE_ACTIVEMQ = "activemq" as const; +/** + * Enum value "aws.sns" for attribute {@link ATTR_MESSAGING_SYSTEM}. + * + * Amazon Simple Notification Service (SNS) + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const MESSAGING_SYSTEM_VALUE_AWS_SNS = "aws.sns" as const; + /** * Enum value "aws_sqs" for attribute {@link ATTR_MESSAGING_SYSTEM}. * @@ -9728,6 +11294,53 @@ export const NODEJS_EVENTLOOP_STATE_VALUE_IDLE = "idle" as const; */ export const ATTR_OCI_MANIFEST_DIGEST = 'oci.manifest.digest' as const; +/** + * The service tier requested. May be a specific tier, default, or auto. + * + * @example auto + * @example default + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_OPENAI_REQUEST_SERVICE_TIER = 'openai.request.service_tier' as const; + +/** + * Enum value "auto" for attribute {@link ATTR_OPENAI_REQUEST_SERVICE_TIER}. + * + * The system will utilize scale tier credits until they are exhausted. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const OPENAI_REQUEST_SERVICE_TIER_VALUE_AUTO = "auto" as const; + +/** + * Enum value "default" for attribute {@link ATTR_OPENAI_REQUEST_SERVICE_TIER}. + * + * The system will utilize the default scale tier. + * + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const OPENAI_REQUEST_SERVICE_TIER_VALUE_DEFAULT = "default" as const; + +/** + * The service tier used for the response. + * + * @example scale + * @example default + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_OPENAI_RESPONSE_SERVICE_TIER = 'openai.response.service_tier' as const; + +/** + * A fingerprint to track any eventual change in the Generative AI environment. + * + * @example fp_44709d6fcb + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_OPENAI_RESPONSE_SYSTEM_FINGERPRINT = 'openai.response.system_fingerprint' as const; + /** * Parent-child Reference type * @@ -10117,6 +11730,15 @@ export const ATTR_OTEL_LIBRARY_NAME = 'otel.library.name' as const; */ export const ATTR_OTEL_LIBRARY_VERSION = 'otel.library.version' as const; +/** + * The schema URL of the instrumentation scope. + * + * @example https://opentelemetry.io/schemas/1.31.0 + * + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const ATTR_OTEL_SCOPE_SCHEMA_URL = 'otel.scope.schema_url' as const; + /** * Determines whether the span has a parent span, and if so, [whether it is a remote parent](https://opentelemetry.io/docs/specs/otel/trace/api/#isremote) * @@ -11617,6 +13239,8 @@ export const SYSTEM_MEMORY_STATE_VALUE_SHARED = "shared" as const; /** * Enum value "used" for attribute {@link ATTR_SYSTEM_MEMORY_STATE}. * + * Actual used virtual memory in bytes. + * * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const SYSTEM_MEMORY_STATE_VALUE_USED = "used" as const; diff --git a/semantic-conventions/src/experimental_events.ts b/semantic-conventions/src/experimental_events.ts index ee857f092c3..7cebec76024 100644 --- a/semantic-conventions/src/experimental_events.ts +++ b/semantic-conventions/src/experimental_events.ts @@ -18,6 +18,15 @@ // DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates/registry/ts-experimental/events.ts.j2 //----------------------------------------------------------------------------------------------------------------- +/** + * This event indicates that the application has detected substandard UI rendering performance. + * + * @note Jank happens when the UI is rendered slowly enough for the user to experience some disruption or sluggishness. + * + * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const EVENT_APP_JANK = 'app.jank' as const; + /** * This event represents an instantaneous click on the screen of an application. * @@ -83,6 +92,8 @@ export const EVENT_FEATURE_FLAG_EVALUATION = 'feature_flag.evaluation' as const; * This event describes the assistant message passed to GenAI system. * * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Chat history is reported on `gen_ai.input.messages` attribute on spans or `gen_ai.client.inference.operation.details` event. */ export const EVENT_GEN_AI_ASSISTANT_MESSAGE = 'gen_ai.assistant.message' as const; @@ -90,13 +101,26 @@ export const EVENT_GEN_AI_ASSISTANT_MESSAGE = 'gen_ai.assistant.message' as cons * This event describes the Gen AI response message. * * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Chat history is reported on `gen_ai.output.messages` attribute on spans or `gen_ai.client.inference.operation.details` event. */ export const EVENT_GEN_AI_CHOICE = 'gen_ai.choice' as const; +/** + * Describes the details of a GenAI completion request including chat history and parameters. + * + * @note This event is opt-in and could be used to store input and output details independently from traces. + * + * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const EVENT_GEN_AI_CLIENT_INFERENCE_OPERATION_DETAILS = 'gen_ai.client.inference.operation.details' as const; + /** * This event describes the system instructions passed to the GenAI model. * * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Chat history is reported on `gen_ai.system_instructions` attribute on spans or `gen_ai.client.inference.operation.details` event. */ export const EVENT_GEN_AI_SYSTEM_MESSAGE = 'gen_ai.system.message' as const; @@ -104,6 +128,8 @@ export const EVENT_GEN_AI_SYSTEM_MESSAGE = 'gen_ai.system.message' as const; * This event describes the response from a tool or function call passed to the GenAI model. * * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Chat history is reported on `gen_ai.input.messages` attribute on spans or `gen_ai.client.inference.operation.details` event. */ export const EVENT_GEN_AI_TOOL_MESSAGE = 'gen_ai.tool.message' as const; @@ -111,6 +137,8 @@ export const EVENT_GEN_AI_TOOL_MESSAGE = 'gen_ai.tool.message' as const; * This event describes the user message passed to the GenAI model. * * @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + * + * @deprecated Chat history is reported on `gen_ai.input.messages` attribute on spans or `gen_ai.client.inference.operation.details` event. */ export const EVENT_GEN_AI_USER_MESSAGE = 'gen_ai.user.message' as const; diff --git a/semantic-conventions/src/experimental_metrics.ts b/semantic-conventions/src/experimental_metrics.ts index 06694944ada..01759977cac 100644 --- a/semantic-conventions/src/experimental_metrics.ts +++ b/semantic-conventions/src/experimental_metrics.ts @@ -19,14 +19,212 @@ //---------------------------------------------------------------------------------------------------------- /** - * Number of active client instances + * The authentication duration for a request. + * + * @note Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_AUTHENTICATION_AUTHENTICATE_DURATION = 'aspnetcore.authentication.authenticate.duration' as const; + +/** + * The total number of times a scheme is challenged. + * + * @note Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_AUTHENTICATION_CHALLENGES = 'aspnetcore.authentication.challenges' as const; + +/** + * The total number of times an authenticated user attempts to access a resource they are not permitted to access. + * + * @note Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_AUTHENTICATION_FORBIDS = 'aspnetcore.authentication.forbids' as const; + +/** + * The total number of times a principal is signed in with a scheme. + * + * @note Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_AUTHENTICATION_SIGN_INS = 'aspnetcore.authentication.sign_ins' as const; + +/** + * The total number of times a principal is signed out with a scheme. + * + * @note Meter name: `Microsoft.AspNetCore.Authentication`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_AUTHENTICATION_SIGN_OUTS = 'aspnetcore.authentication.sign_outs' as const; + +/** + * The total number of authorization attempts. + * + * @note Meter name: `Microsoft.AspNetCore.Authorization`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_AUTHORIZATION_ATTEMPTS = 'aspnetcore.authorization.attempts' as const; + +/** + * The duration of authenticate attempts. The authenticate metrics is recorded by sign in methods such as PasswordSignInAsync and TwoFactorSignInAsync. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_SIGN_IN_AUTHENTICATE_DURATION = 'aspnetcore.identity.sign_in.authenticate.duration' as const; + +/** + * The total number of check password attempts. Checks that the account is in a state that can log in and that the password is valid using the UserManager.CheckPasswordAsync method. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_SIGN_IN_CHECK_PASSWORD_ATTEMPTS = 'aspnetcore.identity.sign_in.check_password_attempts' as const; + +/** + * The total number of calls to sign in user principals. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_SIGN_IN_SIGN_INS = 'aspnetcore.identity.sign_in.sign_ins' as const; + +/** + * The total number of calls to sign out user principals. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_SIGN_IN_SIGN_OUTS = 'aspnetcore.identity.sign_in.sign_outs' as const; + +/** + * The total number of two factor clients forgotten. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_SIGN_IN_TWO_FACTOR_CLIENTS_FORGOTTEN = 'aspnetcore.identity.sign_in.two_factor_clients_forgotten' as const; + +/** + * The total number of two factor clients remembered. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_SIGN_IN_TWO_FACTOR_CLIENTS_REMEMBERED = 'aspnetcore.identity.sign_in.two_factor_clients_remembered' as const; + +/** + * The number of check password attempts. Only checks whether the password is valid and not whether the user account is in a state that can log in. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_USER_CHECK_PASSWORD_ATTEMPTS = 'aspnetcore.identity.user.check_password_attempts' as const; + +/** + * The duration of user creation operations. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_USER_CREATE_DURATION = 'aspnetcore.identity.user.create.duration' as const; + +/** + * The duration of user deletion operations. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_USER_DELETE_DURATION = 'aspnetcore.identity.user.delete.duration' as const; + +/** + * The total number of token generations. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_USER_GENERATED_TOKENS = 'aspnetcore.identity.user.generated_tokens' as const; + +/** + * The duration of user update operations. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_USER_UPDATE_DURATION = 'aspnetcore.identity.user.update.duration' as const; + +/** + * The total number of token verification attempts. + * + * @note Meter name: `Microsoft.AspNetCore.Identity`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_IDENTITY_USER_VERIFY_TOKEN_ATTEMPTS = 'aspnetcore.identity.user.verify_token_attempts' as const; + +/** + * Total number of bytes allocated by the memory pool. Allocation occurs when a memory rental request exceeds the available pooled memory. + * + * @note Meter name: `Microsoft.AspNetCore.MemoryPool`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_MEMORY_POOL_ALLOCATED = 'aspnetcore.memory_pool.allocated' as const; + +/** + * Total number of bytes evicted from the memory pool. Eviction occurs when idle pooled memory is reclaimed. + * + * @note Meter name: `Microsoft.AspNetCore.MemoryPool`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_MEMORY_POOL_EVICTED = 'aspnetcore.memory_pool.evicted' as const; + +/** + * Number of bytes currently pooled and available for reuse. + * + * @note Meter name: `Microsoft.AspNetCore.MemoryPool`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_MEMORY_POOL_POOLED = 'aspnetcore.memory_pool.pooled' as const; + +/** + * Total number of bytes rented from the memory pool. + * + * @note Meter name: `Microsoft.AspNetCore.MemoryPool`; Added in: ASP.NET Core 10.0 + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_ASPNETCORE_MEMORY_POOL_RENTED = 'aspnetcore.memory_pool.rented' as const; + +/** + * Number of active client instances. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_AZURE_COSMOSDB_CLIENT_ACTIVE_INSTANCE_COUNT = 'azure.cosmosdb.client.active_instance.count' as const; /** - * [Request units](https://learn.microsoft.com/azure/cosmos-db/request-units) consumed by the operation + * [Request units](https://learn.microsoft.com/azure/cosmos-db/request-units) consumed by the operation. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -72,7 +270,7 @@ export const METRIC_CICD_SYSTEM_ERRORS = 'cicd.system.errors' as const; export const METRIC_CICD_WORKER_COUNT = 'cicd.worker.count' as const; /** - * Total CPU time consumed + * Total CPU time consumed. * * @note Total CPU time consumed by the specific container on all available CPU cores * @@ -81,7 +279,7 @@ export const METRIC_CICD_WORKER_COUNT = 'cicd.worker.count' as const; export const METRIC_CONTAINER_CPU_TIME = 'container.cpu.time' as const; /** - * Container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs + * Container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. * * @note CPU usage of the specific container on all available CPU cores, averaged over the sample window * @@ -98,6 +296,44 @@ export const METRIC_CONTAINER_CPU_USAGE = 'container.cpu.usage' as const; */ export const METRIC_CONTAINER_DISK_IO = 'container.disk.io' as const; +/** + * Container filesystem available bytes. + * + * @note In K8s, this metric is derived from the + * [FsStats.AvailableBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [ContainerStats.Rootfs](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#ContainerStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_CONTAINER_FILESYSTEM_AVAILABLE = 'container.filesystem.available' as const; + +/** + * Container filesystem capacity. + * + * @note In K8s, this metric is derived from the + * [FsStats.CapacityBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [ContainerStats.Rootfs](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#ContainerStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_CONTAINER_FILESYSTEM_CAPACITY = 'container.filesystem.capacity' as const; + +/** + * Container filesystem usage. + * + * @note This may not equal capacity - available. + * + * In K8s, this metric is derived from the + * [FsStats.UsedBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [ContainerStats.Rootfs](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#ContainerStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_CONTAINER_FILESYSTEM_USAGE = 'container.filesystem.usage' as const; + /** * Memory usage of the container. * @@ -117,7 +353,7 @@ export const METRIC_CONTAINER_MEMORY_USAGE = 'container.memory.usage' as const; export const METRIC_CONTAINER_NETWORK_IO = 'container.network.io' as const; /** - * The time the container has been running + * The time the container has been running. * * @note Instrumentations **SHOULD** use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. * The actual accuracy would depend on the instrumentation and operating system. @@ -181,63 +417,63 @@ export const METRIC_CPYTHON_GC_COLLECTIONS = 'cpython.gc.collections' as const; export const METRIC_CPYTHON_GC_UNCOLLECTABLE_OBJECTS = 'cpython.gc.uncollectable_objects' as const; /** - * The number of connections that are currently in state described by the `state` attribute + * The number of connections that are currently in state described by the `state` attribute. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_COUNT = 'db.client.connection.count' as const; /** - * The time it took to create a new connection + * The time it took to create a new connection. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_CREATE_TIME = 'db.client.connection.create_time' as const; /** - * The maximum number of idle open connections allowed + * The maximum number of idle open connections allowed. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_IDLE_MAX = 'db.client.connection.idle.max' as const; /** - * The minimum number of idle open connections allowed + * The minimum number of idle open connections allowed. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_IDLE_MIN = 'db.client.connection.idle.min' as const; /** - * The maximum number of open connections allowed + * The maximum number of open connections allowed. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_MAX = 'db.client.connection.max' as const; /** - * The number of current pending requests for an open connection + * The number of current pending requests for an open connection. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS = 'db.client.connection.pending_requests' as const; /** - * The number of connection timeouts that have occurred trying to obtain a connection from the pool + * The number of connection timeouts that have occurred trying to obtain a connection from the pool. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_TIMEOUTS = 'db.client.connection.timeouts' as const; /** - * The time between borrowing a connection and returning it to the pool + * The time between borrowing a connection and returning it to the pool. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_CONNECTION_USE_TIME = 'db.client.connection.use_time' as const; /** - * The time it took to obtain an open connection from the pool + * The time it took to obtain an open connection from the pool. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -357,98 +593,98 @@ export const METRIC_DB_CLIENT_RESPONSE_RETURNED_ROWS = 'db.client.response.retur export const METRIC_DNS_LOOKUP_DURATION = 'dns.lookup.duration' as const; /** - * Number of invocation cold starts + * Number of invocation cold starts. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_COLDSTARTS = 'faas.coldstarts' as const; /** - * Distribution of CPU usage per invocation + * Distribution of CPU usage per invocation. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_CPU_USAGE = 'faas.cpu_usage' as const; /** - * Number of invocation errors + * Number of invocation errors. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_ERRORS = 'faas.errors' as const; /** - * Measures the duration of the function's initialization, such as a cold start + * Measures the duration of the function's initialization, such as a cold start. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_INIT_DURATION = 'faas.init_duration' as const; /** - * Number of successful invocations + * Number of successful invocations. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_INVOCATIONS = 'faas.invocations' as const; /** - * Measures the duration of the function's logic execution + * Measures the duration of the function's logic execution. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_INVOKE_DURATION = 'faas.invoke_duration' as const; /** - * Distribution of max memory usage per invocation + * Distribution of max memory usage per invocation. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_MEM_USAGE = 'faas.mem_usage' as const; /** - * Distribution of net I/O usage per invocation + * Distribution of net I/O usage per invocation. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_NET_IO = 'faas.net_io' as const; /** - * Number of invocation timeouts + * Number of invocation timeouts. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_FAAS_TIMEOUTS = 'faas.timeouts' as const; /** - * GenAI operation duration + * GenAI operation duration. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GEN_AI_CLIENT_OPERATION_DURATION = 'gen_ai.client.operation.duration' as const; /** - * Measures number of input and output tokens used + * Number of input and output tokens used. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GEN_AI_CLIENT_TOKEN_USAGE = 'gen_ai.client.token.usage' as const; /** - * Generative AI server request duration such as time-to-last byte or last output token + * Generative AI server request duration such as time-to-last byte or last output token. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GEN_AI_SERVER_REQUEST_DURATION = 'gen_ai.server.request.duration' as const; /** - * Time per output token generated after the first token for successful responses + * Time per output token generated after the first token for successful responses. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GEN_AI_SERVER_TIME_PER_OUTPUT_TOKEN = 'gen_ai.server.time_per_output_token' as const; /** - * Time to generate first token for successful responses + * Time to generate first token for successful responses. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -600,28 +836,119 @@ export const METRIC_HTTP_SERVER_REQUEST_BODY_SIZE = 'http.server.request.body.si export const METRIC_HTTP_SERVER_RESPONSE_BODY_SIZE = 'http.server.response.body.size' as const; /** - * Energy consumed by the component + * Remaining fraction of battery charge. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_BATTERY_CHARGE = 'hw.battery.charge' as const; + +/** + * Lower limit of battery charge fraction to ensure proper operation. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_BATTERY_CHARGE_LIMIT = 'hw.battery.charge.limit' as const; + +/** + * Time left before battery is completely charged or discharged. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_BATTERY_TIME_LEFT = 'hw.battery.time_left' as const; + +/** + * CPU current frequency. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_CPU_SPEED = 'hw.cpu.speed' as const; + +/** + * CPU maximum frequency. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_CPU_SPEED_LIMIT = 'hw.cpu.speed.limit' as const; + +/** + * Energy consumed by the component. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_ENERGY = 'hw.energy' as const; /** - * Number of errors encountered by the component + * Number of errors encountered by the component. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_ERRORS = 'hw.errors' as const; /** - * Ambient (external) temperature of the physical host + * Fan speed in revolutions per minute. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_FAN_SPEED = 'hw.fan.speed' as const; + +/** + * Speed limit in rpm. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_FAN_SPEED_LIMIT = 'hw.fan.speed.limit' as const; + +/** + * Fan speed expressed as a fraction of its maximum speed. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_FAN_SPEED_RATIO = 'hw.fan.speed_ratio' as const; + +/** + * Received and transmitted bytes by the GPU. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_GPU_IO = 'hw.gpu.io' as const; + +/** + * Size of the GPU memory. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_GPU_MEMORY_LIMIT = 'hw.gpu.memory.limit' as const; + +/** + * GPU memory used. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_GPU_MEMORY_USAGE = 'hw.gpu.memory.usage' as const; + +/** + * Fraction of GPU memory used. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_GPU_MEMORY_UTILIZATION = 'hw.gpu.memory.utilization' as const; + +/** + * Fraction of time spent in a specific task. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_GPU_UTILIZATION = 'hw.gpu.utilization' as const; + +/** + * Ambient (external) temperature of the physical host. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_HOST_AMBIENT_TEMPERATURE = 'hw.host.ambient_temperature' as const; /** - * Total energy consumed by the entire physical host, in joules + * Total energy consumed by the entire physical host, in joules. * * @note The overall energy usage of a host **MUST** be reported using the specific `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic `hw.energy` and `hw.power` described in the previous section, to prevent summing up overlapping values. * @@ -630,14 +957,14 @@ export const METRIC_HW_HOST_AMBIENT_TEMPERATURE = 'hw.host.ambient_temperature' export const METRIC_HW_HOST_ENERGY = 'hw.host.energy' as const; /** - * By how many degrees Celsius the temperature of the physical host can be increased, before reaching a warning threshold on one of the internal sensors + * By how many degrees Celsius the temperature of the physical host can be increased, before reaching a warning threshold on one of the internal sensors. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_HOST_HEATING_MARGIN = 'hw.host.heating_margin' as const; /** - * Instantaneous power consumed by the entire physical host in Watts (`hw.host.energy` is preferred) + * Instantaneous power consumed by the entire physical host in Watts (`hw.host.energy` is preferred). * * @note The overall energy usage of a host **MUST** be reported using the specific `hw.host.energy` and `hw.host.power` metrics **only**, instead of the generic `hw.energy` and `hw.power` described in the previous section, to prevent summing up overlapping values. * @@ -646,7 +973,91 @@ export const METRIC_HW_HOST_HEATING_MARGIN = 'hw.host.heating_margin' as const; export const METRIC_HW_HOST_POWER = 'hw.host.power' as const; /** - * Instantaneous power consumed by the component + * Size of the logical disk. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_LOGICAL_DISK_LIMIT = 'hw.logical_disk.limit' as const; + +/** + * Logical disk space usage. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_LOGICAL_DISK_USAGE = 'hw.logical_disk.usage' as const; + +/** + * Logical disk space utilization as a fraction. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_LOGICAL_DISK_UTILIZATION = 'hw.logical_disk.utilization' as const; + +/** + * Size of the memory module. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_MEMORY_SIZE = 'hw.memory.size' as const; + +/** + * Link speed. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_NETWORK_BANDWIDTH_LIMIT = 'hw.network.bandwidth.limit' as const; + +/** + * Utilization of the network bandwidth as a fraction. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_NETWORK_BANDWIDTH_UTILIZATION = 'hw.network.bandwidth.utilization' as const; + +/** + * Received and transmitted network traffic in bytes. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_NETWORK_IO = 'hw.network.io' as const; + +/** + * Received and transmitted network traffic in packets (or frames). + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_NETWORK_PACKETS = 'hw.network.packets' as const; + +/** + * Link status: `1` (up) or `0` (down). + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_NETWORK_UP = 'hw.network.up' as const; + +/** + * Endurance remaining for this SSD disk. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_PHYSICAL_DISK_ENDURANCE_UTILIZATION = 'hw.physical_disk.endurance_utilization' as const; + +/** + * Size of the disk. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_PHYSICAL_DISK_SIZE = 'hw.physical_disk.size' as const; + +/** + * Value of the corresponding [S.M.A.R.T.](https://wikipedia.org/wiki/S.M.A.R.T.) (Self-Monitoring, Analysis, and Reporting Technology) attribute. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_PHYSICAL_DISK_SMART = 'hw.physical_disk.smart' as const; + +/** + * Instantaneous power consumed by the component. * * @note It is recommended to report `hw.energy` instead of `hw.power` when possible. * @@ -655,7 +1066,28 @@ export const METRIC_HW_HOST_POWER = 'hw.host.power' as const; export const METRIC_HW_POWER = 'hw.power' as const; /** - * Operational status: `1` (true) or `0` (false) for each of the possible states + * Maximum power output of the power supply. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_POWER_SUPPLY_LIMIT = 'hw.power_supply.limit' as const; + +/** + * Current power output of the power supply. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_POWER_SUPPLY_USAGE = 'hw.power_supply.usage' as const; + +/** + * Utilization of the power supply as a fraction of its maximum output. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_POWER_SUPPLY_UTILIZATION = 'hw.power_supply.utilization' as const; + +/** + * Operational status: `1` (true) or `0` (false) for each of the possible states. * * @note `hw.status` is currently specified as an *UpDownCounter* but would ideally be represented using a [*StateSet* as defined in OpenMetrics](https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#stateset). This semantic convention will be updated once *StateSet* is specified in OpenTelemetry. This planned change is not expected to have any consequence on the way users query their timeseries backend to retrieve the values of `hw.status` over time. * @@ -663,6 +1095,48 @@ export const METRIC_HW_POWER = 'hw.power' as const; */ export const METRIC_HW_STATUS = 'hw.status' as const; +/** + * Operations performed by the tape drive. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_TAPE_DRIVE_OPERATIONS = 'hw.tape_drive.operations' as const; + +/** + * Temperature in degrees Celsius. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_TEMPERATURE = 'hw.temperature' as const; + +/** + * Temperature limit in degrees Celsius. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_TEMPERATURE_LIMIT = 'hw.temperature.limit' as const; + +/** + * Voltage measured by the sensor. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_VOLTAGE = 'hw.voltage' as const; + +/** + * Voltage limit in Volts. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_VOLTAGE_LIMIT = 'hw.voltage.limit' as const; + +/** + * Nominal (expected) voltage. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_HW_VOLTAGE_NOMINAL = 'hw.voltage.nominal' as const; + /** * Number of buffers in the pool. * @@ -726,7 +1200,7 @@ export const METRIC_JVM_SYSTEM_CPU_LOAD_1M = 'jvm.system.cpu.load_1m' as const; export const METRIC_JVM_SYSTEM_CPU_UTILIZATION = 'jvm.system.cpu.utilization' as const; /** - * Maximum CPU resource limit set for the container + * Maximum CPU resource limit set for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -735,7 +1209,7 @@ export const METRIC_JVM_SYSTEM_CPU_UTILIZATION = 'jvm.system.cpu.utilization' as export const METRIC_K8S_CONTAINER_CPU_LIMIT = 'k8s.container.cpu.limit' as const; /** - * CPU resource requested for the container + * CPU resource requested for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -744,7 +1218,7 @@ export const METRIC_K8S_CONTAINER_CPU_LIMIT = 'k8s.container.cpu.limit' as const export const METRIC_K8S_CONTAINER_CPU_REQUEST = 'k8s.container.cpu.request' as const; /** - * Maximum ephemeral storage resource limit set for the container + * Maximum ephemeral storage resource limit set for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -753,7 +1227,7 @@ export const METRIC_K8S_CONTAINER_CPU_REQUEST = 'k8s.container.cpu.request' as c export const METRIC_K8S_CONTAINER_EPHEMERAL_STORAGE_LIMIT = 'k8s.container.ephemeral_storage.limit' as const; /** - * Ephemeral storage resource requested for the container + * Ephemeral storage resource requested for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -762,7 +1236,7 @@ export const METRIC_K8S_CONTAINER_EPHEMERAL_STORAGE_LIMIT = 'k8s.container.ephem export const METRIC_K8S_CONTAINER_EPHEMERAL_STORAGE_REQUEST = 'k8s.container.ephemeral_storage.request' as const; /** - * Maximum memory resource limit set for the container + * Maximum memory resource limit set for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -771,7 +1245,7 @@ export const METRIC_K8S_CONTAINER_EPHEMERAL_STORAGE_REQUEST = 'k8s.container.eph export const METRIC_K8S_CONTAINER_MEMORY_LIMIT = 'k8s.container.memory.limit' as const; /** - * Memory resource requested for the container + * Memory resource requested for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -780,7 +1254,7 @@ export const METRIC_K8S_CONTAINER_MEMORY_LIMIT = 'k8s.container.memory.limit' as export const METRIC_K8S_CONTAINER_MEMORY_REQUEST = 'k8s.container.memory.request' as const; /** - * Indicates whether the container is currently marked as ready to accept traffic, based on its readiness probe (1 = ready, 0 = not ready) + * Indicates whether the container is currently marked as ready to accept traffic, based on its readiness probe (1 = ready, 0 = not ready). * * @note This metric **SHOULD** reflect the value of the `ready` field in the * [K8s ContainerStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatus-v1-core). @@ -790,7 +1264,7 @@ export const METRIC_K8S_CONTAINER_MEMORY_REQUEST = 'k8s.container.memory.request export const METRIC_K8S_CONTAINER_READY = 'k8s.container.ready' as const; /** - * Describes how many times the container has restarted (since the last counter reset) + * Describes how many times the container has restarted (since the last counter reset). * * @note This value is pulled directly from the K8s API and the value can go indefinitely high and be reset to 0 * at any time depending on how your kubelet is configured to prune dead containers. @@ -803,7 +1277,7 @@ export const METRIC_K8S_CONTAINER_READY = 'k8s.container.ready' as const; export const METRIC_K8S_CONTAINER_RESTART_COUNT = 'k8s.container.restart.count' as const; /** - * Describes the number of K8s containers that are currently in a state for a given reason + * Describes the number of K8s containers that are currently in a state for a given reason. * * @note All possible container state reasons will be reported at each time interval to avoid missing metrics. * Only the value corresponding to the current state reason will be non-zero. @@ -813,7 +1287,7 @@ export const METRIC_K8S_CONTAINER_RESTART_COUNT = 'k8s.container.restart.count' export const METRIC_K8S_CONTAINER_STATUS_REASON = 'k8s.container.status.reason' as const; /** - * Describes the number of K8s containers that are currently in a given state + * Describes the number of K8s containers that are currently in a given state. * * @note All possible container states will be reported at each time interval to avoid missing metrics. * Only the value corresponding to the current state will be non-zero. @@ -823,7 +1297,7 @@ export const METRIC_K8S_CONTAINER_STATUS_REASON = 'k8s.container.status.reason' export const METRIC_K8S_CONTAINER_STATUS_STATE = 'k8s.container.status.state' as const; /** - * Maximum storage resource limit set for the container + * Maximum storage resource limit set for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -832,7 +1306,7 @@ export const METRIC_K8S_CONTAINER_STATUS_STATE = 'k8s.container.status.state' as export const METRIC_K8S_CONTAINER_STORAGE_LIMIT = 'k8s.container.storage.limit' as const; /** - * Storage resource requested for the container + * Storage resource requested for the container. * * @note See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core for details. * @@ -841,7 +1315,7 @@ export const METRIC_K8S_CONTAINER_STORAGE_LIMIT = 'k8s.container.storage.limit' export const METRIC_K8S_CONTAINER_STORAGE_REQUEST = 'k8s.container.storage.request' as const; /** - * The number of actively running jobs for a cronjob + * The number of actively running jobs for a cronjob. * * @note This metric aligns with the `active` field of the * [K8s CronJobStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#cronjobstatus-v1-batch). @@ -851,7 +1325,7 @@ export const METRIC_K8S_CONTAINER_STORAGE_REQUEST = 'k8s.container.storage.reque export const METRIC_K8S_CRONJOB_ACTIVE_JOBS = 'k8s.cronjob.active_jobs' as const; /** - * Number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod + * Number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. * * @note This metric aligns with the `currentNumberScheduled` field of the * [K8s DaemonSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps). @@ -861,7 +1335,7 @@ export const METRIC_K8S_CRONJOB_ACTIVE_JOBS = 'k8s.cronjob.active_jobs' as const export const METRIC_K8S_DAEMONSET_CURRENT_SCHEDULED_NODES = 'k8s.daemonset.current_scheduled_nodes' as const; /** - * Number of nodes that should be running the daemon pod (including nodes currently running the daemon pod) + * Number of nodes that should be running the daemon pod (including nodes currently running the daemon pod). * * @note This metric aligns with the `desiredNumberScheduled` field of the * [K8s DaemonSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps). @@ -871,7 +1345,7 @@ export const METRIC_K8S_DAEMONSET_CURRENT_SCHEDULED_NODES = 'k8s.daemonset.curre export const METRIC_K8S_DAEMONSET_DESIRED_SCHEDULED_NODES = 'k8s.daemonset.desired_scheduled_nodes' as const; /** - * Number of nodes that are running the daemon pod, but are not supposed to run the daemon pod + * Number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. * * @note This metric aligns with the `numberMisscheduled` field of the * [K8s DaemonSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps). @@ -881,7 +1355,7 @@ export const METRIC_K8S_DAEMONSET_DESIRED_SCHEDULED_NODES = 'k8s.daemonset.desir export const METRIC_K8S_DAEMONSET_MISSCHEDULED_NODES = 'k8s.daemonset.misscheduled_nodes' as const; /** - * Number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready + * Number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. * * @note This metric aligns with the `numberReady` field of the * [K8s DaemonSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#daemonsetstatus-v1-apps). @@ -891,7 +1365,7 @@ export const METRIC_K8S_DAEMONSET_MISSCHEDULED_NODES = 'k8s.daemonset.misschedul export const METRIC_K8S_DAEMONSET_READY_NODES = 'k8s.daemonset.ready_nodes' as const; /** - * Total number of available replica pods (ready for at least minReadySeconds) targeted by this deployment + * Total number of available replica pods (ready for at least minReadySeconds) targeted by this deployment. * * @note This metric aligns with the `availableReplicas` field of the * [K8s DeploymentStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentstatus-v1-apps). @@ -901,7 +1375,7 @@ export const METRIC_K8S_DAEMONSET_READY_NODES = 'k8s.daemonset.ready_nodes' as c export const METRIC_K8S_DEPLOYMENT_AVAILABLE_PODS = 'k8s.deployment.available_pods' as const; /** - * Number of desired replica pods in this deployment + * Number of desired replica pods in this deployment. * * @note This metric aligns with the `replicas` field of the * [K8s DeploymentSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentspec-v1-apps). @@ -911,7 +1385,7 @@ export const METRIC_K8S_DEPLOYMENT_AVAILABLE_PODS = 'k8s.deployment.available_po export const METRIC_K8S_DEPLOYMENT_DESIRED_PODS = 'k8s.deployment.desired_pods' as const; /** - * Current number of replica pods managed by this horizontal pod autoscaler, as last seen by the autoscaler + * Current number of replica pods managed by this horizontal pod autoscaler, as last seen by the autoscaler. * * @note This metric aligns with the `currentReplicas` field of the * [K8s HorizontalPodAutoscalerStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerstatus-v2-autoscaling) @@ -921,7 +1395,7 @@ export const METRIC_K8S_DEPLOYMENT_DESIRED_PODS = 'k8s.deployment.desired_pods' export const METRIC_K8S_HPA_CURRENT_PODS = 'k8s.hpa.current_pods' as const; /** - * Desired number of replica pods managed by this horizontal pod autoscaler, as last calculated by the autoscaler + * Desired number of replica pods managed by this horizontal pod autoscaler, as last calculated by the autoscaler. * * @note This metric aligns with the `desiredReplicas` field of the * [K8s HorizontalPodAutoscalerStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerstatus-v2-autoscaling) @@ -931,7 +1405,7 @@ export const METRIC_K8S_HPA_CURRENT_PODS = 'k8s.hpa.current_pods' as const; export const METRIC_K8S_HPA_DESIRED_PODS = 'k8s.hpa.desired_pods' as const; /** - * The upper limit for the number of replica pods to which the autoscaler can scale up + * The upper limit for the number of replica pods to which the autoscaler can scale up. * * @note This metric aligns with the `maxReplicas` field of the * [K8s HorizontalPodAutoscalerSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerspec-v2-autoscaling) @@ -977,7 +1451,7 @@ export const METRIC_K8S_HPA_METRIC_TARGET_CPU_AVERAGE_VALUE = 'k8s.hpa.metric.ta export const METRIC_K8S_HPA_METRIC_TARGET_CPU_VALUE = 'k8s.hpa.metric.target.cpu.value' as const; /** - * The lower limit for the number of replica pods to which the autoscaler can scale down + * The lower limit for the number of replica pods to which the autoscaler can scale down. * * @note This metric aligns with the `minReplicas` field of the * [K8s HorizontalPodAutoscalerSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#horizontalpodautoscalerspec-v2-autoscaling) @@ -987,7 +1461,7 @@ export const METRIC_K8S_HPA_METRIC_TARGET_CPU_VALUE = 'k8s.hpa.metric.target.cpu export const METRIC_K8S_HPA_MIN_PODS = 'k8s.hpa.min_pods' as const; /** - * The number of pending and actively running pods for a job + * The number of pending and actively running pods for a job. * * @note This metric aligns with the `active` field of the * [K8s JobStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobstatus-v1-batch). @@ -997,7 +1471,7 @@ export const METRIC_K8S_HPA_MIN_PODS = 'k8s.hpa.min_pods' as const; export const METRIC_K8S_JOB_ACTIVE_PODS = 'k8s.job.active_pods' as const; /** - * The desired number of successfully finished pods the job should be run with + * The desired number of successfully finished pods the job should be run with. * * @note This metric aligns with the `completions` field of the * [K8s JobSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobspec-v1-batch).. @@ -1007,7 +1481,7 @@ export const METRIC_K8S_JOB_ACTIVE_PODS = 'k8s.job.active_pods' as const; export const METRIC_K8S_JOB_DESIRED_SUCCESSFUL_PODS = 'k8s.job.desired_successful_pods' as const; /** - * The number of pods which reached phase Failed for a job + * The number of pods which reached phase Failed for a job. * * @note This metric aligns with the `failed` field of the * [K8s JobStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobstatus-v1-batch). @@ -1017,7 +1491,7 @@ export const METRIC_K8S_JOB_DESIRED_SUCCESSFUL_PODS = 'k8s.job.desired_successfu export const METRIC_K8S_JOB_FAILED_PODS = 'k8s.job.failed_pods' as const; /** - * The max desired number of pods the job should run at any given time + * The max desired number of pods the job should run at any given time. * * @note This metric aligns with the `parallelism` field of the * [K8s JobSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobspec-v1-batch). @@ -1027,7 +1501,7 @@ export const METRIC_K8S_JOB_FAILED_PODS = 'k8s.job.failed_pods' as const; export const METRIC_K8S_JOB_MAX_PARALLEL_PODS = 'k8s.job.max_parallel_pods' as const; /** - * The number of pods which reached phase Succeeded for a job + * The number of pods which reached phase Succeeded for a job. * * @note This metric aligns with the `succeeded` field of the * [K8s JobStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#jobstatus-v1-batch). @@ -1044,28 +1518,28 @@ export const METRIC_K8S_JOB_SUCCESSFUL_PODS = 'k8s.job.successful_pods' as const export const METRIC_K8S_NAMESPACE_PHASE = 'k8s.namespace.phase' as const; /** - * Amount of cpu allocatable on the node + * Amount of cpu allocatable on the node. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_NODE_ALLOCATABLE_CPU = 'k8s.node.allocatable.cpu' as const; /** - * Amount of ephemeral-storage allocatable on the node + * Amount of ephemeral-storage allocatable on the node. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_NODE_ALLOCATABLE_EPHEMERAL_STORAGE = 'k8s.node.allocatable.ephemeral_storage' as const; /** - * Amount of memory allocatable on the node + * Amount of memory allocatable on the node. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_NODE_ALLOCATABLE_MEMORY = 'k8s.node.allocatable.memory' as const; /** - * Amount of pods allocatable on the node + * Amount of pods allocatable on the node. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -1081,7 +1555,7 @@ export const METRIC_K8S_NODE_ALLOCATABLE_PODS = 'k8s.node.allocatable.pods' as c export const METRIC_K8S_NODE_CONDITION_STATUS = 'k8s.node.condition.status' as const; /** - * Total CPU time consumed + * Total CPU time consumed. * * @note Total CPU time consumed by the specific Node on all available CPU cores * @@ -1090,7 +1564,7 @@ export const METRIC_K8S_NODE_CONDITION_STATUS = 'k8s.node.condition.status' as c export const METRIC_K8S_NODE_CPU_TIME = 'k8s.node.cpu.time' as const; /** - * Node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs + * Node's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. * * @note CPU usage of the specific Node on all available CPU cores, averaged over the sample window * @@ -1099,7 +1573,45 @@ export const METRIC_K8S_NODE_CPU_TIME = 'k8s.node.cpu.time' as const; export const METRIC_K8S_NODE_CPU_USAGE = 'k8s.node.cpu.usage' as const; /** - * Memory usage of the Node + * Node filesystem available bytes. + * + * @note This metric is derived from the + * [FsStats.AvailableBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [NodeStats.Fs](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#NodeStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_NODE_FILESYSTEM_AVAILABLE = 'k8s.node.filesystem.available' as const; + +/** + * Node filesystem capacity. + * + * @note This metric is derived from the + * [FsStats.CapacityBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [NodeStats.Fs](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#NodeStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_NODE_FILESYSTEM_CAPACITY = 'k8s.node.filesystem.capacity' as const; + +/** + * Node filesystem usage. + * + * @note This may not equal capacity - available. + * + * This metric is derived from the + * [FsStats.UsedBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [NodeStats.Fs](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#NodeStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_NODE_FILESYSTEM_USAGE = 'k8s.node.filesystem.usage' as const; + +/** + * Memory usage of the Node. * * @note Total memory usage of the Node * @@ -1108,21 +1620,21 @@ export const METRIC_K8S_NODE_CPU_USAGE = 'k8s.node.cpu.usage' as const; export const METRIC_K8S_NODE_MEMORY_USAGE = 'k8s.node.memory.usage' as const; /** - * Node network errors + * Node network errors. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_NODE_NETWORK_ERRORS = 'k8s.node.network.errors' as const; /** - * Network bytes for the Node + * Network bytes for the Node. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_NODE_NETWORK_IO = 'k8s.node.network.io' as const; /** - * The time the Node has been running + * The time the Node has been running. * * @note Instrumentations **SHOULD** use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. * The actual accuracy would depend on the instrumentation and operating system. @@ -1132,7 +1644,7 @@ export const METRIC_K8S_NODE_NETWORK_IO = 'k8s.node.network.io' as const; export const METRIC_K8S_NODE_UPTIME = 'k8s.node.uptime' as const; /** - * Total CPU time consumed + * Total CPU time consumed. * * @note Total CPU time consumed by the specific Pod on all available CPU cores * @@ -1141,7 +1653,7 @@ export const METRIC_K8S_NODE_UPTIME = 'k8s.node.uptime' as const; export const METRIC_K8S_POD_CPU_TIME = 'k8s.pod.cpu.time' as const; /** - * Pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs + * Pod's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs. * * @note CPU usage of the specific Pod on all available CPU cores, averaged over the sample window * @@ -1150,7 +1662,45 @@ export const METRIC_K8S_POD_CPU_TIME = 'k8s.pod.cpu.time' as const; export const METRIC_K8S_POD_CPU_USAGE = 'k8s.pod.cpu.usage' as const; /** - * Memory usage of the Pod + * Pod filesystem available bytes. + * + * @note This metric is derived from the + * [FsStats.AvailableBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [PodStats.EphemeralStorage](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_FILESYSTEM_AVAILABLE = 'k8s.pod.filesystem.available' as const; + +/** + * Pod filesystem capacity. + * + * @note This metric is derived from the + * [FsStats.CapacityBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [PodStats.EphemeralStorage](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_FILESYSTEM_CAPACITY = 'k8s.pod.filesystem.capacity' as const; + +/** + * Pod filesystem usage. + * + * @note This may not equal capacity - available. + * + * This metric is derived from the + * [FsStats.UsedBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#FsStats) field + * of the [PodStats.EphemeralStorage](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) + * of the Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_FILESYSTEM_USAGE = 'k8s.pod.filesystem.usage' as const; + +/** + * Memory usage of the Pod. * * @note Total memory usage of the Pod * @@ -1159,21 +1709,21 @@ export const METRIC_K8S_POD_CPU_USAGE = 'k8s.pod.cpu.usage' as const; export const METRIC_K8S_POD_MEMORY_USAGE = 'k8s.pod.memory.usage' as const; /** - * Pod network errors + * Pod network errors. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_POD_NETWORK_ERRORS = 'k8s.pod.network.errors' as const; /** - * Network bytes for the Pod + * Network bytes for the Pod. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_K8S_POD_NETWORK_IO = 'k8s.pod.network.io' as const; /** - * The time the Pod has been running + * The time the Pod has been running. * * @note Instrumentations **SHOULD** use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. * The actual accuracy would depend on the instrumentation and operating system. @@ -1183,7 +1733,83 @@ export const METRIC_K8S_POD_NETWORK_IO = 'k8s.pod.network.io' as const; export const METRIC_K8S_POD_UPTIME = 'k8s.pod.uptime' as const; /** - * Total number of available replica pods (ready for at least minReadySeconds) targeted by this replicaset + * Pod volume storage space available. + * + * @note This metric is derived from the + * [VolumeStats.AvailableBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#VolumeStats) field + * of the [PodStats](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) of the + * Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_VOLUME_AVAILABLE = 'k8s.pod.volume.available' as const; + +/** + * Pod volume total capacity. + * + * @note This metric is derived from the + * [VolumeStats.CapacityBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#VolumeStats) field + * of the [PodStats](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) of the + * Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_VOLUME_CAPACITY = 'k8s.pod.volume.capacity' as const; + +/** + * The total inodes in the filesystem of the Pod's volume. + * + * @note This metric is derived from the + * [VolumeStats.Inodes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#VolumeStats) field + * of the [PodStats](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) of the + * Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_VOLUME_INODE_COUNT = 'k8s.pod.volume.inode.count' as const; + +/** + * The free inodes in the filesystem of the Pod's volume. + * + * @note This metric is derived from the + * [VolumeStats.InodesFree](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#VolumeStats) field + * of the [PodStats](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) of the + * Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_VOLUME_INODE_FREE = 'k8s.pod.volume.inode.free' as const; + +/** + * The inodes used by the filesystem of the Pod's volume. + * + * @note This metric is derived from the + * [VolumeStats.InodesUsed](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#VolumeStats) field + * of the [PodStats](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) of the + * Kubelet's stats API. + * + * This may not be equal to `inodes - free` because filesystem may share inodes with other filesystems. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_VOLUME_INODE_USED = 'k8s.pod.volume.inode.used' as const; + +/** + * Pod volume usage. + * + * @note This may not equal capacity - available. + * + * This metric is derived from the + * [VolumeStats.UsedBytes](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#VolumeStats) field + * of the [PodStats](https://pkg.go.dev/k8s.io/kubelet@v0.33.0/pkg/apis/stats/v1alpha1#PodStats) of the + * Kubelet's stats API. + * + * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. + */ +export const METRIC_K8S_POD_VOLUME_USAGE = 'k8s.pod.volume.usage' as const; + +/** + * Total number of available replica pods (ready for at least minReadySeconds) targeted by this replicaset. * * @note This metric aligns with the `availableReplicas` field of the * [K8s ReplicaSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetstatus-v1-apps). @@ -1193,7 +1819,7 @@ export const METRIC_K8S_POD_UPTIME = 'k8s.pod.uptime' as const; export const METRIC_K8S_REPLICASET_AVAILABLE_PODS = 'k8s.replicaset.available_pods' as const; /** - * Number of desired replica pods in this replicaset + * Number of desired replica pods in this replicaset. * * @note This metric aligns with the `replicas` field of the * [K8s ReplicaSetSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetspec-v1-apps). @@ -1221,7 +1847,7 @@ export const METRIC_K8S_REPLICATION_CONTROLLER_AVAILABLE_PODS = 'k8s.replication export const METRIC_K8S_REPLICATION_CONTROLLER_DESIRED_PODS = 'k8s.replication_controller.desired_pods' as const; /** - * Total number of available replica pods (ready for at least minReadySeconds) targeted by this replication controller + * Total number of available replica pods (ready for at least minReadySeconds) targeted by this replication controller. * * @note This metric aligns with the `availableReplicas` field of the * [K8s ReplicationControllerStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicationcontrollerstatus-v1-core) @@ -1231,7 +1857,7 @@ export const METRIC_K8S_REPLICATION_CONTROLLER_DESIRED_PODS = 'k8s.replication_c export const METRIC_K8S_REPLICATIONCONTROLLER_AVAILABLE_PODS = 'k8s.replicationcontroller.available_pods' as const; /** - * Number of desired replica pods in this replication controller + * Number of desired replica pods in this replication controller. * * @note This metric aligns with the `replicas` field of the * [K8s ReplicationControllerSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicationcontrollerspec-v1-core) @@ -1473,7 +2099,7 @@ export const METRIC_K8S_RESOURCEQUOTA_STORAGE_REQUEST_HARD = 'k8s.resourcequota. export const METRIC_K8S_RESOURCEQUOTA_STORAGE_REQUEST_USED = 'k8s.resourcequota.storage.request.used' as const; /** - * The number of replica pods created by the statefulset controller from the statefulset version indicated by currentRevision + * The number of replica pods created by the statefulset controller from the statefulset version indicated by currentRevision. * * @note This metric aligns with the `currentReplicas` field of the * [K8s StatefulSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps). @@ -1483,7 +2109,7 @@ export const METRIC_K8S_RESOURCEQUOTA_STORAGE_REQUEST_USED = 'k8s.resourcequota. export const METRIC_K8S_STATEFULSET_CURRENT_PODS = 'k8s.statefulset.current_pods' as const; /** - * Number of desired replica pods in this statefulset + * Number of desired replica pods in this statefulset. * * @note This metric aligns with the `replicas` field of the * [K8s StatefulSetSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetspec-v1-apps). @@ -1493,7 +2119,7 @@ export const METRIC_K8S_STATEFULSET_CURRENT_PODS = 'k8s.statefulset.current_pods export const METRIC_K8S_STATEFULSET_DESIRED_PODS = 'k8s.statefulset.desired_pods' as const; /** - * The number of replica pods created for this statefulset with a Ready Condition + * The number of replica pods created for this statefulset with a Ready Condition. * * @note This metric aligns with the `readyReplicas` field of the * [K8s StatefulSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps). @@ -1503,7 +2129,7 @@ export const METRIC_K8S_STATEFULSET_DESIRED_PODS = 'k8s.statefulset.desired_pods export const METRIC_K8S_STATEFULSET_READY_PODS = 'k8s.statefulset.ready_pods' as const; /** - * Number of replica pods created by the statefulset controller from the statefulset version indicated by updateRevision + * Number of replica pods created by the statefulset controller from the statefulset version indicated by updateRevision. * * @note This metric aligns with the `updatedReplicas` field of the * [K8s StatefulSetStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps). @@ -1685,7 +2311,7 @@ export const METRIC_NODEJS_EVENTLOOP_TIME = 'nodejs.eventloop.time' as const; export const METRIC_NODEJS_EVENTLOOP_UTILIZATION = 'nodejs.eventloop.utilization' as const; /** - * The number of log records for which the export has finished, either successful or failed + * The number of log records for which the export has finished, either successful or failed. * * @note For successful exports, `error.type` **MUST NOT** be set. For failed exports, `error.type` **MUST** contain the failure cause. * For exporters with partial success semantics (e.g. OTLP with `rejected_log_records`), rejected log records **MUST** count as failed and only non-rejected log records count as success. @@ -1696,7 +2322,7 @@ export const METRIC_NODEJS_EVENTLOOP_UTILIZATION = 'nodejs.eventloop.utilization export const METRIC_OTEL_SDK_EXPORTER_LOG_EXPORTED = 'otel.sdk.exporter.log.exported' as const; /** - * The number of log records which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) + * The number of log records which were passed to the exporter, but that have not been exported yet (neither successful, nor failed). * * @note For successful exports, `error.type` **MUST NOT** be set. For failed exports, `error.type` **MUST** contain the failure cause. * @@ -1705,7 +2331,7 @@ export const METRIC_OTEL_SDK_EXPORTER_LOG_EXPORTED = 'otel.sdk.exporter.log.expo export const METRIC_OTEL_SDK_EXPORTER_LOG_INFLIGHT = 'otel.sdk.exporter.log.inflight' as const; /** - * The number of metric data points for which the export has finished, either successful or failed + * The number of metric data points for which the export has finished, either successful or failed. * * @note For successful exports, `error.type` **MUST NOT** be set. For failed exports, `error.type` **MUST** contain the failure cause. * For exporters with partial success semantics (e.g. OTLP with `rejected_data_points`), rejected data points **MUST** count as failed and only non-rejected data points count as success. @@ -1716,7 +2342,7 @@ export const METRIC_OTEL_SDK_EXPORTER_LOG_INFLIGHT = 'otel.sdk.exporter.log.infl export const METRIC_OTEL_SDK_EXPORTER_METRIC_DATA_POINT_EXPORTED = 'otel.sdk.exporter.metric_data_point.exported' as const; /** - * The number of metric data points which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) + * The number of metric data points which were passed to the exporter, but that have not been exported yet (neither successful, nor failed). * * @note For successful exports, `error.type` **MUST NOT** be set. For failed exports, `error.type` **MUST** contain the failure cause. * @@ -1736,7 +2362,7 @@ export const METRIC_OTEL_SDK_EXPORTER_METRIC_DATA_POINT_INFLIGHT = 'otel.sdk.exp export const METRIC_OTEL_SDK_EXPORTER_OPERATION_DURATION = 'otel.sdk.exporter.operation.duration' as const; /** - * The number of spans for which the export has finished, either successful or failed + * The number of spans for which the export has finished, either successful or failed. * * @note For successful exports, `error.type` **MUST NOT** be set. For failed exports, `error.type` **MUST** contain the failure cause. * For exporters with partial success semantics (e.g. OTLP with `rejected_spans`), rejected spans **MUST** count as failed and only non-rejected spans count as success. @@ -1756,7 +2382,7 @@ export const METRIC_OTEL_SDK_EXPORTER_SPAN_EXPORTED = 'otel.sdk.exporter.span.ex export const METRIC_OTEL_SDK_EXPORTER_SPAN_EXPORTED_COUNT = 'otel.sdk.exporter.span.exported.count' as const; /** - * The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed) + * The number of spans which were passed to the exporter, but that have not been exported yet (neither successful, nor failed). * * @note For successful exports, `error.type` **MUST NOT** be set. For failed exports, `error.type` **MUST** contain the failure cause. * @@ -1774,7 +2400,7 @@ export const METRIC_OTEL_SDK_EXPORTER_SPAN_INFLIGHT = 'otel.sdk.exporter.span.in export const METRIC_OTEL_SDK_EXPORTER_SPAN_INFLIGHT_COUNT = 'otel.sdk.exporter.span.inflight.count' as const; /** - * The number of logs submitted to enabled SDK Loggers + * The number of logs submitted to enabled SDK Loggers. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -1791,7 +2417,7 @@ export const METRIC_OTEL_SDK_LOG_CREATED = 'otel.sdk.log.created' as const; export const METRIC_OTEL_SDK_METRIC_READER_COLLECTION_DURATION = 'otel.sdk.metric_reader.collection.duration' as const; /** - * The number of log records for which the processing has finished, either successful or failed + * The number of log records for which the processing has finished, either successful or failed. * * @note For successful processing, `error.type` **MUST NOT** be set. For failed processing, `error.type` **MUST** contain the failure cause. * For the SDK Simple and Batching Log Record Processor a log record is considered to be processed already when it has been submitted to the exporter, @@ -1802,7 +2428,7 @@ export const METRIC_OTEL_SDK_METRIC_READER_COLLECTION_DURATION = 'otel.sdk.metri export const METRIC_OTEL_SDK_PROCESSOR_LOG_PROCESSED = 'otel.sdk.processor.log.processed' as const; /** - * The maximum number of log records the queue of a given instance of an SDK Log Record processor can hold + * The maximum number of log records the queue of a given instance of an SDK Log Record processor can hold. * * @note Only applies to Log Record processors which use a queue, e.g. the SDK Batching Log Record Processor. * @@ -1811,7 +2437,7 @@ export const METRIC_OTEL_SDK_PROCESSOR_LOG_PROCESSED = 'otel.sdk.processor.log.p export const METRIC_OTEL_SDK_PROCESSOR_LOG_QUEUE_CAPACITY = 'otel.sdk.processor.log.queue.capacity' as const; /** - * The number of log records in the queue of a given instance of an SDK log processor + * The number of log records in the queue of a given instance of an SDK log processor. * * @note Only applies to log record processors which use a queue, e.g. the SDK Batching Log Record Processor. * @@ -1820,7 +2446,7 @@ export const METRIC_OTEL_SDK_PROCESSOR_LOG_QUEUE_CAPACITY = 'otel.sdk.processor. export const METRIC_OTEL_SDK_PROCESSOR_LOG_QUEUE_SIZE = 'otel.sdk.processor.log.queue.size' as const; /** - * The number of spans for which the processing has finished, either successful or failed + * The number of spans for which the processing has finished, either successful or failed. * * @note For successful processing, `error.type` **MUST NOT** be set. For failed processing, `error.type` **MUST** contain the failure cause. * For the SDK Simple and Batching Span Processor a span is considered to be processed already when it has been submitted to the exporter, not when the corresponding export call has finished. @@ -1839,7 +2465,7 @@ export const METRIC_OTEL_SDK_PROCESSOR_SPAN_PROCESSED = 'otel.sdk.processor.span export const METRIC_OTEL_SDK_PROCESSOR_SPAN_PROCESSED_COUNT = 'otel.sdk.processor.span.processed.count' as const; /** - * The maximum number of spans the queue of a given instance of an SDK span processor can hold + * The maximum number of spans the queue of a given instance of an SDK span processor can hold. * * @note Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor. * @@ -1848,7 +2474,7 @@ export const METRIC_OTEL_SDK_PROCESSOR_SPAN_PROCESSED_COUNT = 'otel.sdk.processo export const METRIC_OTEL_SDK_PROCESSOR_SPAN_QUEUE_CAPACITY = 'otel.sdk.processor.span.queue.capacity' as const; /** - * The number of spans in the queue of a given instance of an SDK span processor + * The number of spans in the queue of a given instance of an SDK span processor. * * @note Only applies to span processors which use a queue, e.g. the SDK Batching Span Processor. * @@ -1875,7 +2501,7 @@ export const METRIC_OTEL_SDK_SPAN_ENDED = 'otel.sdk.span.ended' as const; export const METRIC_OTEL_SDK_SPAN_ENDED_COUNT = 'otel.sdk.span.ended.count' as const; /** - * The number of created spans with `recording=true` for which the end operation has not been called yet + * The number of created spans with `recording=true` for which the end operation has not been called yet. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -1891,7 +2517,7 @@ export const METRIC_OTEL_SDK_SPAN_LIVE = 'otel.sdk.span.live' as const; export const METRIC_OTEL_SDK_SPAN_LIVE_COUNT = 'otel.sdk.span.live.count' as const; /** - * The number of created spans + * The number of created spans. * * @note Implementations **MUST** record this metric for all spans, even for non-recording ones. * @@ -2091,7 +2717,7 @@ export const METRIC_RPC_SERVER_RESPONSES_PER_RPC = 'rpc.server.responses_per_rpc export const METRIC_SYSTEM_CPU_FREQUENCY = 'system.cpu.frequency' as const; /** - * Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking + * Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking. * * @note Calculated by multiplying the number of sockets by the number of cores per socket, and then by the number of threads per core * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. @@ -2099,7 +2725,7 @@ export const METRIC_SYSTEM_CPU_FREQUENCY = 'system.cpu.frequency' as const; export const METRIC_SYSTEM_CPU_LOGICAL_COUNT = 'system.cpu.logical.count' as const; /** - * Reports the number of actual physical processor cores on the hardware + * Reports the number of actual physical processor cores on the hardware. * * @note Calculated by multiplying the number of sockets by the number of cores per socket * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. @@ -2107,7 +2733,7 @@ export const METRIC_SYSTEM_CPU_LOGICAL_COUNT = 'system.cpu.logical.count' as con export const METRIC_SYSTEM_CPU_PHYSICAL_COUNT = 'system.cpu.physical.count' as const; /** - * Seconds each logical CPU spent on each mode + * Seconds each logical CPU spent on each mode. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -2121,12 +2747,14 @@ export const METRIC_SYSTEM_CPU_TIME = 'system.cpu.time' as const; export const METRIC_SYSTEM_CPU_UTILIZATION = 'system.cpu.utilization' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_DISK_IO = 'system.disk.io' as const; /** - * Time disk spent activated + * Time disk spent activated. * * @note The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as: * @@ -2140,19 +2768,21 @@ export const METRIC_SYSTEM_DISK_IO = 'system.disk.io' as const; export const METRIC_SYSTEM_DISK_IO_TIME = 'system.disk.io_time' as const; /** - * The total storage capacity of the disk + * The total storage capacity of the disk. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_DISK_LIMIT = 'system.disk.limit' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_DISK_MERGED = 'system.disk.merged' as const; /** - * Sum of the time each operation took to complete + * Sum of the time each operation took to complete. * * @note Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as: * @@ -2164,12 +2794,14 @@ export const METRIC_SYSTEM_DISK_MERGED = 'system.disk.merged' as const; export const METRIC_SYSTEM_DISK_OPERATION_TIME = 'system.disk.operation_time' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_DISK_OPERATIONS = 'system.disk.operations' as const; /** - * The total storage capacity of the filesystem + * The total storage capacity of the filesystem. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -2186,12 +2818,14 @@ export const METRIC_SYSTEM_FILESYSTEM_LIMIT = 'system.filesystem.limit' as const export const METRIC_SYSTEM_FILESYSTEM_USAGE = 'system.filesystem.usage' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_FILESYSTEM_UTILIZATION = 'system.filesystem.utilization' as const; /** - * An estimate of how much memory is available for starting new applications, without causing swapping + * An estimate of how much memory is available for starting new applications, without causing swapping. * * @note This is an alternative to `system.memory.usage` metric with `state=free`. * Linux starting from 3.14 exports "available" memory. It takes "free" memory as a baseline, and then factors in kernel-specific values. @@ -2215,9 +2849,7 @@ export const METRIC_SYSTEM_LINUX_MEMORY_AVAILABLE = 'system.linux.memory.availab export const METRIC_SYSTEM_LINUX_MEMORY_SLAB_USAGE = 'system.linux.memory.slab.usage' as const; /** - * Total memory available in the system. - * - * @note Its value **SHOULD** equal the sum of `system.memory.state` over all states. + * Total virtual memory available in the system. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -2236,25 +2868,26 @@ export const METRIC_SYSTEM_MEMORY_SHARED = 'system.memory.shared' as const; /** * Reports memory in use by state. * - * @note The sum over all `system.memory.state` values **SHOULD** equal the total memory - * available on the system, that is `system.memory.limit`. - * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_MEMORY_USAGE = 'system.memory.usage' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_MEMORY_UTILIZATION = 'system.memory.utilization' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_NETWORK_CONNECTION_COUNT = 'system.network.connection.count' as const; /** - * Deprecated, use `system.network.connection.count` instead + * Deprecated, use `system.network.connection.count` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * @@ -2263,79 +2896,89 @@ export const METRIC_SYSTEM_NETWORK_CONNECTION_COUNT = 'system.network.connection export const METRIC_SYSTEM_NETWORK_CONNECTIONS = 'system.network.connections' as const; /** - * Count of packets that are dropped or discarded even though there was no error + * Count of network errors detected. * * @note Measured as: * - * - Linux: the `drop` column in `/proc/dev/net` ([source](https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html)) - * - Windows: [`InDiscards`/`OutDiscards`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2) - * from [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2) + * - 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)). + * - Windows: [`InErrors`/`OutErrors`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2) + * from [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2). * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const METRIC_SYSTEM_NETWORK_DROPPED = 'system.network.dropped' as const; +export const METRIC_SYSTEM_NETWORK_ERRORS = 'system.network.errors' as const; /** - * Count of network errors detected - * - * @note Measured as: - * - * - Linux: the `errs` column in `/proc/dev/net` ([source](https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html)). - * - Windows: [`InErrors`/`OutErrors`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2) - * from [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2). + * TODO. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const METRIC_SYSTEM_NETWORK_ERRORS = 'system.network.errors' as const; +export const METRIC_SYSTEM_NETWORK_IO = 'system.network.io' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const METRIC_SYSTEM_NETWORK_IO = 'system.network.io' as const; +export const METRIC_SYSTEM_NETWORK_PACKET_COUNT = 'system.network.packet.count' as const; /** + * Count of packets that are dropped or discarded even though there was no error. + * + * @note Measured as: + * + * - Linux: the `drop` column in `/proc/net/dev` ([source](https://web.archive.org/web/20180321091318/http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html)) + * - Windows: [`InDiscards`/`OutDiscards`](https://docs.microsoft.com/windows/win32/api/netioapi/ns-netioapi-mib_if_row2) + * from [`GetIfEntry2`](https://docs.microsoft.com/windows/win32/api/netioapi/nf-netioapi-getifentry2) + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ -export const METRIC_SYSTEM_NETWORK_PACKETS = 'system.network.packets' as const; +export const METRIC_SYSTEM_NETWORK_PACKET_DROPPED = 'system.network.packet.dropped' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_PAGING_FAULTS = 'system.paging.faults' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_PAGING_OPERATIONS = 'system.paging.operations' as const; /** - * Unix swap or windows pagefile usage + * Unix swap or windows pagefile usage. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_PAGING_USAGE = 'system.paging.usage' as const; /** + * TODO. + * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_PAGING_UTILIZATION = 'system.paging.utilization' as const; /** - * Total number of processes in each state + * Total number of processes in each state. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_PROCESS_COUNT = 'system.process.count' as const; /** - * Total number of processes created over uptime of the host + * Total number of processes created over uptime of the host. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_SYSTEM_PROCESS_CREATED = 'system.process.created' as const; /** - * The time the system has been running + * The time the system has been running. * * @note Instrumentations **SHOULD** use a gauge with type `double` and measure uptime in seconds as a floating point number with the highest precision available. * The actual accuracy would depend on the instrumentation and operating system. @@ -2390,7 +3033,7 @@ export const METRIC_V8JS_MEMORY_HEAP_LIMIT = 'v8js.memory.heap.limit' as const; export const METRIC_V8JS_MEMORY_HEAP_USED = 'v8js.memory.heap.used' as const; /** - * The number of changes (pull requests/merge requests/changelists) in a repository, categorized by their state (e.g. open or merged) + * The number of changes (pull requests/merge requests/changelists) in a repository, categorized by their state (e.g. open or merged). * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -2418,7 +3061,7 @@ export const METRIC_VCS_CHANGE_TIME_TO_APPROVAL = 'vcs.change.time_to_approval' export const METRIC_VCS_CHANGE_TIME_TO_MERGE = 'vcs.change.time_to_merge' as const; /** - * The number of unique contributors to a repository + * The number of unique contributors to a repository. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ @@ -2443,7 +3086,7 @@ export const METRIC_VCS_REF_COUNT = 'vcs.ref.count' as const; export const METRIC_VCS_REF_LINES_DELTA = 'vcs.ref.lines_delta' as const; /** - * The number of revisions (commits) a ref (branch) is ahead/behind the branch from the `vcs.ref.base.name` attribute + * The number of revisions (commits) a ref (branch) is ahead/behind the branch from the `vcs.ref.base.name` attribute. * * @note This metric should be reported for each `vcs.revision_delta.direction` value. For example if branch `a` is 3 commits behind and 2 commits ahead of `trunk`, * instrumentation **SHOULD** report two measurements: 3 and 2 (both positive numbers) and `vcs.ref.base.name` is set to `trunk`. @@ -2453,7 +3096,7 @@ export const METRIC_VCS_REF_LINES_DELTA = 'vcs.ref.lines_delta' as const; export const METRIC_VCS_REF_REVISIONS_DELTA = 'vcs.ref.revisions_delta' as const; /** - * Time a ref (branch) created from the default branch (trunk) has existed. The `ref.type` attribute will always be `branch` + * Time a ref (branch) created from the default branch (trunk) has existed. The `ref.type` attribute will always be `branch`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ diff --git a/semantic-conventions/src/stable_attributes.ts b/semantic-conventions/src/stable_attributes.ts index 85d905cda95..20d9829985a 100644 --- a/semantic-conventions/src/stable_attributes.ts +++ b/semantic-conventions/src/stable_attributes.ts @@ -19,7 +19,7 @@ //---------------------------------------------------------------------------------------------------------- /** - * ASP.NET Core exception middleware handling result + * ASP.NET Core exception middleware handling result. * * @example handled * @example unhandled @@ -142,6 +142,13 @@ export const ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE = "failure" as const; */ export const ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS = "success" as const; +/** + * A value that indicates whether the user is authenticated. + * + * @example true + */ +export const ATTR_ASPNETCORE_USER_IS_AUTHENTICATED = 'aspnetcore.user.is_authenticated' as const; + /** * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. *