UNPKG

@opentelemetry/semantic-conventions

Version:
977 lines 200 kB
/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ //---------------------------------------------------------------------------------------------------------- // DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates/register/stable/metrics.ts.j2 //---------------------------------------------------------------------------------------------------------- /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * [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`. */ export const METRIC_AZURE_COSMOSDB_CLIENT_OPERATION_REQUEST_CHARGE = 'azure.cosmosdb.client.operation.request_charge'; /** * The number of pipeline runs currently active in the system by state. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CICD_PIPELINE_RUN_ACTIVE = 'cicd.pipeline.run.active'; /** * Duration of a pipeline run grouped by pipeline, state and result. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CICD_PIPELINE_RUN_DURATION = 'cicd.pipeline.run.duration'; /** * The number of errors encountered in pipeline runs (eg. compile, test failures). * * @note There might be errors in a pipeline run that are non fatal (eg. they are suppressed) or in a parallel stage multiple stages could have a fatal error. * This means that this error count might not be the same as the count of metric `cicd.pipeline.run.duration` with run result `failure`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CICD_PIPELINE_RUN_ERRORS = 'cicd.pipeline.run.errors'; /** * The number of errors in a component of the CICD system (eg. controller, scheduler, agent). * * @note Errors in pipeline run execution are explicitly excluded. Ie a test failure is not counted in this metric. * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CICD_SYSTEM_ERRORS = 'cicd.system.errors'; /** * The number of workers on the CICD system by state. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CICD_WORKER_COUNT = 'cicd.worker.count'; /** * Total CPU time consumed. * * @note Total CPU time consumed by the specific container on all available CPU cores * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CONTAINER_CPU_TIME = 'container.cpu.time'; /** * 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 * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CONTAINER_CPU_USAGE = 'container.cpu.usage'; /** * Disk bytes for the container. * * @note The total number of bytes read/written successfully (aggregated from all disks). * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CONTAINER_DISK_IO = 'container.disk.io'; /** * 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'; /** * 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'; /** * 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'; /** * Container memory available. * * @note Available memory for use. This is defined as the memory limit - workingSetBytes. If memory limit is undefined, the available bytes is omitted. * In general, this metric can be derived from [cadvisor](https://github.com/google/cadvisor/blob/v0.53.0/docs/storage/prometheus.md#prometheus-container-metrics) and by subtracting the `container_memory_working_set_bytes` metric from the `container_spec_memory_limit_bytes` metric. * In K8s, this metric is derived from the [MemoryStats.AvailableBytes](https://pkg.go.dev/k8s.io/kubelet@v0.34.0/pkg/apis/stats/v1alpha1#MemoryStats) field of the [PodStats.Memory](https://pkg.go.dev/k8s.io/kubelet@v0.34.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_CONTAINER_MEMORY_AVAILABLE = 'container.memory.available'; /** * Container memory paging faults. * * @note In general, this metric can be derived from [cadvisor](https://github.com/google/cadvisor/blob/v0.53.0/docs/storage/prometheus.md#prometheus-container-metrics) and specifically the `container_memory_failures_total{failure_type=pgfault, scope=container}` and `container_memory_failures_total{failure_type=pgmajfault, scope=container}`metric. * In K8s, this metric is derived from the [MemoryStats.PageFaults](https://pkg.go.dev/k8s.io/kubelet@v0.34.0/pkg/apis/stats/v1alpha1#MemoryStats) and [MemoryStats.MajorPageFaults](https://pkg.go.dev/k8s.io/kubelet@v0.34.0/pkg/apis/stats/v1alpha1#MemoryStats) field of the [PodStats.Memory](https://pkg.go.dev/k8s.io/kubelet@v0.34.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_CONTAINER_MEMORY_PAGING_FAULTS = 'container.memory.paging.faults'; /** * Container memory RSS. * * @note In general, this metric can be derived from [cadvisor](https://github.com/google/cadvisor/blob/v0.53.0/docs/storage/prometheus.md#prometheus-container-metrics) and specifically the `container_memory_rss` metric. * In K8s, this metric is derived from the [MemoryStats.RSSBytes](https://pkg.go.dev/k8s.io/kubelet@v0.34.0/pkg/apis/stats/v1alpha1#MemoryStats) field of the [PodStats.Memory](https://pkg.go.dev/k8s.io/kubelet@v0.34.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_CONTAINER_MEMORY_RSS = 'container.memory.rss'; /** * Memory usage of the container. * * @note Memory usage of the container. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CONTAINER_MEMORY_USAGE = 'container.memory.usage'; /** * Container memory working set. * * @note In general, this metric can be derived from [cadvisor](https://github.com/google/cadvisor/blob/v0.53.0/docs/storage/prometheus.md#prometheus-container-metrics) and specifically the `container_memory_working_set_bytes` metric. * In K8s, this metric is derived from the [MemoryStats.WorkingSetBytes](https://pkg.go.dev/k8s.io/kubelet@v0.34.0/pkg/apis/stats/v1alpha1#MemoryStats) field of the [PodStats.Memory](https://pkg.go.dev/k8s.io/kubelet@v0.34.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_CONTAINER_MEMORY_WORKING_SET = 'container.memory.working_set'; /** * Network bytes for the container. * * @note The number of bytes sent/received on all network interfaces by the container. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CONTAINER_NETWORK_IO = 'container.network.io'; /** * 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CONTAINER_UPTIME = 'container.uptime'; /** * Deprecated. Use `system.cpu.frequency` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `system.cpu.frequency`. */ export const METRIC_CPU_FREQUENCY = 'cpu.frequency'; /** * Deprecated. Use `system.cpu.time` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `system.cpu.time`. */ export const METRIC_CPU_TIME = 'cpu.time'; /** * Deprecated. Use `system.cpu.utilization` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `system.cpu.utilization`. */ export const METRIC_CPU_UTILIZATION = 'cpu.utilization'; /** * The total number of objects collected inside a generation since interpreter start. * * @note This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats). * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CPYTHON_GC_COLLECTED_OBJECTS = 'cpython.gc.collected_objects'; /** * The number of times a generation was collected since interpreter start. * * @note This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats). * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CPYTHON_GC_COLLECTIONS = 'cpython.gc.collections'; /** * The total number of objects which were found to be uncollectable inside a generation since interpreter start. * * @note This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats). * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_CPYTHON_GC_UNCOLLECTABLE_OBJECTS = 'cpython.gc.uncollectable_objects'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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`. */ export const METRIC_DB_CLIENT_CONNECTION_WAIT_TIME = 'db.client.connection.wait_time'; /** * Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.create_time` with unit `s`. */ export const METRIC_DB_CLIENT_CONNECTIONS_CREATE_TIME = 'db.client.connections.create_time'; /** * Deprecated, use `db.client.connection.idle.max` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.idle.max`. */ export const METRIC_DB_CLIENT_CONNECTIONS_IDLE_MAX = 'db.client.connections.idle.max'; /** * Deprecated, use `db.client.connection.idle.min` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.idle.min`. */ export const METRIC_DB_CLIENT_CONNECTIONS_IDLE_MIN = 'db.client.connections.idle.min'; /** * Deprecated, use `db.client.connection.max` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.max`. */ export const METRIC_DB_CLIENT_CONNECTIONS_MAX = 'db.client.connections.max'; /** * Deprecated, use `db.client.connection.pending_requests` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.pending_requests`. */ export const METRIC_DB_CLIENT_CONNECTIONS_PENDING_REQUESTS = 'db.client.connections.pending_requests'; /** * Deprecated, use `db.client.connection.timeouts` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.timeouts`. */ export const METRIC_DB_CLIENT_CONNECTIONS_TIMEOUTS = 'db.client.connections.timeouts'; /** * Deprecated, use `db.client.connection.count` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.count`. */ export const METRIC_DB_CLIENT_CONNECTIONS_USAGE = 'db.client.connections.usage'; /** * Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.use_time` with unit `s`. */ export const METRIC_DB_CLIENT_CONNECTIONS_USE_TIME = 'db.client.connections.use_time'; /** * Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `db.client.connection.wait_time` with unit `s`. */ export const METRIC_DB_CLIENT_CONNECTIONS_WAIT_TIME = 'db.client.connections.wait_time'; /** * Deprecated, use `azure.cosmosdb.client.active_instance.count` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `azure.cosmosdb.client.active_instance.count`. */ export const METRIC_DB_CLIENT_COSMOSDB_ACTIVE_INSTANCE_COUNT = 'db.client.cosmosdb.active_instance.count'; /** * Deprecated, use `azure.cosmosdb.client.operation.request_charge` instead. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `azure.cosmosdb.client.operation.request_charge`. */ export const METRIC_DB_CLIENT_COSMOSDB_OPERATION_REQUEST_CHARGE = 'db.client.cosmosdb.operation.request_charge'; /** * The actual number of records returned by the database operation. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DB_CLIENT_RESPONSE_RETURNED_ROWS = 'db.client.response.returned_rows'; /** * Measures the time taken to perform a DNS lookup. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_DNS_LOOKUP_DURATION = 'dns.lookup.duration'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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`. */ export const METRIC_GEN_AI_SERVER_TIME_TO_FIRST_TOKEN = 'gen_ai.server.time_to_first_token'; /** * Heap size target percentage configured by the user, otherwise 100. * * @note The value range is [0.0,100.0]. Computed from `/gc/gogc:percent`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_CONFIG_GOGC = 'go.config.gogc'; /** * Count of live goroutines. * * @note Computed from `/sched/goroutines:goroutines`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_GOROUTINE_COUNT = 'go.goroutine.count'; /** * Memory allocated to the heap by the application. * * @note Computed from `/gc/heap/allocs:bytes`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_MEMORY_ALLOCATED = 'go.memory.allocated'; /** * Count of allocations to the heap by the application. * * @note Computed from `/gc/heap/allocs:objects`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_MEMORY_ALLOCATIONS = 'go.memory.allocations'; /** * Heap size target for the end of the GC cycle. * * @note Computed from `/gc/heap/goal:bytes`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_MEMORY_GC_GOAL = 'go.memory.gc.goal'; /** * Go runtime memory limit configured by the user, if a limit exists. * * @note Computed from `/gc/gomemlimit:bytes`. This metric is excluded if the limit obtained from the Go runtime is math.MaxInt64. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_MEMORY_LIMIT = 'go.memory.limit'; /** * Memory used by the Go runtime. * * @note Computed from `(/memory/classes/total:bytes - /memory/classes/heap/released:bytes)`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_MEMORY_USED = 'go.memory.used'; /** * The number of OS threads that can execute user-level Go code simultaneously. * * @note Computed from `/sched/gomaxprocs:threads`. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_PROCESSOR_LIMIT = 'go.processor.limit'; /** * The time goroutines have spent in the scheduler in a runnable state before actually running. * * @note Computed from `/sched/latencies:seconds`. Bucket boundaries are provided by the runtime, and are subject to change. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_GO_SCHEDULE_DURATION = 'go.schedule.duration'; /** * Number of active HTTP requests. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_CLIENT_ACTIVE_REQUESTS = 'http.client.active_requests'; /** * The duration of the successfully established outbound HTTP connections. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_CLIENT_CONNECTION_DURATION = 'http.client.connection.duration'; /** * Number of outbound HTTP connections that are currently active or idle on the client. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_CLIENT_OPEN_CONNECTIONS = 'http.client.open_connections'; /** * Size of HTTP client request bodies. * * @note 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_CLIENT_REQUEST_BODY_SIZE = 'http.client.request.body.size'; /** * Size of HTTP client response bodies. * * @note 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_CLIENT_RESPONSE_BODY_SIZE = 'http.client.response.body.size'; /** * Number of active HTTP server requests. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_SERVER_ACTIVE_REQUESTS = 'http.server.active_requests'; /** * Size of HTTP server request bodies. * * @note 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_SERVER_REQUEST_BODY_SIZE = 'http.server.request.body.size'; /** * Size of HTTP server response bodies. * * @note 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HTTP_SERVER_RESPONSE_BODY_SIZE = 'http.server.response.body.size'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_HOST_ENERGY = 'hw.host.energy'; /** * 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'; /** * 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. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_HOST_POWER = 'hw.host.power'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * 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'; /** * Instantaneous power consumed by the component. * * @note It is recommended to report `hw.energy` instead of `hw.power` when possible. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export const METRIC_HW_POWER = 'hw.power'; /** * Maximum power output of the power supply. * * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry