From 3af0ab1f08eca00cef7c9d9e4130417ffe18c4e0 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 20 Apr 2024 16:33:58 -0600 Subject: [PATCH 01/57] single file --- .../README.md | 7 +- .../docs.config | 4 - .../generate.sh | 14 +- .../include/logs.hrl | 11 - .../include/resource.hrl | 323 ---- .../include/trace.hrl | 509 ------ .../semantic_conventions/logs.ex | 38 - .../semantic_conventions/resource.ex | 1005 ---------- .../semantic_conventions/trace.ex | 1612 ----------------- .../mix.exs | 49 +- .../mix.lock | 6 + ...opentelemetry_semantic_conventions.app.src | 2 +- .../templates/semantic_conventions.ex.j2 | 43 - 13 files changed, 63 insertions(+), 3560 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/docs.config delete mode 100644 apps/opentelemetry_semantic_conventions/include/logs.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/resource.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/trace.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex delete mode 100644 apps/opentelemetry_semantic_conventions/templates/semantic_conventions.ex.j2 diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 5929b02f..600b9284 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -1,13 +1,12 @@ -Opentelemetry Semantic Conventions -===== +# Opentelemetry Semantic Conventions Auto-generated constants that represent the [OpenTelemetry Semantic -Conventions](https://github.com/open-telemetry/opentelemetry-specification/tree/main/semantic_conventions). +Conventions](https://github.com/open-telemetry/semantic-conventions). ## How to Use For Erlang include the semantic conventions header for the particular kind you -need (`trace`, `resource`, `logs`): +need (`trace`, `resource`, `logs`, `metrics`): ``` -include_lib("opentelemetry_semantic_conventions/include/trace.hrl"). diff --git a/apps/opentelemetry_semantic_conventions/docs.config b/apps/opentelemetry_semantic_conventions/docs.config deleted file mode 100644 index 0ed954f0..00000000 --- a/apps/opentelemetry_semantic_conventions/docs.config +++ /dev/null @@ -1,4 +0,0 @@ -{source_url, <<"https://github.com/open-telemetry/opentelemetry-erlang">>}. -{extras, [<<"apps/opentelemetry_semantic_conventions/README.md">>, <<"apps/opentelemetry_semantic_conventions/LICENSE">>, <<"VERSIONING.md">>]}. -{main, <<"readme">>}. -{proglang, erlang}. diff --git a/apps/opentelemetry_semantic_conventions/generate.sh b/apps/opentelemetry_semantic_conventions/generate.sh index da4568ba..a0df414c 100755 --- a/apps/opentelemetry_semantic_conventions/generate.sh +++ b/apps/opentelemetry_semantic_conventions/generate.sh @@ -2,8 +2,8 @@ set -ex -semconv_version='1.13.0' -docker_img_vsn='0.14.0' +semconv_version='1.25.0' +docker_img_vsn='0.24.0' schema_uri=https://opentelemetry.io/schemas/$semconv_version tmp_dir=$(mktemp -d) @@ -15,9 +15,13 @@ cd $tmp_dir git checkout "v${semconv_version}" -for kind in trace resource logs; do +ls -al + +for kind in trace resource logs metrics; do + echo "generating ${kind}" + echo $tmp_dir docker run --rm \ - -v "${tmp_dir}/semantic_conventions/${kind}":/source \ + -v "${tmp_dir}/semantic-conventions/model/${kind}":/source \ -v "${cwd}/templates":/templates \ -v "${cwd}/include":/output \ otel/semconvgen:${docker_img_vsn} \ @@ -28,7 +32,7 @@ for kind in trace resource logs; do -Dschema_uri=${schema_uri} docker run --rm \ - -v "${tmp_dir}/semantic_conventions/${kind}":/source \ + -v "${tmp_dir}/semantic-conventions/model/${kind}":/source \ -v "${cwd}/templates":/templates \ -v "${cwd}/lib/open_telemetry/semantic_conventions":/output \ otel/semconvgen:${docker_img_vsn} \ diff --git a/apps/opentelemetry_semantic_conventions/include/logs.hrl b/apps/opentelemetry_semantic_conventions/include/logs.hrl deleted file mode 100644 index 2f9a6cce..00000000 --- a/apps/opentelemetry_semantic_conventions/include/logs.hrl +++ /dev/null @@ -1,11 +0,0 @@ -%% The schema url for telemetry resources --define(LOGS_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). - -%% The name identifies the event --define(EVENT_NAME, 'event.name'). - -%% The domain identifies the context in which an event happened. An event name is unique only within a domain -%% An `event.name` is supposed to be unique only in the context of an -%% `event.domain`, so this allows for two events in different domains to -%% have same `event.name`, yet be unrelated events --define(EVENT_DOMAIN, 'event.domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/resource.hrl b/apps/opentelemetry_semantic_conventions/include/resource.hrl deleted file mode 100644 index 171e44b1..00000000 --- a/apps/opentelemetry_semantic_conventions/include/resource.hrl +++ /dev/null @@ -1,323 +0,0 @@ -%% The schema url for telemetry resources --define(RESOURCE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). - -%% Array of brand name and version separated by a space -%% This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (navigator.userAgentData.brands) --define(BROWSER_BRANDS, 'browser.brands'). - -%% The platform on which the browser is running -%% 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 --define(BROWSER_PLATFORM, 'browser.platform'). - -%% Full user-agent string provided by the browser -%% The user-agent value SHOULD be provided only from browsers that do not have a mechanism to retrieve brands and platform individually from the User-Agent Client Hints API. To retrieve the value, the legacy `navigator.userAgent` API can be used --define(BROWSER_USER_AGENT, 'browser.user_agent'). - -%% Name of the cloud provider --define(CLOUD_PROVIDER, 'cloud.provider'). - -%% The cloud account ID the resource is assigned to --define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). - -%% The geographical region the resource is running -%% 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/en-us/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://intl.cloud.tencent.com/document/product/213/6091) --define(CLOUD_REGION, 'cloud.region'). - -%% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running -%% Availability zones are called "zones" on Alibaba Cloud and Google Cloud --define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). - -%% The cloud platform in use -%% The prefix of the service SHOULD match the one specified in `cloud.provider` --define(CLOUD_PLATFORM, 'cloud.platform'). - -%% The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html) --define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). - -%% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) --define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). - -%% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task --define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). - -%% The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) --define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). - -%% The task definition family this task definition is a member of --define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). - -%% The revision for this task definition --define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). - -%% The ARN of an EKS cluster --define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). - -%% The name(s) of the AWS log group(s) an application is writing to -%% 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 --define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). - -%% The Amazon Resource Name(s) (ARN) of the AWS log group(s) -%% See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format) --define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). - -%% The name(s) of the AWS log stream(s) an application is writing to --define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). - -%% The ARN(s) of the AWS log stream(s) -%% 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 --define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). - -%% Container name used by container runtime --define(CONTAINER_NAME, 'container.name'). - -%% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated --define(CONTAINER_ID, 'container.id'). - -%% The container runtime managing this container --define(CONTAINER_RUNTIME, 'container.runtime'). - -%% Name of the image the container was built on --define(CONTAINER_IMAGE_NAME, 'container.image.name'). - -%% Container image tag --define(CONTAINER_IMAGE_TAG, 'container.image.tag'). - -%% Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier) --define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). - -%% A unique identifier representing the device -%% The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 --define(DEVICE_ID, 'device.id'). - -%% The model identifier for the device -%% 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 --define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). - -%% The marketing name for the device model -%% It's recommended this value represents a human readable version of the device model rather than a machine readable alternative --define(DEVICE_MODEL_NAME, 'device.model.name'). - -%% The name of the device manufacturer -%% The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple` --define(DEVICE_MANUFACTURER, 'device.manufacturer'). - -%% The name of the single function that this runtime instance executes -%% 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`](../../trace/semantic_conventions/span-general.md#source-code-attributes) -%% span attributes). -%% -%% 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 `faas.id` attribute) --define(FAAS_NAME, 'faas.name'). - -%% The unique ID of the single function that this runtime instance executes -%% On some cloud providers, it may not be possible to determine the full ID at startup, -%% so consider setting `faas.id` as a span attribute instead. -%% -%% The exact value to use for `faas.id` depends on the cloud provider: -%% -%% * **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 invokable 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://docs.microsoft.com/en-us/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 --define(FAAS_ID, 'faas.id'). - -%% The immutable version of the function being executed -%% Depending on the cloud provider and platform, use: -%% -%% * **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:** 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 --define(FAAS_VERSION, 'faas.version'). - -%% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version -%% * **AWS Lambda:** Use the (full) log stream name --define(FAAS_INSTANCE, 'faas.instance'). - -%% The amount of memory available to the serverless function in MiB -%% 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 --define(FAAS_MAX_MEMORY, 'faas.max_memory'). - -%% Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider --define(HOST_ID, 'host.id'). - -%% 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 --define(HOST_NAME, 'host.name'). - -%% Type of host. For Cloud, this must be the machine type --define(HOST_TYPE, 'host.type'). - -%% The CPU architecture the host system is running on --define(HOST_ARCH, 'host.arch'). - -%% Name of the VM image or OS install the host was instantiated from --define(HOST_IMAGE_NAME, 'host.image.name'). - -%% VM image ID. For Cloud, this value is from the provider --define(HOST_IMAGE_ID, 'host.image.id'). - -%% The version string of the VM image as defined in [Version Attributes](README.md#version-attributes) --define(HOST_IMAGE_VERSION, 'host.image.version'). - -%% The name of the cluster --define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). - -%% The name of the Node --define(K8S_NODE_NAME, 'k8s.node.name'). - -%% The UID of the Node --define(K8S_NODE_UID, 'k8s.node.uid'). - -%% The name of the namespace that the pod is running in --define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). - -%% The UID of the Pod --define(K8S_POD_UID, 'k8s.pod.uid'). - -%% The name of the Pod --define(K8S_POD_NAME, 'k8s.pod.name'). - -%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) --define(K8S_CONTAINER_NAME, 'k8s.container.name'). - -%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec --define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). - -%% The UID of the ReplicaSet --define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). - -%% The name of the ReplicaSet --define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). - -%% The UID of the Deployment --define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). - -%% The name of the Deployment --define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). - -%% The UID of the StatefulSet --define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). - -%% The name of the StatefulSet --define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). - -%% The UID of the DaemonSet --define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). - -%% The name of the DaemonSet --define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). - -%% The UID of the Job --define(K8S_JOB_UID, 'k8s.job.uid'). - -%% The name of the Job --define(K8S_JOB_NAME, 'k8s.job.name'). - -%% The UID of the CronJob --define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). - -%% The name of the CronJob --define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). - -%% The operating system type --define(OS_TYPE, 'os.type'). - -%% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands --define(OS_DESCRIPTION, 'os.description'). - -%% Human readable operating system name --define(OS_NAME, 'os.name'). - -%% The version string of the operating system as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes) --define(OS_VERSION, 'os.version'). - -%% Process identifier (PID) --define(PROCESS_PID, 'process.pid'). - -%% Parent Process identifier (PID) --define(PROCESS_PARENT_PID, 'process.parent_pid'). - -%% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` --define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). - -%% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` --define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). - -%% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` --define(PROCESS_COMMAND, 'process.command'). - -%% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead --define(PROCESS_COMMAND_LINE, 'process.command_line'). - -%% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` --define(PROCESS_COMMAND_ARGS, 'process.command_args'). - -%% The username of the user that owns the process --define(PROCESS_OWNER, 'process.owner'). - -%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler --define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). - -%% The version of the runtime of this process, as returned by the runtime without modification --define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). - -%% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment --define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). - -%% Logical name of the service -%% MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service` --define(SERVICE_NAME, 'service.name'). - -%% A namespace for `service.name` -%% A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace --define(SERVICE_NAMESPACE, 'service.namespace'). - -%% The string ID of the service instance -%% MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts). If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations) --define(SERVICE_INSTANCE_ID, 'service.instance.id'). - -%% The version string of the service API or implementation --define(SERVICE_VERSION, 'service.version'). - -%% The name of the telemetry SDK as defined above --define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). - -%% The language of the telemetry SDK --define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). - -%% The version string of the telemetry SDK --define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). - -%% The version string of the auto instrumentation agent, if used --define(TELEMETRY_AUTO_VERSION, 'telemetry.auto.version'). - -%% The name of the web engine --define(WEBENGINE_NAME, 'webengine.name'). - -%% The version of the web engine --define(WEBENGINE_VERSION, 'webengine.version'). - -%% Additional description of the web engine (e.g. detailed version and edition information) --define(WEBENGINE_DESCRIPTION, 'webengine.description'). diff --git a/apps/opentelemetry_semantic_conventions/include/trace.hrl b/apps/opentelemetry_semantic_conventions/include/trace.hrl deleted file mode 100644 index 3824a9eb..00000000 --- a/apps/opentelemetry_semantic_conventions/include/trace.hrl +++ /dev/null @@ -1,509 +0,0 @@ -%% The schema url for telemetry resources --define(TRACE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). - -%% 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) -%% This may be different from `faas.id` if an alias is involved --define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). - -%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event --define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). - -%% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened --define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). - -%% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses --define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). - -%% 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 --define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). - -%% 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) --define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). - -%% Parent-child Reference type -%% The causal relationship between a child Span and a parent Span --define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). - -%% An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers --define(DB_SYSTEM, 'db.system'). - -%% The connection string used to connect to the database. It is recommended to remove embedded credentials --define(DB_CONNECTION_STRING, 'db.connection_string'). - -%% Username for accessing the database --define(DB_USER, 'db.user'). - -%% The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect --define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). - -%% This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) -%% In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) --define(DB_NAME, 'db.name'). - -%% The database statement being executed -%% The value may be sanitized to exclude sensitive information --define(DB_STATEMENT, 'db.statement'). - -%% The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword -%% When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted --define(DB_OPERATION, 'db.operation'). - -%% Name of the database host -%% `net.peer.name` SHOULD NOT be set if capturing it would require an extra DNS lookup --define(NET_PEER_NAME, 'net.peer.name'). - -%% Logical remote port number --define(NET_PEER_PORT, 'net.peer.port'). - -%% Remote socket peer address: IPv4 or IPv6 for internet protocols, path for local communication, [etc](https://man7.org/linux/man-pages/man7/address_families.7.html) --define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). - -%% Remote socket peer port --define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). - -%% Protocol [address family](https://man7.org/linux/man-pages/man7/address_families.7.html) which is used for communication --define(NET_SOCK_FAMILY, 'net.sock.family'). - -%% Remote socket peer name --define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). - -%% Transport protocol used. See note below --define(NET_TRANSPORT, 'net.transport'). - -%% The Microsoft SQL Server [instance name](https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance -%% If setting a `db.mssql.instance_name`, `net.peer.port` is no longer required (but still recommended if non-standard) --define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). - -%% The fetch size used for paging, i.e. how many rows will be returned at once --define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). - -%% 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) --define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). - -%% The name of the primary table that the operation is acting upon, including the keyspace name (if applicable) -%% This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set --define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). - -%% Whether or not the query is idempotent --define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). - -%% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively --define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). - -%% The ID of the coordinating node for a query --define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). - -%% The data center of the coordinating node for a query --define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). - -%% The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute --define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). - -%% The collection being accessed within the database stated in `db.name` --define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). - -%% The name of the primary table that the operation is acting upon, including the database name (if applicable) -%% It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set --define(DB_SQL_TABLE, 'db.sql.table'). - -%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it --define(EXCEPTION_TYPE, 'exception.type'). - -%% The exception message --define(EXCEPTION_MESSAGE, 'exception.message'). - -%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG --define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). - -%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span -%% An exception is considered to have escaped (or left) the scope of a span, -%% if that span is ended while the exception is still logically "in flight". -%% This may be actually "in flight" in some languages (e.g. if the exception -%% is passed to a Context manager's `__exit__` method in Python) but will -%% usually be caught at the point of recording the exception in most languages. -%% -%% It is usually not possible to determine at the point where an exception is thrown -%% whether it will escape the scope of a span. -%% However, it is trivial to know that an exception -%% will escape, if one checks for an active exception just before ending the span, -%% as done in the [example above](#recording-an-exception). -%% -%% It follows that an exception may still escape the scope of the span -%% even if the `exception.escaped` attribute was not set or set to false, -%% since the event might have been recorded at a time where it was not -%% clear whether the exception will escape --define(EXCEPTION_ESCAPED, 'exception.escaped'). - -%% Type of the trigger which caused this function execution -%% For the server/consumer span on the incoming side, -%% `faas.trigger` MUST be set. -%% -%% Clients invoking FaaS instances usually cannot set `faas.trigger`, -%% since they would typically need to look in the payload to determine -%% the event type. If clients set it, it should be the same as the -%% trigger that corresponding incoming would have (i.e., this has -%% nothing to do with the underlying transport used to make the API -%% call to invoke the lambda, which is often HTTP) --define(FAAS_TRIGGER, 'faas.trigger'). - -%% The execution ID of the current function execution --define(FAAS_EXECUTION, 'faas.execution'). - -%% 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 --define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). - -%% Describes the type of the operation that was performed on the data --define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). - -%% 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) --define(FAAS_DOCUMENT_TIME, 'faas.document.time'). - -%% 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 --define(FAAS_DOCUMENT_NAME, 'faas.document.name'). - -%% HTTP request method --define(HTTP_METHOD, 'http.method'). - -%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) --define(HTTP_STATUS_CODE, 'http.status_code'). - -%% Kind of HTTP protocol used -%% If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed --define(HTTP_FLAVOR, 'http.flavor'). - -%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client --define(HTTP_USER_AGENT, 'http.user_agent'). - -%% 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 --define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). - -%% 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 --define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). - -%% The URI scheme identifying the used protocol --define(HTTP_SCHEME, 'http.scheme'). - -%% The full request target as passed in a HTTP request line or equivalent --define(HTTP_TARGET, 'http.target'). - -%% The matched route (path template in the format used by the respective server framework). See note below -%% 'http.route' MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it --define(HTTP_ROUTE, 'http.route'). - -%% The IP address of the original client behind all proxies, if known (e.g. from [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)) -%% This is not necessarily the same as `net.sock.peer.addr`, which would -%% identify the network-level peer, which may be a proxy. -%% -%% This attribute should be set when a source of information different -%% from the one used for `net.sock.peer.addr`, is available even if that other -%% source just confirms the same value as `net.sock.peer.addr`. -%% Rationale: For `net.sock.peer.addr`, one typically does not know if it -%% comes from a proxy, reverse proxy, or the actual client. Setting -%% `http.client_ip` when it's the same as `net.sock.peer.addr` means that -%% one is at least somewhat confident that the address is not that of -%% the closest proxy --define(HTTP_CLIENT_IP, 'http.client_ip'). - -%% Name of the local HTTP server that received the request -%% Determined by using the first of the following that applies -%% -%% - The [primary server name](#http-server-definitions) of the matched virtual host. MUST only -%% include host identifier. -%% - Host identifier of the [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) -%% if it's sent in absolute-form. -%% - Host identifier of the `Host` header -%% -%% SHOULD NOT be set if only IP address is available and capturing name would require a reverse DNS lookup --define(NET_HOST_NAME, 'net.host.name'). - -%% Port of the local HTTP server that received the request -%% Determined by using the first of the following that applies -%% -%% - Port identifier of the [primary server host](#http-server-definitions) of the matched virtual host. -%% - Port identifier of the [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) -%% if it's sent in absolute-form. -%% - Port identifier of the `Host` header --define(NET_HOST_PORT, 'net.host.port'). - -%% Local socket address. Useful in case of a multi-IP host --define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). - -%% Local socket port number --define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). - -%% Application layer protocol used. The value SHOULD be normalized to lowercase --define(NET_APP_PROTOCOL_NAME, 'net.app.protocol.name'). - -%% Version of the application layer protocol used. See note below -%% `net.app.protocol.version` refers to the version of the protocol used and might be different from the protocol client's version. If the HTTP client used has a version of `0.27.2`, but sends HTTP version `1.1`, this attribute should be set to `1.1` --define(NET_APP_PROTOCOL_VERSION, 'net.app.protocol.version'). - -%% The internet connection type currently being used by the host --define(NET_HOST_CONNECTION_TYPE, 'net.host.connection.type'). - -%% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection --define(NET_HOST_CONNECTION_SUBTYPE, 'net.host.connection.subtype'). - -%% The name of the mobile carrier --define(NET_HOST_CARRIER_NAME, 'net.host.carrier.name'). - -%% The mobile carrier country code --define(NET_HOST_CARRIER_MCC, 'net.host.carrier.mcc'). - -%% The mobile carrier network code --define(NET_HOST_CARRIER_MNC, 'net.host.carrier.mnc'). - -%% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network --define(NET_HOST_CARRIER_ICC, 'net.host.carrier.icc'). - -%% A string identifying the messaging system --define(MESSAGING_SYSTEM, 'messaging.system'). - -%% The message destination name. This might be equal to the span name but is required nevertheless --define(MESSAGING_DESTINATION, 'messaging.destination'). - -%% The kind of message destination --define(MESSAGING_DESTINATION_KIND, 'messaging.destination_kind'). - -%% A boolean that is true if the message destination is temporary --define(MESSAGING_TEMP_DESTINATION, 'messaging.temp_destination'). - -%% The name of the transport protocol --define(MESSAGING_PROTOCOL, 'messaging.protocol'). - -%% The version of the transport protocol --define(MESSAGING_PROTOCOL_VERSION, 'messaging.protocol_version'). - -%% Connection string --define(MESSAGING_URL, 'messaging.url'). - -%% A value used by the messaging system as an identifier for the message, represented as a string --define(MESSAGING_MESSAGE_ID, 'messaging.message_id'). - -%% The [conversation ID](#conversations) identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" --define(MESSAGING_CONVERSATION_ID, 'messaging.conversation_id'). - -%% The (uncompressed) size of the message payload in bytes. Also use this attribute if it is unknown whether the compressed or uncompressed payload size is reported --define(MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES, 'messaging.message_payload_size_bytes'). - -%% The compressed size of the message payload in bytes --define(MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES, 'messaging.message_payload_compressed_size_bytes'). - -%% 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) --define(FAAS_TIME, 'faas.time'). - -%% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) --define(FAAS_CRON, 'faas.cron'). - -%% A boolean that is true if the serverless function is executed for the first time (aka cold-start) --define(FAAS_COLDSTART, 'faas.coldstart'). - -%% The name of the invoked function -%% SHOULD be equal to the `faas.name` resource attribute of the invoked function --define(FAAS_INVOKED_NAME, 'faas.invoked_name'). - -%% The cloud provider of the invoked function -%% SHOULD be equal to the `cloud.provider` resource attribute of the invoked function --define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). - -%% The cloud region of the invoked function -%% SHOULD be equal to the `cloud.region` resource attribute of the invoked function --define(FAAS_INVOKED_REGION, 'faas.invoked_region'). - -%% The [`service.name`](../../resource/semantic_conventions/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any --define(PEER_SERVICE, 'peer.service'). - -%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system --define(ENDUSER_ID, 'enduser.id'). - -%% Actual/assumed role the client is making the request under extracted from token or application security context --define(ENDUSER_ROLE, 'enduser.role'). - -%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) --define(ENDUSER_SCOPE, 'enduser.scope'). - -%% Current "managed" thread ID (as opposed to OS thread ID) --define(THREAD_ID, 'thread.id'). - -%% Current thread name --define(THREAD_NAME, 'thread.name'). - -%% The method or function name, or equivalent (usually rightmost part of the code unit's name) --define(CODE_FUNCTION, 'code.function'). - -%% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit --define(CODE_NAMESPACE, 'code.namespace'). - -%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) --define(CODE_FILEPATH, 'code.filepath'). - -%% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` --define(CODE_LINENO, 'code.lineno'). - -%% Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless -%% `http.url` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case the attribute's value should be `https://www.example.com/` --define(HTTP_URL, 'http.url'). - -%% The ordinal number of request re-sending attempt --define(HTTP_RETRY_COUNT, 'http.retry_count'). - -%% The value `aws-api` --define(RPC_SYSTEM, 'rpc.system'). - -%% The name of the service to which a request is made, as returned by the AWS SDK -%% This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) --define(RPC_SERVICE, 'rpc.service'). - -%% The name of the operation corresponding to the request, as returned by the AWS SDK -%% This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) --define(RPC_METHOD, 'rpc.method'). - -%% The keys in the `RequestItems` object field --define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). - -%% The JSON-serialized value of each item in the `ConsumedCapacity` response field --define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). - -%% The JSON-serialized value of the `ItemCollectionMetrics` response field --define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). - -%% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter --define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). - -%% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter --define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). - -%% The value of the `ConsistentRead` request parameter --define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). - -%% The value of the `ProjectionExpression` request parameter --define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). - -%% The value of the `Limit` request parameter --define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). - -%% The value of the `AttributesToGet` request parameter --define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). - -%% The value of the `IndexName` request parameter --define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). - -%% The value of the `Select` request parameter --define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). - -%% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). - -%% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field --define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). - -%% The value of the `ExclusiveStartTableName` request parameter --define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). - -%% The the number of items in the `TableNames` response parameter --define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). - -%% The value of the `ScanIndexForward` request parameter --define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). - -%% The value of the `Segment` request parameter --define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). - -%% The value of the `TotalSegments` request parameter --define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). - -%% The value of the `Count` response parameter --define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). - -%% The value of the `ScannedCount` response parameter --define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). - -%% The JSON-serialized value of each item in the `AttributeDefinitions` request field --define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). - -%% The JSON-serialized value of each item in the the `GlobalSecondaryIndexUpdates` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). - -%% The name of the operation being executed --define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). - -%% The type of the operation being executed --define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). - -%% The GraphQL document being executed -%% The value may be sanitized to exclude sensitive information --define(GRAPHQL_DOCUMENT, 'graphql.document'). - -%% A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case --define(MESSAGING_OPERATION, 'messaging.operation'). - -%% The identifier for the consumer receiving a message. For Kafka, set it to `{messaging.kafka.consumer_group} - {messaging.kafka.client_id}`, if both are present, or only `messaging.kafka.consumer_group`. For brokers, such as RabbitMQ and Artemis, set it to the `client_id` of the client consuming the message --define(MESSAGING_CONSUMER_ID, 'messaging.consumer_id'). - -%% RabbitMQ message routing key --define(MESSAGING_RABBITMQ_ROUTING_KEY, 'messaging.rabbitmq.routing_key'). - -%% Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message_id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set -%% If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value --define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message_key'). - -%% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers --define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer_group'). - -%% Client Id for the Consumer or Producer that is handling the message --define(MESSAGING_KAFKA_CLIENT_ID, 'messaging.kafka.client_id'). - -%% Partition the message is sent to --define(MESSAGING_KAFKA_PARTITION, 'messaging.kafka.partition'). - -%% A boolean that is true if the message is a tombstone --define(MESSAGING_KAFKA_TOMBSTONE, 'messaging.kafka.tombstone'). - -%% Namespace of RocketMQ resources, resources in different namespaces are individual --define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). - -%% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind --define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). - -%% The unique identifier for each client --define(MESSAGING_ROCKETMQ_CLIENT_ID, 'messaging.rocketmq.client_id'). - -%% Type of message --define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message_type'). - -%% The secondary classifier of message besides topic --define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message_tag'). - -%% Key(s) of message, another way to mark message besides message id --define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message_keys'). - -%% Model of message consumption. This only applies to consumer spans --define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). - -%% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request --define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). - -%% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 does not specify this, the value can be omitted --define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). - -%% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification --define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). - -%% `error.code` property of response if it is an error response --define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). - -%% `error.message` property of response if it is an error response --define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). - -%% Whether this is a received or sent message --define(MESSAGE_TYPE, 'message.type'). - -%% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message -%% This way we guarantee that the values will be consistent between different implementations --define(MESSAGE_ID, 'message.id'). - -%% Compressed size of the message in bytes --define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). - -%% Uncompressed size of the message in bytes --define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). diff --git a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex deleted file mode 100644 index e15c8af2..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex +++ /dev/null @@ -1,38 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Logs do - @doc """ - The schema url for telemetry resources. - - iex> OpenTelemetry.SemanticConventions.Logs.logs_schema_url() - "https://opentelemetry.io/schemas/1.13.0" - """ - @spec logs_schema_url :: String.t() - def logs_schema_url do - "https://opentelemetry.io/schemas/1.13.0" - end - @doc """ - The name identifies the event - - iex> OpenTelemetry.SemanticConventions.Logs.event_name() - :"event.name" - """ - @spec event_name :: :"event.name" - def event_name do - :"event.name" - end - @doc """ - The domain identifies the context in which an event happened. An event name is unique only within a domain - - ### Notes - - An `event.name` is supposed to be unique only in the context of an - `event.domain`, so this allows for two events in different domains to - have same `event.name`, yet be unrelated events - - iex> OpenTelemetry.SemanticConventions.Logs.event_domain() - :"event.domain" - """ - @spec event_domain :: :"event.domain" - def event_domain do - :"event.domain" - end -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex deleted file mode 100644 index 7ac6f642..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex +++ /dev/null @@ -1,1005 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Resource do - @doc """ - The schema url for telemetry resources. - - iex> OpenTelemetry.SemanticConventions.Resource.resource_schema_url() - "https://opentelemetry.io/schemas/1.13.0" - """ - @spec resource_schema_url :: String.t() - def resource_schema_url do - "https://opentelemetry.io/schemas/1.13.0" - end - @doc """ - Array of brand name and version separated by a space - - ### Notes - - This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (navigator.userAgentData.brands) - - iex> OpenTelemetry.SemanticConventions.Resource.browser_brands() - :"browser.brands" - """ - @spec browser_brands :: :"browser.brands" - def browser_brands do - :"browser.brands" - end - @doc """ - The platform on which the browser is running - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.browser_platform() - :"browser.platform" - """ - @spec browser_platform :: :"browser.platform" - def browser_platform do - :"browser.platform" - end - @doc """ - Full user-agent string provided by the browser - - ### Notes - - The user-agent value SHOULD be provided only from browsers that do not have a mechanism to retrieve brands and platform individually from the User-Agent Client Hints API. To retrieve the value, the legacy `navigator.userAgent` API can be used - - iex> OpenTelemetry.SemanticConventions.Resource.browser_user_agent() - :"browser.user_agent" - """ - @spec browser_user_agent :: :"browser.user_agent" - def browser_user_agent do - :"browser.user_agent" - end - @doc """ - Name of the cloud provider - - iex> OpenTelemetry.SemanticConventions.Resource.cloud_provider() - :"cloud.provider" - """ - @spec cloud_provider :: :"cloud.provider" - def cloud_provider do - :"cloud.provider" - end - @doc """ - The cloud account ID the resource is assigned to - - iex> OpenTelemetry.SemanticConventions.Resource.cloud_account_id() - :"cloud.account.id" - """ - @spec cloud_account_id :: :"cloud.account.id" - def cloud_account_id do - :"cloud.account.id" - end - @doc """ - The geographical region the resource is running - - ### Notes - - 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/en-us/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://intl.cloud.tencent.com/document/product/213/6091) - - iex> OpenTelemetry.SemanticConventions.Resource.cloud_region() - :"cloud.region" - """ - @spec cloud_region :: :"cloud.region" - def cloud_region do - :"cloud.region" - end - @doc """ - Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running - - ### Notes - - Availability zones are called "zones" on Alibaba Cloud and Google Cloud - - iex> OpenTelemetry.SemanticConventions.Resource.cloud_availability_zone() - :"cloud.availability_zone" - """ - @spec cloud_availability_zone :: :"cloud.availability_zone" - def cloud_availability_zone do - :"cloud.availability_zone" - end - @doc """ - The cloud platform in use - - ### Notes - - The prefix of the service SHOULD match the one specified in `cloud.provider` - - iex> OpenTelemetry.SemanticConventions.Resource.cloud_platform() - :"cloud.platform" - """ - @spec cloud_platform :: :"cloud.platform" - def cloud_platform do - :"cloud.platform" - end - @doc """ - The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_container_arn() - :"aws.ecs.container.arn" - """ - @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" - def aws_ecs_container_arn do - :"aws.ecs.container.arn" - end - @doc """ - The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_cluster_arn() - :"aws.ecs.cluster.arn" - """ - @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" - def aws_ecs_cluster_arn do - :"aws.ecs.cluster.arn" - end - @doc """ - The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_launchtype() - :"aws.ecs.launchtype" - """ - @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" - def aws_ecs_launchtype do - :"aws.ecs.launchtype" - end - @doc """ - The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_arn() - :"aws.ecs.task.arn" - """ - @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" - def aws_ecs_task_arn do - :"aws.ecs.task.arn" - end - @doc """ - The task definition family this task definition is a member of - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_family() - :"aws.ecs.task.family" - """ - @spec aws_ecs_task_family :: :"aws.ecs.task.family" - def aws_ecs_task_family do - :"aws.ecs.task.family" - end - @doc """ - The revision for this task definition - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_revision() - :"aws.ecs.task.revision" - """ - @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" - def aws_ecs_task_revision do - :"aws.ecs.task.revision" - end - @doc """ - The ARN of an EKS cluster - - iex> OpenTelemetry.SemanticConventions.Resource.aws_eks_cluster_arn() - :"aws.eks.cluster.arn" - """ - @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" - def aws_eks_cluster_arn do - :"aws.eks.cluster.arn" - end - @doc """ - The name(s) of the AWS log group(s) an application is writing to - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_group_names() - :"aws.log.group.names" - """ - @spec aws_log_group_names :: :"aws.log.group.names" - def aws_log_group_names do - :"aws.log.group.names" - end - @doc """ - The Amazon Resource Name(s) (ARN) of the AWS log group(s) - - ### Notes - - See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_group_arns() - :"aws.log.group.arns" - """ - @spec aws_log_group_arns :: :"aws.log.group.arns" - def aws_log_group_arns do - :"aws.log.group.arns" - end - @doc """ - The name(s) of the AWS log stream(s) an application is writing to - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_stream_names() - :"aws.log.stream.names" - """ - @spec aws_log_stream_names :: :"aws.log.stream.names" - def aws_log_stream_names do - :"aws.log.stream.names" - end - @doc """ - The ARN(s) of the AWS log stream(s) - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_stream_arns() - :"aws.log.stream.arns" - """ - @spec aws_log_stream_arns :: :"aws.log.stream.arns" - def aws_log_stream_arns do - :"aws.log.stream.arns" - end - @doc """ - Container name used by container runtime - - iex> OpenTelemetry.SemanticConventions.Resource.container_name() - :"container.name" - """ - @spec container_name :: :"container.name" - def container_name do - :"container.name" - end - @doc """ - Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated - - iex> OpenTelemetry.SemanticConventions.Resource.container_id() - :"container.id" - """ - @spec container_id :: :"container.id" - def container_id do - :"container.id" - end - @doc """ - The container runtime managing this container - - iex> OpenTelemetry.SemanticConventions.Resource.container_runtime() - :"container.runtime" - """ - @spec container_runtime :: :"container.runtime" - def container_runtime do - :"container.runtime" - end - @doc """ - Name of the image the container was built on - - iex> OpenTelemetry.SemanticConventions.Resource.container_image_name() - :"container.image.name" - """ - @spec container_image_name :: :"container.image.name" - def container_image_name do - :"container.image.name" - end - @doc """ - Container image tag - - iex> OpenTelemetry.SemanticConventions.Resource.container_image_tag() - :"container.image.tag" - """ - @spec container_image_tag :: :"container.image.tag" - def container_image_tag do - :"container.image.tag" - end - @doc """ - Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier) - - iex> OpenTelemetry.SemanticConventions.Resource.deployment_environment() - :"deployment.environment" - """ - @spec deployment_environment :: :"deployment.environment" - def deployment_environment do - :"deployment.environment" - end - @doc """ - A unique identifier representing the device - - ### Notes - - The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 - - iex> OpenTelemetry.SemanticConventions.Resource.device_id() - :"device.id" - """ - @spec device_id :: :"device.id" - def device_id do - :"device.id" - end - @doc """ - The model identifier for the device - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.device_model_identifier() - :"device.model.identifier" - """ - @spec device_model_identifier :: :"device.model.identifier" - def device_model_identifier do - :"device.model.identifier" - end - @doc """ - The marketing name for the device model - - ### Notes - - It's recommended this value represents a human readable version of the device model rather than a machine readable alternative - - iex> OpenTelemetry.SemanticConventions.Resource.device_model_name() - :"device.model.name" - """ - @spec device_model_name :: :"device.model.name" - def device_model_name do - :"device.model.name" - end - @doc """ - The name of the device manufacturer - - ### Notes - - The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple` - - iex> OpenTelemetry.SemanticConventions.Resource.device_manufacturer() - :"device.manufacturer" - """ - @spec device_manufacturer :: :"device.manufacturer" - def device_manufacturer do - :"device.manufacturer" - end - @doc """ - The name of the single function that this runtime instance executes - - ### Notes - - 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`](../../trace/semantic_conventions/span-general.md#source-code-attributes) - span attributes). - - 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 `faas.id` attribute) - - iex> OpenTelemetry.SemanticConventions.Resource.faas_name() - :"faas.name" - """ - @spec faas_name :: :"faas.name" - def faas_name do - :"faas.name" - end - @doc """ - The unique ID of the single function that this runtime instance executes - - ### Notes - - On some cloud providers, it may not be possible to determine the full ID at startup, - so consider setting `faas.id` as a span attribute instead. - - The exact value to use for `faas.id` depends on the cloud provider: - - * **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 invokable 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://docs.microsoft.com/en-us/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 - - iex> OpenTelemetry.SemanticConventions.Resource.faas_id() - :"faas.id" - """ - @spec faas_id :: :"faas.id" - def faas_id do - :"faas.id" - end - @doc """ - The immutable version of the function being executed - - ### Notes - - Depending on the cloud provider and platform, use: - - * **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:** 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 - - iex> OpenTelemetry.SemanticConventions.Resource.faas_version() - :"faas.version" - """ - @spec faas_version :: :"faas.version" - def faas_version do - :"faas.version" - end - @doc """ - The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version - - ### Notes - - * **AWS Lambda:** Use the (full) log stream name - - iex> OpenTelemetry.SemanticConventions.Resource.faas_instance() - :"faas.instance" - """ - @spec faas_instance :: :"faas.instance" - def faas_instance do - :"faas.instance" - end - @doc """ - The amount of memory available to the serverless function in MiB - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.faas_max_memory() - :"faas.max_memory" - """ - @spec faas_max_memory :: :"faas.max_memory" - def faas_max_memory do - :"faas.max_memory" - end - @doc """ - Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider - - iex> OpenTelemetry.SemanticConventions.Resource.host_id() - :"host.id" - """ - @spec host_id :: :"host.id" - def host_id do - :"host.id" - end - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.host_name() - :"host.name" - """ - @spec host_name :: :"host.name" - def host_name do - :"host.name" - end - @doc """ - Type of host. For Cloud, this must be the machine type - - iex> OpenTelemetry.SemanticConventions.Resource.host_type() - :"host.type" - """ - @spec host_type :: :"host.type" - def host_type do - :"host.type" - end - @doc """ - The CPU architecture the host system is running on - - iex> OpenTelemetry.SemanticConventions.Resource.host_arch() - :"host.arch" - """ - @spec host_arch :: :"host.arch" - def host_arch do - :"host.arch" - end - @doc """ - Name of the VM image or OS install the host was instantiated from - - iex> OpenTelemetry.SemanticConventions.Resource.host_image_name() - :"host.image.name" - """ - @spec host_image_name :: :"host.image.name" - def host_image_name do - :"host.image.name" - end - @doc """ - VM image ID. For Cloud, this value is from the provider - - iex> OpenTelemetry.SemanticConventions.Resource.host_image_id() - :"host.image.id" - """ - @spec host_image_id :: :"host.image.id" - def host_image_id do - :"host.image.id" - end - @doc """ - The version string of the VM image as defined in [Version Attributes](README.md#version-attributes) - - iex> OpenTelemetry.SemanticConventions.Resource.host_image_version() - :"host.image.version" - """ - @spec host_image_version :: :"host.image.version" - def host_image_version do - :"host.image.version" - end - @doc """ - The name of the cluster - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cluster_name() - :"k8s.cluster.name" - """ - @spec k8s_cluster_name :: :"k8s.cluster.name" - def k8s_cluster_name do - :"k8s.cluster.name" - end - @doc """ - The name of the Node - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_node_name() - :"k8s.node.name" - """ - @spec k8s_node_name :: :"k8s.node.name" - def k8s_node_name do - :"k8s.node.name" - end - @doc """ - The UID of the Node - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_node_uid() - :"k8s.node.uid" - """ - @spec k8s_node_uid :: :"k8s.node.uid" - def k8s_node_uid do - :"k8s.node.uid" - end - @doc """ - The name of the namespace that the pod is running in - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_namespace_name() - :"k8s.namespace.name" - """ - @spec k8s_namespace_name :: :"k8s.namespace.name" - def k8s_namespace_name do - :"k8s.namespace.name" - end - @doc """ - The UID of the Pod - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_pod_uid() - :"k8s.pod.uid" - """ - @spec k8s_pod_uid :: :"k8s.pod.uid" - def k8s_pod_uid do - :"k8s.pod.uid" - end - @doc """ - The name of the Pod - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_pod_name() - :"k8s.pod.name" - """ - @spec k8s_pod_name :: :"k8s.pod.name" - def k8s_pod_name do - :"k8s.pod.name" - end - @doc """ - The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_container_name() - :"k8s.container.name" - """ - @spec k8s_container_name :: :"k8s.container.name" - def k8s_container_name do - :"k8s.container.name" - end - @doc """ - Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_container_restart_count() - :"k8s.container.restart_count" - """ - @spec k8s_container_restart_count :: :"k8s.container.restart_count" - def k8s_container_restart_count do - :"k8s.container.restart_count" - end - @doc """ - The UID of the ReplicaSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_replicaset_uid() - :"k8s.replicaset.uid" - """ - @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" - def k8s_replicaset_uid do - :"k8s.replicaset.uid" - end - @doc """ - The name of the ReplicaSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_replicaset_name() - :"k8s.replicaset.name" - """ - @spec k8s_replicaset_name :: :"k8s.replicaset.name" - def k8s_replicaset_name do - :"k8s.replicaset.name" - end - @doc """ - The UID of the Deployment - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_deployment_uid() - :"k8s.deployment.uid" - """ - @spec k8s_deployment_uid :: :"k8s.deployment.uid" - def k8s_deployment_uid do - :"k8s.deployment.uid" - end - @doc """ - The name of the Deployment - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_deployment_name() - :"k8s.deployment.name" - """ - @spec k8s_deployment_name :: :"k8s.deployment.name" - def k8s_deployment_name do - :"k8s.deployment.name" - end - @doc """ - The UID of the StatefulSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_statefulset_uid() - :"k8s.statefulset.uid" - """ - @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" - def k8s_statefulset_uid do - :"k8s.statefulset.uid" - end - @doc """ - The name of the StatefulSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_statefulset_name() - :"k8s.statefulset.name" - """ - @spec k8s_statefulset_name :: :"k8s.statefulset.name" - def k8s_statefulset_name do - :"k8s.statefulset.name" - end - @doc """ - The UID of the DaemonSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_daemonset_uid() - :"k8s.daemonset.uid" - """ - @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" - def k8s_daemonset_uid do - :"k8s.daemonset.uid" - end - @doc """ - The name of the DaemonSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_daemonset_name() - :"k8s.daemonset.name" - """ - @spec k8s_daemonset_name :: :"k8s.daemonset.name" - def k8s_daemonset_name do - :"k8s.daemonset.name" - end - @doc """ - The UID of the Job - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_job_uid() - :"k8s.job.uid" - """ - @spec k8s_job_uid :: :"k8s.job.uid" - def k8s_job_uid do - :"k8s.job.uid" - end - @doc """ - The name of the Job - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_job_name() - :"k8s.job.name" - """ - @spec k8s_job_name :: :"k8s.job.name" - def k8s_job_name do - :"k8s.job.name" - end - @doc """ - The UID of the CronJob - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cronjob_uid() - :"k8s.cronjob.uid" - """ - @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" - def k8s_cronjob_uid do - :"k8s.cronjob.uid" - end - @doc """ - The name of the CronJob - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cronjob_name() - :"k8s.cronjob.name" - """ - @spec k8s_cronjob_name :: :"k8s.cronjob.name" - def k8s_cronjob_name do - :"k8s.cronjob.name" - end - @doc """ - The operating system type - - iex> OpenTelemetry.SemanticConventions.Resource.os_type() - :"os.type" - """ - @spec os_type :: :"os.type" - def os_type do - :"os.type" - end - @doc """ - Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands - - iex> OpenTelemetry.SemanticConventions.Resource.os_description() - :"os.description" - """ - @spec os_description :: :"os.description" - def os_description do - :"os.description" - end - @doc """ - Human readable operating system name - - iex> OpenTelemetry.SemanticConventions.Resource.os_name() - :"os.name" - """ - @spec os_name :: :"os.name" - def os_name do - :"os.name" - end - @doc """ - The version string of the operating system as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes) - - iex> OpenTelemetry.SemanticConventions.Resource.os_version() - :"os.version" - """ - @spec os_version :: :"os.version" - def os_version do - :"os.version" - end - @doc """ - Process identifier (PID) - - iex> OpenTelemetry.SemanticConventions.Resource.process_pid() - :"process.pid" - """ - @spec process_pid :: :"process.pid" - def process_pid do - :"process.pid" - end - @doc """ - Parent Process identifier (PID) - - iex> OpenTelemetry.SemanticConventions.Resource.process_parent_pid() - :"process.parent_pid" - """ - @spec process_parent_pid :: :"process.parent_pid" - def process_parent_pid do - :"process.parent_pid" - end - @doc """ - The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` - - iex> OpenTelemetry.SemanticConventions.Resource.process_executable_name() - :"process.executable.name" - """ - @spec process_executable_name :: :"process.executable.name" - def process_executable_name do - :"process.executable.name" - end - @doc """ - The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` - - iex> OpenTelemetry.SemanticConventions.Resource.process_executable_path() - :"process.executable.path" - """ - @spec process_executable_path :: :"process.executable.path" - def process_executable_path do - :"process.executable.path" - end - @doc """ - The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` - - iex> OpenTelemetry.SemanticConventions.Resource.process_command() - :"process.command" - """ - @spec process_command :: :"process.command" - def process_command do - :"process.command" - end - @doc """ - The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead - - iex> OpenTelemetry.SemanticConventions.Resource.process_command_line() - :"process.command_line" - """ - @spec process_command_line :: :"process.command_line" - def process_command_line do - :"process.command_line" - end - @doc """ - All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` - - iex> OpenTelemetry.SemanticConventions.Resource.process_command_args() - :"process.command_args" - """ - @spec process_command_args :: :"process.command_args" - def process_command_args do - :"process.command_args" - end - @doc """ - The username of the user that owns the process - - iex> OpenTelemetry.SemanticConventions.Resource.process_owner() - :"process.owner" - """ - @spec process_owner :: :"process.owner" - def process_owner do - :"process.owner" - end - @doc """ - The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler - - iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_name() - :"process.runtime.name" - """ - @spec process_runtime_name :: :"process.runtime.name" - def process_runtime_name do - :"process.runtime.name" - end - @doc """ - The version of the runtime of this process, as returned by the runtime without modification - - iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_version() - :"process.runtime.version" - """ - @spec process_runtime_version :: :"process.runtime.version" - def process_runtime_version do - :"process.runtime.version" - end - @doc """ - An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment - - iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_description() - :"process.runtime.description" - """ - @spec process_runtime_description :: :"process.runtime.description" - def process_runtime_description do - :"process.runtime.description" - end - @doc """ - Logical name of the service - - ### Notes - - MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service` - - iex> OpenTelemetry.SemanticConventions.Resource.service_name() - :"service.name" - """ - @spec service_name :: :"service.name" - def service_name do - :"service.name" - end - @doc """ - A namespace for `service.name` - - ### Notes - - A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace - - iex> OpenTelemetry.SemanticConventions.Resource.service_namespace() - :"service.namespace" - """ - @spec service_namespace :: :"service.namespace" - def service_namespace do - :"service.namespace" - end - @doc """ - The string ID of the service instance - - ### Notes - - MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts). If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations) - - iex> OpenTelemetry.SemanticConventions.Resource.service_instance_id() - :"service.instance.id" - """ - @spec service_instance_id :: :"service.instance.id" - def service_instance_id do - :"service.instance.id" - end - @doc """ - The version string of the service API or implementation - - iex> OpenTelemetry.SemanticConventions.Resource.service_version() - :"service.version" - """ - @spec service_version :: :"service.version" - def service_version do - :"service.version" - end - @doc """ - The name of the telemetry SDK as defined above - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_name() - :"telemetry.sdk.name" - """ - @spec telemetry_sdk_name :: :"telemetry.sdk.name" - def telemetry_sdk_name do - :"telemetry.sdk.name" - end - @doc """ - The language of the telemetry SDK - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_language() - :"telemetry.sdk.language" - """ - @spec telemetry_sdk_language :: :"telemetry.sdk.language" - def telemetry_sdk_language do - :"telemetry.sdk.language" - end - @doc """ - The version string of the telemetry SDK - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_version() - :"telemetry.sdk.version" - """ - @spec telemetry_sdk_version :: :"telemetry.sdk.version" - def telemetry_sdk_version do - :"telemetry.sdk.version" - end - @doc """ - The version string of the auto instrumentation agent, if used - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_auto_version() - :"telemetry.auto.version" - """ - @spec telemetry_auto_version :: :"telemetry.auto.version" - def telemetry_auto_version do - :"telemetry.auto.version" - end - @doc """ - The name of the web engine - - iex> OpenTelemetry.SemanticConventions.Resource.webengine_name() - :"webengine.name" - """ - @spec webengine_name :: :"webengine.name" - def webengine_name do - :"webengine.name" - end - @doc """ - The version of the web engine - - iex> OpenTelemetry.SemanticConventions.Resource.webengine_version() - :"webengine.version" - """ - @spec webengine_version :: :"webengine.version" - def webengine_version do - :"webengine.version" - end - @doc """ - Additional description of the web engine (e.g. detailed version and edition information) - - iex> OpenTelemetry.SemanticConventions.Resource.webengine_description() - :"webengine.description" - """ - @spec webengine_description :: :"webengine.description" - def webengine_description do - :"webengine.description" - end -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex deleted file mode 100644 index d15d8c25..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex +++ /dev/null @@ -1,1612 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Trace do - @doc """ - The schema url for telemetry resources. - - iex> OpenTelemetry.SemanticConventions.Trace.trace_schema_url() - "https://opentelemetry.io/schemas/1.13.0" - """ - @spec trace_schema_url :: String.t() - def trace_schema_url do - "https://opentelemetry.io/schemas/1.13.0" - end - @doc """ - 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) - - ### Notes - - This may be different from `faas.id` if an alias is involved - - iex> OpenTelemetry.SemanticConventions.Trace.aws_lambda_invoked_arn() - :"aws.lambda.invoked_arn" - """ - @spec aws_lambda_invoked_arn :: :"aws.lambda.invoked_arn" - def aws_lambda_invoked_arn do - :"aws.lambda.invoked_arn" - end - @doc """ - The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event - - iex> OpenTelemetry.SemanticConventions.Trace.cloudevents_event_id() - :"cloudevents.event_id" - """ - @spec cloudevents_event_id :: :"cloudevents.event_id" - def cloudevents_event_id do - :"cloudevents.event_id" - end - @doc """ - The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened - - iex> OpenTelemetry.SemanticConventions.Trace.cloudevents_event_source() - :"cloudevents.event_source" - """ - @spec cloudevents_event_source :: :"cloudevents.event_source" - def cloudevents_event_source do - :"cloudevents.event_source" - end - @doc """ - The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses - - iex> OpenTelemetry.SemanticConventions.Trace.cloudevents_event_spec_version() - :"cloudevents.event_spec_version" - """ - @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" - def cloudevents_event_spec_version do - :"cloudevents.event_spec_version" - end - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Trace.cloudevents_event_type() - :"cloudevents.event_type" - """ - @spec cloudevents_event_type :: :"cloudevents.event_type" - def cloudevents_event_type do - :"cloudevents.event_type" - end - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Trace.cloudevents_event_subject() - :"cloudevents.event_subject" - """ - @spec cloudevents_event_subject :: :"cloudevents.event_subject" - def cloudevents_event_subject do - :"cloudevents.event_subject" - end - @doc """ - Parent-child Reference type - - ### Notes - - The causal relationship between a child Span and a parent Span - - iex> OpenTelemetry.SemanticConventions.Trace.opentracing_ref_type() - :"opentracing.ref_type" - """ - @spec opentracing_ref_type :: :"opentracing.ref_type" - def opentracing_ref_type do - :"opentracing.ref_type" - end - @doc """ - An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers - - iex> OpenTelemetry.SemanticConventions.Trace.db_system() - :"db.system" - """ - @spec db_system :: :"db.system" - def db_system do - :"db.system" - end - @doc """ - The connection string used to connect to the database. It is recommended to remove embedded credentials - - iex> OpenTelemetry.SemanticConventions.Trace.db_connection_string() - :"db.connection_string" - """ - @spec db_connection_string :: :"db.connection_string" - def db_connection_string do - :"db.connection_string" - end - @doc """ - Username for accessing the database - - iex> OpenTelemetry.SemanticConventions.Trace.db_user() - :"db.user" - """ - @spec db_user :: :"db.user" - def db_user do - :"db.user" - end - @doc """ - The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect - - iex> OpenTelemetry.SemanticConventions.Trace.db_jdbc_driver_classname() - :"db.jdbc.driver_classname" - """ - @spec db_jdbc_driver_classname :: :"db.jdbc.driver_classname" - def db_jdbc_driver_classname do - :"db.jdbc.driver_classname" - end - @doc """ - This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) - - ### Notes - - In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) - - iex> OpenTelemetry.SemanticConventions.Trace.db_name() - :"db.name" - """ - @spec db_name :: :"db.name" - def db_name do - :"db.name" - end - @doc """ - The database statement being executed - - ### Notes - - The value may be sanitized to exclude sensitive information - - iex> OpenTelemetry.SemanticConventions.Trace.db_statement() - :"db.statement" - """ - @spec db_statement :: :"db.statement" - def db_statement do - :"db.statement" - end - @doc """ - The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword - - ### Notes - - When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted - - iex> OpenTelemetry.SemanticConventions.Trace.db_operation() - :"db.operation" - """ - @spec db_operation :: :"db.operation" - def db_operation do - :"db.operation" - end - @doc """ - Name of the database host - - ### Notes - - `net.peer.name` SHOULD NOT be set if capturing it would require an extra DNS lookup - - iex> OpenTelemetry.SemanticConventions.Trace.net_peer_name() - :"net.peer.name" - """ - @spec net_peer_name :: :"net.peer.name" - def net_peer_name do - :"net.peer.name" - end - @doc """ - Logical remote port number - - iex> OpenTelemetry.SemanticConventions.Trace.net_peer_port() - :"net.peer.port" - """ - @spec net_peer_port :: :"net.peer.port" - def net_peer_port do - :"net.peer.port" - end - @doc """ - Remote socket peer address: IPv4 or IPv6 for internet protocols, path for local communication, [etc](https://man7.org/linux/man-pages/man7/address_families.7.html) - - iex> OpenTelemetry.SemanticConventions.Trace.net_sock_peer_addr() - :"net.sock.peer.addr" - """ - @spec net_sock_peer_addr :: :"net.sock.peer.addr" - def net_sock_peer_addr do - :"net.sock.peer.addr" - end - @doc """ - Remote socket peer port - - iex> OpenTelemetry.SemanticConventions.Trace.net_sock_peer_port() - :"net.sock.peer.port" - """ - @spec net_sock_peer_port :: :"net.sock.peer.port" - def net_sock_peer_port do - :"net.sock.peer.port" - end - @doc """ - Protocol [address family](https://man7.org/linux/man-pages/man7/address_families.7.html) which is used for communication - - iex> OpenTelemetry.SemanticConventions.Trace.net_sock_family() - :"net.sock.family" - """ - @spec net_sock_family :: :"net.sock.family" - def net_sock_family do - :"net.sock.family" - end - @doc """ - Remote socket peer name - - iex> OpenTelemetry.SemanticConventions.Trace.net_sock_peer_name() - :"net.sock.peer.name" - """ - @spec net_sock_peer_name :: :"net.sock.peer.name" - def net_sock_peer_name do - :"net.sock.peer.name" - end - @doc """ - Transport protocol used. See note below - - iex> OpenTelemetry.SemanticConventions.Trace.net_transport() - :"net.transport" - """ - @spec net_transport :: :"net.transport" - def net_transport do - :"net.transport" - end - @doc """ - The Microsoft SQL Server [instance name](https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance - - ### Notes - - If setting a `db.mssql.instance_name`, `net.peer.port` is no longer required (but still recommended if non-standard) - - iex> OpenTelemetry.SemanticConventions.Trace.db_mssql_instance_name() - :"db.mssql.instance_name" - """ - @spec db_mssql_instance_name :: :"db.mssql.instance_name" - def db_mssql_instance_name do - :"db.mssql.instance_name" - end - @doc """ - The fetch size used for paging, i.e. how many rows will be returned at once - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_page_size() - :"db.cassandra.page_size" - """ - @spec db_cassandra_page_size :: :"db.cassandra.page_size" - def db_cassandra_page_size do - :"db.cassandra.page_size" - end - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_consistency_level() - :"db.cassandra.consistency_level" - """ - @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" - def db_cassandra_consistency_level do - :"db.cassandra.consistency_level" - end - @doc """ - The name of the primary table that the operation is acting upon, including the keyspace name (if applicable) - - ### Notes - - This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_table() - :"db.cassandra.table" - """ - @spec db_cassandra_table :: :"db.cassandra.table" - def db_cassandra_table do - :"db.cassandra.table" - end - @doc """ - Whether or not the query is idempotent - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_idempotence() - :"db.cassandra.idempotence" - """ - @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" - def db_cassandra_idempotence do - :"db.cassandra.idempotence" - end - @doc """ - The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_speculative_execution_count() - :"db.cassandra.speculative_execution_count" - """ - @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" - def db_cassandra_speculative_execution_count do - :"db.cassandra.speculative_execution_count" - end - @doc """ - The ID of the coordinating node for a query - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_coordinator_id() - :"db.cassandra.coordinator.id" - """ - @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" - def db_cassandra_coordinator_id do - :"db.cassandra.coordinator.id" - end - @doc """ - The data center of the coordinating node for a query - - iex> OpenTelemetry.SemanticConventions.Trace.db_cassandra_coordinator_dc() - :"db.cassandra.coordinator.dc" - """ - @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" - def db_cassandra_coordinator_dc do - :"db.cassandra.coordinator.dc" - end - @doc """ - The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute - - iex> OpenTelemetry.SemanticConventions.Trace.db_redis_database_index() - :"db.redis.database_index" - """ - @spec db_redis_database_index :: :"db.redis.database_index" - def db_redis_database_index do - :"db.redis.database_index" - end - @doc """ - The collection being accessed within the database stated in `db.name` - - iex> OpenTelemetry.SemanticConventions.Trace.db_mongodb_collection() - :"db.mongodb.collection" - """ - @spec db_mongodb_collection :: :"db.mongodb.collection" - def db_mongodb_collection do - :"db.mongodb.collection" - end - @doc """ - The name of the primary table that the operation is acting upon, including the database name (if applicable) - - ### Notes - - It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set - - iex> OpenTelemetry.SemanticConventions.Trace.db_sql_table() - :"db.sql.table" - """ - @spec db_sql_table :: :"db.sql.table" - def db_sql_table do - :"db.sql.table" - end - @doc """ - The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it - - iex> OpenTelemetry.SemanticConventions.Trace.exception_type() - :"exception.type" - """ - @spec exception_type :: :"exception.type" - def exception_type do - :"exception.type" - end - @doc """ - The exception message - - iex> OpenTelemetry.SemanticConventions.Trace.exception_message() - :"exception.message" - """ - @spec exception_message :: :"exception.message" - def exception_message do - :"exception.message" - end - @doc """ - A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG - - iex> OpenTelemetry.SemanticConventions.Trace.exception_stacktrace() - :"exception.stacktrace" - """ - @spec exception_stacktrace :: :"exception.stacktrace" - def exception_stacktrace do - :"exception.stacktrace" - end - @doc """ - SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span - - ### Notes - - An exception is considered to have escaped (or left) the scope of a span, - if that span is ended while the exception is still logically "in flight". - This may be actually "in flight" in some languages (e.g. if the exception - is passed to a Context manager's `__exit__` method in Python) but will - usually be caught at the point of recording the exception in most languages. - - It is usually not possible to determine at the point where an exception is thrown - whether it will escape the scope of a span. - However, it is trivial to know that an exception - will escape, if one checks for an active exception just before ending the span, - as done in the [example above](#recording-an-exception). - - It follows that an exception may still escape the scope of the span - even if the `exception.escaped` attribute was not set or set to false, - since the event might have been recorded at a time where it was not - clear whether the exception will escape - - iex> OpenTelemetry.SemanticConventions.Trace.exception_escaped() - :"exception.escaped" - """ - @spec exception_escaped :: :"exception.escaped" - def exception_escaped do - :"exception.escaped" - end - @doc """ - Type of the trigger which caused this function execution - - ### Notes - - For the server/consumer span on the incoming side, - `faas.trigger` MUST be set. - - Clients invoking FaaS instances usually cannot set `faas.trigger`, - since they would typically need to look in the payload to determine - the event type. If clients set it, it should be the same as the - trigger that corresponding incoming would have (i.e., this has - nothing to do with the underlying transport used to make the API - call to invoke the lambda, which is often HTTP) - - iex> OpenTelemetry.SemanticConventions.Trace.faas_trigger() - :"faas.trigger" - """ - @spec faas_trigger :: :"faas.trigger" - def faas_trigger do - :"faas.trigger" - end - @doc """ - The execution ID of the current function execution - - iex> OpenTelemetry.SemanticConventions.Trace.faas_execution() - :"faas.execution" - """ - @spec faas_execution :: :"faas.execution" - def faas_execution do - :"faas.execution" - end - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Trace.faas_document_collection() - :"faas.document.collection" - """ - @spec faas_document_collection :: :"faas.document.collection" - def faas_document_collection do - :"faas.document.collection" - end - @doc """ - Describes the type of the operation that was performed on the data - - iex> OpenTelemetry.SemanticConventions.Trace.faas_document_operation() - :"faas.document.operation" - """ - @spec faas_document_operation :: :"faas.document.operation" - def faas_document_operation do - :"faas.document.operation" - end - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Trace.faas_document_time() - :"faas.document.time" - """ - @spec faas_document_time :: :"faas.document.time" - def faas_document_time do - :"faas.document.time" - end - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Trace.faas_document_name() - :"faas.document.name" - """ - @spec faas_document_name :: :"faas.document.name" - def faas_document_name do - :"faas.document.name" - end - @doc """ - HTTP request method - - iex> OpenTelemetry.SemanticConventions.Trace.http_method() - :"http.method" - """ - @spec http_method :: :"http.method" - def http_method do - :"http.method" - end - @doc """ - [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) - - iex> OpenTelemetry.SemanticConventions.Trace.http_status_code() - :"http.status_code" - """ - @spec http_status_code :: :"http.status_code" - def http_status_code do - :"http.status_code" - end - @doc """ - Kind of HTTP protocol used - - ### Notes - - If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed - - iex> OpenTelemetry.SemanticConventions.Trace.http_flavor() - :"http.flavor" - """ - @spec http_flavor :: :"http.flavor" - def http_flavor do - :"http.flavor" - end - @doc """ - Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client - - iex> OpenTelemetry.SemanticConventions.Trace.http_user_agent() - :"http.user_agent" - """ - @spec http_user_agent :: :"http.user_agent" - def http_user_agent do - :"http.user_agent" - end - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Trace.http_request_content_length() - :"http.request_content_length" - """ - @spec http_request_content_length :: :"http.request_content_length" - def http_request_content_length do - :"http.request_content_length" - end - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Trace.http_response_content_length() - :"http.response_content_length" - """ - @spec http_response_content_length :: :"http.response_content_length" - def http_response_content_length do - :"http.response_content_length" - end - @doc """ - The URI scheme identifying the used protocol - - iex> OpenTelemetry.SemanticConventions.Trace.http_scheme() - :"http.scheme" - """ - @spec http_scheme :: :"http.scheme" - def http_scheme do - :"http.scheme" - end - @doc """ - The full request target as passed in a HTTP request line or equivalent - - iex> OpenTelemetry.SemanticConventions.Trace.http_target() - :"http.target" - """ - @spec http_target :: :"http.target" - def http_target do - :"http.target" - end - @doc """ - The matched route (path template in the format used by the respective server framework). See note below - - ### Notes - - 'http.route' MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it - - iex> OpenTelemetry.SemanticConventions.Trace.http_route() - :"http.route" - """ - @spec http_route :: :"http.route" - def http_route do - :"http.route" - end - @doc """ - The IP address of the original client behind all proxies, if known (e.g. from [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)) - - ### Notes - - This is not necessarily the same as `net.sock.peer.addr`, which would - identify the network-level peer, which may be a proxy. - - This attribute should be set when a source of information different - from the one used for `net.sock.peer.addr`, is available even if that other - source just confirms the same value as `net.sock.peer.addr`. - Rationale: For `net.sock.peer.addr`, one typically does not know if it - comes from a proxy, reverse proxy, or the actual client. Setting - `http.client_ip` when it's the same as `net.sock.peer.addr` means that - one is at least somewhat confident that the address is not that of - the closest proxy - - iex> OpenTelemetry.SemanticConventions.Trace.http_client_ip() - :"http.client_ip" - """ - @spec http_client_ip :: :"http.client_ip" - def http_client_ip do - :"http.client_ip" - end - @doc """ - Name of the local HTTP server that received the request - - ### Notes - - Determined by using the first of the following that applies - - - The [primary server name](#http-server-definitions) of the matched virtual host. MUST only - include host identifier. - - Host identifier of the [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) - if it's sent in absolute-form. - - Host identifier of the `Host` header - - SHOULD NOT be set if only IP address is available and capturing name would require a reverse DNS lookup - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_name() - :"net.host.name" - """ - @spec net_host_name :: :"net.host.name" - def net_host_name do - :"net.host.name" - end - @doc """ - Port of the local HTTP server that received the request - - ### Notes - - Determined by using the first of the following that applies - - - Port identifier of the [primary server host](#http-server-definitions) of the matched virtual host. - - Port identifier of the [request target](https://www.rfc-editor.org/rfc/rfc9110.html#target.resource) - if it's sent in absolute-form. - - Port identifier of the `Host` header - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_port() - :"net.host.port" - """ - @spec net_host_port :: :"net.host.port" - def net_host_port do - :"net.host.port" - end - @doc """ - Local socket address. Useful in case of a multi-IP host - - iex> OpenTelemetry.SemanticConventions.Trace.net_sock_host_addr() - :"net.sock.host.addr" - """ - @spec net_sock_host_addr :: :"net.sock.host.addr" - def net_sock_host_addr do - :"net.sock.host.addr" - end - @doc """ - Local socket port number - - iex> OpenTelemetry.SemanticConventions.Trace.net_sock_host_port() - :"net.sock.host.port" - """ - @spec net_sock_host_port :: :"net.sock.host.port" - def net_sock_host_port do - :"net.sock.host.port" - end - @doc """ - Application layer protocol used. The value SHOULD be normalized to lowercase - - iex> OpenTelemetry.SemanticConventions.Trace.net_app_protocol_name() - :"net.app.protocol.name" - """ - @spec net_app_protocol_name :: :"net.app.protocol.name" - def net_app_protocol_name do - :"net.app.protocol.name" - end - @doc """ - Version of the application layer protocol used. See note below - - ### Notes - - `net.app.protocol.version` refers to the version of the protocol used and might be different from the protocol client's version. If the HTTP client used has a version of `0.27.2`, but sends HTTP version `1.1`, this attribute should be set to `1.1` - - iex> OpenTelemetry.SemanticConventions.Trace.net_app_protocol_version() - :"net.app.protocol.version" - """ - @spec net_app_protocol_version :: :"net.app.protocol.version" - def net_app_protocol_version do - :"net.app.protocol.version" - end - @doc """ - The internet connection type currently being used by the host - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_connection_type() - :"net.host.connection.type" - """ - @spec net_host_connection_type :: :"net.host.connection.type" - def net_host_connection_type do - :"net.host.connection.type" - end - @doc """ - This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_connection_subtype() - :"net.host.connection.subtype" - """ - @spec net_host_connection_subtype :: :"net.host.connection.subtype" - def net_host_connection_subtype do - :"net.host.connection.subtype" - end - @doc """ - The name of the mobile carrier - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_carrier_name() - :"net.host.carrier.name" - """ - @spec net_host_carrier_name :: :"net.host.carrier.name" - def net_host_carrier_name do - :"net.host.carrier.name" - end - @doc """ - The mobile carrier country code - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_carrier_mcc() - :"net.host.carrier.mcc" - """ - @spec net_host_carrier_mcc :: :"net.host.carrier.mcc" - def net_host_carrier_mcc do - :"net.host.carrier.mcc" - end - @doc """ - The mobile carrier network code - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_carrier_mnc() - :"net.host.carrier.mnc" - """ - @spec net_host_carrier_mnc :: :"net.host.carrier.mnc" - def net_host_carrier_mnc do - :"net.host.carrier.mnc" - end - @doc """ - The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network - - iex> OpenTelemetry.SemanticConventions.Trace.net_host_carrier_icc() - :"net.host.carrier.icc" - """ - @spec net_host_carrier_icc :: :"net.host.carrier.icc" - def net_host_carrier_icc do - :"net.host.carrier.icc" - end - @doc """ - A string identifying the messaging system - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_system() - :"messaging.system" - """ - @spec messaging_system :: :"messaging.system" - def messaging_system do - :"messaging.system" - end - @doc """ - The message destination name. This might be equal to the span name but is required nevertheless - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_destination() - :"messaging.destination" - """ - @spec messaging_destination :: :"messaging.destination" - def messaging_destination do - :"messaging.destination" - end - @doc """ - The kind of message destination - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_destination_kind() - :"messaging.destination_kind" - """ - @spec messaging_destination_kind :: :"messaging.destination_kind" - def messaging_destination_kind do - :"messaging.destination_kind" - end - @doc """ - A boolean that is true if the message destination is temporary - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_temp_destination() - :"messaging.temp_destination" - """ - @spec messaging_temp_destination :: :"messaging.temp_destination" - def messaging_temp_destination do - :"messaging.temp_destination" - end - @doc """ - The name of the transport protocol - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_protocol() - :"messaging.protocol" - """ - @spec messaging_protocol :: :"messaging.protocol" - def messaging_protocol do - :"messaging.protocol" - end - @doc """ - The version of the transport protocol - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_protocol_version() - :"messaging.protocol_version" - """ - @spec messaging_protocol_version :: :"messaging.protocol_version" - def messaging_protocol_version do - :"messaging.protocol_version" - end - @doc """ - Connection string - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_url() - :"messaging.url" - """ - @spec messaging_url :: :"messaging.url" - def messaging_url do - :"messaging.url" - end - @doc """ - A value used by the messaging system as an identifier for the message, represented as a string - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_message_id() - :"messaging.message_id" - """ - @spec messaging_message_id :: :"messaging.message_id" - def messaging_message_id do - :"messaging.message_id" - end - @doc """ - The [conversation ID](#conversations) identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_conversation_id() - :"messaging.conversation_id" - """ - @spec messaging_conversation_id :: :"messaging.conversation_id" - def messaging_conversation_id do - :"messaging.conversation_id" - end - @doc """ - The (uncompressed) size of the message payload in bytes. Also use this attribute if it is unknown whether the compressed or uncompressed payload size is reported - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_message_payload_size_bytes() - :"messaging.message_payload_size_bytes" - """ - @spec messaging_message_payload_size_bytes :: :"messaging.message_payload_size_bytes" - def messaging_message_payload_size_bytes do - :"messaging.message_payload_size_bytes" - end - @doc """ - The compressed size of the message payload in bytes - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_message_payload_compressed_size_bytes() - :"messaging.message_payload_compressed_size_bytes" - """ - @spec messaging_message_payload_compressed_size_bytes :: :"messaging.message_payload_compressed_size_bytes" - def messaging_message_payload_compressed_size_bytes do - :"messaging.message_payload_compressed_size_bytes" - end - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Trace.faas_time() - :"faas.time" - """ - @spec faas_time :: :"faas.time" - def faas_time do - :"faas.time" - end - @doc """ - A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) - - iex> OpenTelemetry.SemanticConventions.Trace.faas_cron() - :"faas.cron" - """ - @spec faas_cron :: :"faas.cron" - def faas_cron do - :"faas.cron" - end - @doc """ - A boolean that is true if the serverless function is executed for the first time (aka cold-start) - - iex> OpenTelemetry.SemanticConventions.Trace.faas_coldstart() - :"faas.coldstart" - """ - @spec faas_coldstart :: :"faas.coldstart" - def faas_coldstart do - :"faas.coldstart" - end - @doc """ - The name of the invoked function - - ### Notes - - SHOULD be equal to the `faas.name` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Trace.faas_invoked_name() - :"faas.invoked_name" - """ - @spec faas_invoked_name :: :"faas.invoked_name" - def faas_invoked_name do - :"faas.invoked_name" - end - @doc """ - The cloud provider of the invoked function - - ### Notes - - SHOULD be equal to the `cloud.provider` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Trace.faas_invoked_provider() - :"faas.invoked_provider" - """ - @spec faas_invoked_provider :: :"faas.invoked_provider" - def faas_invoked_provider do - :"faas.invoked_provider" - end - @doc """ - The cloud region of the invoked function - - ### Notes - - SHOULD be equal to the `cloud.region` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Trace.faas_invoked_region() - :"faas.invoked_region" - """ - @spec faas_invoked_region :: :"faas.invoked_region" - def faas_invoked_region do - :"faas.invoked_region" - end - @doc """ - The [`service.name`](../../resource/semantic_conventions/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any - - iex> OpenTelemetry.SemanticConventions.Trace.peer_service() - :"peer.service" - """ - @spec peer_service :: :"peer.service" - def peer_service do - :"peer.service" - end - @doc """ - Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system - - iex> OpenTelemetry.SemanticConventions.Trace.enduser_id() - :"enduser.id" - """ - @spec enduser_id :: :"enduser.id" - def enduser_id do - :"enduser.id" - end - @doc """ - Actual/assumed role the client is making the request under extracted from token or application security context - - iex> OpenTelemetry.SemanticConventions.Trace.enduser_role() - :"enduser.role" - """ - @spec enduser_role :: :"enduser.role" - def enduser_role do - :"enduser.role" - end - @doc """ - Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) - - iex> OpenTelemetry.SemanticConventions.Trace.enduser_scope() - :"enduser.scope" - """ - @spec enduser_scope :: :"enduser.scope" - def enduser_scope do - :"enduser.scope" - end - @doc """ - Current "managed" thread ID (as opposed to OS thread ID) - - iex> OpenTelemetry.SemanticConventions.Trace.thread_id() - :"thread.id" - """ - @spec thread_id :: :"thread.id" - def thread_id do - :"thread.id" - end - @doc """ - Current thread name - - iex> OpenTelemetry.SemanticConventions.Trace.thread_name() - :"thread.name" - """ - @spec thread_name :: :"thread.name" - def thread_name do - :"thread.name" - end - @doc """ - The method or function name, or equivalent (usually rightmost part of the code unit's name) - - iex> OpenTelemetry.SemanticConventions.Trace.code_function() - :"code.function" - """ - @spec code_function :: :"code.function" - def code_function do - :"code.function" - end - @doc """ - The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit - - iex> OpenTelemetry.SemanticConventions.Trace.code_namespace() - :"code.namespace" - """ - @spec code_namespace :: :"code.namespace" - def code_namespace do - :"code.namespace" - end - @doc """ - The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) - - iex> OpenTelemetry.SemanticConventions.Trace.code_filepath() - :"code.filepath" - """ - @spec code_filepath :: :"code.filepath" - def code_filepath do - :"code.filepath" - end - @doc """ - The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` - - iex> OpenTelemetry.SemanticConventions.Trace.code_lineno() - :"code.lineno" - """ - @spec code_lineno :: :"code.lineno" - def code_lineno do - :"code.lineno" - end - @doc """ - Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless - - ### Notes - - `http.url` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case the attribute's value should be `https://www.example.com/` - - iex> OpenTelemetry.SemanticConventions.Trace.http_url() - :"http.url" - """ - @spec http_url :: :"http.url" - def http_url do - :"http.url" - end - @doc """ - The ordinal number of request re-sending attempt - - iex> OpenTelemetry.SemanticConventions.Trace.http_retry_count() - :"http.retry_count" - """ - @spec http_retry_count :: :"http.retry_count" - def http_retry_count do - :"http.retry_count" - end - @doc """ - The value `aws-api` - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_system() - :"rpc.system" - """ - @spec rpc_system :: :"rpc.system" - def rpc_system do - :"rpc.system" - end - @doc """ - The name of the service to which a request is made, as returned by the AWS SDK - - ### Notes - - This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_service() - :"rpc.service" - """ - @spec rpc_service :: :"rpc.service" - def rpc_service do - :"rpc.service" - end - @doc """ - The name of the operation corresponding to the request, as returned by the AWS SDK - - ### Notes - - This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_method() - :"rpc.method" - """ - @spec rpc_method :: :"rpc.method" - def rpc_method do - :"rpc.method" - end - @doc """ - The keys in the `RequestItems` object field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_table_names() - :"aws.dynamodb.table_names" - """ - @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" - def aws_dynamodb_table_names do - :"aws.dynamodb.table_names" - end - @doc """ - The JSON-serialized value of each item in the `ConsumedCapacity` response field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_consumed_capacity() - :"aws.dynamodb.consumed_capacity" - """ - @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" - def aws_dynamodb_consumed_capacity do - :"aws.dynamodb.consumed_capacity" - end - @doc """ - The JSON-serialized value of the `ItemCollectionMetrics` response field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_item_collection_metrics() - :"aws.dynamodb.item_collection_metrics" - """ - @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" - def aws_dynamodb_item_collection_metrics do - :"aws.dynamodb.item_collection_metrics" - end - @doc """ - The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_provisioned_read_capacity() - :"aws.dynamodb.provisioned_read_capacity" - """ - @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" - def aws_dynamodb_provisioned_read_capacity do - :"aws.dynamodb.provisioned_read_capacity" - end - @doc """ - The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_provisioned_write_capacity() - :"aws.dynamodb.provisioned_write_capacity" - """ - @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" - def aws_dynamodb_provisioned_write_capacity do - :"aws.dynamodb.provisioned_write_capacity" - end - @doc """ - The value of the `ConsistentRead` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_consistent_read() - :"aws.dynamodb.consistent_read" - """ - @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" - def aws_dynamodb_consistent_read do - :"aws.dynamodb.consistent_read" - end - @doc """ - The value of the `ProjectionExpression` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_projection() - :"aws.dynamodb.projection" - """ - @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" - def aws_dynamodb_projection do - :"aws.dynamodb.projection" - end - @doc """ - The value of the `Limit` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_limit() - :"aws.dynamodb.limit" - """ - @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" - def aws_dynamodb_limit do - :"aws.dynamodb.limit" - end - @doc """ - The value of the `AttributesToGet` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_attributes_to_get() - :"aws.dynamodb.attributes_to_get" - """ - @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" - def aws_dynamodb_attributes_to_get do - :"aws.dynamodb.attributes_to_get" - end - @doc """ - The value of the `IndexName` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_index_name() - :"aws.dynamodb.index_name" - """ - @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" - def aws_dynamodb_index_name do - :"aws.dynamodb.index_name" - end - @doc """ - The value of the `Select` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_select() - :"aws.dynamodb.select" - """ - @spec aws_dynamodb_select :: :"aws.dynamodb.select" - def aws_dynamodb_select do - :"aws.dynamodb.select" - end - @doc """ - The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_global_secondary_indexes() - :"aws.dynamodb.global_secondary_indexes" - """ - @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" - def aws_dynamodb_global_secondary_indexes do - :"aws.dynamodb.global_secondary_indexes" - end - @doc """ - The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_local_secondary_indexes() - :"aws.dynamodb.local_secondary_indexes" - """ - @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" - def aws_dynamodb_local_secondary_indexes do - :"aws.dynamodb.local_secondary_indexes" - end - @doc """ - The value of the `ExclusiveStartTableName` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_exclusive_start_table() - :"aws.dynamodb.exclusive_start_table" - """ - @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" - def aws_dynamodb_exclusive_start_table do - :"aws.dynamodb.exclusive_start_table" - end - @doc """ - The the number of items in the `TableNames` response parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_table_count() - :"aws.dynamodb.table_count" - """ - @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" - def aws_dynamodb_table_count do - :"aws.dynamodb.table_count" - end - @doc """ - The value of the `ScanIndexForward` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_scan_forward() - :"aws.dynamodb.scan_forward" - """ - @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" - def aws_dynamodb_scan_forward do - :"aws.dynamodb.scan_forward" - end - @doc """ - The value of the `Segment` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_segment() - :"aws.dynamodb.segment" - """ - @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" - def aws_dynamodb_segment do - :"aws.dynamodb.segment" - end - @doc """ - The value of the `TotalSegments` request parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_total_segments() - :"aws.dynamodb.total_segments" - """ - @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" - def aws_dynamodb_total_segments do - :"aws.dynamodb.total_segments" - end - @doc """ - The value of the `Count` response parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_count() - :"aws.dynamodb.count" - """ - @spec aws_dynamodb_count :: :"aws.dynamodb.count" - def aws_dynamodb_count do - :"aws.dynamodb.count" - end - @doc """ - The value of the `ScannedCount` response parameter - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_scanned_count() - :"aws.dynamodb.scanned_count" - """ - @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" - def aws_dynamodb_scanned_count do - :"aws.dynamodb.scanned_count" - end - @doc """ - The JSON-serialized value of each item in the `AttributeDefinitions` request field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_attribute_definitions() - :"aws.dynamodb.attribute_definitions" - """ - @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" - def aws_dynamodb_attribute_definitions do - :"aws.dynamodb.attribute_definitions" - end - @doc """ - The JSON-serialized value of each item in the the `GlobalSecondaryIndexUpdates` request field - - iex> OpenTelemetry.SemanticConventions.Trace.aws_dynamodb_global_secondary_index_updates() - :"aws.dynamodb.global_secondary_index_updates" - """ - @spec aws_dynamodb_global_secondary_index_updates :: :"aws.dynamodb.global_secondary_index_updates" - def aws_dynamodb_global_secondary_index_updates do - :"aws.dynamodb.global_secondary_index_updates" - end - @doc """ - The name of the operation being executed - - iex> OpenTelemetry.SemanticConventions.Trace.graphql_operation_name() - :"graphql.operation.name" - """ - @spec graphql_operation_name :: :"graphql.operation.name" - def graphql_operation_name do - :"graphql.operation.name" - end - @doc """ - The type of the operation being executed - - iex> OpenTelemetry.SemanticConventions.Trace.graphql_operation_type() - :"graphql.operation.type" - """ - @spec graphql_operation_type :: :"graphql.operation.type" - def graphql_operation_type do - :"graphql.operation.type" - end - @doc """ - The GraphQL document being executed - - ### Notes - - The value may be sanitized to exclude sensitive information - - iex> OpenTelemetry.SemanticConventions.Trace.graphql_document() - :"graphql.document" - """ - @spec graphql_document :: :"graphql.document" - def graphql_document do - :"graphql.document" - end - @doc """ - A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_operation() - :"messaging.operation" - """ - @spec messaging_operation :: :"messaging.operation" - def messaging_operation do - :"messaging.operation" - end - @doc """ - The identifier for the consumer receiving a message. For Kafka, set it to `{messaging.kafka.consumer_group} - {messaging.kafka.client_id}`, if both are present, or only `messaging.kafka.consumer_group`. For brokers, such as RabbitMQ and Artemis, set it to the `client_id` of the client consuming the message - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_consumer_id() - :"messaging.consumer_id" - """ - @spec messaging_consumer_id :: :"messaging.consumer_id" - def messaging_consumer_id do - :"messaging.consumer_id" - end - @doc """ - RabbitMQ message routing key - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rabbitmq_routing_key() - :"messaging.rabbitmq.routing_key" - """ - @spec messaging_rabbitmq_routing_key :: :"messaging.rabbitmq.routing_key" - def messaging_rabbitmq_routing_key do - :"messaging.rabbitmq.routing_key" - end - @doc """ - Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message_id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set - - ### Notes - - If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_kafka_message_key() - :"messaging.kafka.message_key" - """ - @spec messaging_kafka_message_key :: :"messaging.kafka.message_key" - def messaging_kafka_message_key do - :"messaging.kafka.message_key" - end - @doc """ - Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_kafka_consumer_group() - :"messaging.kafka.consumer_group" - """ - @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer_group" - def messaging_kafka_consumer_group do - :"messaging.kafka.consumer_group" - end - @doc """ - Client Id for the Consumer or Producer that is handling the message - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_kafka_client_id() - :"messaging.kafka.client_id" - """ - @spec messaging_kafka_client_id :: :"messaging.kafka.client_id" - def messaging_kafka_client_id do - :"messaging.kafka.client_id" - end - @doc """ - Partition the message is sent to - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_kafka_partition() - :"messaging.kafka.partition" - """ - @spec messaging_kafka_partition :: :"messaging.kafka.partition" - def messaging_kafka_partition do - :"messaging.kafka.partition" - end - @doc """ - A boolean that is true if the message is a tombstone - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_kafka_tombstone() - :"messaging.kafka.tombstone" - """ - @spec messaging_kafka_tombstone :: :"messaging.kafka.tombstone" - def messaging_kafka_tombstone do - :"messaging.kafka.tombstone" - end - @doc """ - Namespace of RocketMQ resources, resources in different namespaces are individual - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_namespace() - :"messaging.rocketmq.namespace" - """ - @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" - def messaging_rocketmq_namespace do - :"messaging.rocketmq.namespace" - end - @doc """ - Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_client_group() - :"messaging.rocketmq.client_group" - """ - @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" - def messaging_rocketmq_client_group do - :"messaging.rocketmq.client_group" - end - @doc """ - The unique identifier for each client - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_client_id() - :"messaging.rocketmq.client_id" - """ - @spec messaging_rocketmq_client_id :: :"messaging.rocketmq.client_id" - def messaging_rocketmq_client_id do - :"messaging.rocketmq.client_id" - end - @doc """ - Type of message - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_message_type() - :"messaging.rocketmq.message_type" - """ - @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message_type" - def messaging_rocketmq_message_type do - :"messaging.rocketmq.message_type" - end - @doc """ - The secondary classifier of message besides topic - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_message_tag() - :"messaging.rocketmq.message_tag" - """ - @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message_tag" - def messaging_rocketmq_message_tag do - :"messaging.rocketmq.message_tag" - end - @doc """ - Key(s) of message, another way to mark message besides message id - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_message_keys() - :"messaging.rocketmq.message_keys" - """ - @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message_keys" - def messaging_rocketmq_message_keys do - :"messaging.rocketmq.message_keys" - end - @doc """ - Model of message consumption. This only applies to consumer spans - - iex> OpenTelemetry.SemanticConventions.Trace.messaging_rocketmq_consumption_model() - :"messaging.rocketmq.consumption_model" - """ - @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" - def messaging_rocketmq_consumption_model do - :"messaging.rocketmq.consumption_model" - end - @doc """ - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_grpc_status_code() - :"rpc.grpc.status_code" - """ - @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" - def rpc_grpc_status_code do - :"rpc.grpc.status_code" - end - @doc """ - Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 does not specify this, the value can be omitted - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_jsonrpc_version() - :"rpc.jsonrpc.version" - """ - @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" - def rpc_jsonrpc_version do - :"rpc.jsonrpc.version" - end - @doc """ - `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_jsonrpc_request_id() - :"rpc.jsonrpc.request_id" - """ - @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" - def rpc_jsonrpc_request_id do - :"rpc.jsonrpc.request_id" - end - @doc """ - `error.code` property of response if it is an error response - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_jsonrpc_error_code() - :"rpc.jsonrpc.error_code" - """ - @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" - def rpc_jsonrpc_error_code do - :"rpc.jsonrpc.error_code" - end - @doc """ - `error.message` property of response if it is an error response - - iex> OpenTelemetry.SemanticConventions.Trace.rpc_jsonrpc_error_message() - :"rpc.jsonrpc.error_message" - """ - @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" - def rpc_jsonrpc_error_message do - :"rpc.jsonrpc.error_message" - end - @doc """ - Whether this is a received or sent message - - iex> OpenTelemetry.SemanticConventions.Trace.message_type() - :"message.type" - """ - @spec message_type :: :"message.type" - def message_type do - :"message.type" - end - @doc """ - MUST be calculated as two different counters starting from `1` one for sent messages and one for received message - - ### Notes - - This way we guarantee that the values will be consistent between different implementations - - iex> OpenTelemetry.SemanticConventions.Trace.message_id() - :"message.id" - """ - @spec message_id :: :"message.id" - def message_id do - :"message.id" - end - @doc """ - Compressed size of the message in bytes - - iex> OpenTelemetry.SemanticConventions.Trace.message_compressed_size() - :"message.compressed_size" - """ - @spec message_compressed_size :: :"message.compressed_size" - def message_compressed_size do - :"message.compressed_size" - end - @doc """ - Uncompressed size of the message in bytes - - iex> OpenTelemetry.SemanticConventions.Trace.message_uncompressed_size() - :"message.uncompressed_size" - """ - @spec message_uncompressed_size :: :"message.uncompressed_size" - def message_uncompressed_size do - :"message.uncompressed_size" - end -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/mix.exs b/apps/opentelemetry_semantic_conventions/mix.exs index d00c5dac..bf84586f 100644 --- a/apps/opentelemetry_semantic_conventions/mix.exs +++ b/apps/opentelemetry_semantic_conventions/mix.exs @@ -8,16 +8,55 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do app: app, version: to_string(Keyword.fetch!(desc, :vsn)), description: to_string(Keyword.fetch!(desc, :description)), - elixir: "~> 1.8", + elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: [ {:dialyxir, "~> 1.0", only: [:dev], runtime: false}, - {:covertool, ">= 0.0.0", only: :test} + {:covertool, ">= 0.0.0", only: :test}, + {:ex_doc, "~> 0.32", only: [:dev]} ], name: "OpenTelemetry.SemanticConventions", + source_url: + "https://github.com/open-telemetry/opentelemetry-erlang/apps/opentelemetry_semantic_conventions", + docs: [ + main: "OpenTelemetry.SemanticConventions.SemanticAttributes", + extras: [], + groups_for_docs: [ + AWS: &(&1[:namespace] == :aws), + Browser: &(&1[:namespace] == :browser), + Cloud: &(&1[:namespace] in [:cloud, :cloudevents]), + Code: &(&1[:namespace] in [:code, :exception]), + Container: &(&1[:namespace] == :container), + Database: &(&1[:namespace] == :db), + DNS: &(&1[:namespace] in [:client, :destination, :dns]), + "End User": &(&1[:namespace] == :enduser), + FAAS: &(&1[:namespace] == :faas), + File: &(&1[:namespace] == :file), + GCP: &(&1[:namespace] == :gcp), + GraphQL: &(&1[:namespace] == :graphql), + Host: &(&1[:namespace] == :host), + HTTP: &(&1[:namespace] == :http), + Kubernetes: &(&1[:namespace] == :k8s), + Log: &(&1[:namespace] == :log), + Messaging: &(&1[:namespace] == :messaging), + Network: &(&1[:namespace] == :network), + Process: &(&1[:namespace] == :process), + RPC: &(&1[:namespace] == :rpc), + Runtime: &(&1[:namespace] in [:thread]), + Service: &(&1[:namespace] == :service), + Session: &(&1[:namespace] == :session), + System: &(&1[:namespace] in [:device, :system]), + Telemetry: &(&1[:namespace] == :telemetry), + TLS: &(&1[:namespace] == :tls), + URL: &(&1[:namespace] == :url) + ], + nest_modules_by_prefix: [ + OpenTelemetry, + SemanticConventions.SemanticAttributes + ] + ], test_coverage: [tool: :covertool], - package: package(), - aliases: [docs: & &1] + package: package() ] end @@ -38,7 +77,7 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do defp load_app do {:ok, [{:application, name, desc}]} = - :file.consult('src/opentelemetry_semantic_conventions.app.src') + :file.consult(~c"src/opentelemetry_semantic_conventions.app.src") {name, desc} end diff --git a/apps/opentelemetry_semantic_conventions/mix.lock b/apps/opentelemetry_semantic_conventions/mix.lock index a8087fcf..bbb37350 100644 --- a/apps/opentelemetry_semantic_conventions/mix.lock +++ b/apps/opentelemetry_semantic_conventions/mix.lock @@ -1,5 +1,11 @@ %{ "covertool": {:hex, :covertool, "2.0.4", "54acff6cddd88d28dea663cd2e1fe20dd32fcf5f5d3aff7d59031ce44ce39efa", [:rebar3], [], "hexpm", "5c9568ba4308fda2082172737c80c31d991ea83961eb10791f06106a870d0cdc"}, "dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, + "ex_doc": {:hex, :ex_doc, "0.32.1", "21e40f939515373bcdc9cffe65f3b3543f05015ac6c3d01d991874129d173420", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "5142c9db521f106d61ff33250f779807ed2a88620e472ac95dc7d59c380113da"}, + "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, + "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, + "makeup_erlang": {:hex, :makeup_erlang, "0.1.5", "e0ff5a7c708dda34311f7522a8758e23bfcd7d8d8068dc312b5eb41c6fd76eba", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "94d2e986428585a21516d7d7149781480013c56e30c6a233534bedf38867a59a"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, } diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src index 07a4d7e5..097c38d2 100644 --- a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src @@ -1,6 +1,6 @@ {application, opentelemetry_semantic_conventions, [{description, "Macros defining the keys of OpenTelemetry semantic conventions"}, - {vsn, "0.2.0"}, + {vsn, "1.25.0"}, {registered, []}, {applications, [kernel, diff --git a/apps/opentelemetry_semantic_conventions/templates/semantic_conventions.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/semantic_conventions.ex.j2 deleted file mode 100644 index 59103d9f..00000000 --- a/apps/opentelemetry_semantic_conventions/templates/semantic_conventions.ex.j2 +++ /dev/null @@ -1,43 +0,0 @@ -{%- macro upFirst(text) -%} - {{ text[0] | upper}}{{text[1:] }} -{%- endmacro -%} -{%- macro funcName(text) -%} - {{ text | regex_replace(pattern="\.", replace="_") }} -{%- endmacro -%} -defmodule OpenTelemetry.SemanticConventions.{{ upFirst(module) }} do - @doc """ - The schema url for telemetry resources. - - iex> OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.{{ module }}_schema_url() - "{{ schema_uri }}" - """ - @spec {{ module }}_schema_url :: String.t() - def {{ module }}_schema_url do - "{{ schema_uri }}" - end - -{%- for attribute in attributes | unique(attribute="fqn") %} - @doc """ - {{ attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} - {%- if attribute.note %} - - ### Notes - - {{attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} - {%- endif %} - - iex> OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.{{ funcName(attribute.fqn) }}() - :"{{ attribute.fqn }}" - """ - {%- if attribute.deprecated %} - @deprecated """ - {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} - """ - {%- endif %} - @spec {{ funcName(attribute.fqn) }} :: :"{{ attribute.fqn }}" - def {{ funcName(attribute.fqn) }} do - :"{{ attribute.fqn }}" - end - -{%- endfor %} -end From 3ead588f62b802fe23a940eaec2777279432fa16 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 20 Apr 2024 20:30:01 -0600 Subject: [PATCH 02/57] Multiple files --- .../.tool-versions | 1 + .../generate.exs | 81 + .../include/common.hrl | 1394 +++++++++++++ .../include/event.hrl | 68 + .../include/metric.hrl | 203 ++ .../include/resource.hrl | 496 +++++ .../include/span.hrl | 553 +++++ .../lib/common.ex | 1786 +++++++++++++++++ .../lib/event.ex | 48 + .../lib/metric.ex | 789 ++++++++ .../lib/resource.ex | 157 ++ .../lib/semantic_conventions.ex | 17 + .../lib/span.ex | 1012 ++++++++++ .../mix.exs | 12 +- .../templates/semantic_attributes.ex.j2 | 95 + ...ions.hrl.j2 => semantic_attributes.hrl.j2} | 0 16 files changed, 6709 insertions(+), 3 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/.tool-versions create mode 100644 apps/opentelemetry_semantic_conventions/generate.exs create mode 100644 apps/opentelemetry_semantic_conventions/include/common.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/event.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/metric.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/resource.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/span.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/common.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/event.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/metric.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/resource.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/span.ex create mode 100644 apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 rename apps/opentelemetry_semantic_conventions/templates/{semantic_conventions.hrl.j2 => semantic_attributes.hrl.j2} (100%) diff --git a/apps/opentelemetry_semantic_conventions/.tool-versions b/apps/opentelemetry_semantic_conventions/.tool-versions new file mode 100644 index 00000000..c6a8f163 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/.tool-versions @@ -0,0 +1 @@ +elixir 1.16.2 diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs new file mode 100644 index 00000000..0903e008 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -0,0 +1,81 @@ +semconv_version = "1.25.0" +docker_img_vsn = "0.24.0" +schema_uri = "https://opentelemetry.io/schemas/#{semconv_version}" + +build_dir = System.cmd("mktemp", ["-d"]) |> elem(0) |> String.trim() + +System.cmd("git", [ + "clone", + "https://github.com/open-telemetry/semantic-conventions.git", + build_dir +]) + +cwd = File.cwd!() + +File.cd!(build_dir, fn -> + System.cmd("git", ["checkout", "v#{semconv_version}"]) +end) + +for kind <- ["metric", "attribute_group", "resource", "span", "event"] do + module = if kind == "attribute_group", do: "common", else: kind + + # elixir + Task.async(fn -> + System.cmd("docker", [ + "run", + "--rm", + "-v", + "#{build_dir}/model:/source", + "-v", + "#{cwd}/templates:/templates", + "-v", + "#{cwd}/lib:/output", + "otel/semconvgen:#{docker_img_vsn}", + "--only", + kind, + "--yaml-root", + "/source", + "code", + "--template", + "/templates/semantic_attributes.ex.j2", + "--output", + "/output/#{module}.ex", + "-Dmodule=#{module}", + "-Dschema_uri=#{schema_uri}" + ]) + end) + + # erlang + Task.async(fn -> + + System.cmd("docker", [ + "run", + "--rm", + "-v", + "#{build_dir}/model:/source", + "-v", + "#{cwd}/templates:/templates", + "-v", + "#{cwd}/include:/output", + "otel/semconvgen:#{docker_img_vsn}", + "--only", + kind, + "--yaml-root", + "/source", + "code", + "--template", + "/templates/semantic_attributes.hrl.j2", + "--output", + "/output/#{module}.hrl", + "-Dmodule=#{module}", + "-Dschema_uri=#{schema_uri}" + ]) + end) +end +|> List.flatten() +|> Task.await_many(:timer.minutes(5)) + +System.cmd("mix", ["format"]) +System.cmd("mix", ["docs"]) + +File.rm_rf!(build_dir) diff --git a/apps/opentelemetry_semantic_conventions/include/common.hrl b/apps/opentelemetry_semantic_conventions/include/common.hrl new file mode 100644 index 00000000..53f4172d --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/common.hrl @@ -0,0 +1,1394 @@ +%% The schema url for telemetry resources +-define(COMMON_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). + +%% The name of the invoked function +%% SHOULD be equal to the `faas.name` resource attribute of the invoked function +-define(FAAS_INVOKED_NAME, 'faas.invoked_name'). + +%% The cloud provider of the invoked function +%% SHOULD be equal to the `cloud.provider` resource attribute of the invoked function +-define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). + +%% The cloud region of the invoked function +%% SHOULD be equal to the `cloud.region` resource attribute of the invoked function +-define(FAAS_INVOKED_REGION, 'faas.invoked_region'). + +%% Type of the trigger which caused this function invocation +-define(FAAS_TRIGGER, 'faas.trigger'). + +%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name +%% When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available +-define(CLIENT_ADDRESS, 'client.address'). + +%% Client port number +%% When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available +-define(CLIENT_PORT, 'client.port'). + +%% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name +%% When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available +-define(SERVER_ADDRESS, 'server.address'). + +%% Server port number +%% When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available +-define(SERVER_PORT, 'server.port'). + +%% Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name +%% When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent the source address behind any intermediaries, for example proxies, if it's available +-define(SOURCE_ADDRESS, 'source.address'). + +%% Source port number +-define(SOURCE_PORT, 'source.port'). + +%% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name +%% 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 +-define(DESTINATION_ADDRESS, 'destination.address'). + +%% Destination port number +-define(DESTINATION_PORT, 'destination.port'). + +%% HTTP request method +%% HTTP request method value SHOULD be "known" to the instrumentation. +%% By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) +%% and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). +%% +%% If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. +%% +%% If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override +%% the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named +%% OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods +%% (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). +%% +%% HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. +%% Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. +%% Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value +-define(HTTP_REQUEST_METHOD, 'http.request.method'). + +%% Describes a class of error the operation ended with +%% If the request fails with an error before response status code was sent or received, +%% `error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable) +%% or a component-specific low cardinality error identifier. +%% +%% If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), +%% `error.type` SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. +%% +%% The `error.type` value SHOULD be predictable and SHOULD have low cardinality. +%% Instrumentations SHOULD document the list of errors they report. +%% +%% The cardinality of `error.type` within one instrumentation library SHOULD be low, but +%% telemetry consumers that aggregate data from multiple instrumentation libraries and applications +%% should be prepared for `error.type` to have high cardinality at query time, when no +%% additional filters are applied. +%% +%% If the request has completed successfully, instrumentations SHOULD NOT set `error.type` +-define(ERROR_TYPE, 'error.type'). + +%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) +-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). + +%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent +%% The value SHOULD be normalized to lowercase +-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). + +%% The actual version of the protocol used for network communication +%% If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set +-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). + +%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol +-define(URL_SCHEME, 'url.scheme'). + +%% The matched route, that is, the path template in the format used by the respective server framework +%% MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. +%% SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one +-define(HTTP_ROUTE, 'http.route'). + +%% Identifies the class / type of event +%% Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.31.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes +-define(EVENT_NAME, 'event.name'). + +%% A unique identifier for the Log Record +%% If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records MUST have different values. +%% The id MAY be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed +-define(LOG_RECORD_UID, 'log.record.uid'). + +%% The exception message +-define(EXCEPTION_MESSAGE, 'exception.message'). + +%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG +-define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). + +%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it +-define(EXCEPTION_TYPE, 'exception.type'). + +%% The stream associated with the log. See below for a list of well-known values +-define(LOG_IOSTREAM, 'log.iostream'). + +%% The basename of the file +-define(LOG_FILE_NAME, 'log.file.name'). + +%% The basename of the file, with symlinks resolved +-define(LOG_FILE_NAME_RESOLVED, 'log.file.name_resolved'). + +%% The full path to the file +-define(LOG_FILE_PATH, 'log.file.path'). + +%% The full path to the file, with symlinks resolved +-define(LOG_FILE_PATH_RESOLVED, 'log.file.path_resolved'). + +%% An identifier for the messaging system being used. See below for a list of well-known identifiers +-define(MESSAGING_SYSTEM, 'messaging.system'). + +%% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` +-define(POOL_NAME, 'pool.name'). + +%% The state of a connection in the pool +-define(STATE, 'state'). + +%% Rate-limiting result, shows whether the lease was acquired or contains a rejection reason +-define(ASPNETCORE_RATE_LIMITING_RESULT, 'aspnetcore.rate_limiting.result'). + +%% Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) implementation that handled the exception +-define(ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE, 'aspnetcore.diagnostics.handler.type'). + +%% Rate limiting policy name +-define(ASPNETCORE_RATE_LIMITING_POLICY, 'aspnetcore.rate_limiting.policy'). + +%% Flag indicating if request was handled by the application pipeline +-define(ASPNETCORE_REQUEST_IS_UNHANDLED, 'aspnetcore.request.is_unhandled'). + +%% A value that indicates whether the matched route is a fallback route +-define(ASPNETCORE_ROUTING_IS_FALLBACK, 'aspnetcore.routing.is_fallback'). + +%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) +%% The value SHOULD be normalized to lowercase. +%% +%% Consider always setting the transport when setting a port number, since +%% a port number is ambiguous without knowing the transport. For example +%% different processes could be listening on TCP port 12345 and UDP port 12345 +-define(NETWORK_TRANSPORT, 'network.transport'). + +%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent +%% The value SHOULD be normalized to lowercase +-define(NETWORK_TYPE, 'network.type'). + +%% SignalR HTTP connection closure status +-define(SIGNALR_CONNECTION_STATUS, 'signalr.connection.status'). + +%% [SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md) +-define(SIGNALR_TRANSPORT, 'signalr.transport'). + +%% Name of the buffer pool +%% Pool names are generally obtained via [BufferPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName()) +-define(JVM_BUFFER_POOL_NAME, 'jvm.buffer.pool.name'). + +%% Name of the memory pool +%% Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()) +-define(JVM_MEMORY_POOL_NAME, 'jvm.memory.pool.name'). + +%% The type of memory +-define(JVM_MEMORY_TYPE, 'jvm.memory.type'). + +%% The message destination name +%% Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If +%% the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker +-define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). + +%% Low cardinality representation of the messaging destination name +%% Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation +-define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). + +%% The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels +-define(PROCESS_CPU_STATE, 'process.cpu.state'). + +%% A string identifying the remoting system. See below for a list of well-known identifiers +-define(RPC_SYSTEM, 'rpc.system'). + +%% The name of the (logical) method being called, must be equal to the $method part in the span name +%% This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) +-define(RPC_METHOD, 'rpc.method'). + +%% The full (logical) name of the service being called, including its package name, if applicable +%% This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) +-define(RPC_SERVICE, 'rpc.service'). + +%% The device identifier +-define(SYSTEM_DEVICE, 'system.device'). + +%% The logical CPU number [0..n-1] +-define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). + +%% The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels +-define(SYSTEM_CPU_STATE, 'system.cpu.state'). + +%% The memory state +-define(SYSTEM_MEMORY_STATE, 'system.memory.state'). + +%% The paging access direction +-define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). + +%% The memory paging state +-define(SYSTEM_PAGING_STATE, 'system.paging.state'). + +%% The memory paging type +-define(SYSTEM_PAGING_TYPE, 'system.paging.type'). + +%% The filesystem mode +-define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). + +%% The filesystem mount path +-define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). + +%% The filesystem state +-define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). + +%% The filesystem type +-define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). + +%% A stateless protocol MUST NOT set this attribute +-define(SYSTEM_NETWORK_STATE, 'system.network.state'). + +%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) +-define(SYSTEM_PROCESS_STATUS, 'system.process.status'). + +%% Local address of the network connection - IP address or Unix domain socket name +-define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). + +%% Local port number of the network connection +-define(NETWORK_LOCAL_PORT, 'network.local.port'). + +%% Peer address of the network connection - IP address or Unix domain socket name +-define(NETWORK_PEER_ADDRESS, 'network.peer.address'). + +%% Peer port number of the network connection +-define(NETWORK_PEER_PORT, 'network.peer.port'). + +%% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network +-define(NETWORK_CARRIER_ICC, 'network.carrier.icc'). + +%% The mobile carrier country code +-define(NETWORK_CARRIER_MCC, 'network.carrier.mcc'). + +%% The mobile carrier network code +-define(NETWORK_CARRIER_MNC, 'network.carrier.mnc'). + +%% The name of the mobile carrier +-define(NETWORK_CARRIER_NAME, 'network.carrier.name'). + +%% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection +-define(NETWORK_CONNECTION_SUBTYPE, 'network.connection.subtype'). + +%% The internet connection type +-define(NETWORK_CONNECTION_TYPE, 'network.connection.type'). + +%% 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) +-define(ANDROID_OS_API_LEVEL, 'android.os.api_level'). + +%% The JSON-serialized value of each item in the `AttributeDefinitions` request field +-define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). + +%% The value of the `AttributesToGet` request parameter +-define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). + +%% The value of the `ConsistentRead` request parameter +-define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). + +%% The JSON-serialized value of each item in the `ConsumedCapacity` response field +-define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). + +%% The value of the `Count` response parameter +-define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). + +%% The value of the `ExclusiveStartTableName` request parameter +-define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). + +%% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). + +%% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). + +%% The value of the `IndexName` request parameter +-define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). + +%% The JSON-serialized value of the `ItemCollectionMetrics` response field +-define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). + +%% The value of the `Limit` request parameter +-define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). + +%% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field +-define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). + +%% The value of the `ProjectionExpression` request parameter +-define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). + +%% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter +-define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). + +%% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter +-define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). + +%% The value of the `ScanIndexForward` request parameter +-define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). + +%% The value of the `ScannedCount` response parameter +-define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). + +%% The value of the `Segment` request parameter +-define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). + +%% The value of the `Select` request parameter +-define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). + +%% The number of items in the `TableNames` response parameter +-define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). + +%% The keys in the `RequestItems` object field +-define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). + +%% The value of the `TotalSegments` request parameter +-define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). + +%% Array of brand name and version separated by a space +%% This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) +-define(BROWSER_BRANDS, 'browser.brands'). + +%% Preferred language of the user using the browser +%% This value is intended to be taken from the Navigator API `navigator.language` +-define(BROWSER_LANGUAGE, 'browser.language'). + +%% A boolean that is true if the browser is running on a mobile device +%% 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 +-define(BROWSER_MOBILE, 'browser.mobile'). + +%% The platform on which the browser is running +%% 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 +-define(BROWSER_PLATFORM, 'browser.platform'). + +%% The cloud account ID the resource is assigned to +-define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). + +%% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running +%% Availability zones are called "zones" on Alibaba Cloud and Google Cloud +-define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). + +%% The cloud platform in use +%% The prefix of the service SHOULD match the one specified in `cloud.provider` +-define(CLOUD_PLATFORM, 'cloud.platform'). + +%% Name of the cloud provider +-define(CLOUD_PROVIDER, 'cloud.provider'). + +%% The geographical region the resource is running +%% 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) +-define(CLOUD_REGION, 'cloud.region'). + +%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) +%% 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 invokable 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://docs.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 +-define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). + +%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event +-define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). + +%% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened +-define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). + +%% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses +-define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). + +%% 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) +-define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). + +%% 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 +-define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). + +%% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` +-define(CODE_COLUMN, 'code.column'). + +%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) +-define(CODE_FILEPATH, 'code.filepath'). + +%% The method or function name, or equivalent (usually rightmost part of the code unit's name) +-define(CODE_FUNCTION, 'code.function'). + +%% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` +-define(CODE_LINENO, 'code.lineno'). + +%% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit +-define(CODE_NAMESPACE, 'code.namespace'). + +%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG +-define(CODE_STACKTRACE, 'code.stacktrace'). + +%% The command used to run the container (i.e. the command name) +%% If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage +-define(CONTAINER_COMMAND, 'container.command'). + +%% All the command arguments (including the command/executable itself) run by the container. [2] +-define(CONTAINER_COMMAND_ARGS, 'container.command_args'). + +%% The full command run by the container as a single string representing the full command. [2] +-define(CONTAINER_COMMAND_LINE, 'container.command_line'). + +%% The CPU state for this data point +-define(CONTAINER_CPU_STATE, 'container.cpu.state'). + +%% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated +-define(CONTAINER_ID, 'container.id'). + +%% Runtime specific image identifier. Usually a hash algorithm followed by a UUID +%% 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 assinged 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 +-define(CONTAINER_IMAGE_ID, 'container.image.id'). + +%% Name of the image the container was built on +-define(CONTAINER_IMAGE_NAME, 'container.image.name'). + +%% Repo digests of the container image as provided by the container runtime +%% [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 +-define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). + +%% 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:` +-define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). + +%% Container name used by container runtime +-define(CONTAINER_NAME, 'container.name'). + +%% The container runtime managing this container +-define(CONTAINER_RUNTIME, 'container.runtime'). + +%% 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) +-define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). + +%% The data center of the coordinating node for a query +-define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). + +%% The ID of the coordinating node for a query +-define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). + +%% Whether or not the query is idempotent +-define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). + +%% The fetch size used for paging, i.e. how many rows will be returned at once +-define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). + +%% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively +-define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). + +%% The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) +%% This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set +-define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). + +%% Unique Cosmos client instance id +-define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). + +%% Cosmos client connection mode +-define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). + +%% Cosmos DB container name +-define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). + +%% CosmosDB Operation Type +-define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). + +%% RU consumed for that operation +-define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). + +%% Request payload size in bytes +-define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). + +%% Cosmos DB status code +-define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). + +%% Cosmos DB sub status code +-define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). + +%% Represents the identifier of an Elasticsearch cluster +-define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). + +%% An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like `select @@hostname` +-define(DB_INSTANCE_ID, 'db.instance.id'). + +%% The MongoDB collection being accessed within the database stated in `db.name` +-define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). + +%% The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance +%% If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) +-define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). + +%% This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) +%% In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) +-define(DB_NAME, 'db.name'). + +%% The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword +%% When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted +-define(DB_OPERATION, 'db.operation'). + +%% The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute +-define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). + +%% The name of the primary table that the operation is acting upon, including the database name (if applicable) +%% It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set +-define(DB_SQL_TABLE, 'db.sql.table'). + +%% The database statement being executed +-define(DB_STATEMENT, 'db.statement'). + +%% An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers +-define(DB_SYSTEM, 'db.system'). + +%% Username for accessing the database +-define(DB_USER, 'db.user'). + +%% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) +%% `deployment.environment` 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=production` +%% * `service.name=frontend`, `deployment.environment=staging` +-define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). + +%% Deprecated, use `server.address`, `server.port` attributes instead +%% @deprecated "Replaced by `server.address` and `server.port`." +-define(DB_CONNECTION_STRING, 'db.connection_string'). + +%% Deprecated, use `db.instance.id` instead +%% @deprecated Replaced by `db.instance.id` +-define(DB_ELASTICSEARCH_NODE_NAME, 'db.elasticsearch.node.name'). + +%% Removed, no replacement at this time +%% @deprecated Removed as not used +-define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). + +%% Deprecated, use `network.protocol.name` instead +%% @deprecated Replaced by `network.protocol.name` +-define(HTTP_FLAVOR, 'http.flavor'). + +%% Deprecated, use `http.request.method` instead +%% @deprecated Replaced by `http.request.method` +-define(HTTP_METHOD, 'http.method'). + +%% Deprecated, use `http.request.header.content-length` instead +%% @deprecated Replaced by `http.request.header.content-length` +-define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). + +%% Deprecated, use `http.response.header.content-length` instead +%% @deprecated Replaced by `http.response.header.content-length` +-define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). + +%% Deprecated, use `url.scheme` instead +%% @deprecated Replaced by `url.scheme` instead +-define(HTTP_SCHEME, 'http.scheme'). + +%% Deprecated, use `http.response.status_code` instead +%% @deprecated Replaced by `http.response.status_code` +-define(HTTP_STATUS_CODE, 'http.status_code'). + +%% Deprecated, use `url.path` and `url.query` instead +%% @deprecated Split to `url.path` and `url.query +-define(HTTP_TARGET, 'http.target'). + +%% Deprecated, use `url.full` instead +%% @deprecated Replaced by `url.full` +-define(HTTP_URL, 'http.url'). + +%% Deprecated, use `user_agent.original` instead +%% @deprecated Replaced by `user_agent.original` +-define(HTTP_USER_AGENT, 'http.user_agent'). + +%% "Deprecated, use `messaging.destination.partition.id` instead." +%% @deprecated Replaced by `messaging.destination.partition.id` +-define(MESSAGING_KAFKA_DESTINATION_PARTITION, 'messaging.kafka.destination.partition'). + +%% Deprecated, use `server.address` +%% @deprecated Replaced by `server.address` +-define(NET_HOST_NAME, 'net.host.name'). + +%% Deprecated, use `server.port` +%% @deprecated Replaced by `server.port` +-define(NET_HOST_PORT, 'net.host.port'). + +%% Deprecated, use `server.address` on client spans and `client.address` on server spans +%% @deprecated Replaced by `server.address` on client spans and `client.address` on server spans +-define(NET_PEER_NAME, 'net.peer.name'). + +%% Deprecated, use `server.port` on client spans and `client.port` on server spans +%% @deprecated Replaced by `server.port` on client spans and `client.port` on server spans +-define(NET_PEER_PORT, 'net.peer.port'). + +%% Deprecated, use `network.protocol.name` +%% @deprecated Replaced by `network.protocol.name` +-define(NET_PROTOCOL_NAME, 'net.protocol.name'). + +%% Deprecated, use `network.protocol.version` +%% @deprecated Replaced by `network.protocol.version` +-define(NET_PROTOCOL_VERSION, 'net.protocol.version'). + +%% Deprecated, use `network.transport` and `network.type` +%% @deprecated Split to `network.transport` and `network.type` +-define(NET_SOCK_FAMILY, 'net.sock.family'). + +%% Deprecated, use `network.local.address` +%% @deprecated Replaced by `network.local.address` +-define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). + +%% Deprecated, use `network.local.port` +%% @deprecated Replaced by `network.local.port` +-define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). + +%% Deprecated, use `network.peer.address` +%% @deprecated Replaced by `network.peer.address` +-define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). + +%% Deprecated, no replacement at this time +%% @deprecated Removed +-define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). + +%% Deprecated, use `network.peer.port` +%% @deprecated Replaced by `network.peer.port` +-define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). + +%% Deprecated, use `network.transport` +%% @deprecated Replaced by `network.transport` +-define(NET_TRANSPORT, 'net.transport'). + +%% Deprecated, use `system.process.status` instead +%% @deprecated Replaced by `system.process.status` +-define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). + +%% A unique identifier representing the device +%% The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 +-define(DEVICE_ID, 'device.id'). + +%% The name of the device manufacturer +%% The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple` +-define(DEVICE_MANUFACTURER, 'device.manufacturer'). + +%% The model identifier for the device +%% 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 +-define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). + +%% The marketing name for the device model +%% It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative +-define(DEVICE_MODEL_NAME, 'device.model.name'). + +%% The disk IO operation direction +-define(DISK_IO_DIRECTION, 'disk.io.direction'). + +%% The name being queried +%% 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 +-define(DNS_QUESTION_NAME, 'dns.question.name'). + +%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system +-define(ENDUSER_ID, 'enduser.id'). + +%% Actual/assumed role the client is making the request under extracted from token or application security context +-define(ENDUSER_ROLE, 'enduser.role'). + +%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) +-define(ENDUSER_SCOPE, 'enduser.scope'). + +%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span +%% An exception is considered to have escaped (or left) the scope of a span, +%% if that span is ended while the exception is still logically "in flight". +%% This may be actually "in flight" in some languages (e.g. if the exception +%% is passed to a Context manager's `__exit__` method in Python) but will +%% usually be caught at the point of recording the exception in most languages. +%% +%% It is usually not possible to determine at the point where an exception is thrown +%% whether it will escape the scope of a span. +%% However, it is trivial to know that an exception +%% will escape, if one checks for an active exception just before ending the span, +%% as done in the [example for recording span exceptions](#recording-an-exception). +%% +%% It follows that an exception may still escape the scope of the span +%% even if the `exception.escaped` attribute was not set or set to false, +%% since the event might have been recorded at a time where it was not +%% clear whether the exception will escape +-define(EXCEPTION_ESCAPED, 'exception.escaped'). + +%% A boolean that is true if the serverless function is executed for the first time (aka cold-start) +-define(FAAS_COLDSTART, 'faas.coldstart'). + +%% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) +-define(FAAS_CRON, 'faas.cron'). + +%% 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 +-define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). + +%% 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 +-define(FAAS_DOCUMENT_NAME, 'faas.document.name'). + +%% Describes the type of the operation that was performed on the data +-define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). + +%% 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) +-define(FAAS_DOCUMENT_TIME, 'faas.document.time'). + +%% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version +%% * **AWS Lambda:** Use the (full) log stream name +-define(FAAS_INSTANCE, 'faas.instance'). + +%% The invocation ID of the current function invocation +-define(FAAS_INVOCATION_ID, 'faas.invocation_id'). + +%% The amount of memory available to the serverless function converted to Bytes +%% 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) +-define(FAAS_MAX_MEMORY, 'faas.max_memory'). + +%% The name of the single function that this runtime instance executes +%% 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`](/docs/general/attributes.md#source-code-attributes) +%% span attributes). +%% +%% 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) +-define(FAAS_NAME, 'faas.name'). + +%% 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) +-define(FAAS_TIME, 'faas.time'). + +%% The immutable version of the function being executed +%% Depending on the cloud provider and platform, use: +%% +%% * **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 +-define(FAAS_VERSION, 'faas.version'). + +%% The unique identifier of the feature flag +-define(FEATURE_FLAG_KEY, 'feature_flag.key'). + +%% The name of the service provider that performs the flag evaluation +-define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). + +%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used +%% 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`. +%% +%% A stringified version of the value can be used in situations where a +%% semantic identifier is unavailable. String representation of the value +%% should be determined by the implementer +-define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). + +%% Directory where the file is located. It should include the drive letter, when appropriate +-define(FILE_DIRECTORY, 'file.directory'). + +%% File extension, excluding the leading dot +%% When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz") +-define(FILE_EXTENSION, 'file.extension'). + +%% Name of the file including the extension, without the directory +-define(FILE_NAME, 'file.name'). + +%% Full path to the file, including the file name. It should include the drive letter, when appropriate +-define(FILE_PATH, 'file.path'). + +%% File size in bytes +-define(FILE_SIZE, 'file.size'). + +%% 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 +-define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). + +%% 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 +-define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). + +%% 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) +-define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). + +%% 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) +-define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). + +%% The CPU architecture the host system is running on +-define(HOST_ARCH, 'host.arch'). + +%% The amount of level 2 memory cache available to the processor (in Bytes) +-define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). + +%% Family or generation of the CPU +-define(HOST_CPU_FAMILY, 'host.cpu.family'). + +%% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family +-define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). + +%% Model designation of the processor +-define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). + +%% Stepping or core revisions +-define(HOST_CPU_STEPPING, 'host.cpu.stepping'). + +%% Processor manufacturer identifier. A maximum 12-character string +%% [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 +-define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). + +%% 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 +-define(HOST_ID, 'host.id'). + +%% VM image ID or host OS image ID. For Cloud, this value is from the provider +-define(HOST_IMAGE_ID, 'host.image.id'). + +%% Name of the VM image or OS install the host was instantiated from +-define(HOST_IMAGE_NAME, 'host.image.name'). + +%% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) +-define(HOST_IMAGE_VERSION, 'host.image.version'). + +%% Available IP addresses of the host, excluding loopback interfaces +%% 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 +-define(HOST_IP, 'host.ip'). + +%% Available MAC addresses of the host, excluding loopback interfaces +%% 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 +-define(HOST_MAC, 'host.mac'). + +%% 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 +-define(HOST_NAME, 'host.name'). + +%% Type of host. For Cloud, this must be the machine type +-define(HOST_TYPE, 'host.type'). + +%% State of the HTTP connection in the HTTP connection pool +-define(HTTP_CONNECTION_STATE, 'http.connection.state'). + +%% 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 +-define(HTTP_REQUEST_BODY_SIZE, 'http.request.body.size'). + +%% Original HTTP method sent by the client in the request line +-define(HTTP_REQUEST_METHOD_ORIGINAL, 'http.request.method_original'). + +%% The ordinal number of request resending attempt (for any reason, including redirects) +%% The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) +-define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). + +%% 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 +-define(HTTP_REQUEST_SIZE, 'http.request.size'). + +%% 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 +-define(HTTP_RESPONSE_BODY_SIZE, 'http.response.body.size'). + +%% 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 +-define(HTTP_RESPONSE_SIZE, 'http.response.size'). + +%% The name of the cluster +-define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). + +%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace +%% K8s doesn't have support for obtaining a cluster ID. If this is ever +%% added, we will recommend collecting the `k8s.cluster.uid` through the +%% official APIs. In the meantime, we are able to use the `uid` of the +%% `kube-system` namespace as a proxy for cluster ID. Read on for the +%% rationale. +%% +%% Every object created in a K8s cluster is assigned a distinct UID. The +%% `kube-system` namespace is used by Kubernetes itself and will exist +%% for the lifetime of the cluster. Using the `uid` of the `kube-system` +%% namespace is a reasonable proxy for the K8s ClusterID as it will only +%% change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are +%% UUIDs as standardized by +%% [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). +%% Which states: +%% +%% > If generated according to one of the mechanisms defined in Rec. +%% ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be +%% different from all other UUIDs generated before 3603 A.D., or is +%% extremely likely to be different (depending on the mechanism chosen). +%% +%% Therefore, UIDs between clusters should be extremely unlikely to +%% conflict +-define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). + +%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) +-define(K8S_CONTAINER_NAME, 'k8s.container.name'). + +%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec +-define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). + +%% The name of the CronJob +-define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). + +%% The UID of the CronJob +-define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). + +%% The name of the DaemonSet +-define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). + +%% The UID of the DaemonSet +-define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). + +%% The name of the Deployment +-define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). + +%% The UID of the Deployment +-define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). + +%% The name of the Job +-define(K8S_JOB_NAME, 'k8s.job.name'). + +%% The UID of the Job +-define(K8S_JOB_UID, 'k8s.job.uid'). + +%% The name of the namespace that the pod is running in +-define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). + +%% The name of the Node +-define(K8S_NODE_NAME, 'k8s.node.name'). + +%% The UID of the Node +-define(K8S_NODE_UID, 'k8s.node.uid'). + +%% The name of the Pod +-define(K8S_POD_NAME, 'k8s.pod.name'). + +%% The UID of the Pod +-define(K8S_POD_UID, 'k8s.pod.uid'). + +%% The name of the ReplicaSet +-define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). + +%% The UID of the ReplicaSet +-define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). + +%% The name of the StatefulSet +-define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). + +%% The UID of the StatefulSet +-define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). + +%% The number of messages sent, received, or processed in the scope of the batching operation +%% Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs +-define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). + +%% A unique identifier for the client that consumes or produces a message +-define(MESSAGING_CLIENT_ID, 'messaging.client_id'). + +%% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) +-define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). + +%% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` +-define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). + +%% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed +-define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). + +%% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name) +-define(MESSAGING_DESTINATION_PUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). + +%% The name of the original destination the message was published to +%% The name SHOULD uniquely identify a specific queue, topic, or other entity within the broker. If +%% the broker doesn't have such notion, the original destination name SHOULD uniquely identify the broker +-define(MESSAGING_DESTINATION_PUBLISH_NAME, 'messaging.destination_publish.name'). + +%% The name of the consumer group the event consumer is associated with +-define(MESSAGING_EVENTHUBS_CONSUMER_GROUP, 'messaging.eventhubs.consumer.group'). + +%% The UTC epoch seconds at which the message has been accepted and stored in the entity +-define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME, 'messaging.eventhubs.message.enqueued_time'). + +%% The ordering key for a given message. If the attribute is not present, the message does not have an ordering key +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY, 'messaging.gcp_pubsub.message.ordering_key'). + +%% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers +-define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer.group'). + +%% Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set +%% If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value +-define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message.key'). + +%% The offset of a record in the corresponding Kafka partition +-define(MESSAGING_KAFKA_MESSAGE_OFFSET, 'messaging.kafka.message.offset'). + +%% A boolean that is true if the message is a tombstone +-define(MESSAGING_KAFKA_MESSAGE_TOMBSTONE, 'messaging.kafka.message.tombstone'). + +%% The size of the message body in bytes +%% This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed +%% body size should be used +-define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). + +%% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" +-define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). + +%% The size of the message body and metadata in bytes +%% This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed +%% size should be used +-define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). + +%% A value used by the messaging system as an identifier for the message, represented as a string +-define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). + +%% A string identifying the kind of messaging operation +%% If a custom value is used, it MUST be of low cardinality +-define(MESSAGING_OPERATION, 'messaging.operation'). + +%% RabbitMQ message routing key +-define(MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY, 'messaging.rabbitmq.destination.routing_key'). + +%% RabbitMQ message delivery tag +-define(MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG, 'messaging.rabbitmq.message.delivery_tag'). + +%% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind +-define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). + +%% Model of message consumption. This only applies to consumer spans +-define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). + +%% The delay time level for delay message, which determines the message delay time +-define(MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL, 'messaging.rocketmq.message.delay_time_level'). + +%% The timestamp in milliseconds that the delay message is expected to be delivered to consumer +-define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). + +%% It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group +-define(MESSAGING_ROCKETMQ_MESSAGE_GROUP, 'messaging.rocketmq.message.group'). + +%% Key(s) of message, another way to mark message besides message id +-define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message.keys'). + +%% The secondary classifier of message besides topic +-define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message.tag'). + +%% Type of message +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message.type'). + +%% Namespace of RocketMQ resources, resources in different namespaces are individual +-define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). + +%% The name of the subscription in the topic messages are received from +-define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME, 'messaging.servicebus.destination.subscription_name'). + +%% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS, 'messaging.servicebus.disposition_status'). + +%% Number of deliveries that have been attempted for this message +-define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT, 'messaging.servicebus.message.delivery_count'). + +%% The UTC epoch seconds at which the message has been accepted and stored in the entity +-define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME, 'messaging.servicebus.message.enqueued_time'). + +%% The network IO operation direction +-define(NETWORK_IO_DIRECTION, 'network.io.direction'). + +%% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known +%% Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). +%% An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) +-define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). + +%% Unique identifier for a particular build or compilation of the operating system +-define(OS_BUILD_ID, 'os.build_id'). + +%% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands +-define(OS_DESCRIPTION, 'os.description'). + +%% Human readable operating system name +-define(OS_NAME, 'os.name'). + +%% The operating system type +-define(OS_TYPE, 'os.type'). + +%% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes) +-define(OS_VERSION, 'os.version'). + +%% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` +-define(PROCESS_COMMAND, 'process.command'). + +%% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` +-define(PROCESS_COMMAND_ARGS, 'process.command_args'). + +%% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead +-define(PROCESS_COMMAND_LINE, 'process.command_line'). + +%% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` +-define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). + +%% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` +-define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). + +%% The username of the user that owns the process +-define(PROCESS_OWNER, 'process.owner'). + +%% Parent Process identifier (PPID) +-define(PROCESS_PARENT_PID, 'process.parent_pid'). + +%% Process identifier (PID) +-define(PROCESS_PID, 'process.pid'). + +%% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment +-define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). + +%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler +-define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). + +%% The version of the runtime of this process, as returned by the runtime without modification +-define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). + +%% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values +-define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). + +%% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request +-define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). + +%% `error.code` property of response if it is an error response +-define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). + +%% `error.message` property of response if it is an error response +-define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). + +%% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification +-define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). + +%% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted +-define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). + +%% The string ID of the service instance +%% MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words +%% `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to +%% distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled +%% service). +%% +%% Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC +%% 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of +%% this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and +%% SHOULD use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. +%% +%% UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is +%% needed. Similar to what can be seen in the man page for the +%% [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying +%% data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it +%% or not via another resource attribute. +%% +%% For applications running behind an application server (like unicorn), we do not recommend using one identifier +%% for all processes participating in the application. Instead, it's recommended each division (e.g. a worker +%% thread in unicorn) to have its own instance.id. +%% +%% It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the +%% service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will +%% likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. +%% However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance +%% for that telemetry. This is typically the case for scraping receivers, as they know the target address and +%% port +-define(SERVICE_INSTANCE_ID, 'service.instance.id'). + +%% Logical name of the service +%% MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service` +-define(SERVICE_NAME, 'service.name'). + +%% A namespace for `service.name` +%% A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace +-define(SERVICE_NAMESPACE, 'service.namespace'). + +%% The version string of the service API or implementation. The format is not defined by these conventions +-define(SERVICE_VERSION, 'service.version'). + +%% A unique id to identify a session +-define(SESSION_ID, 'session.id'). + +%% The previous `session.id` for this user, when known +-define(SESSION_PREVIOUS_ID, 'session.previous_id'). + +%% The language of the telemetry SDK +-define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). + +%% The name of the telemetry SDK as defined above +%% The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`. +%% If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the +%% `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point +%% or another suitable identifier depending on the language. +%% The identifier `opentelemetry` is reserved and MUST NOT be used in this case. +%% All custom identifiers SHOULD be stable across different versions of an implementation +-define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). + +%% The version string of the telemetry SDK +-define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). + +%% The name of the auto instrumentation agent or distribution, if used +%% Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to +%% a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` +-define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). + +%% The version string of the auto instrumentation agent or distribution, if used +-define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). + +%% Current "managed" thread ID (as opposed to OS thread ID) +-define(THREAD_ID, 'thread.id'). + +%% Current thread name +-define(THREAD_NAME, 'thread.name'). + +%% String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection +%% The values allowed for `tls.cipher` MUST be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4) +-define(TLS_CIPHER, 'tls.cipher'). + +%% PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list +-define(TLS_CLIENT_CERTIFICATE, 'tls.client.certificate'). + +%% Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain +-define(TLS_CLIENT_CERTIFICATE_CHAIN, 'tls.client.certificate_chain'). + +%% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash +-define(TLS_CLIENT_HASH_MD5, 'tls.client.hash.md5'). + +%% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash +-define(TLS_CLIENT_HASH_SHA1, 'tls.client.hash.sha1'). + +%% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash +-define(TLS_CLIENT_HASH_SHA256, 'tls.client.hash.sha256'). + +%% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client +-define(TLS_CLIENT_ISSUER, 'tls.client.issuer'). + +%% A hash that identifies clients based on how they perform an SSL/TLS handshake +-define(TLS_CLIENT_JA3, 'tls.client.ja3'). + +%% Date/Time indicating when client certificate is no longer considered valid +-define(TLS_CLIENT_NOT_AFTER, 'tls.client.not_after'). + +%% Date/Time indicating when client certificate is first considered valid +-define(TLS_CLIENT_NOT_BEFORE, 'tls.client.not_before'). + +%% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to +-define(TLS_CLIENT_SERVER_NAME, 'tls.client.server_name'). + +%% Distinguished name of subject of the x.509 certificate presented by the client +-define(TLS_CLIENT_SUBJECT, 'tls.client.subject'). + +%% Array of ciphers offered by the client during the client hello +-define(TLS_CLIENT_SUPPORTED_CIPHERS, 'tls.client.supported_ciphers'). + +%% String indicating the curve used for the given cipher, when applicable +-define(TLS_CURVE, 'tls.curve'). + +%% Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel +-define(TLS_ESTABLISHED, 'tls.established'). + +%% String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case +-define(TLS_NEXT_PROTOCOL, 'tls.next_protocol'). + +%% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) +-define(TLS_PROTOCOL_NAME, 'tls.protocol.name'). + +%% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) +-define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). + +%% Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation +-define(TLS_RESUMED, 'tls.resumed'). + +%% PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list +-define(TLS_SERVER_CERTIFICATE, 'tls.server.certificate'). + +%% Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain +-define(TLS_SERVER_CERTIFICATE_CHAIN, 'tls.server.certificate_chain'). + +%% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash +-define(TLS_SERVER_HASH_MD5, 'tls.server.hash.md5'). + +%% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash +-define(TLS_SERVER_HASH_SHA1, 'tls.server.hash.sha1'). + +%% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash +-define(TLS_SERVER_HASH_SHA256, 'tls.server.hash.sha256'). + +%% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client +-define(TLS_SERVER_ISSUER, 'tls.server.issuer'). + +%% A hash that identifies servers based on how they perform an SSL/TLS handshake +-define(TLS_SERVER_JA3S, 'tls.server.ja3s'). + +%% Date/Time indicating when server certificate is no longer considered valid +-define(TLS_SERVER_NOT_AFTER, 'tls.server.not_after'). + +%% Date/Time indicating when server certificate is first considered valid +-define(TLS_SERVER_NOT_BEFORE, 'tls.server.not_before'). + +%% Distinguished name of subject of the x.509 certificate presented by the server +-define(TLS_SERVER_SUBJECT, 'tls.server.subject'). + +%% Domain extracted from the `url.full`, such as "opentelemetry.io" +%% In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field +-define(URL_DOMAIN, 'url.domain'). + +%% The file extension extracted from the `url.full`, excluding the leading dot +%% The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz` +-define(URL_EXTENSION, 'url.extension'). + +%% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component +-define(URL_FRAGMENT, 'url.fragment'). + +%% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) +%% For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. +%% `url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`. +%% `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it +-define(URL_FULL, 'url.full'). + +%% Unmodified original URL as seen in the event source +%% In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. +%% `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username SHOULD NOT be redacted and attribute's value SHOULD remain the same +-define(URL_ORIGINAL, 'url.original'). + +%% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component +%% Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it +-define(URL_PATH, 'url.path'). + +%% Port extracted from the `url.full` +-define(URL_PORT, 'url.port'). + +%% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component +%% Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it +-define(URL_QUERY, 'url.query'). + +%% The highest registered url domain, stripped of the subdomain +%% This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk` +-define(URL_REGISTERED_DOMAIN, 'url.registered_domain'). + +%% The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain +%% The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period +-define(URL_SUBDOMAIN, 'url.subdomain'). + +%% The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com` +%% This value can be determined precisely with the [public suffix list](http://publicsuffix.org) +-define(URL_TOP_LEVEL_DOMAIN, 'url.top_level_domain'). + +%% Name of the user-agent extracted from original. Usually refers to the browser's name +%% [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version` +-define(USER_AGENT_NAME, 'user_agent.name'). + +%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client +-define(USER_AGENT_ORIGINAL, 'user_agent.original'). + +%% Version of the user-agent extracted from original. Usually refers to the browser's version +%% [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name` +-define(USER_AGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/event.hrl b/apps/opentelemetry_semantic_conventions/include/event.hrl new file mode 100644 index 00000000..e0f0f19a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/event.hrl @@ -0,0 +1,68 @@ +%% The schema url for telemetry resources +-define(EVENT_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). + +%% The unique identifier of the feature flag +-define(FEATURE_FLAG_KEY, 'feature_flag.key'). + +%% The name of the service provider that performs the flag evaluation +-define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). + +%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used +%% 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`. +%% +%% A stringified version of the value can be used in situations where a +%% semantic identifier is unavailable. String representation of the value +%% should be determined by the implementer +-define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). + +%% This attribute represents the state the application has transitioned into at the occurrence of the event +%% The iOS lifecycle states are defined in the [UIApplicationDelegate documentation](https://developer.apple.com/documentation/uikit/uiapplicationdelegate#1656902), and from which the `OS terminology` column values are derived +-define(IOS_STATE, 'ios.state'). + +%% This attribute represents the state the application has transitioned into at the occurrence of the event +%% The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), and from which the `OS identifiers` are derived +-define(ANDROID_STATE, 'android.state'). + +%% Compressed size of the message in bytes +-define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). + +%% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message +%% This way we guarantee that the values will be consistent between different implementations +-define(MESSAGE_ID, 'message.id'). + +%% Whether this is a received or sent message +-define(MESSAGE_TYPE, 'message.type'). + +%% Uncompressed size of the message in bytes +-define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). + +%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span +%% An exception is considered to have escaped (or left) the scope of a span, +%% if that span is ended while the exception is still logically "in flight". +%% This may be actually "in flight" in some languages (e.g. if the exception +%% is passed to a Context manager's `__exit__` method in Python) but will +%% usually be caught at the point of recording the exception in most languages. +%% +%% It is usually not possible to determine at the point where an exception is thrown +%% whether it will escape the scope of a span. +%% However, it is trivial to know that an exception +%% will escape, if one checks for an active exception just before ending the span, +%% as done in the [example for recording span exceptions](#recording-an-exception). +%% +%% It follows that an exception may still escape the scope of the span +%% even if the `exception.escaped` attribute was not set or set to false, +%% since the event might have been recorded at a time where it was not +%% clear whether the exception will escape +-define(EXCEPTION_ESCAPED, 'exception.escaped'). + +%% The exception message +-define(EXCEPTION_MESSAGE, 'exception.message'). + +%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG +-define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). + +%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it +-define(EXCEPTION_TYPE, 'exception.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/metric.hrl b/apps/opentelemetry_semantic_conventions/include/metric.hrl new file mode 100644 index 00000000..2279908e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/metric.hrl @@ -0,0 +1,203 @@ +%% The schema url for telemetry resources +-define(METRIC_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). + +%% The CPU state for this data point. A container SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels +-define(CONTAINER_CPU_STATE, 'container.cpu.state'). + +%% The disk IO operation direction +-define(DISK_IO_DIRECTION, 'disk.io.direction'). + +%% The device identifier +-define(SYSTEM_DEVICE, 'system.device'). + +%% The network IO operation direction +-define(NETWORK_IO_DIRECTION, 'network.io.direction'). + +%% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` +-define(POOL_NAME, 'pool.name'). + +%% The state of a connection in the pool +-define(STATE, 'state'). + +%% The name being queried +%% 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 +-define(DNS_QUESTION_NAME, 'dns.question.name'). + +%% Describes the error the DNS lookup failed with +%% Instrumentations SHOULD use error code such as one of errors reported by `getaddrinfo`([Linux or other POSIX systems](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) / [Windows](https://learn.microsoft.com/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) or one reported by the runtime or client library. If error code is not available, the full name of exception type SHOULD be used +-define(ERROR_TYPE, 'error.type'). + +%% Match result - success or failure +-define(ASPNETCORE_ROUTING_MATCH_STATUS, 'aspnetcore.routing.match_status'). + +%% A value that indicates whether the matched route is a fallback route +-define(ASPNETCORE_ROUTING_IS_FALLBACK, 'aspnetcore.routing.is_fallback'). + +%% The matched route, that is, the path template in the format used by the respective server framework +%% MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. +%% SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one +-define(HTTP_ROUTE, 'http.route'). + +%% ASP.NET Core exception middleware handling result +-define(ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT, 'aspnetcore.diagnostics.exception.result'). + +%% Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) implementation that handled the exception +-define(ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE, 'aspnetcore.diagnostics.handler.type'). + +%% Rate limiting policy name +-define(ASPNETCORE_RATE_LIMITING_POLICY, 'aspnetcore.rate_limiting.policy'). + +%% Rate-limiting result, shows whether the lease was acquired or contains a rejection reason +-define(ASPNETCORE_RATE_LIMITING_RESULT, 'aspnetcore.rate_limiting.result'). + +%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) +%% The value SHOULD be normalized to lowercase. +%% +%% Consider always setting the transport when setting a port number, since +%% a port number is ambiguous without knowing the transport. For example +%% different processes could be listening on TCP port 12345 and UDP port 12345 +-define(NETWORK_TRANSPORT, 'network.transport'). + +%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent +%% The value SHOULD be normalized to lowercase +-define(NETWORK_TYPE, 'network.type'). + +%% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name +%% When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available +-define(SERVER_ADDRESS, 'server.address'). + +%% Server port number +%% When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available +-define(SERVER_PORT, 'server.port'). + +%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent +%% The value SHOULD be normalized to lowercase +-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). + +%% The actual version of the protocol used for network communication +%% If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set +-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). + +%% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) +-define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). + +%% SignalR HTTP connection closure status +-define(SIGNALR_CONNECTION_STATUS, 'signalr.connection.status'). + +%% [SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md) +-define(SIGNALR_TRANSPORT, 'signalr.transport'). + +%% Type of the trigger which caused this function invocation +-define(FAAS_TRIGGER, 'faas.trigger'). + +%% HTTP request method +%% HTTP request method value SHOULD be "known" to the instrumentation. +%% By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) +%% and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). +%% +%% If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. +%% +%% If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override +%% the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named +%% OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods +%% (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). +%% +%% HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. +%% Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. +%% Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value +-define(HTTP_REQUEST_METHOD, 'http.request.method'). + +%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol +%% The scheme of the original client request, if known (e.g. from [Forwarded#proto](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded#proto), [X-Forwarded-Proto](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-Proto), or a similar header). Otherwise, the scheme of the immediate peer request +-define(URL_SCHEME, 'url.scheme'). + +%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) +-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). + +%% State of the HTTP connection in the HTTP connection pool +-define(HTTP_CONNECTION_STATE, 'http.connection.state'). + +%% Peer address of the network connection - IP address or Unix domain socket name +-define(NETWORK_PEER_ADDRESS, 'network.peer.address'). + +%% Name of the memory pool +%% Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()) +-define(JVM_MEMORY_POOL_NAME, 'jvm.memory.pool.name'). + +%% The type of memory +-define(JVM_MEMORY_TYPE, 'jvm.memory.type'). + +%% Name of the buffer pool +%% Pool names are generally obtained via [BufferPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName()) +-define(JVM_BUFFER_POOL_NAME, 'jvm.buffer.pool.name'). + +%% Name of the garbage collector action +%% Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()) +-define(JVM_GC_ACTION, 'jvm.gc.action'). + +%% Name of the garbage collector +%% Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()) +-define(JVM_GC_NAME, 'jvm.gc.name'). + +%% Whether the thread is daemon or not +-define(JVM_THREAD_DAEMON, 'jvm.thread.daemon'). + +%% State of the thread +-define(JVM_THREAD_STATE, 'jvm.thread.state'). + +%% An identifier for the messaging system being used. See below for a list of well-known identifiers +-define(MESSAGING_SYSTEM, 'messaging.system'). + +%% The message destination name +%% Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If +%% the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker +-define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). + +%% Low cardinality representation of the messaging destination name +%% Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation +-define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). + +%% The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels +-define(PROCESS_CPU_STATE, 'process.cpu.state'). + +%% Specifies whether the context switches for this data point were voluntary or involuntary +-define(PROCESS_CONTEXT_SWITCH_TYPE, 'process.context_switch_type'). + +%% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults +-define(PROCESS_PAGING_FAULT_TYPE, 'process.paging.fault_type'). + +%% The logical CPU number [0..n-1] +-define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). + +%% The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels +-define(SYSTEM_CPU_STATE, 'system.cpu.state'). + +%% The memory state +-define(SYSTEM_MEMORY_STATE, 'system.memory.state'). + +%% The memory paging state +-define(SYSTEM_PAGING_STATE, 'system.paging.state'). + +%% The memory paging type +-define(SYSTEM_PAGING_TYPE, 'system.paging.type'). + +%% The paging access direction +-define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). + +%% The filesystem mode +-define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). + +%% The filesystem mount path +-define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). + +%% The filesystem state +-define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). + +%% The filesystem type +-define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). + +%% A stateless protocol MUST NOT set this attribute +-define(SYSTEM_NETWORK_STATE, 'system.network.state'). + +%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) +-define(SYSTEM_PROCESS_STATUS, 'system.process.status'). diff --git a/apps/opentelemetry_semantic_conventions/include/resource.hrl b/apps/opentelemetry_semantic_conventions/include/resource.hrl new file mode 100644 index 00000000..d1378ec4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/resource.hrl @@ -0,0 +1,496 @@ +%% The schema url for telemetry resources +-define(RESOURCE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). + +%% 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) +-define(ANDROID_OS_API_LEVEL, 'android.os.api_level'). + +%% Array of brand name and version separated by a space +%% This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) +-define(BROWSER_BRANDS, 'browser.brands'). + +%% Preferred language of the user using the browser +%% This value is intended to be taken from the Navigator API `navigator.language` +-define(BROWSER_LANGUAGE, 'browser.language'). + +%% A boolean that is true if the browser is running on a mobile device +%% 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 +-define(BROWSER_MOBILE, 'browser.mobile'). + +%% The platform on which the browser is running +%% 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 +-define(BROWSER_PLATFORM, 'browser.platform'). + +%% Full user-agent string provided by the browser +%% The user-agent value SHOULD be provided only from browsers that do not have a mechanism to retrieve brands and platform individually from the User-Agent Client Hints API. To retrieve the value, the legacy `navigator.userAgent` API can be used +-define(USER_AGENT_ORIGINAL, 'user_agent.original'). + +%% The cloud account ID the resource is assigned to +-define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). + +%% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running +%% Availability zones are called "zones" on Alibaba Cloud and Google Cloud +-define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). + +%% The cloud platform in use +%% The prefix of the service SHOULD match the one specified in `cloud.provider` +-define(CLOUD_PLATFORM, 'cloud.platform'). + +%% Name of the cloud provider +-define(CLOUD_PROVIDER, 'cloud.provider'). + +%% The geographical region the resource is running +%% 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) +-define(CLOUD_REGION, 'cloud.region'). + +%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) +%% 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 invokable 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://docs.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 +-define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). + +%% The ID of a running ECS task. The ID MUST be extracted from `task.arn` +-define(AWS_ECS_TASK_ID, 'aws.ecs.task.id'). + +%% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) +-define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). + +%% The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html) +-define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). + +%% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task +-define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). + +%% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) +-define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). + +%% 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 +-define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). + +%% The revision for the task definition used to create the ECS task +-define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). + +%% The ARN of an EKS cluster +-define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). + +%% The Amazon Resource Name(s) (ARN) of the AWS log group(s) +%% See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format) +-define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). + +%% The name(s) of the AWS log group(s) an application is writing to +%% 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 +-define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). + +%% The ARN(s) of the AWS log stream(s) +%% 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 +-define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). + +%% The name(s) of the AWS log stream(s) an application is writing to +-define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). + +%% 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 +-define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). + +%% 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 +-define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). + +%% 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) +-define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). + +%% 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) +-define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). + +%% Unique identifier for the application +-define(HEROKU_APP_ID, 'heroku.app.id'). + +%% Commit hash for the current release +-define(HEROKU_RELEASE_COMMIT, 'heroku.release.commit'). + +%% Time and date the release was created +-define(HEROKU_RELEASE_CREATION_TIMESTAMP, 'heroku.release.creation_timestamp'). + +%% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated +-define(CONTAINER_ID, 'container.id'). + +%% Runtime specific image identifier. Usually a hash algorithm followed by a UUID +%% 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 assinged 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 +-define(CONTAINER_IMAGE_ID, 'container.image.id'). + +%% Name of the image the container was built on +-define(CONTAINER_IMAGE_NAME, 'container.image.name'). + +%% Repo digests of the container image as provided by the container runtime +%% [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 +-define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). + +%% 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:` +-define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). + +%% Container name used by container runtime +-define(CONTAINER_NAME, 'container.name'). + +%% The container runtime managing this container +-define(CONTAINER_RUNTIME, 'container.runtime'). + +%% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known +%% Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). +%% An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) +-define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). + +%% The command used to run the container (i.e. the command name) +%% If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage +-define(CONTAINER_COMMAND, 'container.command'). + +%% All the command arguments (including the command/executable itself) run by the container. [2] +-define(CONTAINER_COMMAND_ARGS, 'container.command_args'). + +%% The full command run by the container as a single string representing the full command. [2] +-define(CONTAINER_COMMAND_LINE, 'container.command_line'). + +%% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) +%% `deployment.environment` 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=production` +%% * `service.name=frontend`, `deployment.environment=staging` +-define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). + +%% A unique identifier representing the device +%% The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 +-define(DEVICE_ID, 'device.id'). + +%% The name of the device manufacturer +%% The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple` +-define(DEVICE_MANUFACTURER, 'device.manufacturer'). + +%% The model identifier for the device +%% 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 +-define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). + +%% The marketing name for the device model +%% It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative +-define(DEVICE_MODEL_NAME, 'device.model.name'). + +%% The name of the single function that this runtime instance executes +%% 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`](/docs/general/attributes.md#source-code-attributes) +%% span attributes). +%% +%% 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) +-define(FAAS_NAME, 'faas.name'). + +%% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version +%% * **AWS Lambda:** Use the (full) log stream name +-define(FAAS_INSTANCE, 'faas.instance'). + +%% The amount of memory available to the serverless function converted to Bytes +%% 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) +-define(FAAS_MAX_MEMORY, 'faas.max_memory'). + +%% The immutable version of the function being executed +%% Depending on the cloud provider and platform, use: +%% +%% * **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 +-define(FAAS_VERSION, 'faas.version'). + +%% The CPU architecture the host system is running on +-define(HOST_ARCH, 'host.arch'). + +%% 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 +-define(HOST_ID, 'host.id'). + +%% VM image ID or host OS image ID. For Cloud, this value is from the provider +-define(HOST_IMAGE_ID, 'host.image.id'). + +%% Name of the VM image or OS install the host was instantiated from +-define(HOST_IMAGE_NAME, 'host.image.name'). + +%% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) +-define(HOST_IMAGE_VERSION, 'host.image.version'). + +%% 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 +-define(HOST_NAME, 'host.name'). + +%% Type of host. For Cloud, this must be the machine type +-define(HOST_TYPE, 'host.type'). + +%% Available IP addresses of the host, excluding loopback interfaces +%% 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 +-define(HOST_IP, 'host.ip'). + +%% Available MAC addresses of the host, excluding loopback interfaces +%% 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 +-define(HOST_MAC, 'host.mac'). + +%% The amount of level 2 memory cache available to the processor (in Bytes) +-define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). + +%% Family or generation of the CPU +-define(HOST_CPU_FAMILY, 'host.cpu.family'). + +%% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family +-define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). + +%% Model designation of the processor +-define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). + +%% Stepping or core revisions +-define(HOST_CPU_STEPPING, 'host.cpu.stepping'). + +%% Processor manufacturer identifier. A maximum 12-character string +%% [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 +-define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). + +%% The name of the cluster +-define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). + +%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace +%% K8s doesn't have support for obtaining a cluster ID. If this is ever +%% added, we will recommend collecting the `k8s.cluster.uid` through the +%% official APIs. In the meantime, we are able to use the `uid` of the +%% `kube-system` namespace as a proxy for cluster ID. Read on for the +%% rationale. +%% +%% Every object created in a K8s cluster is assigned a distinct UID. The +%% `kube-system` namespace is used by Kubernetes itself and will exist +%% for the lifetime of the cluster. Using the `uid` of the `kube-system` +%% namespace is a reasonable proxy for the K8s ClusterID as it will only +%% change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are +%% UUIDs as standardized by +%% [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). +%% Which states: +%% +%% > If generated according to one of the mechanisms defined in Rec. +%% ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be +%% different from all other UUIDs generated before 3603 A.D., or is +%% extremely likely to be different (depending on the mechanism chosen). +%% +%% Therefore, UIDs between clusters should be extremely unlikely to +%% conflict +-define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). + +%% The name of the Node +-define(K8S_NODE_NAME, 'k8s.node.name'). + +%% The UID of the Node +-define(K8S_NODE_UID, 'k8s.node.uid'). + +%% The name of the namespace that the pod is running in +-define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). + +%% The name of the Pod +-define(K8S_POD_NAME, 'k8s.pod.name'). + +%% The UID of the Pod +-define(K8S_POD_UID, 'k8s.pod.uid'). + +%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) +-define(K8S_CONTAINER_NAME, 'k8s.container.name'). + +%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec +-define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). + +%% The name of the ReplicaSet +-define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). + +%% The UID of the ReplicaSet +-define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). + +%% The name of the Deployment +-define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). + +%% The UID of the Deployment +-define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). + +%% The name of the StatefulSet +-define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). + +%% The UID of the StatefulSet +-define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). + +%% The name of the DaemonSet +-define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). + +%% The UID of the DaemonSet +-define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). + +%% The name of the Job +-define(K8S_JOB_NAME, 'k8s.job.name'). + +%% The UID of the Job +-define(K8S_JOB_UID, 'k8s.job.uid'). + +%% The name of the CronJob +-define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). + +%% The UID of the CronJob +-define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). + +%% The operating system type +-define(OS_TYPE, 'os.type'). + +%% Unique identifier for a particular build or compilation of the operating system +-define(OS_BUILD_ID, 'os.build_id'). + +%% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands +-define(OS_DESCRIPTION, 'os.description'). + +%% Human readable operating system name +-define(OS_NAME, 'os.name'). + +%% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes) +-define(OS_VERSION, 'os.version'). + +%% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` +-define(PROCESS_COMMAND, 'process.command'). + +%% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` +-define(PROCESS_COMMAND_ARGS, 'process.command_args'). + +%% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead +-define(PROCESS_COMMAND_LINE, 'process.command_line'). + +%% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` +-define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). + +%% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` +-define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). + +%% The username of the user that owns the process +-define(PROCESS_OWNER, 'process.owner'). + +%% Parent Process identifier (PPID) +-define(PROCESS_PARENT_PID, 'process.parent_pid'). + +%% Process identifier (PID) +-define(PROCESS_PID, 'process.pid'). + +%% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment +-define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). + +%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler +-define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). + +%% The version of the runtime of this process, as returned by the runtime without modification +-define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). + +%% Logical name of the service +%% MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service` +-define(SERVICE_NAME, 'service.name'). + +%% The version string of the service API or implementation. The format is not defined by these conventions +-define(SERVICE_VERSION, 'service.version'). + +%% The string ID of the service instance +%% MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words +%% `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to +%% distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled +%% service). +%% +%% Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC +%% 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of +%% this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and +%% SHOULD use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. +%% +%% UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is +%% needed. Similar to what can be seen in the man page for the +%% [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying +%% data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it +%% or not via another resource attribute. +%% +%% For applications running behind an application server (like unicorn), we do not recommend using one identifier +%% for all processes participating in the application. Instead, it's recommended each division (e.g. a worker +%% thread in unicorn) to have its own instance.id. +%% +%% It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the +%% service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will +%% likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. +%% However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance +%% for that telemetry. This is typically the case for scraping receivers, as they know the target address and +%% port +-define(SERVICE_INSTANCE_ID, 'service.instance.id'). + +%% A namespace for `service.name` +%% A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace +-define(SERVICE_NAMESPACE, 'service.namespace'). + +%% The language of the telemetry SDK +-define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). + +%% The name of the telemetry SDK as defined above +%% The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`. +%% If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the +%% `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point +%% or another suitable identifier depending on the language. +%% The identifier `opentelemetry` is reserved and MUST NOT be used in this case. +%% All custom identifiers SHOULD be stable across different versions of an implementation +-define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). + +%% The version string of the telemetry SDK +-define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). + +%% The name of the auto instrumentation agent or distribution, if used +%% Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to +%% a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` +-define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). + +%% The version string of the auto instrumentation agent or distribution, if used +-define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). + +%% The name of the web engine +-define(WEBENGINE_NAME, 'webengine.name'). + +%% Additional description of the web engine (e.g. detailed version and edition information) +-define(WEBENGINE_DESCRIPTION, 'webengine.description'). + +%% The version of the web engine +-define(WEBENGINE_VERSION, 'webengine.version'). + +%% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP) +-define(OTEL_SCOPE_NAME, 'otel.scope.name'). + +%% The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP) +-define(OTEL_SCOPE_VERSION, 'otel.scope.version'). + +%% None +%% @deprecated use the `otel.scope.name` attribute +-define(OTEL_LIBRARY_NAME, 'otel.library.name'). + +%% None +%% @deprecated use the `otel.scope.version` attribute +-define(OTEL_LIBRARY_VERSION, 'otel.library.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/span.hrl b/apps/opentelemetry_semantic_conventions/include/span.hrl new file mode 100644 index 00000000..3703672a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/span.hrl @@ -0,0 +1,553 @@ +%% The schema url for telemetry resources +-define(SPAN_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). + +%% The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any +-define(PEER_SERVICE, 'peer.service'). + +%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system +-define(ENDUSER_ID, 'enduser.id'). + +%% Actual/assumed role the client is making the request under extracted from token or application security context +-define(ENDUSER_ROLE, 'enduser.role'). + +%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) +-define(ENDUSER_SCOPE, 'enduser.scope'). + +%% Current "managed" thread ID (as opposed to OS thread ID) +-define(THREAD_ID, 'thread.id'). + +%% Current thread name +-define(THREAD_NAME, 'thread.name'). + +%% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` +-define(CODE_COLUMN, 'code.column'). + +%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) +-define(CODE_FILEPATH, 'code.filepath'). + +%% The method or function name, or equivalent (usually rightmost part of the code unit's name) +-define(CODE_FUNCTION, 'code.function'). + +%% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` +-define(CODE_LINENO, 'code.lineno'). + +%% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit +-define(CODE_NAMESPACE, 'code.namespace'). + +%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG +-define(CODE_STACKTRACE, 'code.stacktrace'). + +%% 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) +%% This may be different from `cloud.resource_id` if an alias is involved +-define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). + +%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event +-define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). + +%% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened +-define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). + +%% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses +-define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). + +%% 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) +-define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). + +%% 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 +-define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). + +%% Parent-child Reference type +%% The causal relationship between a child Span and a parent Span +-define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). + +%% An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers +-define(DB_SYSTEM, 'db.system'). + +%% This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) +%% In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) +-define(DB_NAME, 'db.name'). + +%% The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword +%% When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted +-define(DB_OPERATION, 'db.operation'). + +%% Server port number +%% When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available +-define(SERVER_PORT, 'server.port'). + +%% An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like `select @@hostname` +-define(DB_INSTANCE_ID, 'db.instance.id'). + +%% The database statement being executed +-define(DB_STATEMENT, 'db.statement'). + +%% Username for accessing the database +-define(DB_USER, 'db.user'). + +%% Peer address of the database node where the operation was performed +%% Semantic conventions for individual database systems SHOULD document whether `network.peer.*` attributes are applicable. Network peer address and port are useful when the application interacts with individual database nodes directly. +%% If a database operation involved multiple network calls (for example retries), the address of the last contacted node SHOULD be used +-define(NETWORK_PEER_ADDRESS, 'network.peer.address'). + +%% Peer port number of the network connection +-define(NETWORK_PEER_PORT, 'network.peer.port'). + +%% Name of the database host +%% When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available +-define(SERVER_ADDRESS, 'server.address'). + +%% The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance +%% If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) +-define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). + +%% The name of the primary table that the operation is acting upon, including the database name (if applicable) +%% It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set +-define(DB_SQL_TABLE, 'db.sql.table'). + +%% 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) +-define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). + +%% The data center of the coordinating node for a query +-define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). + +%% The ID of the coordinating node for a query +-define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). + +%% Whether or not the query is idempotent +-define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). + +%% The fetch size used for paging, i.e. how many rows will be returned at once +-define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). + +%% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively +-define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). + +%% The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) +%% This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set +-define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). + +%% The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute +-define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). + +%% The MongoDB collection being accessed within the database stated in `db.name` +-define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). + +%% HTTP request method +%% HTTP request method value SHOULD be "known" to the instrumentation. +%% By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) +%% and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). +%% +%% If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. +%% +%% If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override +%% the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named +%% OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods +%% (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). +%% +%% HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. +%% Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. +%% Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value +-define(HTTP_REQUEST_METHOD, 'http.request.method'). + +%% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) +%% For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. +%% `url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`. +%% `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it +-define(URL_FULL, 'url.full'). + +%% Represents the identifier of an Elasticsearch cluster +-define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). + +%% Cosmos client connection mode +-define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). + +%% Cosmos DB container name +-define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). + +%% CosmosDB Operation Type +-define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). + +%% RU consumed for that operation +-define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). + +%% Cosmos DB status code +-define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). + +%% Cosmos DB sub status code +-define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). + +%% Unique Cosmos client instance id +-define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). + +%% Request payload size in bytes +-define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). + +%% Full user-agent string is generated by Cosmos DB SDK +%% The user-agent value is generated by SDK which is a combination of
`sdk_version` : Current version of SDK. e.g. 'cosmos-netstandard-sdk/3.23.0'
`direct_pkg_version` : Direct package version used by Cosmos DB SDK. e.g. '3.23.1'
`number_of_client_instances` : Number of cosmos client instances created by the application. e.g. '1'
`type_of_machine_architecture` : Machine architecture. e.g. 'X64'
`operating_system` : Operating System. e.g. 'Linux 5.4.0-1098-azure 104 18'
`runtime_framework` : Runtime Framework. e.g. '.NET Core 3.1.32'
`failover_information` : Generated key to determine if region failover enabled. +%% Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it). +%% Default value is "NS" +-define(USER_AGENT_ORIGINAL, 'user_agent.original'). + +%% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET +-define(OTEL_STATUS_CODE, 'otel.status_code'). + +%% Description of the Status if it has a value, otherwise not set +-define(OTEL_STATUS_DESCRIPTION, 'otel.status_description'). + +%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) +%% 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 invokable 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://docs.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 +-define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). + +%% The invocation ID of the current function invocation +-define(FAAS_INVOCATION_ID, 'faas.invocation_id'). + +%% Type of the trigger which caused this function invocation +%% For the server/consumer span on the incoming side, +%% `faas.trigger` MUST be set. +%% +%% Clients invoking FaaS instances usually cannot set `faas.trigger`, +%% since they would typically need to look in the payload to determine +%% the event type. If clients set it, it should be the same as the +%% trigger that corresponding incoming would have (i.e., this has +%% nothing to do with the underlying transport used to make the API +%% call to invoke the lambda, which is often HTTP) +-define(FAAS_TRIGGER, 'faas.trigger'). + +%% 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 +-define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). + +%% Describes the type of the operation that was performed on the data +-define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). + +%% 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 +-define(FAAS_DOCUMENT_NAME, 'faas.document.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) +-define(FAAS_DOCUMENT_TIME, 'faas.document.time'). + +%% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) +-define(FAAS_CRON, 'faas.cron'). + +%% 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) +-define(FAAS_TIME, 'faas.time'). + +%% A boolean that is true if the serverless function is executed for the first time (aka cold-start) +-define(FAAS_COLDSTART, 'faas.coldstart'). + +%% The name of the invoked function +%% SHOULD be equal to the `faas.name` resource attribute of the invoked function +-define(FAAS_INVOKED_NAME, 'faas.invoked_name'). + +%% The cloud provider of the invoked function +%% SHOULD be equal to the `cloud.provider` resource attribute of the invoked function +-define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). + +%% The cloud region of the invoked function +%% SHOULD be equal to the `cloud.region` resource attribute of the invoked function +-define(FAAS_INVOKED_REGION, 'faas.invoked_region'). + +%% Describes a class of error the operation ended with +%% If the request fails with an error before response status code was sent or received, +%% `error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable) +%% or a component-specific low cardinality error identifier. +%% +%% If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), +%% `error.type` SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. +%% +%% The `error.type` value SHOULD be predictable and SHOULD have low cardinality. +%% Instrumentations SHOULD document the list of errors they report. +%% +%% The cardinality of `error.type` within one instrumentation library SHOULD be low, but +%% telemetry consumers that aggregate data from multiple instrumentation libraries and applications +%% should be prepared for `error.type` to have high cardinality at query time, when no +%% additional filters are applied. +%% +%% If the request has completed successfully, instrumentations SHOULD NOT set `error.type` +-define(ERROR_TYPE, 'error.type'). + +%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) +-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). + +%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent +%% The value SHOULD be normalized to lowercase +-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). + +%% The ordinal number of request resending attempt (for any reason, including redirects) +%% The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) +-define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). + +%% The actual version of the protocol used for network communication +%% If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set +-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). + +%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol +-define(URL_SCHEME, 'url.scheme'). + +%% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component +%% Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it +-define(URL_PATH, 'url.path'). + +%% The matched route, that is, the path template in the format used by the respective server framework +%% MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. +%% SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one +-define(HTTP_ROUTE, 'http.route'). + +%% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component +%% Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it +-define(URL_QUERY, 'url.query'). + +%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name +%% The IP address of the original client behind all proxies, if known (e.g. from [Forwarded#for](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded#for), [X-Forwarded-For](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-For), or a similar header). Otherwise, the immediate client peer address +-define(CLIENT_ADDRESS, 'client.address'). + +%% The port of whichever client was captured in `client.address` +%% When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available +-define(CLIENT_PORT, 'client.port'). + +%% Local socket address. Useful in case of a multi-IP host +-define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). + +%% Local socket port. Useful in case of a multi-port host +-define(NETWORK_LOCAL_PORT, 'network.local.port'). + +%% The value `aws-api` +-define(RPC_SYSTEM, 'rpc.system'). + +%% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid` +-define(AWS_REQUEST_ID, 'aws.request_id'). + +%% The name of the operation corresponding to the request, as returned by the AWS SDK +%% This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) +-define(RPC_METHOD, 'rpc.method'). + +%% The name of the service to which a request is made, as returned by the AWS SDK +%% This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) +-define(RPC_SERVICE, 'rpc.service'). + +%% The value of the `AttributesToGet` request parameter +-define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). + +%% The value of the `ConsistentRead` request parameter +-define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). + +%% The JSON-serialized value of each item in the `ConsumedCapacity` response field +-define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). + +%% The value of the `IndexName` request parameter +-define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). + +%% The JSON-serialized value of the `ItemCollectionMetrics` response field +-define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). + +%% The value of the `Limit` request parameter +-define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). + +%% The value of the `ProjectionExpression` request parameter +-define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). + +%% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter +-define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). + +%% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter +-define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). + +%% The value of the `Select` request parameter +-define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). + +%% The keys in the `RequestItems` object field +-define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). + +%% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). + +%% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field +-define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). + +%% The value of the `ExclusiveStartTableName` request parameter +-define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). + +%% The number of items in the `TableNames` response parameter +-define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). + +%% The value of the `ScanIndexForward` request parameter +-define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). + +%% The value of the `Count` response parameter +-define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). + +%% The value of the `ScannedCount` response parameter +-define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). + +%% The value of the `Segment` request parameter +-define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). + +%% The value of the `TotalSegments` request parameter +-define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). + +%% The JSON-serialized value of each item in the `AttributeDefinitions` request field +-define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). + +%% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). + +%% 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 +%% 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` +-define(AWS_S3_BUCKET, 'aws.s3.bucket'). + +%% The source object (in the form `bucket`/`key`) for the copy operation +%% 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) +-define(AWS_S3_COPY_SOURCE, 'aws.s3.copy_source'). + +%% The delete request container that specifies the objects to be deleted +%% 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) +-define(AWS_S3_DELETE, 'aws.s3.delete'). + +%% 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 +%% 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) +-define(AWS_S3_KEY, 'aws.s3.key'). + +%% The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000 +%% 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) +-define(AWS_S3_PART_NUMBER, 'aws.s3.part_number'). + +%% Upload ID that identifies the multipart upload +%% 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) +-define(AWS_S3_UPLOAD_ID, 'aws.s3.upload_id'). + +%% The GraphQL document being executed +%% The value may be sanitized to exclude sensitive information +-define(GRAPHQL_DOCUMENT, 'graphql.document'). + +%% The name of the operation being executed +-define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). + +%% The type of the operation being executed +-define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). + +%% A string identifying the kind of messaging operation +%% If a custom value is used, it MUST be of low cardinality +-define(MESSAGING_OPERATION, 'messaging.operation'). + +%% An identifier for the messaging system being used. See below for a list of well-known identifiers +-define(MESSAGING_SYSTEM, 'messaging.system'). + +%% The number of messages sent, received, or processed in the scope of the batching operation +%% Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs +-define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). + +%% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) +-define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). + +%% The message destination name +%% Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If +%% the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker +-define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). + +%% Low cardinality representation of the messaging destination name +%% Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation +-define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). + +%% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed +-define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). + +%% A unique identifier for the client that consumes or produces a message +-define(MESSAGING_CLIENT_ID, 'messaging.client_id'). + +%% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` +-define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). + +%% The size of the message body in bytes +%% This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed +%% body size should be used +-define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). + +%% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" +-define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). + +%% The size of the message body and metadata in bytes +%% This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed +%% size should be used +-define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). + +%% A value used by the messaging system as an identifier for the message, represented as a string +-define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). + +%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) +%% The value SHOULD be normalized to lowercase. +%% +%% Consider always setting the transport when setting a port number, since +%% a port number is ambiguous without knowing the transport. For example +%% different processes could be listening on TCP port 12345 and UDP port 12345 +-define(NETWORK_TRANSPORT, 'network.transport'). + +%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent +%% The value SHOULD be normalized to lowercase +-define(NETWORK_TYPE, 'network.type'). + +%% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request +-define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). + +%% `error.code` property of response if it is an error response +-define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). + +%% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted +-define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). + +%% `error.message` property of response if it is an error response +-define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). + +%% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification +-define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). + +%% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values +-define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). diff --git a/apps/opentelemetry_semantic_conventions/lib/common.ex b/apps/opentelemetry_semantic_conventions/lib/common.ex new file mode 100644 index 00000000..40ec7313 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/common.ex @@ -0,0 +1,1786 @@ +defmodule OpenTelemetry.SemanticConventions.Common do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + """ + + @doc namespace: :faas + @typedoc """ + The cloud provider of the invoked function + + ### Options + + + * `:alibaba_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud + + * `:aws`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services + + * `:azure`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure + + * `:gcp`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform + + * `:tencent_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud + + + + """ + @type faas_invoked_provider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() + + @doc namespace: :faas + @typedoc """ + Type of the trigger which caused this function invocation + + ### Options + + + * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write + + * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request + + * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system + + * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly + + * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply + + + + """ + @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other + + @doc namespace: :http + @typedoc """ + HTTP request method + + ### Options + + + * `:CONNECT` - CONNECT method + + * `:DELETE` - DELETE method + + * `:GET` - GET method + + * `:HEAD` - HEAD method + + * `:OPTIONS` - OPTIONS method + + * `:PATCH` - PATCH method + + * `:POST` - POST method + + * `:PUT` - PUT method + + * `:TRACE` - TRACE method + + * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of + + + + """ + @type http_request_method() :: :CONNECT | :DELETE | :GET | :HEAD | :OPTIONS | :PATCH | :POST | :PUT | :TRACE | :_OTHER | atom() + + @doc namespace: :error + @typedoc """ + Describes a class of error the operation ended with + + ### Options + + + * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value + + + + """ + @type error_type() :: :_OTHER | atom() + + @doc namespace: :log + @typedoc """ + The stream associated with the log. See below for a list of well-known values + + ### Options + + + * `:stdout`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Logs from stdout stream + + * `:stderr`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Events from stderr stream + + + + """ + @type log_iostream() :: :stdout | :stderr + + @doc namespace: :messaging + @typedoc """ + An identifier for the messaging system being used. See below for a list of well-known identifiers + + ### Options + + + * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ + + * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) + + * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid + + * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs + + * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus + + * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub + + * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service + + * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka + + * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ + + * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ + + + + """ + @type messaging_system() :: :activemq | :aws_sqs | :eventgrid | :eventhubs | :servicebus | :gcp_pubsub | :jms | :kafka | :rabbitmq | :rocketmq | atom() + + @doc namespace: :network + @typedoc """ + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) + + ### Options + + + * `:tcp` - TCP + + * `:udp` - UDP + + * `:pipe` - Named or anonymous pipe + + * `:unix` - Unix domain socket + + + + """ + @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() + + @doc namespace: :network + @typedoc """ + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent + + ### Options + + + * `:ipv4` - IPv4 + + * `:ipv6` - IPv6 + + + + """ + @type network_type() :: :ipv4 | :ipv6 | atom() + + @doc namespace: :process + @typedoc """ + The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + + ### Options + + + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system + + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user + + * `:wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wait + + + + """ + @type process_cpu_state() :: :system | :user | :wait | atom() + + @doc namespace: :rpc + @typedoc """ + A string identifying the remoting system. See below for a list of well-known identifiers + + ### Options + + + * `:grpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC + + * `:java_rmi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI + + * `:dotnet_wcf`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF + + * `:apache_dubbo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo + + * `:connect_rpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC + + + + """ + @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() + + @doc namespace: :system + @typedoc """ + The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + + ### Options + + + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user + + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system + + * `:nice`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - nice + + * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle + + * `:iowait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - iowait + + * `:interrupt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - interrupt + + * `:steal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - steal + + + + """ + @type system_cpu_state() :: :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() + + @doc namespace: :system + @typedoc """ + The memory state + + ### Options + + + * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used + + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free + + * `:shared`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - shared + + * `:buffers`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - buffers + + * `:cached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cached + + + + """ + @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() + + @doc namespace: :system + @typedoc """ + The paging access direction + + ### Options + + + * `:in`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - in + + * `:out`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out + + + + """ + @type system_paging_direction() :: :in | :out + + @doc namespace: :system + @typedoc """ + The memory paging state + + ### Options + + + * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used + + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free + + + + """ + @type system_paging_state() :: :used | :free + + @doc namespace: :system + @typedoc """ + The memory paging type + + ### Options + + + * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major + + * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor + + + + """ + @type system_paging_type() :: :major | :minor + + @doc namespace: :system + @typedoc """ + The filesystem state + + ### Options + + + * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used + + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free + + * `:reserved`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - reserved + + + + """ + @type system_filesystem_state() :: :used | :free | :reserved + + @doc namespace: :system + @typedoc """ + The filesystem type + + ### Options + + + * `:fat32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fat32 + + * `:exfat`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - exfat + + * `:ntfs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ntfs + + * `:refs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - refs + + * `:hfsplus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - hfsplus + + * `:ext4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ext4 + + + + """ + @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() + + @doc namespace: :system + @typedoc """ + A stateless protocol MUST NOT set this attribute + + ### Options + + + * `:close`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close + + * `:close_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close_wait + + * `:closing`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - closing + + * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete + + * `:established`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - established + + * `:fin_wait_1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_1 + + * `:fin_wait_2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_2 + + * `:last_ack`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - last_ack + + * `:listen`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - listen + + * `:syn_recv`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_recv + + * `:syn_sent`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_sent + + * `:time_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - time_wait + + + + """ + @type system_network_state() :: :close | :close_wait | :closing | :delete | :established | :fin_wait_1 | :fin_wait_2 | :last_ack | :listen | :syn_recv | :syn_sent | :time_wait + + @doc namespace: :system + @typedoc """ + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + ### Options + + + * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running + + * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping + + * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped + + * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct + + + + """ + @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() + + @doc namespace: :network + @typedoc """ + This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection + + ### Options + + + * `:gprs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GPRS + + * `:edge`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EDGE + + * `:umts`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UMTS + + * `:cdma`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA + + * `:evdo_0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rel. 0 + + * `:evdo_a`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. A + + * `:cdma2000_1xrtt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA2000 1XRTT + + * `:hsdpa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSDPA + + * `:hsupa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSUPA + + * `:hspa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPA + + * `:iden`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IDEN + + * `:evdo_b`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. B + + * `:lte`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE + + * `:ehrpd`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EHRPD + + * `:hspap`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPAP + + * `:gsm`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GSM + + * `:td_scdma`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - TD-SCDMA + + * `:iwlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IWLAN + + * `:nr`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NR (New Radio) + + * `:nrnsa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) + + * `:lte_ca`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE CA + + + + """ + @type network_connection_subtype() :: :gprs | :edge | :umts | :cdma | :evdo_0 | :evdo_a | :cdma2000_1xrtt | :hsdpa | :hsupa | :hspa | :iden | :evdo_b | :lte | :ehrpd | :hspap | :gsm | :td_scdma | :iwlan | :nr | :nrnsa | :lte_ca | atom() + + @doc namespace: :network + @typedoc """ + The internet connection type + + ### Options + + + * `:wifi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wifi + + * `:wired`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wired + + * `:cell`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cell + + * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable + + * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown + + + + """ + @type network_connection_type() :: :wifi | :wired | :cell | :unavailable | :unknown | atom() + + @doc namespace: :container + @typedoc """ + The CPU state for this data point + + ### Options + + + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows) + + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) + + * `:kernel`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows) + + + + """ + @type container_cpu_state() :: :user | :system | :kernel | atom() + + @doc namespace: :db + @typedoc """ + 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) + + ### Options + + + * `:all`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - all + + * `:each_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - each_quorum + + * `:quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - quorum + + * `:local_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_quorum + + * `:one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - one + + * `:two`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - two + + * `:three`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - three + + * `:local_one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_one + + * `:any`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - any + + * `:serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - serial + + * `:local_serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_serial + + + + """ + @type db_cassandra_consistency_level() :: :all | :each_quorum | :quorum | :local_quorum | :one | :two | :three | :local_one | :any | :serial | :local_serial + + @doc namespace: :db + @typedoc """ + Cosmos client connection mode + + ### Options + + + * `:gateway`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode + + * `:direct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection + + + + """ + @type db_cosmosdb_connection_mode() :: :gateway | :direct + + @doc namespace: :db + @typedoc """ + CosmosDB Operation Type + + ### Options + + + * `:Invalid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid + + * `:Create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - create + + * `:Patch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - patch + + * `:Read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read + + * `:ReadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read_feed + + * `:Delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete + + * `:Replace`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - replace + + * `:Execute`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute + + * `:Query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query + + * `:Head`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head + + * `:HeadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head_feed + + * `:Upsert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - upsert + + * `:Batch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - batch + + * `:QueryPlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query_plan + + * `:ExecuteJavaScript`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute_javascript + + + + """ + @type db_cosmosdb_operation_type() :: :Invalid | :Create | :Patch | :Read | :ReadFeed | :Delete | :Replace | :Execute | :Query | :Head | :HeadFeed | :Upsert | :Batch | :QueryPlan | :ExecuteJavaScript | atom() + + @doc namespace: :db + @typedoc """ + An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers + + ### Options + + + * `:other_sql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes + + * `:mssql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server + + * `:mssqlcompact`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact + + * `:mysql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL + + * `:oracle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database + + * `:db2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 + + * `:postgresql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL + + * `:redshift`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift + + * `:hive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive + + * `:cloudscape`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape + + * `:hsqldb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase + + * `:progress`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database + + * `:maxdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB + + * `:hanadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA + + * `:ingres`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres + + * `:firstsql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL + + * `:edb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB + + * `:cache`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché + + * `:adabas`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) + + * `:firebird`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird + + * `:derby`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby + + * `:filemaker`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker + + * `:informix`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix + + * `:instantdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB + + * `:interbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase + + * `:mariadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB + + * `:netezza`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza + + * `:pervasive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL + + * `:pointbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase + + * `:sqlite`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite + + * `:sybase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase + + * `:teradata`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata + + * `:vertica`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica + + * `:h2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 + + * `:coldfusion`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ + + * `:cassandra`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra + + * `:hbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase + + * `:mongodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB + + * `:redis`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis + + * `:couchbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase + + * `:couchdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB + + * `:cosmosdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB + + * `:dynamodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB + + * `:neo4j`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j + + * `:geode`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode + + * `:elasticsearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch + + * `:memcached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached + + * `:cockroachdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB + + * `:opensearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch + + * `:clickhouse`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse + + * `:spanner`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner + + * `:trino`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino + + + + """ + @type db_system() :: :other_sql | :mssql | :mssqlcompact | :mysql | :oracle | :db2 | :postgresql | :redshift | :hive | :cloudscape | :hsqldb | :progress | :maxdb | :hanadb | :ingres | :firstsql | :edb | :cache | :adabas | :firebird | :derby | :filemaker | :informix | :instantdb | :interbase | :mariadb | :netezza | :pervasive | :pointbase | :sqlite | :sybase | :teradata | :vertica | :h2 | :coldfusion | :cassandra | :hbase | :mongodb | :redis | :couchbase | :couchdb | :cosmosdb | :dynamodb | :neo4j | :geode | :elasticsearch | :memcached | :cockroachdb | :opensearch | :clickhouse | :spanner | :trino | atom() + + @doc namespace: :http + @typedoc """ + Deprecated, use `network.protocol.name` instead + + ### Options + + + * `:"1.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.0 + + * `:"1.1"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.1 + + * `:"2.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/2 + + * `:"3.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/3 + + * `:SPDY`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SPDY protocol + + * `:QUIC`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - QUIC protocol + + + + """ + @type http_flavor() :: :"1.0" | :"1.1" | :"2.0" | :"3.0" | :SPDY | :QUIC | atom() + + @doc namespace: :system + @typedoc """ + Deprecated, use `system.process.status` instead + + ### Options + + + * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running + + * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping + + * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped + + * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct + + + + """ + @type system_processes_status() :: :running | :sleeping | :stopped | :defunct | atom() + + @doc namespace: :disk + @typedoc """ + The disk IO operation direction + + ### Options + + + * `:read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read + + * `:write`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - write + + + + """ + @type disk_io_direction() :: :read | :write + + @doc namespace: :faas + @typedoc """ + Describes the type of the operation that was performed on the data + + ### Options + + + * `:insert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created + + * `:edit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified + + * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted + + + + """ + @type faas_document_operation() :: :insert | :edit | :delete | atom() + + @doc namespace: :host + @typedoc """ + The CPU architecture the host system is running on + + ### Options + + + * `:amd64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 + + * `:arm32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 + + * `:arm64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 + + * `:ia64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium + + * `:ppc32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC + + * `:ppc64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC + + * `:s390x`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture + + * `:x86`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 + + + + """ + @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() + + @doc namespace: :http + @typedoc """ + State of the HTTP connection in the HTTP connection pool + + ### Options + + + * `:active`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state + + * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state + + + + """ + @type http_connection_state() :: :active | :idle | atom() + + @doc namespace: :messaging + @typedoc """ + A string identifying the kind of messaging operation + + ### Options + + + * `:publish`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created + + * `:create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios + + * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages + + * `:process`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer + + * `:settle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled + + + + """ + @type messaging_operation() :: :publish | :create | :receive | :process | :settle | atom() + + @doc namespace: :messaging + @typedoc """ + Model of message consumption. This only applies to consumer spans + + ### Options + + + * `:clustering`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Clustering consumption model + + * `:broadcasting`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Broadcasting consumption model + + + + """ + @type messaging_rocketmq_consumption_model() :: :clustering | :broadcasting + + @doc namespace: :messaging + @typedoc """ + Type of message + + ### Options + + + * `:normal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Normal message + + * `:fifo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FIFO message + + * `:delay`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Delay message + + * `:transaction`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Transaction message + + + + """ + @type messaging_rocketmq_message_type() :: :normal | :fifo | :delay | :transaction + + @doc namespace: :messaging + @typedoc """ + Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) + + ### Options + + + * `:complete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is completed + + * `:abandon`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is abandoned + + * `:dead_letter`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is sent to dead letter queue + + * `:defer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is deferred + + + + """ + @type messaging_servicebus_disposition_status() :: :complete | :abandon | :dead_letter | :defer | atom() + + @doc namespace: :network + @typedoc """ + The network IO operation direction + + ### Options + + + * `:transmit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - transmit + + * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - receive + + + + """ + @type network_io_direction() :: :transmit | :receive + + @doc namespace: :rpc + @typedoc """ + The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values + + ### Options + + + * `:cancelled`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cancelled + + * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown + + * `:invalid_argument`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid_argument + + * `:deadline_exceeded`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - deadline_exceeded + + * `:not_found`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - not_found + + * `:already_exists`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - already_exists + + * `:permission_denied`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - permission_denied + + * `:resource_exhausted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - resource_exhausted + + * `:failed_precondition`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - failed_precondition + + * `:aborted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - aborted + + * `:out_of_range`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out_of_range + + * `:unimplemented`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unimplemented + + * `:internal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - internal + + * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable + + * `:data_loss`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - data_loss + + * `:unauthenticated`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unauthenticated + + + + """ + @type rpc_connect_rpc_error_code() :: :cancelled | :unknown | :invalid_argument | :deadline_exceeded | :not_found | :already_exists | :permission_denied | :resource_exhausted | :failed_precondition | :aborted | :out_of_range | :unimplemented | :internal | :unavailable | :data_loss | :unauthenticated + + @doc namespace: :rpc + @typedoc """ + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request + + ### Options + + + * `0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK + + * `1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED + + * `2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN + + * `3`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT + + * `4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED + + * `5`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND + + * `6`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS + + * `7`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED + + * `8`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED + + * `9`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION + + * `10`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED + + * `11`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE + + * `12`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED + + * `13`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL + + * `14`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE + + * `15`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS + + * `16`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED + + + + """ + @type rpc_grpc_status_code() :: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 + + @doc namespace: :telemetry + @typedoc """ + The language of the telemetry SDK + + ### Options + + + * `:cpp` - cpp + + * `:dotnet` - dotnet + + * `:erlang` - erlang + + * `:go` - go + + * `:java` - java + + * `:nodejs` - nodejs + + * `:php` - php + + * `:python` - python + + * `:ruby` - ruby + + * `:rust` - rust + + * `:swift` - swift + + * `:webjs` - webjs + + + + """ + @type telemetry_sdk_language() :: :cpp | :dotnet | :erlang | :go | :java | :nodejs | :php | :python | :ruby | :rust | :swift | :webjs | atom() + + @doc namespace: :tls + @typedoc """ + Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + ### Options + + + * `:ssl`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ssl + + * `:tls`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - tls + + + + """ + @type tls_protocol_name() :: :ssl | :tls | atom() + + @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.Common.schema_url() + "https://opentelemetry.io/schemas/1.25.0" + """ + @spec schema_url :: String.t() + def schema_url do + "https://opentelemetry.io/schemas/1.25.0" + end + + @doc namespace: :faas + + @doc """ + + + The cloud provider of the invoked function + + ### Notes + + SHOULD be equal to the `cloud.provider` resource attribute of the invoked function + + iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_provider() + :"faas.invoked_provider" + """ + + @spec faas_invoked_provider :: :"faas.invoked_provider" + def faas_invoked_provider do + :"faas.invoked_provider" + end + + @doc namespace: :faas + + @doc """ + + + Type of the trigger which caused this function invocation + + iex> OpenTelemetry.SemanticConventions.Common.faas_trigger() + :"faas.trigger" + """ + + @spec faas_trigger :: :"faas.trigger" + def faas_trigger do + :"faas.trigger" + end + + @doc namespace: :http + + @doc """ + + + HTTP request method + + ### Notes + + HTTP request method value SHOULD be "known" to the instrumentation. + By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) + and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). + + If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. + + If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override + the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named + OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods + (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). + + HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. + Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. + Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value + + iex> OpenTelemetry.SemanticConventions.Common.http_request_method() + :"http.request.method" + """ + + @spec http_request_method :: :"http.request.method" + def http_request_method do + :"http.request.method" + end + + @doc namespace: :error + + @doc """ + + + Describes a class of error the operation ended with + + ### Notes + + If the request fails with an error before response status code was sent or received, + `error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable) + or a component-specific low cardinality error identifier. + + If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), + `error.type` SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. + + The `error.type` value SHOULD be predictable and SHOULD have low cardinality. + Instrumentations SHOULD document the list of errors they report. + + The cardinality of `error.type` within one instrumentation library SHOULD be low, but + telemetry consumers that aggregate data from multiple instrumentation libraries and applications + should be prepared for `error.type` to have high cardinality at query time, when no + additional filters are applied. + + If the request has completed successfully, instrumentations SHOULD NOT set `error.type` + + iex> OpenTelemetry.SemanticConventions.Common.error_type() + :"error.type" + """ + + @spec error_type :: :"error.type" + def error_type do + :"error.type" + end + + @doc namespace: :log + + @doc """ + + + The stream associated with the log. See below for a list of well-known values + + iex> OpenTelemetry.SemanticConventions.Common.log_iostream() + :"log.iostream" + """ + + @spec log_iostream :: :"log.iostream" + def log_iostream do + :"log.iostream" + end + + @doc namespace: :messaging + + @doc """ + + + An identifier for the messaging system being used. See below for a list of well-known identifiers + + iex> OpenTelemetry.SemanticConventions.Common.messaging_system() + :"messaging.system" + """ + + @spec messaging_system :: :"messaging.system" + def messaging_system do + :"messaging.system" + end + + @doc namespace: :network + + @doc """ + + + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) + + ### Notes + + The value SHOULD be normalized to lowercase. + + Consider always setting the transport when setting a port number, since + a port number is ambiguous without knowing the transport. For example + different processes could be listening on TCP port 12345 and UDP port 12345 + + iex> OpenTelemetry.SemanticConventions.Common.network_transport() + :"network.transport" + """ + + @spec network_transport :: :"network.transport" + def network_transport do + :"network.transport" + end + + @doc namespace: :network + + @doc """ + + + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent + + ### Notes + + The value SHOULD be normalized to lowercase + + iex> OpenTelemetry.SemanticConventions.Common.network_type() + :"network.type" + """ + + @spec network_type :: :"network.type" + def network_type do + :"network.type" + end + + @doc namespace: :process + + @doc """ + + + The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + + iex> OpenTelemetry.SemanticConventions.Common.process_cpu_state() + :"process.cpu.state" + """ + + @spec process_cpu_state :: :"process.cpu.state" + def process_cpu_state do + :"process.cpu.state" + end + + @doc namespace: :rpc + + @doc """ + + + A string identifying the remoting system. See below for a list of well-known identifiers + + iex> OpenTelemetry.SemanticConventions.Common.rpc_system() + :"rpc.system" + """ + + @spec rpc_system :: :"rpc.system" + def rpc_system do + :"rpc.system" + end + + @doc namespace: :system + + @doc """ + + + The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + + iex> OpenTelemetry.SemanticConventions.Common.system_cpu_state() + :"system.cpu.state" + """ + + @spec system_cpu_state :: :"system.cpu.state" + def system_cpu_state do + :"system.cpu.state" + end + + @doc namespace: :system + + @doc """ + + + The memory state + + iex> OpenTelemetry.SemanticConventions.Common.system_memory_state() + :"system.memory.state" + """ + + @spec system_memory_state :: :"system.memory.state" + def system_memory_state do + :"system.memory.state" + end + + @doc namespace: :system + + @doc """ + + + The paging access direction + + iex> OpenTelemetry.SemanticConventions.Common.system_paging_direction() + :"system.paging.direction" + """ + + @spec system_paging_direction :: :"system.paging.direction" + def system_paging_direction do + :"system.paging.direction" + end + + @doc namespace: :system + + @doc """ + + + The memory paging state + + iex> OpenTelemetry.SemanticConventions.Common.system_paging_state() + :"system.paging.state" + """ + + @spec system_paging_state :: :"system.paging.state" + def system_paging_state do + :"system.paging.state" + end + + @doc namespace: :system + + @doc """ + + + The memory paging type + + iex> OpenTelemetry.SemanticConventions.Common.system_paging_type() + :"system.paging.type" + """ + + @spec system_paging_type :: :"system.paging.type" + def system_paging_type do + :"system.paging.type" + end + + @doc namespace: :system + + @doc """ + + + The filesystem state + + iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_state() + :"system.filesystem.state" + """ + + @spec system_filesystem_state :: :"system.filesystem.state" + def system_filesystem_state do + :"system.filesystem.state" + end + + @doc namespace: :system + + @doc """ + + + The filesystem type + + iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_type() + :"system.filesystem.type" + """ + + @spec system_filesystem_type :: :"system.filesystem.type" + def system_filesystem_type do + :"system.filesystem.type" + end + + @doc namespace: :system + + @doc """ + + + A stateless protocol MUST NOT set this attribute + + iex> OpenTelemetry.SemanticConventions.Common.system_network_state() + :"system.network.state" + """ + + @spec system_network_state :: :"system.network.state" + def system_network_state do + :"system.network.state" + end + + @doc namespace: :system + + @doc """ + + + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + iex> OpenTelemetry.SemanticConventions.Common.system_process_status() + :"system.process.status" + """ + + @spec system_process_status :: :"system.process.status" + def system_process_status do + :"system.process.status" + end + + @doc namespace: :network + + @doc """ + + + This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection + + iex> OpenTelemetry.SemanticConventions.Common.network_connection_subtype() + :"network.connection.subtype" + """ + + @spec network_connection_subtype :: :"network.connection.subtype" + def network_connection_subtype do + :"network.connection.subtype" + end + + @doc namespace: :network + + @doc """ + + + The internet connection type + + iex> OpenTelemetry.SemanticConventions.Common.network_connection_type() + :"network.connection.type" + """ + + @spec network_connection_type :: :"network.connection.type" + def network_connection_type do + :"network.connection.type" + end + + @doc namespace: :container + + @doc """ + + + The CPU state for this data point + + iex> OpenTelemetry.SemanticConventions.Common.container_cpu_state() + :"container.cpu.state" + """ + + @spec container_cpu_state :: :"container.cpu.state" + def container_cpu_state do + :"container.cpu.state" + end + + @doc namespace: :db + + @doc """ + + + 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) + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_consistency_level() + :"db.cassandra.consistency_level" + """ + + @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" + def db_cassandra_consistency_level do + :"db.cassandra.consistency_level" + end + + @doc namespace: :db + + @doc """ + + + Cosmos client connection mode + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_connection_mode() + :"db.cosmosdb.connection_mode" + """ + + @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" + def db_cosmosdb_connection_mode do + :"db.cosmosdb.connection_mode" + end + + @doc namespace: :db + + @doc """ + + + CosmosDB Operation Type + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_operation_type() + :"db.cosmosdb.operation_type" + """ + + @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" + def db_cosmosdb_operation_type do + :"db.cosmosdb.operation_type" + end + + @doc namespace: :db + + @doc """ + + + An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers + + iex> OpenTelemetry.SemanticConventions.Common.db_system() + :"db.system" + """ + + @spec db_system :: :"db.system" + def db_system do + :"db.system" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `network.protocol.name` + """ + + @spec http_flavor :: :"http.flavor" + def http_flavor do + :"http.flavor" + end + + @doc namespace: :system + + @deprecated """ + Replaced by `system.process.status` + """ + + @spec system_processes_status :: :"system.processes.status" + def system_processes_status do + :"system.processes.status" + end + + @doc namespace: :disk + + @doc """ + + + The disk IO operation direction + + iex> OpenTelemetry.SemanticConventions.Common.disk_io_direction() + :"disk.io.direction" + """ + + @spec disk_io_direction :: :"disk.io.direction" + def disk_io_direction do + :"disk.io.direction" + end + + @doc namespace: :faas + + @doc """ + + + Describes the type of the operation that was performed on the data + + iex> OpenTelemetry.SemanticConventions.Common.faas_document_operation() + :"faas.document.operation" + """ + + @spec faas_document_operation :: :"faas.document.operation" + def faas_document_operation do + :"faas.document.operation" + end + + @doc namespace: :host + + @doc """ + + + The CPU architecture the host system is running on + + iex> OpenTelemetry.SemanticConventions.Common.host_arch() + :"host.arch" + """ + + @spec host_arch :: :"host.arch" + def host_arch do + :"host.arch" + end + + @doc namespace: :http + + @doc """ + + + State of the HTTP connection in the HTTP connection pool + + iex> OpenTelemetry.SemanticConventions.Common.http_connection_state() + :"http.connection.state" + """ + + @spec http_connection_state :: :"http.connection.state" + def http_connection_state do + :"http.connection.state" + end + + @doc namespace: :messaging + + @doc """ + + + A string identifying the kind of messaging operation + + ### Notes + + If a custom value is used, it MUST be of low cardinality + + iex> OpenTelemetry.SemanticConventions.Common.messaging_operation() + :"messaging.operation" + """ + + @spec messaging_operation :: :"messaging.operation" + def messaging_operation do + :"messaging.operation" + end + + @doc namespace: :messaging + + @doc """ + + + Model of message consumption. This only applies to consumer spans + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_consumption_model() + :"messaging.rocketmq.consumption_model" + """ + + @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" + def messaging_rocketmq_consumption_model do + :"messaging.rocketmq.consumption_model" + end + + @doc namespace: :messaging + + @doc """ + + + Type of message + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_type() + :"messaging.rocketmq.message.type" + """ + + @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message.type" + def messaging_rocketmq_message_type do + :"messaging.rocketmq.message.type" + end + + @doc namespace: :messaging + + @doc """ + + + Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) + + iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_disposition_status() + :"messaging.servicebus.disposition_status" + """ + + @spec messaging_servicebus_disposition_status :: :"messaging.servicebus.disposition_status" + def messaging_servicebus_disposition_status do + :"messaging.servicebus.disposition_status" + end + + @doc namespace: :network + + @doc """ + + + The network IO operation direction + + iex> OpenTelemetry.SemanticConventions.Common.network_io_direction() + :"network.io.direction" + """ + + @spec network_io_direction :: :"network.io.direction" + def network_io_direction do + :"network.io.direction" + end + + @doc namespace: :rpc + + @doc """ + + + The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values + + iex> OpenTelemetry.SemanticConventions.Common.rpc_connect_rpc_error_code() + :"rpc.connect_rpc.error_code" + """ + + @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" + def rpc_connect_rpc_error_code do + :"rpc.connect_rpc.error_code" + end + + @doc namespace: :rpc + + @doc """ + + + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request + + iex> OpenTelemetry.SemanticConventions.Common.rpc_grpc_status_code() + :"rpc.grpc.status_code" + """ + + @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" + def rpc_grpc_status_code do + :"rpc.grpc.status_code" + end + + @doc namespace: :telemetry + + @doc """ + + + The language of the telemetry SDK + + iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_language() + :"telemetry.sdk.language" + """ + + @spec telemetry_sdk_language :: :"telemetry.sdk.language" + def telemetry_sdk_language do + :"telemetry.sdk.language" + end + + @doc namespace: :tls + + @doc """ + + + Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + iex> OpenTelemetry.SemanticConventions.Common.tls_protocol_name() + :"tls.protocol.name" + """ + + @spec tls_protocol_name :: :"tls.protocol.name" + def tls_protocol_name do + :"tls.protocol.name" + end +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/event.ex b/apps/opentelemetry_semantic_conventions/lib/event.ex new file mode 100644 index 00000000..d3c984ff --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/event.ex @@ -0,0 +1,48 @@ +defmodule OpenTelemetry.SemanticConventions.Event do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + """ + + @doc namespace: :message + @typedoc """ + Whether this is a received or sent message + + ### Options + + + * `:SENT`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sent + + * `:RECEIVED`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - received + + + + """ + @type message_type() :: :SENT | :RECEIVED + + @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.Event.schema_url() + "https://opentelemetry.io/schemas/1.25.0" + """ + @spec schema_url :: String.t() + def schema_url do + "https://opentelemetry.io/schemas/1.25.0" + end + + @doc namespace: :message + + @doc """ + + + Whether this is a received or sent message + + iex> OpenTelemetry.SemanticConventions.Event.message_type() + :"message.type" + """ + + @spec message_type :: :"message.type" + def message_type do + :"message.type" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/metric.ex b/apps/opentelemetry_semantic_conventions/lib/metric.ex new file mode 100644 index 00000000..3d4b63b2 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/metric.ex @@ -0,0 +1,789 @@ +defmodule OpenTelemetry.SemanticConventions.Metric do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + """ + + @doc namespace: :container + @typedoc """ + The CPU state for this data point. A container SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + + ### Options + + + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows) + + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) + + * `:kernel`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows) + + + + """ + @type container_cpu_state() :: :user | :system | :kernel | atom() + + @doc namespace: :disk + @typedoc """ + The disk IO operation direction + + ### Options + + + * `:read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read + + * `:write`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - write + + + + """ + @type disk_io_direction() :: :read | :write + + @doc namespace: :network + @typedoc """ + The network IO operation direction + + ### Options + + + * `:transmit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - transmit + + * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - receive + + + + """ + @type network_io_direction() :: :transmit | :receive + + @doc namespace: :error + @typedoc """ + Describes the error the DNS lookup failed with + + ### Options + + + * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value + + + + """ + @type error_type() :: :_OTHER | atom() + + @doc namespace: :network + @typedoc """ + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) + + ### Options + + + * `:tcp` - TCP + + * `:udp` - UDP + + * `:pipe` - Named or anonymous pipe + + * `:unix` - Unix domain socket + + + + """ + @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() + + @doc namespace: :network + @typedoc """ + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent + + ### Options + + + * `:ipv4` - IPv4 + + * `:ipv6` - IPv6 + + + + """ + @type network_type() :: :ipv4 | :ipv6 | atom() + + @doc namespace: :faas + @typedoc """ + Type of the trigger which caused this function invocation + + ### Options + + + * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write + + * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request + + * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system + + * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly + + * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply + + + + """ + @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other + + @doc namespace: :http + @typedoc """ + HTTP request method + + ### Options + + + * `:CONNECT` - CONNECT method + + * `:DELETE` - DELETE method + + * `:GET` - GET method + + * `:HEAD` - HEAD method + + * `:OPTIONS` - OPTIONS method + + * `:PATCH` - PATCH method + + * `:POST` - POST method + + * `:PUT` - PUT method + + * `:TRACE` - TRACE method + + * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of + + + + """ + @type http_request_method() :: + :CONNECT + | :DELETE + | :GET + | :HEAD + | :OPTIONS + | :PATCH + | :POST + | :PUT + | :TRACE + | :_OTHER + | atom() + + @doc namespace: :http + @typedoc """ + State of the HTTP connection in the HTTP connection pool + + ### Options + + + * `:active`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state + + * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state + + + + """ + @type http_connection_state() :: :active | :idle | atom() + + @doc namespace: :messaging + @typedoc """ + An identifier for the messaging system being used. See below for a list of well-known identifiers + + ### Options + + + * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ + + * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) + + * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid + + * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs + + * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus + + * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub + + * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service + + * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka + + * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ + + * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ + + + + """ + @type messaging_system() :: + :activemq + | :aws_sqs + | :eventgrid + | :eventhubs + | :servicebus + | :gcp_pubsub + | :jms + | :kafka + | :rabbitmq + | :rocketmq + | atom() + + @doc namespace: :process + @typedoc """ + The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + + ### Options + + + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system + + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user + + * `:wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wait + + + + """ + @type process_cpu_state() :: :system | :user | :wait | atom() + + @doc namespace: :process + @typedoc """ + Specifies whether the context switches for this data point were voluntary or involuntary + + ### Options + + + * `:voluntary`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - voluntary + + * `:involuntary`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - involuntary + + + + """ + @type process_context_switch_type() :: :voluntary | :involuntary | atom() + + @doc namespace: :process + @typedoc """ + The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults + + ### Options + + + * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major + + * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor + + + + """ + @type process_paging_fault_type() :: :major | :minor | atom() + + @doc namespace: :system + @typedoc """ + The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + + ### Options + + + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user + + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system + + * `:nice`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - nice + + * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle + + * `:iowait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - iowait + + * `:interrupt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - interrupt + + * `:steal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - steal + + + + """ + @type system_cpu_state() :: + :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() + + @doc namespace: :system + @typedoc """ + The memory state + + ### Options + + + * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used + + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free + + * `:shared`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - shared + + * `:buffers`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - buffers + + * `:cached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cached + + + + """ + @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() + + @doc namespace: :system + @typedoc """ + The memory paging state + + ### Options + + + * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used + + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free + + + + """ + @type system_paging_state() :: :used | :free + + @doc namespace: :system + @typedoc """ + The memory paging type + + ### Options + + + * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major + + * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor + + + + """ + @type system_paging_type() :: :major | :minor + + @doc namespace: :system + @typedoc """ + The paging access direction + + ### Options + + + * `:in`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - in + + * `:out`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out + + + + """ + @type system_paging_direction() :: :in | :out + + @doc namespace: :system + @typedoc """ + The filesystem state + + ### Options + + + * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used + + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free + + * `:reserved`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - reserved + + + + """ + @type system_filesystem_state() :: :used | :free | :reserved + + @doc namespace: :system + @typedoc """ + The filesystem type + + ### Options + + + * `:fat32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fat32 + + * `:exfat`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - exfat + + * `:ntfs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ntfs + + * `:refs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - refs + + * `:hfsplus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - hfsplus + + * `:ext4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ext4 + + + + """ + @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() + + @doc namespace: :system + @typedoc """ + A stateless protocol MUST NOT set this attribute + + ### Options + + + * `:close`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close + + * `:close_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close_wait + + * `:closing`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - closing + + * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete + + * `:established`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - established + + * `:fin_wait_1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_1 + + * `:fin_wait_2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_2 + + * `:last_ack`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - last_ack + + * `:listen`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - listen + + * `:syn_recv`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_recv + + * `:syn_sent`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_sent + + * `:time_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - time_wait + + + + """ + @type system_network_state() :: + :close + | :close_wait + | :closing + | :delete + | :established + | :fin_wait_1 + | :fin_wait_2 + | :last_ack + | :listen + | :syn_recv + | :syn_sent + | :time_wait + + @doc namespace: :system + @typedoc """ + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + ### Options + + + * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running + + * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping + + * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped + + * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct + + + + """ + @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() + + @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.Metric.schema_url() + "https://opentelemetry.io/schemas/1.25.0" + """ + @spec schema_url :: String.t() + def schema_url do + "https://opentelemetry.io/schemas/1.25.0" + end + + @doc namespace: :container + + @doc """ + + + The CPU state for this data point. A container SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + + iex> OpenTelemetry.SemanticConventions.Metric.container_cpu_state() + :"container.cpu.state" + """ + + @spec container_cpu_state :: :"container.cpu.state" + def container_cpu_state do + :"container.cpu.state" + end + + @doc namespace: :disk + + @doc """ + + + The disk IO operation direction + + iex> OpenTelemetry.SemanticConventions.Metric.disk_io_direction() + :"disk.io.direction" + """ + + @spec disk_io_direction :: :"disk.io.direction" + def disk_io_direction do + :"disk.io.direction" + end + + @doc namespace: :network + + @doc """ + + + The network IO operation direction + + iex> OpenTelemetry.SemanticConventions.Metric.network_io_direction() + :"network.io.direction" + """ + + @spec network_io_direction :: :"network.io.direction" + def network_io_direction do + :"network.io.direction" + end + + @doc namespace: :error + + @doc """ + + + Describes the error the DNS lookup failed with + + ### Notes + + Instrumentations SHOULD use error code such as one of errors reported by `getaddrinfo`([Linux or other POSIX systems](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) / [Windows](https://learn.microsoft.com/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) or one reported by the runtime or client library. If error code is not available, the full name of exception type SHOULD be used + + iex> OpenTelemetry.SemanticConventions.Metric.error_type() + :"error.type" + """ + + @spec error_type :: :"error.type" + def error_type do + :"error.type" + end + + @doc namespace: :faas + + @doc """ + + + Type of the trigger which caused this function invocation + + iex> OpenTelemetry.SemanticConventions.Metric.faas_trigger() + :"faas.trigger" + """ + + @spec faas_trigger :: :"faas.trigger" + def faas_trigger do + :"faas.trigger" + end + + @doc namespace: :http + + @doc """ + + + State of the HTTP connection in the HTTP connection pool + + iex> OpenTelemetry.SemanticConventions.Metric.http_connection_state() + :"http.connection.state" + """ + + @spec http_connection_state :: :"http.connection.state" + def http_connection_state do + :"http.connection.state" + end + + @doc namespace: :process + + @doc """ + + + The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + + iex> OpenTelemetry.SemanticConventions.Metric.process_cpu_state() + :"process.cpu.state" + """ + + @spec process_cpu_state :: :"process.cpu.state" + def process_cpu_state do + :"process.cpu.state" + end + + @doc namespace: :process + + @doc """ + + + Specifies whether the context switches for this data point were voluntary or involuntary + + iex> OpenTelemetry.SemanticConventions.Metric.process_context_switch_type() + :"process.context_switch_type" + """ + + @spec process_context_switch_type :: :"process.context_switch_type" + def process_context_switch_type do + :"process.context_switch_type" + end + + @doc namespace: :process + + @doc """ + + + The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults + + iex> OpenTelemetry.SemanticConventions.Metric.process_paging_fault_type() + :"process.paging.fault_type" + """ + + @spec process_paging_fault_type :: :"process.paging.fault_type" + def process_paging_fault_type do + :"process.paging.fault_type" + end + + @doc namespace: :system + + @doc """ + + + The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + + iex> OpenTelemetry.SemanticConventions.Metric.system_cpu_state() + :"system.cpu.state" + """ + + @spec system_cpu_state :: :"system.cpu.state" + def system_cpu_state do + :"system.cpu.state" + end + + @doc namespace: :system + + @doc """ + + + The memory state + + iex> OpenTelemetry.SemanticConventions.Metric.system_memory_state() + :"system.memory.state" + """ + + @spec system_memory_state :: :"system.memory.state" + def system_memory_state do + :"system.memory.state" + end + + @doc namespace: :system + + @doc """ + + + The memory paging state + + iex> OpenTelemetry.SemanticConventions.Metric.system_paging_state() + :"system.paging.state" + """ + + @spec system_paging_state :: :"system.paging.state" + def system_paging_state do + :"system.paging.state" + end + + @doc namespace: :system + + @doc """ + + + The memory paging type + + iex> OpenTelemetry.SemanticConventions.Metric.system_paging_type() + :"system.paging.type" + """ + + @spec system_paging_type :: :"system.paging.type" + def system_paging_type do + :"system.paging.type" + end + + @doc namespace: :system + + @doc """ + + + The paging access direction + + iex> OpenTelemetry.SemanticConventions.Metric.system_paging_direction() + :"system.paging.direction" + """ + + @spec system_paging_direction :: :"system.paging.direction" + def system_paging_direction do + :"system.paging.direction" + end + + @doc namespace: :system + + @doc """ + + + The filesystem state + + iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_state() + :"system.filesystem.state" + """ + + @spec system_filesystem_state :: :"system.filesystem.state" + def system_filesystem_state do + :"system.filesystem.state" + end + + @doc namespace: :system + + @doc """ + + + The filesystem type + + iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_type() + :"system.filesystem.type" + """ + + @spec system_filesystem_type :: :"system.filesystem.type" + def system_filesystem_type do + :"system.filesystem.type" + end + + @doc namespace: :system + + @doc """ + + + A stateless protocol MUST NOT set this attribute + + iex> OpenTelemetry.SemanticConventions.Metric.system_network_state() + :"system.network.state" + """ + + @spec system_network_state :: :"system.network.state" + def system_network_state do + :"system.network.state" + end + + @doc namespace: :system + + @doc """ + + + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + iex> OpenTelemetry.SemanticConventions.Metric.system_process_status() + :"system.process.status" + """ + + @spec system_process_status :: :"system.process.status" + def system_process_status do + :"system.process.status" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/resource.ex b/apps/opentelemetry_semantic_conventions/lib/resource.ex new file mode 100644 index 00000000..b5af5f5d --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/resource.ex @@ -0,0 +1,157 @@ +defmodule OpenTelemetry.SemanticConventions.Resource do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + """ + + @doc namespace: :aws + @typedoc """ + The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task + + ### Options + + + * `:ec2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ec2 + + * `:fargate`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fargate + + + + """ + @type aws_ecs_launchtype() :: :ec2 | :fargate + + @doc namespace: :host + @typedoc """ + The CPU architecture the host system is running on + + ### Options + + + * `:amd64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 + + * `:arm32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 + + * `:arm64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 + + * `:ia64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium + + * `:ppc32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC + + * `:ppc64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC + + * `:s390x`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture + + * `:x86`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 + + + + """ + @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() + + @doc namespace: :telemetry + @typedoc """ + The language of the telemetry SDK + + ### Options + + + * `:cpp` - cpp + + * `:dotnet` - dotnet + + * `:erlang` - erlang + + * `:go` - go + + * `:java` - java + + * `:nodejs` - nodejs + + * `:php` - php + + * `:python` - python + + * `:ruby` - ruby + + * `:rust` - rust + + * `:swift` - swift + + * `:webjs` - webjs + + + + """ + @type telemetry_sdk_language() :: + :cpp + | :dotnet + | :erlang + | :go + | :java + | :nodejs + | :php + | :python + | :ruby + | :rust + | :swift + | :webjs + | atom() + + @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.Resource.schema_url() + "https://opentelemetry.io/schemas/1.25.0" + """ + @spec schema_url :: String.t() + def schema_url do + "https://opentelemetry.io/schemas/1.25.0" + end + + @doc namespace: :aws + + @doc """ + + + The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task + + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_launchtype() + :"aws.ecs.launchtype" + """ + + @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" + def aws_ecs_launchtype do + :"aws.ecs.launchtype" + end + + @doc namespace: :host + + @doc """ + + + The CPU architecture the host system is running on + + iex> OpenTelemetry.SemanticConventions.Resource.host_arch() + :"host.arch" + """ + + @spec host_arch :: :"host.arch" + def host_arch do + :"host.arch" + end + + @doc namespace: :telemetry + + @doc """ + + + The language of the telemetry SDK + + iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_language() + :"telemetry.sdk.language" + """ + + @spec telemetry_sdk_language :: :"telemetry.sdk.language" + def telemetry_sdk_language do + :"telemetry.sdk.language" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex b/apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex new file mode 100644 index 00000000..e47ee7f0 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex @@ -0,0 +1,17 @@ +defmodule OpenTelemetry.SemanticConventions do + @moduledoc """ + Semantic Conventions + + + ## Lifecycle Status + + The support guarantees and allowed changes are governed by the lifecycle of the document. + + [OpenTelemetry Document Status](https://opentelemetry.io/docs/specs/otel/document-status) conventions. + + ### Experimental + + Experimental items are denoted as such, e.g. `attribute`^e^. These items _can_ be changed + but that does not happen frequently in practice. + """ +end diff --git a/apps/opentelemetry_semantic_conventions/lib/span.ex b/apps/opentelemetry_semantic_conventions/lib/span.ex new file mode 100644 index 00000000..7d145073 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/span.ex @@ -0,0 +1,1012 @@ +defmodule OpenTelemetry.SemanticConventions.Span do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + """ + + @doc namespace: :opentracing + @typedoc """ + Parent-child Reference type + + ### Options + + + * `:child_of`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span depends on the child Span in some capacity + + * `:follows_from`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span + + + + """ + @type opentracing_ref_type() :: :child_of | :follows_from + + @doc namespace: :db + @typedoc """ + An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers + + ### Options + + + * `:other_sql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes + + * `:mssql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server + + * `:mssqlcompact`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact + + * `:mysql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL + + * `:oracle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database + + * `:db2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 + + * `:postgresql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL + + * `:redshift`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift + + * `:hive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive + + * `:cloudscape`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape + + * `:hsqldb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase + + * `:progress`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database + + * `:maxdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB + + * `:hanadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA + + * `:ingres`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres + + * `:firstsql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL + + * `:edb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB + + * `:cache`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché + + * `:adabas`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) + + * `:firebird`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird + + * `:derby`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby + + * `:filemaker`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker + + * `:informix`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix + + * `:instantdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB + + * `:interbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase + + * `:mariadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB + + * `:netezza`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza + + * `:pervasive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL + + * `:pointbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase + + * `:sqlite`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite + + * `:sybase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase + + * `:teradata`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata + + * `:vertica`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica + + * `:h2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 + + * `:coldfusion`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ + + * `:cassandra`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra + + * `:hbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase + + * `:mongodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB + + * `:redis`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis + + * `:couchbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase + + * `:couchdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB + + * `:cosmosdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB + + * `:dynamodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB + + * `:neo4j`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j + + * `:geode`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode + + * `:elasticsearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch + + * `:memcached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached + + * `:cockroachdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB + + * `:opensearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch + + * `:clickhouse`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse + + * `:spanner`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner + + * `:trino`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino + + + + """ + @type db_system() :: + :other_sql + | :mssql + | :mssqlcompact + | :mysql + | :oracle + | :db2 + | :postgresql + | :redshift + | :hive + | :cloudscape + | :hsqldb + | :progress + | :maxdb + | :hanadb + | :ingres + | :firstsql + | :edb + | :cache + | :adabas + | :firebird + | :derby + | :filemaker + | :informix + | :instantdb + | :interbase + | :mariadb + | :netezza + | :pervasive + | :pointbase + | :sqlite + | :sybase + | :teradata + | :vertica + | :h2 + | :coldfusion + | :cassandra + | :hbase + | :mongodb + | :redis + | :couchbase + | :couchdb + | :cosmosdb + | :dynamodb + | :neo4j + | :geode + | :elasticsearch + | :memcached + | :cockroachdb + | :opensearch + | :clickhouse + | :spanner + | :trino + | atom() + + @doc namespace: :db + @typedoc """ + 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) + + ### Options + + + * `:all`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - all + + * `:each_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - each_quorum + + * `:quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - quorum + + * `:local_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_quorum + + * `:one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - one + + * `:two`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - two + + * `:three`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - three + + * `:local_one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_one + + * `:any`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - any + + * `:serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - serial + + * `:local_serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_serial + + + + """ + @type db_cassandra_consistency_level() :: + :all + | :each_quorum + | :quorum + | :local_quorum + | :one + | :two + | :three + | :local_one + | :any + | :serial + | :local_serial + + @doc namespace: :http + @typedoc """ + HTTP request method + + ### Options + + + * `:CONNECT` - CONNECT method + + * `:DELETE` - DELETE method + + * `:GET` - GET method + + * `:HEAD` - HEAD method + + * `:OPTIONS` - OPTIONS method + + * `:PATCH` - PATCH method + + * `:POST` - POST method + + * `:PUT` - PUT method + + * `:TRACE` - TRACE method + + * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of + + + + """ + @type http_request_method() :: + :CONNECT + | :DELETE + | :GET + | :HEAD + | :OPTIONS + | :PATCH + | :POST + | :PUT + | :TRACE + | :_OTHER + | atom() + + @doc namespace: :db + @typedoc """ + Cosmos client connection mode + + ### Options + + + * `:gateway`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode + + * `:direct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection + + + + """ + @type db_cosmosdb_connection_mode() :: :gateway | :direct + + @doc namespace: :db + @typedoc """ + CosmosDB Operation Type + + ### Options + + + * `:Invalid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid + + * `:Create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - create + + * `:Patch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - patch + + * `:Read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read + + * `:ReadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read_feed + + * `:Delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete + + * `:Replace`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - replace + + * `:Execute`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute + + * `:Query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query + + * `:Head`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head + + * `:HeadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head_feed + + * `:Upsert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - upsert + + * `:Batch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - batch + + * `:QueryPlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query_plan + + * `:ExecuteJavaScript`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute_javascript + + + + """ + @type db_cosmosdb_operation_type() :: + :Invalid + | :Create + | :Patch + | :Read + | :ReadFeed + | :Delete + | :Replace + | :Execute + | :Query + | :Head + | :HeadFeed + | :Upsert + | :Batch + | :QueryPlan + | :ExecuteJavaScript + | atom() + + @doc namespace: :otel + @typedoc """ + Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET + + ### Options + + + * `:OK`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The operation has been validated by an Application developer or Operator to have completed successfully + + * `:ERROR`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The operation contains an error + + + + """ + @type otel_status_code() :: :OK | :ERROR + + @doc namespace: :faas + @typedoc """ + Type of the trigger which caused this function invocation + + ### Options + + + * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write + + * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request + + * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system + + * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly + + * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply + + + + """ + @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other + + @doc namespace: :faas + @typedoc """ + Describes the type of the operation that was performed on the data + + ### Options + + + * `:insert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created + + * `:edit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified + + * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted + + + + """ + @type faas_document_operation() :: :insert | :edit | :delete | atom() + + @doc namespace: :faas + @typedoc """ + The cloud provider of the invoked function + + ### Options + + + * `:alibaba_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud + + * `:aws`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services + + * `:azure`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure + + * `:gcp`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform + + * `:tencent_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud + + + + """ + @type faas_invoked_provider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() + + @doc namespace: :error + @typedoc """ + Describes a class of error the operation ended with + + ### Options + + + * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value + + + + """ + @type error_type() :: :_OTHER | atom() + + @doc namespace: :rpc + @typedoc """ + The value `aws-api` + + ### Options + + + * `:grpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC + + * `:java_rmi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI + + * `:dotnet_wcf`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF + + * `:apache_dubbo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo + + * `:connect_rpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC + + + + """ + @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() + + @doc namespace: :graphql + @typedoc """ + The type of the operation being executed + + ### Options + + + * `:query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL query + + * `:mutation`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL mutation + + * `:subscription`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL subscription + + + + """ + @type graphql_operation_type() :: :query | :mutation | :subscription + + @doc namespace: :messaging + @typedoc """ + A string identifying the kind of messaging operation + + ### Options + + + * `:publish`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created + + * `:create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios + + * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages + + * `:process`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer + + * `:settle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled + + + + """ + @type messaging_operation() :: :publish | :create | :receive | :process | :settle | atom() + + @doc namespace: :messaging + @typedoc """ + An identifier for the messaging system being used. See below for a list of well-known identifiers + + ### Options + + + * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ + + * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) + + * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid + + * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs + + * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus + + * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub + + * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service + + * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka + + * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ + + * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ + + + + """ + @type messaging_system() :: + :activemq + | :aws_sqs + | :eventgrid + | :eventhubs + | :servicebus + | :gcp_pubsub + | :jms + | :kafka + | :rabbitmq + | :rocketmq + | atom() + + @doc namespace: :network + @typedoc """ + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) + + ### Options + + + * `:tcp` - TCP + + * `:udp` - UDP + + * `:pipe` - Named or anonymous pipe + + * `:unix` - Unix domain socket + + + + """ + @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() + + @doc namespace: :network + @typedoc """ + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent + + ### Options + + + * `:ipv4` - IPv4 + + * `:ipv6` - IPv6 + + + + """ + @type network_type() :: :ipv4 | :ipv6 | atom() + + @doc namespace: :rpc + @typedoc """ + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request + + ### Options + + + * `0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK + + * `1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED + + * `2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN + + * `3`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT + + * `4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED + + * `5`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND + + * `6`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS + + * `7`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED + + * `8`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED + + * `9`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION + + * `10`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED + + * `11`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE + + * `12`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED + + * `13`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL + + * `14`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE + + * `15`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS + + * `16`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED + + + + """ + @type rpc_grpc_status_code() :: + 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 + + @doc namespace: :rpc + @typedoc """ + The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values + + ### Options + + + * `:cancelled`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cancelled + + * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown + + * `:invalid_argument`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid_argument + + * `:deadline_exceeded`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - deadline_exceeded + + * `:not_found`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - not_found + + * `:already_exists`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - already_exists + + * `:permission_denied`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - permission_denied + + * `:resource_exhausted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - resource_exhausted + + * `:failed_precondition`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - failed_precondition + + * `:aborted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - aborted + + * `:out_of_range`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out_of_range + + * `:unimplemented`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unimplemented + + * `:internal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - internal + + * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable + + * `:data_loss`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - data_loss + + * `:unauthenticated`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unauthenticated + + + + """ + @type rpc_connect_rpc_error_code() :: + :cancelled + | :unknown + | :invalid_argument + | :deadline_exceeded + | :not_found + | :already_exists + | :permission_denied + | :resource_exhausted + | :failed_precondition + | :aborted + | :out_of_range + | :unimplemented + | :internal + | :unavailable + | :data_loss + | :unauthenticated + + @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.Span.schema_url() + "https://opentelemetry.io/schemas/1.25.0" + """ + @spec schema_url :: String.t() + def schema_url do + "https://opentelemetry.io/schemas/1.25.0" + end + + @doc namespace: :opentracing + + @doc """ + + + Parent-child Reference type + + ### Notes + + The causal relationship between a child Span and a parent Span + + iex> OpenTelemetry.SemanticConventions.Span.opentracing_ref_type() + :"opentracing.ref_type" + """ + + @spec opentracing_ref_type :: :"opentracing.ref_type" + def opentracing_ref_type do + :"opentracing.ref_type" + end + + @doc namespace: :db + + @doc """ + + + 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) + + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_consistency_level() + :"db.cassandra.consistency_level" + """ + + @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" + def db_cassandra_consistency_level do + :"db.cassandra.consistency_level" + end + + @doc namespace: :http + + @doc """ + + + HTTP request method + + ### Notes + + HTTP request method value SHOULD be "known" to the instrumentation. + By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) + and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). + + If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. + + If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override + the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named + OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods + (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). + + HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. + Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. + Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value + + iex> OpenTelemetry.SemanticConventions.Span.http_request_method() + :"http.request.method" + """ + + @spec http_request_method :: :"http.request.method" + def http_request_method do + :"http.request.method" + end + + @doc namespace: :db + + @doc """ + + + Cosmos client connection mode + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_connection_mode() + :"db.cosmosdb.connection_mode" + """ + + @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" + def db_cosmosdb_connection_mode do + :"db.cosmosdb.connection_mode" + end + + @doc namespace: :db + + @doc """ + + + CosmosDB Operation Type + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_operation_type() + :"db.cosmosdb.operation_type" + """ + + @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" + def db_cosmosdb_operation_type do + :"db.cosmosdb.operation_type" + end + + @doc namespace: :otel + + @doc """ + + + Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET + + iex> OpenTelemetry.SemanticConventions.Span.otel_status_code() + :"otel.status_code" + """ + + @spec otel_status_code :: :"otel.status_code" + def otel_status_code do + :"otel.status_code" + end + + @doc namespace: :faas + + @doc """ + + + Type of the trigger which caused this function invocation + + ### Notes + + For the server/consumer span on the incoming side, + `faas.trigger` MUST be set. + + Clients invoking FaaS instances usually cannot set `faas.trigger`, + since they would typically need to look in the payload to determine + the event type. If clients set it, it should be the same as the + trigger that corresponding incoming would have (i.e., this has + nothing to do with the underlying transport used to make the API + call to invoke the lambda, which is often HTTP) + + iex> OpenTelemetry.SemanticConventions.Span.faas_trigger() + :"faas.trigger" + """ + + @spec faas_trigger :: :"faas.trigger" + def faas_trigger do + :"faas.trigger" + end + + @doc namespace: :faas + + @doc """ + + + Describes the type of the operation that was performed on the data + + iex> OpenTelemetry.SemanticConventions.Span.faas_document_operation() + :"faas.document.operation" + """ + + @spec faas_document_operation :: :"faas.document.operation" + def faas_document_operation do + :"faas.document.operation" + end + + @doc namespace: :faas + + @doc """ + + + The cloud provider of the invoked function + + ### Notes + + SHOULD be equal to the `cloud.provider` resource attribute of the invoked function + + iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_provider() + :"faas.invoked_provider" + """ + + @spec faas_invoked_provider :: :"faas.invoked_provider" + def faas_invoked_provider do + :"faas.invoked_provider" + end + + @doc namespace: :rpc + + @doc """ + + + The value `aws-api` + + iex> OpenTelemetry.SemanticConventions.Span.rpc_system() + :"rpc.system" + """ + + @spec rpc_system :: :"rpc.system" + def rpc_system do + :"rpc.system" + end + + @doc namespace: :graphql + + @doc """ + + + The type of the operation being executed + + iex> OpenTelemetry.SemanticConventions.Span.graphql_operation_type() + :"graphql.operation.type" + """ + + @spec graphql_operation_type :: :"graphql.operation.type" + def graphql_operation_type do + :"graphql.operation.type" + end + + @doc namespace: :messaging + + @doc """ + + + A string identifying the kind of messaging operation + + ### Notes + + If a custom value is used, it MUST be of low cardinality + + iex> OpenTelemetry.SemanticConventions.Span.messaging_operation() + :"messaging.operation" + """ + + @spec messaging_operation :: :"messaging.operation" + def messaging_operation do + :"messaging.operation" + end + + @doc namespace: :network + + @doc """ + + + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) + + ### Notes + + The value SHOULD be normalized to lowercase. + + Consider always setting the transport when setting a port number, since + a port number is ambiguous without knowing the transport. For example + different processes could be listening on TCP port 12345 and UDP port 12345 + + iex> OpenTelemetry.SemanticConventions.Span.network_transport() + :"network.transport" + """ + + @spec network_transport :: :"network.transport" + def network_transport do + :"network.transport" + end + + @doc namespace: :network + + @doc """ + + + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent + + ### Notes + + The value SHOULD be normalized to lowercase + + iex> OpenTelemetry.SemanticConventions.Span.network_type() + :"network.type" + """ + + @spec network_type :: :"network.type" + def network_type do + :"network.type" + end + + @doc namespace: :rpc + + @doc """ + + + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request + + iex> OpenTelemetry.SemanticConventions.Span.rpc_grpc_status_code() + :"rpc.grpc.status_code" + """ + + @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" + def rpc_grpc_status_code do + :"rpc.grpc.status_code" + end + + @doc namespace: :rpc + + @doc """ + + + The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values + + iex> OpenTelemetry.SemanticConventions.Span.rpc_connect_rpc_error_code() + :"rpc.connect_rpc.error_code" + """ + + @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" + def rpc_connect_rpc_error_code do + :"rpc.connect_rpc.error_code" + end +end diff --git a/apps/opentelemetry_semantic_conventions/mix.exs b/apps/opentelemetry_semantic_conventions/mix.exs index bf84586f..cdee01bf 100644 --- a/apps/opentelemetry_semantic_conventions/mix.exs +++ b/apps/opentelemetry_semantic_conventions/mix.exs @@ -19,7 +19,8 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do source_url: "https://github.com/open-telemetry/opentelemetry-erlang/apps/opentelemetry_semantic_conventions", docs: [ - main: "OpenTelemetry.SemanticConventions.SemanticAttributes", + markdown_processor: {ExDoc.Markdown.Earmark, [all: true]}, + main: "OpenTelemetry.SemanticConventions", extras: [], groups_for_docs: [ AWS: &(&1[:namespace] == :aws), @@ -31,6 +32,7 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do DNS: &(&1[:namespace] in [:client, :destination, :dns]), "End User": &(&1[:namespace] == :enduser), FAAS: &(&1[:namespace] == :faas), + "Feature Flag": &(&1[:namespace] == :feature_flag), File: &(&1[:namespace] == :file), GCP: &(&1[:namespace] == :gcp), GraphQL: &(&1[:namespace] == :graphql), @@ -51,8 +53,12 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do URL: &(&1[:namespace] == :url) ], nest_modules_by_prefix: [ - OpenTelemetry, - SemanticConventions.SemanticAttributes + OpenTelemetry.SemanticConventions, + Common, + Event, + Metric, + Resource, + Span ] ], test_coverage: [tool: :covertool], diff --git a/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 new file mode 100644 index 00000000..96a454ba --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 @@ -0,0 +1,95 @@ +{%- macro upFirst(text) -%} + {{ text[0] | upper}}{{text[1:] }} +{%- endmacro -%} +{%- macro funcName(text) -%} + {{ text | regex_replace(pattern="\.", replace="_") }} +{%- endmacro -%} +{%- macro toAtom(text) -%} +{%- if text.find('.') != -1 %}:"{{ text }}"{%- else %}:{{ text }}{%- endif %} +{%- endmacro -%} +{%- macro to_elixir_type(value) -%} + {%- if value|string == value -%} + {{ toAtom(value) }} + {%- elif value == value|int -%} + {{ value }} + {%- else -%} + unmatchedtype: {{ value }} + {%- endif -%} +{%- endmacro -%} +{%- macro excluded_namespaces() -%} +('android', 'aspnetcore', 'cloud', 'dotnet', 'ios', 'jvm', 'signalr') +{%- endmacro -%} + +defmodule OpenTelemetry.SemanticConventions.{{ module|to_camelcase|first_up }} do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + """ +{%- for attribute in attributes | unique(attribute="fqn") %} + {%- if attribute.is_enum and attribute.root_namespace not in excluded_namespaces() %} + {%- set type_name = attribute.fqn | to_const_name() %} + {%- set type = attribute.attr_type.enum_type %} + {% if attribute.root_namespace != '' %} + @doc namespace: {{ toAtom(attribute.root_namespace) }} + {%- endif %} + @typedoc """ + {{ attribute.brief | to_doc_brief }} + + ### Options + + {% for member in attribute.attr_type.members %} + * `{{ to_elixir_type(member.value) }}` + {%- if member|is_experimental %}^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^{% endif %} - {% if member|is_deprecated %}**deprecated** ~~{% endif %}{{ member.brief | to_doc_brief }}{% if member|is_deprecated %}~~{% endif %} + {% endfor %} + + {# type attribute {{ attribute }} #} + """ + @type {{ attribute.fqn|to_const_name|lower }}() :: + {%- for member in attribute.attr_type.members -%} + {% if loop.first %} {% endif %}{{ to_elixir_type(member.value) }}{% if not loop.last %} | {% endif %}{% if attribute.attr_type.custom_values and loop.last %} | atom(){% endif %} + {%- endfor -%} + {%- endif %} +{%- endfor %} + + @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.schema_url() + "{{ schema_uri }}" + """ + @spec schema_url :: String.t() + def schema_url do + "{{ schema_uri }}" + end + +{%- for attribute in attributes | unique(attribute="fqn") %} + {%- if attribute.is_enum and attribute.is_local and attribute.root_namespace not in excluded_namespaces() %} + {% if attribute.root_namespace != '' %} + @doc namespace: {{ toAtom(attribute.root_namespace) }} + {%- endif %} + {% if attribute|is_deprecated %} + @deprecated """ + {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} + """ + {% else %} + @doc """ + {# attribute {{ attribute }} #} + + {{ attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} + {%- if attribute.note %} + + ### Notes + + {{attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} + {%- endif %} + + iex> OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.{{ funcName(attribute.fqn) }}() + :"{{ attribute.fqn }}" + """ + {% endif %} + @spec {{ funcName(attribute.fqn) }} :: {{ toAtom(attribute.fqn) }} + def {{ funcName(attribute.fqn) }} do + {{ toAtom(attribute.fqn) }} + end + {%- endif -%} +{%- endfor %} +end diff --git a/apps/opentelemetry_semantic_conventions/templates/semantic_conventions.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.hrl.j2 similarity index 100% rename from apps/opentelemetry_semantic_conventions/templates/semantic_conventions.hrl.j2 rename to apps/opentelemetry_semantic_conventions/templates/semantic_attributes.hrl.j2 From 3d66e8fd407aefb0a9cbc07798cd342c7cb92b6a Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 20 Apr 2024 21:58:03 -0600 Subject: [PATCH 03/57] Refinement --- .../lib/common.ex | 5388 ++++++++++++++--- .../lib/event.ex | 155 +- .../lib/metric.ex | 283 +- .../lib/resource.ex | 1476 ++++- .../lib/span.ex | 1680 ++++- .../templates/semantic_attributes.ex.j2 | 24 +- 6 files changed, 7837 insertions(+), 1169 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/common.ex b/apps/opentelemetry_semantic_conventions/lib/common.ex index 40ec7313..4be63406 100644 --- a/apps/opentelemetry_semantic_conventions/lib/common.ex +++ b/apps/opentelemetry_semantic_conventions/lib/common.ex @@ -2,1072 +2,1117 @@ defmodule OpenTelemetry.SemanticConventions.Common do @moduledoc """ OpenTelemetry Semantic Conventions for Attributes. """ - + @doc namespace: :faas @typedoc """ The cloud provider of the invoked function ### Options - * `:alibaba_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud - + * `:aws`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services - + * `:azure`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure - + * `:gcp`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform - + * `:tencent_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud - - """ @type faas_invoked_provider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() - + @doc namespace: :faas @typedoc """ Type of the trigger which caused this function invocation ### Options - * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write - + * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request - + * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system - + * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly - + * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - - """ @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other - + @doc namespace: :http @typedoc """ HTTP request method ### Options - * `:CONNECT` - CONNECT method - + * `:DELETE` - DELETE method - + * `:GET` - GET method - + * `:HEAD` - HEAD method - + * `:OPTIONS` - OPTIONS method - + * `:PATCH` - PATCH method - + * `:POST` - POST method - + * `:PUT` - PUT method - + * `:TRACE` - TRACE method - + * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of - - """ - @type http_request_method() :: :CONNECT | :DELETE | :GET | :HEAD | :OPTIONS | :PATCH | :POST | :PUT | :TRACE | :_OTHER | atom() - + @type http_request_method() :: + :CONNECT + | :DELETE + | :GET + | :HEAD + | :OPTIONS + | :PATCH + | :POST + | :PUT + | :TRACE + | :_OTHER + | atom() + @doc namespace: :error @typedoc """ Describes a class of error the operation ended with ### Options - * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value - - """ @type error_type() :: :_OTHER | atom() - + @doc namespace: :log @typedoc """ The stream associated with the log. See below for a list of well-known values ### Options - * `:stdout`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Logs from stdout stream - + * `:stderr`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Events from stderr stream - - """ @type log_iostream() :: :stdout | :stderr - + @doc namespace: :messaging @typedoc """ An identifier for the messaging system being used. See below for a list of well-known identifiers ### Options - * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ - + * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) - + * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid - + * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs - + * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus - + * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub - + * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service - + * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka - + * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ - + * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - - """ - @type messaging_system() :: :activemq | :aws_sqs | :eventgrid | :eventhubs | :servicebus | :gcp_pubsub | :jms | :kafka | :rabbitmq | :rocketmq | atom() - + @type messaging_system() :: + :activemq + | :aws_sqs + | :eventgrid + | :eventhubs + | :servicebus + | :gcp_pubsub + | :jms + | :kafka + | :rabbitmq + | :rocketmq + | atom() + @doc namespace: :network @typedoc """ [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) ### Options - * `:tcp` - TCP - + * `:udp` - UDP - + * `:pipe` - Named or anonymous pipe - + * `:unix` - Unix domain socket - - """ @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() - + @doc namespace: :network @typedoc """ [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent ### Options - * `:ipv4` - IPv4 - + * `:ipv6` - IPv6 - - """ @type network_type() :: :ipv4 | :ipv6 | atom() - + @doc namespace: :process @typedoc """ - The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels ### Options - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system - + * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user - + * `:wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wait - - """ @type process_cpu_state() :: :system | :user | :wait | atom() - + @doc namespace: :rpc @typedoc """ A string identifying the remoting system. See below for a list of well-known identifiers ### Options - * `:grpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC - + * `:java_rmi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI - + * `:dotnet_wcf`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF - + * `:apache_dubbo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo - + * `:connect_rpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC - - """ @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() - + @doc namespace: :system @typedoc """ - The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels ### Options - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user - + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system - + * `:nice`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - nice - + * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle - + * `:iowait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - iowait - + * `:interrupt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - interrupt - + * `:steal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - steal - - """ - @type system_cpu_state() :: :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() - + @type system_cpu_state() :: + :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() + @doc namespace: :system @typedoc """ The memory state ### Options - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - + * `:shared`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - shared - + * `:buffers`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - buffers - + * `:cached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cached - - """ @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() - + @doc namespace: :system @typedoc """ The paging access direction ### Options - * `:in`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - in - + * `:out`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out - - """ @type system_paging_direction() :: :in | :out - + @doc namespace: :system @typedoc """ The memory paging state ### Options - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - """ @type system_paging_state() :: :used | :free - + @doc namespace: :system @typedoc """ The memory paging type ### Options - * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major - + * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor - - """ @type system_paging_type() :: :major | :minor - + @doc namespace: :system @typedoc """ The filesystem state ### Options - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - + * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - + * `:reserved`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - reserved - - """ @type system_filesystem_state() :: :used | :free | :reserved - + @doc namespace: :system @typedoc """ The filesystem type ### Options - * `:fat32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fat32 - + * `:exfat`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - exfat - + * `:ntfs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ntfs - + * `:refs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - refs - + * `:hfsplus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - hfsplus - + * `:ext4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ext4 - - """ @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() - + @doc namespace: :system @typedoc """ - A stateless protocol MUST NOT set this attribute + A stateless protocol **MUST NOT** set this attribute ### Options - * `:close`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close - + * `:close_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close_wait - + * `:closing`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - closing - + * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete - + * `:established`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - established - + * `:fin_wait_1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_1 - + * `:fin_wait_2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_2 - + * `:last_ack`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - last_ack - + * `:listen`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - listen - + * `:syn_recv`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_recv - + * `:syn_sent`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_sent - + * `:time_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - time_wait - - """ - @type system_network_state() :: :close | :close_wait | :closing | :delete | :established | :fin_wait_1 | :fin_wait_2 | :last_ack | :listen | :syn_recv | :syn_sent | :time_wait - + @type system_network_state() :: + :close + | :close_wait + | :closing + | :delete + | :established + | :fin_wait_1 + | :fin_wait_2 + | :last_ack + | :listen + | :syn_recv + | :syn_sent + | :time_wait + @doc namespace: :system @typedoc """ The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) ### Options - * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running - + * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping - + * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped - + * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct - - """ @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() - + @doc namespace: :network @typedoc """ This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection ### Options - * `:gprs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GPRS - + * `:edge`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EDGE - + * `:umts`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UMTS - + * `:cdma`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA - + * `:evdo_0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rel. 0 - + * `:evdo_a`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. A - + * `:cdma2000_1xrtt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA2000 1XRTT - + * `:hsdpa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSDPA - + * `:hsupa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSUPA - + * `:hspa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPA - + * `:iden`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IDEN - + * `:evdo_b`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. B - + * `:lte`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE - + * `:ehrpd`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EHRPD - + * `:hspap`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPAP - + * `:gsm`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GSM - + * `:td_scdma`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - TD-SCDMA - + * `:iwlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IWLAN - + * `:nr`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NR (New Radio) - + * `:nrnsa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) - + * `:lte_ca`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE CA - - """ - @type network_connection_subtype() :: :gprs | :edge | :umts | :cdma | :evdo_0 | :evdo_a | :cdma2000_1xrtt | :hsdpa | :hsupa | :hspa | :iden | :evdo_b | :lte | :ehrpd | :hspap | :gsm | :td_scdma | :iwlan | :nr | :nrnsa | :lte_ca | atom() - + @type network_connection_subtype() :: + :gprs + | :edge + | :umts + | :cdma + | :evdo_0 + | :evdo_a + | :cdma2000_1xrtt + | :hsdpa + | :hsupa + | :hspa + | :iden + | :evdo_b + | :lte + | :ehrpd + | :hspap + | :gsm + | :td_scdma + | :iwlan + | :nr + | :nrnsa + | :lte_ca + | atom() + @doc namespace: :network @typedoc """ The internet connection type ### Options - * `:wifi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wifi - + * `:wired`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wired - + * `:cell`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cell - + * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable - + * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown - - """ @type network_connection_type() :: :wifi | :wired | :cell | :unavailable | :unknown | atom() - + @doc namespace: :container @typedoc """ The CPU state for this data point ### Options - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows) - + * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) - + * `:kernel`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows) - - """ @type container_cpu_state() :: :user | :system | :kernel | atom() - + @doc namespace: :db @typedoc """ 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) ### Options - * `:all`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - all - + * `:each_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - each_quorum - + * `:quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - quorum - + * `:local_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_quorum - + * `:one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - one - + * `:two`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - two - + * `:three`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - three - + * `:local_one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_one - + * `:any`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - any - + * `:serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - serial - + * `:local_serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_serial - - """ - @type db_cassandra_consistency_level() :: :all | :each_quorum | :quorum | :local_quorum | :one | :two | :three | :local_one | :any | :serial | :local_serial - + @type db_cassandra_consistency_level() :: + :all + | :each_quorum + | :quorum + | :local_quorum + | :one + | :two + | :three + | :local_one + | :any + | :serial + | :local_serial + @doc namespace: :db @typedoc """ Cosmos client connection mode ### Options - * `:gateway`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode - + * `:direct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection - - """ @type db_cosmosdb_connection_mode() :: :gateway | :direct - + @doc namespace: :db @typedoc """ CosmosDB Operation Type ### Options - * `:Invalid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid - + * `:Create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - create - + * `:Patch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - patch - + * `:Read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read - + * `:ReadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read_feed - + * `:Delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete - + * `:Replace`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - replace - + * `:Execute`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute - + * `:Query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query - + * `:Head`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head - + * `:HeadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head_feed - + * `:Upsert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - upsert - + * `:Batch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - batch - + * `:QueryPlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query_plan - + * `:ExecuteJavaScript`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute_javascript - - """ - @type db_cosmosdb_operation_type() :: :Invalid | :Create | :Patch | :Read | :ReadFeed | :Delete | :Replace | :Execute | :Query | :Head | :HeadFeed | :Upsert | :Batch | :QueryPlan | :ExecuteJavaScript | atom() - + @type db_cosmosdb_operation_type() :: + :Invalid + | :Create + | :Patch + | :Read + | :ReadFeed + | :Delete + | :Replace + | :Execute + | :Query + | :Head + | :HeadFeed + | :Upsert + | :Batch + | :QueryPlan + | :ExecuteJavaScript + | atom() + @doc namespace: :db @typedoc """ An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers ### Options - * `:other_sql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes - + * `:mssql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server - + * `:mssqlcompact`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact - + * `:mysql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL - + * `:oracle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database - + * `:db2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 - + * `:postgresql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL - + * `:redshift`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift - + * `:hive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive - + * `:cloudscape`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape - + * `:hsqldb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase - + * `:progress`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database - + * `:maxdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB - + * `:hanadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA - + * `:ingres`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres - + * `:firstsql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL - + * `:edb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB - + * `:cache`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché - + * `:adabas`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) - + * `:firebird`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird - + * `:derby`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby - + * `:filemaker`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker - + * `:informix`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix - + * `:instantdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB - + * `:interbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase - + * `:mariadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB - + * `:netezza`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza - + * `:pervasive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL - + * `:pointbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase - + * `:sqlite`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite - + * `:sybase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase - + * `:teradata`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata - + * `:vertica`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica - + * `:h2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 - + * `:coldfusion`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ - + * `:cassandra`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra - + * `:hbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase - + * `:mongodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB - + * `:redis`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis - + * `:couchbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase - + * `:couchdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB - + * `:cosmosdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB - + * `:dynamodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB - + * `:neo4j`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j - + * `:geode`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode - + * `:elasticsearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch - + * `:memcached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached - + * `:cockroachdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB - + * `:opensearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch - + * `:clickhouse`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse - + * `:spanner`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner - + * `:trino`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino - - """ - @type db_system() :: :other_sql | :mssql | :mssqlcompact | :mysql | :oracle | :db2 | :postgresql | :redshift | :hive | :cloudscape | :hsqldb | :progress | :maxdb | :hanadb | :ingres | :firstsql | :edb | :cache | :adabas | :firebird | :derby | :filemaker | :informix | :instantdb | :interbase | :mariadb | :netezza | :pervasive | :pointbase | :sqlite | :sybase | :teradata | :vertica | :h2 | :coldfusion | :cassandra | :hbase | :mongodb | :redis | :couchbase | :couchdb | :cosmosdb | :dynamodb | :neo4j | :geode | :elasticsearch | :memcached | :cockroachdb | :opensearch | :clickhouse | :spanner | :trino | atom() - + @type db_system() :: + :other_sql + | :mssql + | :mssqlcompact + | :mysql + | :oracle + | :db2 + | :postgresql + | :redshift + | :hive + | :cloudscape + | :hsqldb + | :progress + | :maxdb + | :hanadb + | :ingres + | :firstsql + | :edb + | :cache + | :adabas + | :firebird + | :derby + | :filemaker + | :informix + | :instantdb + | :interbase + | :mariadb + | :netezza + | :pervasive + | :pointbase + | :sqlite + | :sybase + | :teradata + | :vertica + | :h2 + | :coldfusion + | :cassandra + | :hbase + | :mongodb + | :redis + | :couchbase + | :couchdb + | :cosmosdb + | :dynamodb + | :neo4j + | :geode + | :elasticsearch + | :memcached + | :cockroachdb + | :opensearch + | :clickhouse + | :spanner + | :trino + | atom() + @doc namespace: :http @typedoc """ Deprecated, use `network.protocol.name` instead ### Options - * `:"1.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.0 - + * `:"1.1"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.1 - + * `:"2.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/2 - + * `:"3.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/3 - + * `:SPDY`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SPDY protocol - + * `:QUIC`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - QUIC protocol - - """ @type http_flavor() :: :"1.0" | :"1.1" | :"2.0" | :"3.0" | :SPDY | :QUIC | atom() - + @doc namespace: :system @typedoc """ Deprecated, use `system.process.status` instead ### Options - * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running - + * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping - + * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped - + * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct - - """ @type system_processes_status() :: :running | :sleeping | :stopped | :defunct | atom() - + @doc namespace: :disk @typedoc """ The disk IO operation direction ### Options - * `:read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read - + * `:write`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - write - - """ @type disk_io_direction() :: :read | :write - + @doc namespace: :faas @typedoc """ Describes the type of the operation that was performed on the data ### Options - * `:insert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created - + * `:edit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified - + * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted - - """ @type faas_document_operation() :: :insert | :edit | :delete | atom() - + @doc namespace: :host @typedoc """ The CPU architecture the host system is running on ### Options - * `:amd64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 - + * `:arm32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 - + * `:arm64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 - + * `:ia64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium - + * `:ppc32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC - + * `:ppc64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC - + * `:s390x`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture - + * `:x86`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 - - """ @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() - + @doc namespace: :http @typedoc """ State of the HTTP connection in the HTTP connection pool ### Options - * `:active`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state - + * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state - - """ @type http_connection_state() :: :active | :idle | atom() - + @doc namespace: :messaging @typedoc """ A string identifying the kind of messaging operation ### Options - * `:publish`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created - + * `:create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios - + * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages - + * `:process`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer - + * `:settle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled - - """ @type messaging_operation() :: :publish | :create | :receive | :process | :settle | atom() - + @doc namespace: :messaging @typedoc """ Model of message consumption. This only applies to consumer spans ### Options - * `:clustering`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Clustering consumption model - + * `:broadcasting`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Broadcasting consumption model - - """ @type messaging_rocketmq_consumption_model() :: :clustering | :broadcasting - + @doc namespace: :messaging @typedoc """ Type of message ### Options - * `:normal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Normal message - + * `:fifo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FIFO message - + * `:delay`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Delay message - + * `:transaction`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Transaction message - - """ @type messaging_rocketmq_message_type() :: :normal | :fifo | :delay | :transaction - + @doc namespace: :messaging @typedoc """ Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) ### Options - * `:complete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is completed - + * `:abandon`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is abandoned - + * `:dead_letter`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is sent to dead letter queue - + * `:defer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is deferred - - """ - @type messaging_servicebus_disposition_status() :: :complete | :abandon | :dead_letter | :defer | atom() - + @type messaging_servicebus_disposition_status() :: + :complete | :abandon | :dead_letter | :defer | atom() + @doc namespace: :network @typedoc """ The network IO operation direction ### Options - * `:transmit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - transmit - + * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - receive - - """ @type network_io_direction() :: :transmit | :receive - + @doc namespace: :rpc @typedoc """ The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values ### Options - * `:cancelled`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cancelled - + * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown - + * `:invalid_argument`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid_argument - + * `:deadline_exceeded`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - deadline_exceeded - + * `:not_found`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - not_found - + * `:already_exists`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - already_exists - + * `:permission_denied`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - permission_denied - + * `:resource_exhausted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - resource_exhausted - + * `:failed_precondition`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - failed_precondition - + * `:aborted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - aborted - + * `:out_of_range`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out_of_range - + * `:unimplemented`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unimplemented - + * `:internal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - internal - + * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable - + * `:data_loss`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - data_loss - + * `:unauthenticated`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unauthenticated - - """ - @type rpc_connect_rpc_error_code() :: :cancelled | :unknown | :invalid_argument | :deadline_exceeded | :not_found | :already_exists | :permission_denied | :resource_exhausted | :failed_precondition | :aborted | :out_of_range | :unimplemented | :internal | :unavailable | :data_loss | :unauthenticated - + @type rpc_connect_rpc_error_code() :: + :cancelled + | :unknown + | :invalid_argument + | :deadline_exceeded + | :not_found + | :already_exists + | :permission_denied + | :resource_exhausted + | :failed_precondition + | :aborted + | :out_of_range + | :unimplemented + | :internal + | :unavailable + | :data_loss + | :unauthenticated + @doc namespace: :rpc @typedoc """ The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request ### Options - * `0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK - + * `1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED - + * `2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN - + * `3`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT - + * `4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED - + * `5`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND - + * `6`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS - + * `7`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED - + * `8`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED - + * `9`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION - + * `10`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED - + * `11`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE - + * `12`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED - + * `13`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL - + * `14`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE - + * `15`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS - + * `16`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED - - """ - @type rpc_grpc_status_code() :: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 - + @type rpc_grpc_status_code() :: + 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 + @doc namespace: :telemetry @typedoc """ The language of the telemetry SDK ### Options - * `:cpp` - cpp - + * `:dotnet` - dotnet - + * `:erlang` - erlang - + * `:go` - go - + * `:java` - java - + * `:nodejs` - nodejs - + * `:php` - php - + * `:python` - python - + * `:ruby` - ruby - + * `:rust` - rust - + * `:swift` - swift - + * `:webjs` - webjs - - """ - @type telemetry_sdk_language() :: :cpp | :dotnet | :erlang | :go | :java | :nodejs | :php | :python | :ruby | :rust | :swift | :webjs | atom() - + @type telemetry_sdk_language() :: + :cpp + | :dotnet + | :erlang + | :go + | :java + | :nodejs + | :php + | :python + | :ruby + | :rust + | :swift + | :webjs + | atom() + @doc namespace: :tls @typedoc """ Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) ### Options - * `:ssl`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ssl - + * `:tls`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - tls - - """ @type tls_protocol_name() :: :ssl | :tls | atom() @@ -1081,154 +1126,481 @@ defmodule OpenTelemetry.SemanticConventions.Common do def schema_url do "https://opentelemetry.io/schemas/1.25.0" end - + @doc namespace: :faas - @doc """ - + The name of the invoked function + + ### Notes + + **SHOULD** be equal to the `faas.name` resource attribute of the invoked function + iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_name() + :"faas.invoked_name" + """ + @spec faas_invoked_name :: :"faas.invoked_name" + def faas_invoked_name do + :"faas.invoked_name" + end + + @doc namespace: :faas + @doc """ The cloud provider of the invoked function ### Notes - SHOULD be equal to the `cloud.provider` resource attribute of the invoked function + **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_provider() :"faas.invoked_provider" """ - @spec faas_invoked_provider :: :"faas.invoked_provider" def faas_invoked_provider do :"faas.invoked_provider" end - + @doc namespace: :faas - @doc """ - + The cloud region of the invoked function + + ### Notes + + **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function + + iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_region() + :"faas.invoked_region" + """ + @spec faas_invoked_region :: :"faas.invoked_region" + def faas_invoked_region do + :"faas.invoked_region" + end + @doc namespace: :faas + @doc """ Type of the trigger which caused this function invocation iex> OpenTelemetry.SemanticConventions.Common.faas_trigger() :"faas.trigger" """ - @spec faas_trigger :: :"faas.trigger" def faas_trigger do :"faas.trigger" end - - @doc namespace: :http - + + @doc namespace: :client + @doc """ + Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name + + ### Notes + + When observed from the server side, and when communicating through an intermediary, `client.address` **SHOULD** represent the client address behind any intermediaries, for example proxies, if it's available + + iex> OpenTelemetry.SemanticConventions.Common.client_address() + :"client.address" + """ + @spec client_address :: :"client.address" + def client_address do + :"client.address" + end + + @doc namespace: :client + @doc """ + Client port number + + ### Notes + + When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available + + iex> OpenTelemetry.SemanticConventions.Common.client_port() + :"client.port" + """ + @spec client_port :: :"client.port" + def client_port do + :"client.port" + end + + @doc namespace: :server + @doc """ + Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name + + ### Notes + + When observed from the client side, and when communicating through an intermediary, `server.address` **SHOULD** represent the server address behind any intermediaries, for example proxies, if it's available + + iex> OpenTelemetry.SemanticConventions.Common.server_address() + :"server.address" + """ + @spec server_address :: :"server.address" + def server_address do + :"server.address" + end + + @doc namespace: :server + @doc """ + Server port number + + ### Notes + + When observed from the client side, and when communicating through an intermediary, `server.port` **SHOULD** represent the server port behind any intermediaries, for example proxies, if it's available + + iex> OpenTelemetry.SemanticConventions.Common.server_port() + :"server.port" + """ + @spec server_port :: :"server.port" + def server_port do + :"server.port" + end + + @doc namespace: :source + @doc """ + Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name + + ### Notes + + When observed from the destination side, and when communicating through an intermediary, `source.address` **SHOULD** represent the source address behind any intermediaries, for example proxies, if it's available + + iex> OpenTelemetry.SemanticConventions.Common.source_address() + :"source.address" + """ + @spec source_address :: :"source.address" + def source_address do + :"source.address" + end + + @doc namespace: :source + @doc """ + Source port number + + iex> OpenTelemetry.SemanticConventions.Common.source_port() + :"source.port" + """ + @spec source_port :: :"source.port" + def source_port do + :"source.port" + end + + @doc namespace: :destination + @doc """ + Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.destination_address() + :"destination.address" + """ + @spec destination_address :: :"destination.address" + def destination_address do + :"destination.address" + end + + @doc namespace: :destination @doc """ - + Destination port number + + iex> OpenTelemetry.SemanticConventions.Common.destination_port() + :"destination.port" + """ + @spec destination_port :: :"destination.port" + def destination_port do + :"destination.port" + end + @doc namespace: :http + @doc """ HTTP request method ### Notes - HTTP request method value SHOULD be "known" to the instrumentation. + HTTP request method value **SHOULD** be "known" to the instrumentation. By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). - - If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. - - If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override - the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named + + If the HTTP request method is not known to instrumentation, it **MUST** set the `http.request.method` attribute to `_OTHER`. + + If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it **MUST** provide a way to override + the list of known HTTP methods. If this override is done via environment variable, then the environment variable **MUST** be named OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods - (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). - - HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. - Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. - Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value + (this list **MUST** be a full override of the default known method, it is not a list of known methods in addition to the defaults). + + HTTP method names are case-sensitive and `http.request.method` attribute value **MUST** match a known HTTP method name exactly. + Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. + Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value iex> OpenTelemetry.SemanticConventions.Common.http_request_method() :"http.request.method" """ - @spec http_request_method :: :"http.request.method" def http_request_method do :"http.request.method" end - + @doc namespace: :error - @doc """ - - Describes a class of error the operation ended with ### Notes If the request fails with an error before response status code was sent or received, - `error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable) + `error.type` **SHOULD** be set to exception type (its fully-qualified class name, if applicable) or a component-specific low cardinality error identifier. - + If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), - `error.type` SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. - - The `error.type` value SHOULD be predictable and SHOULD have low cardinality. - Instrumentations SHOULD document the list of errors they report. - - The cardinality of `error.type` within one instrumentation library SHOULD be low, but + `error.type` **SHOULD** be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. + + The `error.type` value **SHOULD** be predictable and **SHOULD** have low cardinality. + Instrumentations **SHOULD** document the list of errors they report. + + The cardinality of `error.type` within one instrumentation library **SHOULD** be low, but telemetry consumers that aggregate data from multiple instrumentation libraries and applications should be prepared for `error.type` to have high cardinality at query time, when no additional filters are applied. - - If the request has completed successfully, instrumentations SHOULD NOT set `error.type` + + If the request has completed successfully, instrumentations **SHOULD NOT** set `error.type` iex> OpenTelemetry.SemanticConventions.Common.error_type() :"error.type" """ - @spec error_type :: :"error.type" def error_type do :"error.type" end - + + @doc namespace: :http + @doc """ + [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) + + iex> OpenTelemetry.SemanticConventions.Common.http_response_status_code() + :"http.response.status_code" + """ + @spec http_response_status_code :: :"http.response.status_code" + def http_response_status_code do + :"http.response.status_code" + end + + @doc namespace: :network + @doc """ + [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent + + ### Notes + + The value **SHOULD** be normalized to lowercase + + iex> OpenTelemetry.SemanticConventions.Common.network_protocol_name() + :"network.protocol.name" + """ + @spec network_protocol_name :: :"network.protocol.name" + def network_protocol_name do + :"network.protocol.name" + end + + @doc namespace: :network + @doc """ + The actual version of the protocol used for network communication + + ### Notes + + If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute **SHOULD** be set to the negotiated version. If the actual protocol version is not known, this attribute **SHOULD NOT** be set + + iex> OpenTelemetry.SemanticConventions.Common.network_protocol_version() + :"network.protocol.version" + """ + @spec network_protocol_version :: :"network.protocol.version" + def network_protocol_version do + :"network.protocol.version" + end + + @doc namespace: :url + @doc """ + The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol + + iex> OpenTelemetry.SemanticConventions.Common.url_scheme() + :"url.scheme" + """ + @spec url_scheme :: :"url.scheme" + def url_scheme do + :"url.scheme" + end + + @doc namespace: :http + @doc """ + The matched route, that is, the path template in the format used by the respective server framework + + ### Notes + + **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. + **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one + + iex> OpenTelemetry.SemanticConventions.Common.http_route() + :"http.route" + """ + @spec http_route :: :"http.route" + def http_route do + :"http.route" + end + + @doc namespace: :event + @doc """ + Identifies the class / type of event + + ### Notes + + Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.31.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes + + iex> OpenTelemetry.SemanticConventions.Common.event_name() + :"event.name" + """ + @spec event_name :: :"event.name" + def event_name do + :"event.name" + end + @doc namespace: :log - @doc """ - + A unique identifier for the Log Record + + ### Notes + + If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records **MUST** have different values. + The id **MAY** be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed + + iex> OpenTelemetry.SemanticConventions.Common.log_record_uid() + :"log.record.uid" + """ + @spec log_record_uid :: :"log.record.uid" + def log_record_uid do + :"log.record.uid" + end + + @doc namespace: :exception + @doc """ + The exception message + + iex> OpenTelemetry.SemanticConventions.Common.exception_message() + :"exception.message" + """ + @spec exception_message :: :"exception.message" + def exception_message do + :"exception.message" + end + + @doc namespace: :exception + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG + + iex> OpenTelemetry.SemanticConventions.Common.exception_stacktrace() + :"exception.stacktrace" + """ + @spec exception_stacktrace :: :"exception.stacktrace" + def exception_stacktrace do + :"exception.stacktrace" + end + + @doc namespace: :exception + @doc """ + The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it + iex> OpenTelemetry.SemanticConventions.Common.exception_type() + :"exception.type" + """ + @spec exception_type :: :"exception.type" + def exception_type do + :"exception.type" + end + + @doc namespace: :log + @doc """ The stream associated with the log. See below for a list of well-known values iex> OpenTelemetry.SemanticConventions.Common.log_iostream() :"log.iostream" """ - @spec log_iostream :: :"log.iostream" def log_iostream do :"log.iostream" end - - @doc namespace: :messaging - + + @doc namespace: :log @doc """ - + The basename of the file + iex> OpenTelemetry.SemanticConventions.Common.log_file_name() + :"log.file.name" + """ + @spec log_file_name :: :"log.file.name" + def log_file_name do + :"log.file.name" + end + + @doc namespace: :log + @doc """ + The basename of the file, with symlinks resolved + + iex> OpenTelemetry.SemanticConventions.Common.log_file_name_resolved() + :"log.file.name_resolved" + """ + @spec log_file_name_resolved :: :"log.file.name_resolved" + def log_file_name_resolved do + :"log.file.name_resolved" + end + + @doc namespace: :log + @doc """ + The full path to the file + + iex> OpenTelemetry.SemanticConventions.Common.log_file_path() + :"log.file.path" + """ + @spec log_file_path :: :"log.file.path" + def log_file_path do + :"log.file.path" + end + + @doc namespace: :log + @doc """ + The full path to the file, with symlinks resolved + + iex> OpenTelemetry.SemanticConventions.Common.log_file_path_resolved() + :"log.file.path_resolved" + """ + @spec log_file_path_resolved :: :"log.file.path_resolved" + def log_file_path_resolved do + :"log.file.path_resolved" + end + + @doc namespace: :messaging + @doc """ An identifier for the messaging system being used. See below for a list of well-known identifiers iex> OpenTelemetry.SemanticConventions.Common.messaging_system() :"messaging.system" """ - @spec messaging_system :: :"messaging.system" def messaging_system do :"messaging.system" end - - @doc namespace: :network - + + @doc namespace: :pool @doc """ - + 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` + + iex> OpenTelemetry.SemanticConventions.Common.pool_name() + :"pool.name" + """ + @spec pool_name :: :"pool.name" + def pool_name do + :"pool.name" + end + @doc namespace: :network + @doc """ [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) ### Notes - The value SHOULD be normalized to lowercase. - + The value **SHOULD** be normalized to lowercase. + Consider always setting the transport when setting a port number, since a port number is ambiguous without knowing the transport. For example different processes could be listening on TCP port 12345 and UDP port 12345 @@ -1236,551 +1608,3997 @@ defmodule OpenTelemetry.SemanticConventions.Common do iex> OpenTelemetry.SemanticConventions.Common.network_transport() :"network.transport" """ - @spec network_transport :: :"network.transport" def network_transport do :"network.transport" end - + @doc namespace: :network - @doc """ - - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent ### Notes - The value SHOULD be normalized to lowercase + The value **SHOULD** be normalized to lowercase iex> OpenTelemetry.SemanticConventions.Common.network_type() :"network.type" """ - @spec network_type :: :"network.type" def network_type do :"network.type" end - - @doc namespace: :process - + + @doc namespace: :messaging + @doc """ + The message destination name + + ### Notes + + Destination name **SHOULD** uniquely identify a specific queue, topic or other entity within the broker. If + the broker doesn't have such notion, the destination name **SHOULD** uniquely identify the broker + + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_name() + :"messaging.destination.name" + """ + @spec messaging_destination_name :: :"messaging.destination.name" + def messaging_destination_name do + :"messaging.destination.name" + end + + @doc namespace: :messaging @doc """ - + Low cardinality representation of the messaging destination name + + ### Notes + + Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation - The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_template() + :"messaging.destination.template" + """ + @spec messaging_destination_template :: :"messaging.destination.template" + def messaging_destination_template do + :"messaging.destination.template" + end + + @doc namespace: :process + @doc """ + The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels iex> OpenTelemetry.SemanticConventions.Common.process_cpu_state() :"process.cpu.state" """ - @spec process_cpu_state :: :"process.cpu.state" def process_cpu_state do :"process.cpu.state" end - + @doc namespace: :rpc - @doc """ - - A string identifying the remoting system. See below for a list of well-known identifiers iex> OpenTelemetry.SemanticConventions.Common.rpc_system() :"rpc.system" """ - @spec rpc_system :: :"rpc.system" def rpc_system do :"rpc.system" end - - @doc namespace: :system - + + @doc namespace: :rpc @doc """ - + The name of the (logical) method being called, must be equal to the $method part in the span name - The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + ### Notes - iex> OpenTelemetry.SemanticConventions.Common.system_cpu_state() - :"system.cpu.state" + This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) + + iex> OpenTelemetry.SemanticConventions.Common.rpc_method() + :"rpc.method" """ - - @spec system_cpu_state :: :"system.cpu.state" - def system_cpu_state do - :"system.cpu.state" + @spec rpc_method :: :"rpc.method" + def rpc_method do + :"rpc.method" + end + + @doc namespace: :rpc + @doc """ + The full (logical) name of the service being called, including its package name, if applicable + + ### Notes + + This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) + + iex> OpenTelemetry.SemanticConventions.Common.rpc_service() + :"rpc.service" + """ + @spec rpc_service :: :"rpc.service" + def rpc_service do + :"rpc.service" + end + + @doc namespace: :system + @doc """ + The device identifier + + iex> OpenTelemetry.SemanticConventions.Common.system_device() + :"system.device" + """ + @spec system_device :: :"system.device" + def system_device do + :"system.device" end - + + @doc namespace: :system + @doc """ + The logical CPU number [0..n-1] + + iex> OpenTelemetry.SemanticConventions.Common.system_cpu_logical_number() + :"system.cpu.logical_number" + """ + @spec system_cpu_logical_number :: :"system.cpu.logical_number" + def system_cpu_logical_number do + :"system.cpu.logical_number" + end + @doc namespace: :system - @doc """ - + The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + + iex> OpenTelemetry.SemanticConventions.Common.system_cpu_state() + :"system.cpu.state" + """ + @spec system_cpu_state :: :"system.cpu.state" + def system_cpu_state do + :"system.cpu.state" + end + @doc namespace: :system + @doc """ The memory state iex> OpenTelemetry.SemanticConventions.Common.system_memory_state() :"system.memory.state" """ - @spec system_memory_state :: :"system.memory.state" def system_memory_state do :"system.memory.state" end - + @doc namespace: :system - @doc """ - - The paging access direction iex> OpenTelemetry.SemanticConventions.Common.system_paging_direction() :"system.paging.direction" """ - @spec system_paging_direction :: :"system.paging.direction" def system_paging_direction do :"system.paging.direction" end - + @doc namespace: :system - @doc """ - - The memory paging state iex> OpenTelemetry.SemanticConventions.Common.system_paging_state() :"system.paging.state" """ - @spec system_paging_state :: :"system.paging.state" def system_paging_state do :"system.paging.state" end - + @doc namespace: :system - @doc """ - - The memory paging type iex> OpenTelemetry.SemanticConventions.Common.system_paging_type() :"system.paging.type" """ - @spec system_paging_type :: :"system.paging.type" def system_paging_type do :"system.paging.type" end - + + @doc namespace: :system + @doc """ + The filesystem mode + + iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_mode() + :"system.filesystem.mode" + """ + @spec system_filesystem_mode :: :"system.filesystem.mode" + def system_filesystem_mode do + :"system.filesystem.mode" + end + @doc namespace: :system - @doc """ - + The filesystem mount path + + iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_mountpoint() + :"system.filesystem.mountpoint" + """ + @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" + def system_filesystem_mountpoint do + :"system.filesystem.mountpoint" + end + @doc namespace: :system + @doc """ The filesystem state iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_state() :"system.filesystem.state" """ - @spec system_filesystem_state :: :"system.filesystem.state" def system_filesystem_state do :"system.filesystem.state" end - + @doc namespace: :system - @doc """ - - The filesystem type iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_type() :"system.filesystem.type" """ - @spec system_filesystem_type :: :"system.filesystem.type" def system_filesystem_type do :"system.filesystem.type" end - + @doc namespace: :system - @doc """ - - - A stateless protocol MUST NOT set this attribute + A stateless protocol **MUST NOT** set this attribute iex> OpenTelemetry.SemanticConventions.Common.system_network_state() :"system.network.state" """ - @spec system_network_state :: :"system.network.state" def system_network_state do :"system.network.state" end - + @doc namespace: :system - @doc """ - - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) iex> OpenTelemetry.SemanticConventions.Common.system_process_status() :"system.process.status" """ - @spec system_process_status :: :"system.process.status" def system_process_status do :"system.process.status" end - + + @doc namespace: :network + @doc """ + Local address of the network connection - IP address or Unix domain socket name + + iex> OpenTelemetry.SemanticConventions.Common.network_local_address() + :"network.local.address" + """ + @spec network_local_address :: :"network.local.address" + def network_local_address do + :"network.local.address" + end + + @doc namespace: :network + @doc """ + Local port number of the network connection + + iex> OpenTelemetry.SemanticConventions.Common.network_local_port() + :"network.local.port" + """ + @spec network_local_port :: :"network.local.port" + def network_local_port do + :"network.local.port" + end + + @doc namespace: :network + @doc """ + Peer address of the network connection - IP address or Unix domain socket name + + iex> OpenTelemetry.SemanticConventions.Common.network_peer_address() + :"network.peer.address" + """ + @spec network_peer_address :: :"network.peer.address" + def network_peer_address do + :"network.peer.address" + end + + @doc namespace: :network + @doc """ + Peer port number of the network connection + + iex> OpenTelemetry.SemanticConventions.Common.network_peer_port() + :"network.peer.port" + """ + @spec network_peer_port :: :"network.peer.port" + def network_peer_port do + :"network.peer.port" + end + + @doc namespace: :network + @doc """ + The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network + + iex> OpenTelemetry.SemanticConventions.Common.network_carrier_icc() + :"network.carrier.icc" + """ + @spec network_carrier_icc :: :"network.carrier.icc" + def network_carrier_icc do + :"network.carrier.icc" + end + + @doc namespace: :network + @doc """ + The mobile carrier country code + + iex> OpenTelemetry.SemanticConventions.Common.network_carrier_mcc() + :"network.carrier.mcc" + """ + @spec network_carrier_mcc :: :"network.carrier.mcc" + def network_carrier_mcc do + :"network.carrier.mcc" + end + + @doc namespace: :network + @doc """ + The mobile carrier network code + + iex> OpenTelemetry.SemanticConventions.Common.network_carrier_mnc() + :"network.carrier.mnc" + """ + @spec network_carrier_mnc :: :"network.carrier.mnc" + def network_carrier_mnc do + :"network.carrier.mnc" + end + @doc namespace: :network - @doc """ - + The name of the mobile carrier + iex> OpenTelemetry.SemanticConventions.Common.network_carrier_name() + :"network.carrier.name" + """ + @spec network_carrier_name :: :"network.carrier.name" + def network_carrier_name do + :"network.carrier.name" + end + + @doc namespace: :network + @doc """ This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection iex> OpenTelemetry.SemanticConventions.Common.network_connection_subtype() :"network.connection.subtype" """ - @spec network_connection_subtype :: :"network.connection.subtype" def network_connection_subtype do :"network.connection.subtype" end - + @doc namespace: :network - @doc """ - - The internet connection type iex> OpenTelemetry.SemanticConventions.Common.network_connection_type() :"network.connection.type" """ - @spec network_connection_type :: :"network.connection.type" def network_connection_type do :"network.connection.type" end - - @doc namespace: :container - - @doc """ - - The CPU state for this data point + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item in the `AttributeDefinitions` request field - iex> OpenTelemetry.SemanticConventions.Common.container_cpu_state() - :"container.cpu.state" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_attribute_definitions() + :"aws.dynamodb.attribute_definitions" """ - - @spec container_cpu_state :: :"container.cpu.state" - def container_cpu_state do - :"container.cpu.state" + @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" + def aws_dynamodb_attribute_definitions do + :"aws.dynamodb.attribute_definitions" end - - @doc namespace: :db - - @doc """ - - 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) + @doc namespace: :aws + @doc """ + The value of the `AttributesToGet` request parameter - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_consistency_level() - :"db.cassandra.consistency_level" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_attributes_to_get() + :"aws.dynamodb.attributes_to_get" """ - - @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" - def db_cassandra_consistency_level do - :"db.cassandra.consistency_level" + @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" + def aws_dynamodb_attributes_to_get do + :"aws.dynamodb.attributes_to_get" end - - @doc namespace: :db - - @doc """ - - Cosmos client connection mode + @doc namespace: :aws + @doc """ + The value of the `ConsistentRead` request parameter - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_connection_mode() - :"db.cosmosdb.connection_mode" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_consistent_read() + :"aws.dynamodb.consistent_read" """ - - @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" - def db_cosmosdb_connection_mode do - :"db.cosmosdb.connection_mode" + @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" + def aws_dynamodb_consistent_read do + :"aws.dynamodb.consistent_read" end - - @doc namespace: :db - - @doc """ - - CosmosDB Operation Type + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item in the `ConsumedCapacity` response field - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_operation_type() - :"db.cosmosdb.operation_type" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_consumed_capacity() + :"aws.dynamodb.consumed_capacity" """ - - @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" - def db_cosmosdb_operation_type do - :"db.cosmosdb.operation_type" + @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" + def aws_dynamodb_consumed_capacity do + :"aws.dynamodb.consumed_capacity" end - - @doc namespace: :db - - @doc """ - - An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers + @doc namespace: :aws + @doc """ + The value of the `Count` response parameter - iex> OpenTelemetry.SemanticConventions.Common.db_system() - :"db.system" - """ - - @spec db_system :: :"db.system" - def db_system do - :"db.system" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `network.protocol.name` + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_count() + :"aws.dynamodb.count" """ - - @spec http_flavor :: :"http.flavor" - def http_flavor do - :"http.flavor" + @spec aws_dynamodb_count :: :"aws.dynamodb.count" + def aws_dynamodb_count do + :"aws.dynamodb.count" end - - @doc namespace: :system - - @deprecated """ - Replaced by `system.process.status` + + @doc namespace: :aws + @doc """ + The value of the `ExclusiveStartTableName` request parameter + + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_exclusive_start_table() + :"aws.dynamodb.exclusive_start_table" """ - - @spec system_processes_status :: :"system.processes.status" - def system_processes_status do - :"system.processes.status" + @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" + def aws_dynamodb_exclusive_start_table do + :"aws.dynamodb.exclusive_start_table" end - - @doc namespace: :disk - - @doc """ - - The disk IO operation direction + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field - iex> OpenTelemetry.SemanticConventions.Common.disk_io_direction() - :"disk.io.direction" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_global_secondary_index_updates() + :"aws.dynamodb.global_secondary_index_updates" """ - - @spec disk_io_direction :: :"disk.io.direction" - def disk_io_direction do - :"disk.io.direction" + @spec aws_dynamodb_global_secondary_index_updates :: + :"aws.dynamodb.global_secondary_index_updates" + def aws_dynamodb_global_secondary_index_updates do + :"aws.dynamodb.global_secondary_index_updates" end - - @doc namespace: :faas - - @doc """ - - Describes the type of the operation that was performed on the data + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field - iex> OpenTelemetry.SemanticConventions.Common.faas_document_operation() - :"faas.document.operation" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_global_secondary_indexes() + :"aws.dynamodb.global_secondary_indexes" """ - - @spec faas_document_operation :: :"faas.document.operation" - def faas_document_operation do - :"faas.document.operation" + @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" + def aws_dynamodb_global_secondary_indexes do + :"aws.dynamodb.global_secondary_indexes" end - - @doc namespace: :host - - @doc """ - - The CPU architecture the host system is running on + @doc namespace: :aws + @doc """ + The value of the `IndexName` request parameter - iex> OpenTelemetry.SemanticConventions.Common.host_arch() - :"host.arch" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_index_name() + :"aws.dynamodb.index_name" """ - - @spec host_arch :: :"host.arch" - def host_arch do - :"host.arch" + @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" + def aws_dynamodb_index_name do + :"aws.dynamodb.index_name" end - - @doc namespace: :http - - @doc """ - - State of the HTTP connection in the HTTP connection pool + @doc namespace: :aws + @doc """ + The JSON-serialized value of the `ItemCollectionMetrics` response field - iex> OpenTelemetry.SemanticConventions.Common.http_connection_state() - :"http.connection.state" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_item_collection_metrics() + :"aws.dynamodb.item_collection_metrics" """ - - @spec http_connection_state :: :"http.connection.state" - def http_connection_state do - :"http.connection.state" + @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" + def aws_dynamodb_item_collection_metrics do + :"aws.dynamodb.item_collection_metrics" end - - @doc namespace: :messaging - - @doc """ - - A string identifying the kind of messaging operation + @doc namespace: :aws + @doc """ + The value of the `Limit` request parameter - ### Notes + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_limit() + :"aws.dynamodb.limit" + """ + @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" + def aws_dynamodb_limit do + :"aws.dynamodb.limit" + end - If a custom value is used, it MUST be of low cardinality + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field - iex> OpenTelemetry.SemanticConventions.Common.messaging_operation() - :"messaging.operation" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_local_secondary_indexes() + :"aws.dynamodb.local_secondary_indexes" """ - - @spec messaging_operation :: :"messaging.operation" - def messaging_operation do - :"messaging.operation" + @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" + def aws_dynamodb_local_secondary_indexes do + :"aws.dynamodb.local_secondary_indexes" end - - @doc namespace: :messaging - - @doc """ - - Model of message consumption. This only applies to consumer spans + @doc namespace: :aws + @doc """ + The value of the `ProjectionExpression` request parameter - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_consumption_model() - :"messaging.rocketmq.consumption_model" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_projection() + :"aws.dynamodb.projection" """ - - @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" - def messaging_rocketmq_consumption_model do - :"messaging.rocketmq.consumption_model" + @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" + def aws_dynamodb_projection do + :"aws.dynamodb.projection" end - - @doc namespace: :messaging - - @doc """ - - Type of message + @doc namespace: :aws + @doc """ + The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_type() - :"messaging.rocketmq.message.type" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_provisioned_read_capacity() + :"aws.dynamodb.provisioned_read_capacity" """ - - @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message.type" - def messaging_rocketmq_message_type do - :"messaging.rocketmq.message.type" + @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" + def aws_dynamodb_provisioned_read_capacity do + :"aws.dynamodb.provisioned_read_capacity" end - - @doc namespace: :messaging - - @doc """ - - Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) + @doc namespace: :aws + @doc """ + The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter - iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_disposition_status() - :"messaging.servicebus.disposition_status" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_provisioned_write_capacity() + :"aws.dynamodb.provisioned_write_capacity" """ - - @spec messaging_servicebus_disposition_status :: :"messaging.servicebus.disposition_status" - def messaging_servicebus_disposition_status do - :"messaging.servicebus.disposition_status" + @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" + def aws_dynamodb_provisioned_write_capacity do + :"aws.dynamodb.provisioned_write_capacity" end - - @doc namespace: :network - - @doc """ - - The network IO operation direction + @doc namespace: :aws + @doc """ + The value of the `ScanIndexForward` request parameter - iex> OpenTelemetry.SemanticConventions.Common.network_io_direction() - :"network.io.direction" + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_scan_forward() + :"aws.dynamodb.scan_forward" """ - - @spec network_io_direction :: :"network.io.direction" - def network_io_direction do - :"network.io.direction" + @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" + def aws_dynamodb_scan_forward do + :"aws.dynamodb.scan_forward" end - - @doc namespace: :rpc - + + @doc namespace: :aws @doc """ - + The value of the `ScannedCount` response parameter + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_scanned_count() + :"aws.dynamodb.scanned_count" + """ + @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" + def aws_dynamodb_scanned_count do + :"aws.dynamodb.scanned_count" + end + + @doc namespace: :aws + @doc """ + The value of the `Segment` request parameter + + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_segment() + :"aws.dynamodb.segment" + """ + @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" + def aws_dynamodb_segment do + :"aws.dynamodb.segment" + end + + @doc namespace: :aws + @doc """ + The value of the `Select` request parameter + + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_select() + :"aws.dynamodb.select" + """ + @spec aws_dynamodb_select :: :"aws.dynamodb.select" + def aws_dynamodb_select do + :"aws.dynamodb.select" + end + + @doc namespace: :aws + @doc """ + The number of items in the `TableNames` response parameter + + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_table_count() + :"aws.dynamodb.table_count" + """ + @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" + def aws_dynamodb_table_count do + :"aws.dynamodb.table_count" + end + + @doc namespace: :aws + @doc """ + The keys in the `RequestItems` object field + + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_table_names() + :"aws.dynamodb.table_names" + """ + @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" + def aws_dynamodb_table_names do + :"aws.dynamodb.table_names" + end + + @doc namespace: :aws + @doc """ + The value of the `TotalSegments` request parameter + + iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_total_segments() + :"aws.dynamodb.total_segments" + """ + @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" + def aws_dynamodb_total_segments do + :"aws.dynamodb.total_segments" + end + + @doc namespace: :browser + @doc """ + Array of brand name and version separated by a space + + ### Notes + + This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) + + iex> OpenTelemetry.SemanticConventions.Common.browser_brands() + :"browser.brands" + """ + @spec browser_brands :: :"browser.brands" + def browser_brands do + :"browser.brands" + end + + @doc namespace: :browser + @doc """ + Preferred language of the user using the browser + + ### Notes + + This value is intended to be taken from the Navigator API `navigator.language` + + iex> OpenTelemetry.SemanticConventions.Common.browser_language() + :"browser.language" + """ + @spec browser_language :: :"browser.language" + def browser_language do + :"browser.language" + end + + @doc namespace: :browser + @doc """ + A boolean that is true if the browser is running on a mobile device + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.browser_mobile() + :"browser.mobile" + """ + @spec browser_mobile :: :"browser.mobile" + def browser_mobile do + :"browser.mobile" + end + + @doc namespace: :browser + @doc """ + The platform on which the browser is running + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.browser_platform() + :"browser.platform" + """ + @spec browser_platform :: :"browser.platform" + def browser_platform do + :"browser.platform" + end + + @doc namespace: :cloudevents + @doc """ + The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event + + iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_id() + :"cloudevents.event_id" + """ + @spec cloudevents_event_id :: :"cloudevents.event_id" + def cloudevents_event_id do + :"cloudevents.event_id" + end + + @doc namespace: :cloudevents + @doc """ + The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened + + iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_source() + :"cloudevents.event_source" + """ + @spec cloudevents_event_source :: :"cloudevents.event_source" + def cloudevents_event_source do + :"cloudevents.event_source" + end + + @doc namespace: :cloudevents + @doc """ + The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses + + iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_spec_version() + :"cloudevents.event_spec_version" + """ + @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" + def cloudevents_event_spec_version do + :"cloudevents.event_spec_version" + end + + @doc namespace: :cloudevents + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_subject() + :"cloudevents.event_subject" + """ + @spec cloudevents_event_subject :: :"cloudevents.event_subject" + def cloudevents_event_subject do + :"cloudevents.event_subject" + end + + @doc namespace: :cloudevents + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_type() + :"cloudevents.event_type" + """ + @spec cloudevents_event_type :: :"cloudevents.event_type" + def cloudevents_event_type do + :"cloudevents.event_type" + end + + @doc namespace: :code + @doc """ + The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` + + iex> OpenTelemetry.SemanticConventions.Common.code_column() + :"code.column" + """ + @spec code_column :: :"code.column" + def code_column do + :"code.column" + end + + @doc namespace: :code + @doc """ + The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) + + iex> OpenTelemetry.SemanticConventions.Common.code_filepath() + :"code.filepath" + """ + @spec code_filepath :: :"code.filepath" + def code_filepath do + :"code.filepath" + end + + @doc namespace: :code + @doc """ + The method or function name, or equivalent (usually rightmost part of the code unit's name) + + iex> OpenTelemetry.SemanticConventions.Common.code_function() + :"code.function" + """ + @spec code_function :: :"code.function" + def code_function do + :"code.function" + end + + @doc namespace: :code + @doc """ + The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` + + iex> OpenTelemetry.SemanticConventions.Common.code_lineno() + :"code.lineno" + """ + @spec code_lineno :: :"code.lineno" + def code_lineno do + :"code.lineno" + end + + @doc namespace: :code + @doc """ + The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit + + iex> OpenTelemetry.SemanticConventions.Common.code_namespace() + :"code.namespace" + """ + @spec code_namespace :: :"code.namespace" + def code_namespace do + :"code.namespace" + end + + @doc namespace: :code + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG + + iex> OpenTelemetry.SemanticConventions.Common.code_stacktrace() + :"code.stacktrace" + """ + @spec code_stacktrace :: :"code.stacktrace" + def code_stacktrace do + :"code.stacktrace" + end + + @doc namespace: :container + @doc """ + The command used to run the container (i.e. the command name) + + ### Notes + + If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage + + iex> OpenTelemetry.SemanticConventions.Common.container_command() + :"container.command" + """ + @spec container_command :: :"container.command" + def container_command do + :"container.command" + end + + @doc namespace: :container + @doc """ + All the command arguments (including the command/executable itself) run by the container. [2] + + iex> OpenTelemetry.SemanticConventions.Common.container_command_args() + :"container.command_args" + """ + @spec container_command_args :: :"container.command_args" + def container_command_args do + :"container.command_args" + end + + @doc namespace: :container + @doc """ + The full command run by the container as a single string representing the full command. [2] + + iex> OpenTelemetry.SemanticConventions.Common.container_command_line() + :"container.command_line" + """ + @spec container_command_line :: :"container.command_line" + def container_command_line do + :"container.command_line" + end + + @doc namespace: :container + @doc """ + The CPU state for this data point + + iex> OpenTelemetry.SemanticConventions.Common.container_cpu_state() + :"container.cpu.state" + """ + @spec container_cpu_state :: :"container.cpu.state" + def container_cpu_state do + :"container.cpu.state" + end + + @doc namespace: :container + @doc """ + Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated + + iex> OpenTelemetry.SemanticConventions.Common.container_id() + :"container.id" + """ + @spec container_id :: :"container.id" + def container_id do + :"container.id" + end + + @doc namespace: :container + @doc """ + Runtime specific image identifier. Usually a hash algorithm followed by a UUID + + ### Notes + + 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 assinged 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 + + iex> OpenTelemetry.SemanticConventions.Common.container_image_id() + :"container.image.id" + """ + @spec container_image_id :: :"container.image.id" + def container_image_id do + :"container.image.id" + end + + @doc namespace: :container + @doc """ + Name of the image the container was built on + + iex> OpenTelemetry.SemanticConventions.Common.container_image_name() + :"container.image.name" + """ + @spec container_image_name :: :"container.image.name" + def container_image_name do + :"container.image.name" + end + + @doc namespace: :container + @doc """ + Repo digests of the container image as provided by the container runtime + + ### Notes + + [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 + + iex> OpenTelemetry.SemanticConventions.Common.container_image_repo_digests() + :"container.image.repo_digests" + """ + @spec container_image_repo_digests :: :"container.image.repo_digests" + def container_image_repo_digests do + :"container.image.repo_digests" + end + + @doc namespace: :container + @doc """ + 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:` + + iex> OpenTelemetry.SemanticConventions.Common.container_image_tags() + :"container.image.tags" + """ + @spec container_image_tags :: :"container.image.tags" + def container_image_tags do + :"container.image.tags" + end + + @doc namespace: :container + @doc """ + Container name used by container runtime + + iex> OpenTelemetry.SemanticConventions.Common.container_name() + :"container.name" + """ + @spec container_name :: :"container.name" + def container_name do + :"container.name" + end + + @doc namespace: :container + @doc """ + The container runtime managing this container + + iex> OpenTelemetry.SemanticConventions.Common.container_runtime() + :"container.runtime" + """ + @spec container_runtime :: :"container.runtime" + def container_runtime do + :"container.runtime" + end + + @doc namespace: :db + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_consistency_level() + :"db.cassandra.consistency_level" + """ + @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" + def db_cassandra_consistency_level do + :"db.cassandra.consistency_level" + end + + @doc namespace: :db + @doc """ + The data center of the coordinating node for a query + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_coordinator_dc() + :"db.cassandra.coordinator.dc" + """ + @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" + def db_cassandra_coordinator_dc do + :"db.cassandra.coordinator.dc" + end + + @doc namespace: :db + @doc """ + The ID of the coordinating node for a query + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_coordinator_id() + :"db.cassandra.coordinator.id" + """ + @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" + def db_cassandra_coordinator_id do + :"db.cassandra.coordinator.id" + end + + @doc namespace: :db + @doc """ + Whether or not the query is idempotent + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_idempotence() + :"db.cassandra.idempotence" + """ + @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" + def db_cassandra_idempotence do + :"db.cassandra.idempotence" + end + + @doc namespace: :db + @doc """ + The fetch size used for paging, i.e. how many rows will be returned at once + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_page_size() + :"db.cassandra.page_size" + """ + @spec db_cassandra_page_size :: :"db.cassandra.page_size" + def db_cassandra_page_size do + :"db.cassandra.page_size" + end + + @doc namespace: :db + @doc """ + The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_speculative_execution_count() + :"db.cassandra.speculative_execution_count" + """ + @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" + def db_cassandra_speculative_execution_count do + :"db.cassandra.speculative_execution_count" + end + + @doc namespace: :db + @doc """ + The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) + + ### Notes + + This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value **MUST NOT** be set + + iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_table() + :"db.cassandra.table" + """ + @spec db_cassandra_table :: :"db.cassandra.table" + def db_cassandra_table do + :"db.cassandra.table" + end + + @doc namespace: :db + @doc """ + Unique Cosmos client instance id + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_client_id() + :"db.cosmosdb.client_id" + """ + @spec db_cosmosdb_client_id :: :"db.cosmosdb.client_id" + def db_cosmosdb_client_id do + :"db.cosmosdb.client_id" + end + + @doc namespace: :db + @doc """ + Cosmos client connection mode + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_connection_mode() + :"db.cosmosdb.connection_mode" + """ + @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" + def db_cosmosdb_connection_mode do + :"db.cosmosdb.connection_mode" + end + + @doc namespace: :db + @doc """ + Cosmos DB container name + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_container() + :"db.cosmosdb.container" + """ + @spec db_cosmosdb_container :: :"db.cosmosdb.container" + def db_cosmosdb_container do + :"db.cosmosdb.container" + end + + @doc namespace: :db + @doc """ + CosmosDB Operation Type + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_operation_type() + :"db.cosmosdb.operation_type" + """ + @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" + def db_cosmosdb_operation_type do + :"db.cosmosdb.operation_type" + end + + @doc namespace: :db + @doc """ + RU consumed for that operation + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_request_charge() + :"db.cosmosdb.request_charge" + """ + @spec db_cosmosdb_request_charge :: :"db.cosmosdb.request_charge" + def db_cosmosdb_request_charge do + :"db.cosmosdb.request_charge" + end + + @doc namespace: :db + @doc """ + Request payload size in bytes + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_request_content_length() + :"db.cosmosdb.request_content_length" + """ + @spec db_cosmosdb_request_content_length :: :"db.cosmosdb.request_content_length" + def db_cosmosdb_request_content_length do + :"db.cosmosdb.request_content_length" + end + + @doc namespace: :db + @doc """ + Cosmos DB status code + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_status_code() + :"db.cosmosdb.status_code" + """ + @spec db_cosmosdb_status_code :: :"db.cosmosdb.status_code" + def db_cosmosdb_status_code do + :"db.cosmosdb.status_code" + end + + @doc namespace: :db + @doc """ + Cosmos DB sub status code + + iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_sub_status_code() + :"db.cosmosdb.sub_status_code" + """ + @spec db_cosmosdb_sub_status_code :: :"db.cosmosdb.sub_status_code" + def db_cosmosdb_sub_status_code do + :"db.cosmosdb.sub_status_code" + end + + @doc namespace: :db + @doc """ + Represents the identifier of an Elasticsearch cluster + + iex> OpenTelemetry.SemanticConventions.Common.db_elasticsearch_cluster_name() + :"db.elasticsearch.cluster.name" + """ + @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" + def db_elasticsearch_cluster_name do + :"db.elasticsearch.cluster.name" + end + + @doc namespace: :db + @doc """ + An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like `select @@hostname` + + iex> OpenTelemetry.SemanticConventions.Common.db_instance_id() + :"db.instance.id" + """ + @spec db_instance_id :: :"db.instance.id" + def db_instance_id do + :"db.instance.id" + end + + @doc namespace: :db + @doc """ + The MongoDB collection being accessed within the database stated in `db.name` + + iex> OpenTelemetry.SemanticConventions.Common.db_mongodb_collection() + :"db.mongodb.collection" + """ + @spec db_mongodb_collection :: :"db.mongodb.collection" + def db_mongodb_collection do + :"db.mongodb.collection" + end + + @doc namespace: :db + @doc """ + The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance + + ### Notes + + If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) + + iex> OpenTelemetry.SemanticConventions.Common.db_mssql_instance_name() + :"db.mssql.instance_name" + """ + @spec db_mssql_instance_name :: :"db.mssql.instance_name" + def db_mssql_instance_name do + :"db.mssql.instance_name" + end + + @doc namespace: :db + @doc """ + This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) + + ### Notes + + In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) + + iex> OpenTelemetry.SemanticConventions.Common.db_name() + :"db.name" + """ + @spec db_name :: :"db.name" + def db_name do + :"db.name" + end + + @doc namespace: :db + @doc """ + The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword + + ### Notes + + When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted + + iex> OpenTelemetry.SemanticConventions.Common.db_operation() + :"db.operation" + """ + @spec db_operation :: :"db.operation" + def db_operation do + :"db.operation" + end + + @doc namespace: :db + @doc """ + The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute + + iex> OpenTelemetry.SemanticConventions.Common.db_redis_database_index() + :"db.redis.database_index" + """ + @spec db_redis_database_index :: :"db.redis.database_index" + def db_redis_database_index do + :"db.redis.database_index" + end + + @doc namespace: :db + @doc """ + The name of the primary table that the operation is acting upon, including the database name (if applicable) + + ### Notes + + It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value **MUST NOT** be set + + iex> OpenTelemetry.SemanticConventions.Common.db_sql_table() + :"db.sql.table" + """ + @spec db_sql_table :: :"db.sql.table" + def db_sql_table do + :"db.sql.table" + end + + @doc namespace: :db + @doc """ + The database statement being executed + + iex> OpenTelemetry.SemanticConventions.Common.db_statement() + :"db.statement" + """ + @spec db_statement :: :"db.statement" + def db_statement do + :"db.statement" + end + + @doc namespace: :db + @doc """ + An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers + + iex> OpenTelemetry.SemanticConventions.Common.db_system() + :"db.system" + """ + @spec db_system :: :"db.system" + def db_system do + :"db.system" + end + + @doc namespace: :db + @doc """ + Username for accessing the database + + iex> OpenTelemetry.SemanticConventions.Common.db_user() + :"db.user" + """ + @spec db_user :: :"db.user" + def db_user do + :"db.user" + end + + @doc namespace: :deployment + @doc """ + Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) + + ### Notes + + `deployment.environment` 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=production` + * `service.name=frontend`, `deployment.environment=staging` + + iex> OpenTelemetry.SemanticConventions.Common.deployment_environment() + :"deployment.environment" + """ + @spec deployment_environment :: :"deployment.environment" + def deployment_environment do + :"deployment.environment" + end + + @doc namespace: :db + + @deprecated """ + "Replaced by `server.address` and `server.port`." + """ + @spec db_connection_string :: :"db.connection_string" + def db_connection_string do + :"db.connection_string" + end + + @doc namespace: :db + + @deprecated """ + Replaced by `db.instance.id` + """ + @spec db_elasticsearch_node_name :: :"db.elasticsearch.node.name" + def db_elasticsearch_node_name do + :"db.elasticsearch.node.name" + end + + @doc namespace: :db + + @deprecated """ + Removed as not used + """ + @spec db_jdbc_driver_classname :: :"db.jdbc.driver_classname" + def db_jdbc_driver_classname do + :"db.jdbc.driver_classname" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `network.protocol.name` + """ + @spec http_flavor :: :"http.flavor" + def http_flavor do + :"http.flavor" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `http.request.method` + """ + @spec http_method :: :"http.method" + def http_method do + :"http.method" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `http.request.header.content-length` + """ + @spec http_request_content_length :: :"http.request_content_length" + def http_request_content_length do + :"http.request_content_length" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `http.response.header.content-length` + """ + @spec http_response_content_length :: :"http.response_content_length" + def http_response_content_length do + :"http.response_content_length" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `url.scheme` instead + """ + @spec http_scheme :: :"http.scheme" + def http_scheme do + :"http.scheme" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `http.response.status_code` + """ + @spec http_status_code :: :"http.status_code" + def http_status_code do + :"http.status_code" + end + + @doc namespace: :http + + @deprecated """ + Split to `url.path` and `url.query + """ + @spec http_target :: :"http.target" + def http_target do + :"http.target" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `url.full` + """ + @spec http_url :: :"http.url" + def http_url do + :"http.url" + end + + @doc namespace: :http + + @deprecated """ + Replaced by `user_agent.original` + """ + @spec http_user_agent :: :"http.user_agent" + def http_user_agent do + :"http.user_agent" + end + + @doc namespace: :messaging + + @deprecated """ + Replaced by `messaging.destination.partition.id` + """ + @spec messaging_kafka_destination_partition :: :"messaging.kafka.destination.partition" + def messaging_kafka_destination_partition do + :"messaging.kafka.destination.partition" + end + + @doc namespace: :system + + @deprecated """ + Replaced by `system.process.status` + """ + @spec system_processes_status :: :"system.processes.status" + def system_processes_status do + :"system.processes.status" + end + + @doc namespace: :device + @doc """ + A unique identifier representing the device + + ### Notes + + The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 + + iex> OpenTelemetry.SemanticConventions.Common.device_id() + :"device.id" + """ + @spec device_id :: :"device.id" + def device_id do + :"device.id" + end + + @doc namespace: :device + @doc """ + The name of the device manufacturer + + ### Notes + + The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple` + + iex> OpenTelemetry.SemanticConventions.Common.device_manufacturer() + :"device.manufacturer" + """ + @spec device_manufacturer :: :"device.manufacturer" + def device_manufacturer do + :"device.manufacturer" + end + + @doc namespace: :device + @doc """ + The model identifier for the device + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.device_model_identifier() + :"device.model.identifier" + """ + @spec device_model_identifier :: :"device.model.identifier" + def device_model_identifier do + :"device.model.identifier" + end + + @doc namespace: :device + @doc """ + The marketing name for the device model + + ### Notes + + It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative + + iex> OpenTelemetry.SemanticConventions.Common.device_model_name() + :"device.model.name" + """ + @spec device_model_name :: :"device.model.name" + def device_model_name do + :"device.model.name" + end + + @doc namespace: :disk + @doc """ + The disk IO operation direction + + iex> OpenTelemetry.SemanticConventions.Common.disk_io_direction() + :"disk.io.direction" + """ + @spec disk_io_direction :: :"disk.io.direction" + def disk_io_direction do + :"disk.io.direction" + end + + @doc namespace: :dns + @doc """ + The name being queried + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.dns_question_name() + :"dns.question.name" + """ + @spec dns_question_name :: :"dns.question.name" + def dns_question_name do + :"dns.question.name" + end + + @doc namespace: :enduser + @doc """ + Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system + + iex> OpenTelemetry.SemanticConventions.Common.enduser_id() + :"enduser.id" + """ + @spec enduser_id :: :"enduser.id" + def enduser_id do + :"enduser.id" + end + + @doc namespace: :enduser + @doc """ + Actual/assumed role the client is making the request under extracted from token or application security context + + iex> OpenTelemetry.SemanticConventions.Common.enduser_role() + :"enduser.role" + """ + @spec enduser_role :: :"enduser.role" + def enduser_role do + :"enduser.role" + end + + @doc namespace: :enduser + @doc """ + Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) + + iex> OpenTelemetry.SemanticConventions.Common.enduser_scope() + :"enduser.scope" + """ + @spec enduser_scope :: :"enduser.scope" + def enduser_scope do + :"enduser.scope" + end + + @doc namespace: :exception + @doc """ + **SHOULD** be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span + + ### Notes + + An exception is considered to have escaped (or left) the scope of a span, + if that span is ended while the exception is still logically "in flight". + This may be actually "in flight" in some languages (e.g. if the exception + is passed to a Context manager's `__exit__` method in Python) but will + usually be caught at the point of recording the exception in most languages. + + It is usually not possible to determine at the point where an exception is thrown + whether it will escape the scope of a span. + However, it is trivial to know that an exception + will escape, if one checks for an active exception just before ending the span, + as done in the [example for recording span exceptions](#recording-an-exception). + + It follows that an exception may still escape the scope of the span + even if the `exception.escaped` attribute was not set or set to false, + since the event might have been recorded at a time where it was not + clear whether the exception will escape + + iex> OpenTelemetry.SemanticConventions.Common.exception_escaped() + :"exception.escaped" + """ + @spec exception_escaped :: :"exception.escaped" + def exception_escaped do + :"exception.escaped" + end + + @doc namespace: :faas + @doc """ + A boolean that is true if the serverless function is executed for the first time (aka cold-start) + + iex> OpenTelemetry.SemanticConventions.Common.faas_coldstart() + :"faas.coldstart" + """ + @spec faas_coldstart :: :"faas.coldstart" + def faas_coldstart do + :"faas.coldstart" + end + + @doc namespace: :faas + @doc """ + A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) + + iex> OpenTelemetry.SemanticConventions.Common.faas_cron() + :"faas.cron" + """ + @spec faas_cron :: :"faas.cron" + def faas_cron do + :"faas.cron" + end + + @doc namespace: :faas + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.faas_document_collection() + :"faas.document.collection" + """ + @spec faas_document_collection :: :"faas.document.collection" + def faas_document_collection do + :"faas.document.collection" + end + + @doc namespace: :faas + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.faas_document_name() + :"faas.document.name" + """ + @spec faas_document_name :: :"faas.document.name" + def faas_document_name do + :"faas.document.name" + end + + @doc namespace: :faas + @doc """ + Describes the type of the operation that was performed on the data + + iex> OpenTelemetry.SemanticConventions.Common.faas_document_operation() + :"faas.document.operation" + """ + @spec faas_document_operation :: :"faas.document.operation" + def faas_document_operation do + :"faas.document.operation" + end + + @doc namespace: :faas + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Common.faas_document_time() + :"faas.document.time" + """ + @spec faas_document_time :: :"faas.document.time" + def faas_document_time do + :"faas.document.time" + end + + @doc namespace: :faas + @doc """ + The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version + + ### Notes + + * **AWS Lambda:** Use the (full) log stream name + + iex> OpenTelemetry.SemanticConventions.Common.faas_instance() + :"faas.instance" + """ + @spec faas_instance :: :"faas.instance" + def faas_instance do + :"faas.instance" + end + + @doc namespace: :faas + @doc """ + The invocation ID of the current function invocation + + iex> OpenTelemetry.SemanticConventions.Common.faas_invocation_id() + :"faas.invocation_id" + """ + @spec faas_invocation_id :: :"faas.invocation_id" + def faas_invocation_id do + :"faas.invocation_id" + end + + @doc namespace: :faas + @doc """ + The amount of memory available to the serverless function converted to Bytes + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Common.faas_max_memory() + :"faas.max_memory" + """ + @spec faas_max_memory :: :"faas.max_memory" + def faas_max_memory do + :"faas.max_memory" + end + + @doc namespace: :faas + @doc """ + The name of the single function that this runtime instance executes + + ### Notes + + 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`](/docs/general/attributes.md#source-code-attributes) + span attributes). + + 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) + + iex> OpenTelemetry.SemanticConventions.Common.faas_name() + :"faas.name" + """ + @spec faas_name :: :"faas.name" + def faas_name do + :"faas.name" + end + + @doc namespace: :faas + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Common.faas_time() + :"faas.time" + """ + @spec faas_time :: :"faas.time" + def faas_time do + :"faas.time" + end + + @doc namespace: :faas + @doc """ + The immutable version of the function being executed + + ### Notes + + Depending on the cloud provider and platform, use: + + * **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 + + iex> OpenTelemetry.SemanticConventions.Common.faas_version() + :"faas.version" + """ + @spec faas_version :: :"faas.version" + def faas_version do + :"faas.version" + end + + @doc namespace: :feature_flag + @doc """ + The unique identifier of the feature flag + + iex> OpenTelemetry.SemanticConventions.Common.feature_flag_key() + :"feature_flag.key" + """ + @spec feature_flag_key :: :"feature_flag.key" + def feature_flag_key do + :"feature_flag.key" + end + + @doc namespace: :feature_flag + @doc """ + The name of the service provider that performs the flag evaluation + + iex> OpenTelemetry.SemanticConventions.Common.feature_flag_provider_name() + :"feature_flag.provider_name" + """ + @spec feature_flag_provider_name :: :"feature_flag.provider_name" + def feature_flag_provider_name do + :"feature_flag.provider_name" + end + + @doc namespace: :feature_flag + @doc """ + **SHOULD** be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used + + ### Notes + + 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`. + + A stringified version of the value can be used in situations where a + semantic identifier is unavailable. String representation of the value + should be determined by the implementer + + iex> OpenTelemetry.SemanticConventions.Common.feature_flag_variant() + :"feature_flag.variant" + """ + @spec feature_flag_variant :: :"feature_flag.variant" + def feature_flag_variant do + :"feature_flag.variant" + end + + @doc namespace: :file + @doc """ + Directory where the file is located. It should include the drive letter, when appropriate + + iex> OpenTelemetry.SemanticConventions.Common.file_directory() + :"file.directory" + """ + @spec file_directory :: :"file.directory" + def file_directory do + :"file.directory" + end + + @doc namespace: :file + @doc """ + File extension, excluding the leading dot + + ### Notes + + When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz") + + iex> OpenTelemetry.SemanticConventions.Common.file_extension() + :"file.extension" + """ + @spec file_extension :: :"file.extension" + def file_extension do + :"file.extension" + end + + @doc namespace: :file + @doc """ + Name of the file including the extension, without the directory + + iex> OpenTelemetry.SemanticConventions.Common.file_name() + :"file.name" + """ + @spec file_name :: :"file.name" + def file_name do + :"file.name" + end + + @doc namespace: :file + @doc """ + Full path to the file, including the file name. It should include the drive letter, when appropriate + + iex> OpenTelemetry.SemanticConventions.Common.file_path() + :"file.path" + """ + @spec file_path :: :"file.path" + def file_path do + :"file.path" + end + + @doc namespace: :file + @doc """ + File size in bytes + + iex> OpenTelemetry.SemanticConventions.Common.file_size() + :"file.size" + """ + @spec file_size :: :"file.size" + def file_size do + :"file.size" + end + + @doc namespace: :gcp + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.gcp_cloud_run_job_execution() + :"gcp.cloud_run.job.execution" + """ + @spec gcp_cloud_run_job_execution :: :"gcp.cloud_run.job.execution" + def gcp_cloud_run_job_execution do + :"gcp.cloud_run.job.execution" + end + + @doc namespace: :gcp + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.gcp_cloud_run_job_task_index() + :"gcp.cloud_run.job.task_index" + """ + @spec gcp_cloud_run_job_task_index :: :"gcp.cloud_run.job.task_index" + def gcp_cloud_run_job_task_index do + :"gcp.cloud_run.job.task_index" + end + + @doc namespace: :gcp + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Common.gcp_gce_instance_hostname() + :"gcp.gce.instance.hostname" + """ + @spec gcp_gce_instance_hostname :: :"gcp.gce.instance.hostname" + def gcp_gce_instance_hostname do + :"gcp.gce.instance.hostname" + end + + @doc namespace: :gcp + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Common.gcp_gce_instance_name() + :"gcp.gce.instance.name" + """ + @spec gcp_gce_instance_name :: :"gcp.gce.instance.name" + def gcp_gce_instance_name do + :"gcp.gce.instance.name" + end + + @doc namespace: :host + @doc """ + The CPU architecture the host system is running on + + iex> OpenTelemetry.SemanticConventions.Common.host_arch() + :"host.arch" + """ + @spec host_arch :: :"host.arch" + def host_arch do + :"host.arch" + end + + @doc namespace: :host + @doc """ + The amount of level 2 memory cache available to the processor (in Bytes) + + iex> OpenTelemetry.SemanticConventions.Common.host_cpu_cache_l2_size() + :"host.cpu.cache.l2.size" + """ + @spec host_cpu_cache_l2_size :: :"host.cpu.cache.l2.size" + def host_cpu_cache_l2_size do + :"host.cpu.cache.l2.size" + end + + @doc namespace: :host + @doc """ + Family or generation of the CPU + + iex> OpenTelemetry.SemanticConventions.Common.host_cpu_family() + :"host.cpu.family" + """ + @spec host_cpu_family :: :"host.cpu.family" + def host_cpu_family do + :"host.cpu.family" + end + + @doc namespace: :host + @doc """ + Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family + + iex> OpenTelemetry.SemanticConventions.Common.host_cpu_model_id() + :"host.cpu.model.id" + """ + @spec host_cpu_model_id :: :"host.cpu.model.id" + def host_cpu_model_id do + :"host.cpu.model.id" + end + + @doc namespace: :host + @doc """ + Model designation of the processor + + iex> OpenTelemetry.SemanticConventions.Common.host_cpu_model_name() + :"host.cpu.model.name" + """ + @spec host_cpu_model_name :: :"host.cpu.model.name" + def host_cpu_model_name do + :"host.cpu.model.name" + end + + @doc namespace: :host + @doc """ + Stepping or core revisions + + iex> OpenTelemetry.SemanticConventions.Common.host_cpu_stepping() + :"host.cpu.stepping" + """ + @spec host_cpu_stepping :: :"host.cpu.stepping" + def host_cpu_stepping do + :"host.cpu.stepping" + end + + @doc namespace: :host + @doc """ + Processor manufacturer identifier. A maximum 12-character string + + ### Notes + + [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 + + iex> OpenTelemetry.SemanticConventions.Common.host_cpu_vendor_id() + :"host.cpu.vendor.id" + """ + @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" + def host_cpu_vendor_id do + :"host.cpu.vendor.id" + end + + @doc namespace: :host + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.host_id() + :"host.id" + """ + @spec host_id :: :"host.id" + def host_id do + :"host.id" + end + + @doc namespace: :host + @doc """ + VM image ID or host OS image ID. For Cloud, this value is from the provider + + iex> OpenTelemetry.SemanticConventions.Common.host_image_id() + :"host.image.id" + """ + @spec host_image_id :: :"host.image.id" + def host_image_id do + :"host.image.id" + end + + @doc namespace: :host + @doc """ + Name of the VM image or OS install the host was instantiated from + + iex> OpenTelemetry.SemanticConventions.Common.host_image_name() + :"host.image.name" + """ + @spec host_image_name :: :"host.image.name" + def host_image_name do + :"host.image.name" + end + + @doc namespace: :host + @doc """ + The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) + + iex> OpenTelemetry.SemanticConventions.Common.host_image_version() + :"host.image.version" + """ + @spec host_image_version :: :"host.image.version" + def host_image_version do + :"host.image.version" + end + + @doc namespace: :host + @doc """ + Available IP addresses of the host, excluding loopback interfaces + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.host_ip() + :"host.ip" + """ + @spec host_ip :: :"host.ip" + def host_ip do + :"host.ip" + end + + @doc namespace: :host + @doc """ + Available MAC addresses of the host, excluding loopback interfaces + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Common.host_mac() + :"host.mac" + """ + @spec host_mac :: :"host.mac" + def host_mac do + :"host.mac" + end + + @doc namespace: :host + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.host_name() + :"host.name" + """ + @spec host_name :: :"host.name" + def host_name do + :"host.name" + end + + @doc namespace: :host + @doc """ + Type of host. For Cloud, this must be the machine type + + iex> OpenTelemetry.SemanticConventions.Common.host_type() + :"host.type" + """ + @spec host_type :: :"host.type" + def host_type do + :"host.type" + end + + @doc namespace: :http + @doc """ + State of the HTTP connection in the HTTP connection pool + + iex> OpenTelemetry.SemanticConventions.Common.http_connection_state() + :"http.connection.state" + """ + @spec http_connection_state :: :"http.connection.state" + def http_connection_state do + :"http.connection.state" + end + + @doc namespace: :http + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.http_request_body_size() + :"http.request.body.size" + """ + @spec http_request_body_size :: :"http.request.body.size" + def http_request_body_size do + :"http.request.body.size" + end + + @doc namespace: :http + @doc """ + Original HTTP method sent by the client in the request line + + iex> OpenTelemetry.SemanticConventions.Common.http_request_method_original() + :"http.request.method_original" + """ + @spec http_request_method_original :: :"http.request.method_original" + def http_request_method_original do + :"http.request.method_original" + end + + @doc namespace: :http + @doc """ + The ordinal number of request resending attempt (for any reason, including redirects) + + ### Notes + + The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) + + iex> OpenTelemetry.SemanticConventions.Common.http_request_resend_count() + :"http.request.resend_count" + """ + @spec http_request_resend_count :: :"http.request.resend_count" + def http_request_resend_count do + :"http.request.resend_count" + end + + @doc namespace: :http + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.http_request_size() + :"http.request.size" + """ + @spec http_request_size :: :"http.request.size" + def http_request_size do + :"http.request.size" + end + + @doc namespace: :http + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.http_response_body_size() + :"http.response.body.size" + """ + @spec http_response_body_size :: :"http.response.body.size" + def http_response_body_size do + :"http.response.body.size" + end + + @doc namespace: :http + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Common.http_response_size() + :"http.response.size" + """ + @spec http_response_size :: :"http.response.size" + def http_response_size do + :"http.response.size" + end + + @doc namespace: :k8s + @doc """ + The name of the cluster + + iex> OpenTelemetry.SemanticConventions.Common.k8s_cluster_name() + :"k8s.cluster.name" + """ + @spec k8s_cluster_name :: :"k8s.cluster.name" + def k8s_cluster_name do + :"k8s.cluster.name" + end + + @doc namespace: :k8s + @doc """ + A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace + + ### Notes + + K8s doesn't have support for obtaining a cluster ID. If this is ever + added, we will recommend collecting the `k8s.cluster.uid` through the + official APIs. In the meantime, we are able to use the `uid` of the + `kube-system` namespace as a proxy for cluster ID. Read on for the + rationale. + + Every object created in a K8s cluster is assigned a distinct UID. The + `kube-system` namespace is used by Kubernetes itself and will exist + for the lifetime of the cluster. Using the `uid` of the `kube-system` + namespace is a reasonable proxy for the K8s ClusterID as it will only + change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are + UUIDs as standardized by + [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). + Which states: + + > If generated according to one of the mechanisms defined in Rec. + ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be + different from all other UUIDs generated before 3603 A.D., or is + extremely likely to be different (depending on the mechanism chosen). + + Therefore, UIDs between clusters should be extremely unlikely to + conflict + + iex> OpenTelemetry.SemanticConventions.Common.k8s_cluster_uid() + :"k8s.cluster.uid" + """ + @spec k8s_cluster_uid :: :"k8s.cluster.uid" + def k8s_cluster_uid do + :"k8s.cluster.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) + + iex> OpenTelemetry.SemanticConventions.Common.k8s_container_name() + :"k8s.container.name" + """ + @spec k8s_container_name :: :"k8s.container.name" + def k8s_container_name do + :"k8s.container.name" + end + + @doc namespace: :k8s + @doc """ + Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec + + iex> OpenTelemetry.SemanticConventions.Common.k8s_container_restart_count() + :"k8s.container.restart_count" + """ + @spec k8s_container_restart_count :: :"k8s.container.restart_count" + def k8s_container_restart_count do + :"k8s.container.restart_count" + end + + @doc namespace: :k8s + @doc """ + The name of the CronJob + + iex> OpenTelemetry.SemanticConventions.Common.k8s_cronjob_name() + :"k8s.cronjob.name" + """ + @spec k8s_cronjob_name :: :"k8s.cronjob.name" + def k8s_cronjob_name do + :"k8s.cronjob.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the CronJob + + iex> OpenTelemetry.SemanticConventions.Common.k8s_cronjob_uid() + :"k8s.cronjob.uid" + """ + @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" + def k8s_cronjob_uid do + :"k8s.cronjob.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the DaemonSet + + iex> OpenTelemetry.SemanticConventions.Common.k8s_daemonset_name() + :"k8s.daemonset.name" + """ + @spec k8s_daemonset_name :: :"k8s.daemonset.name" + def k8s_daemonset_name do + :"k8s.daemonset.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the DaemonSet + + iex> OpenTelemetry.SemanticConventions.Common.k8s_daemonset_uid() + :"k8s.daemonset.uid" + """ + @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" + def k8s_daemonset_uid do + :"k8s.daemonset.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Deployment + + iex> OpenTelemetry.SemanticConventions.Common.k8s_deployment_name() + :"k8s.deployment.name" + """ + @spec k8s_deployment_name :: :"k8s.deployment.name" + def k8s_deployment_name do + :"k8s.deployment.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Deployment + + iex> OpenTelemetry.SemanticConventions.Common.k8s_deployment_uid() + :"k8s.deployment.uid" + """ + @spec k8s_deployment_uid :: :"k8s.deployment.uid" + def k8s_deployment_uid do + :"k8s.deployment.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Job + + iex> OpenTelemetry.SemanticConventions.Common.k8s_job_name() + :"k8s.job.name" + """ + @spec k8s_job_name :: :"k8s.job.name" + def k8s_job_name do + :"k8s.job.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Job + + iex> OpenTelemetry.SemanticConventions.Common.k8s_job_uid() + :"k8s.job.uid" + """ + @spec k8s_job_uid :: :"k8s.job.uid" + def k8s_job_uid do + :"k8s.job.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the namespace that the pod is running in + + iex> OpenTelemetry.SemanticConventions.Common.k8s_namespace_name() + :"k8s.namespace.name" + """ + @spec k8s_namespace_name :: :"k8s.namespace.name" + def k8s_namespace_name do + :"k8s.namespace.name" + end + + @doc namespace: :k8s + @doc """ + The name of the Node + + iex> OpenTelemetry.SemanticConventions.Common.k8s_node_name() + :"k8s.node.name" + """ + @spec k8s_node_name :: :"k8s.node.name" + def k8s_node_name do + :"k8s.node.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Node + + iex> OpenTelemetry.SemanticConventions.Common.k8s_node_uid() + :"k8s.node.uid" + """ + @spec k8s_node_uid :: :"k8s.node.uid" + def k8s_node_uid do + :"k8s.node.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Pod + + iex> OpenTelemetry.SemanticConventions.Common.k8s_pod_name() + :"k8s.pod.name" + """ + @spec k8s_pod_name :: :"k8s.pod.name" + def k8s_pod_name do + :"k8s.pod.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Pod + + iex> OpenTelemetry.SemanticConventions.Common.k8s_pod_uid() + :"k8s.pod.uid" + """ + @spec k8s_pod_uid :: :"k8s.pod.uid" + def k8s_pod_uid do + :"k8s.pod.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the ReplicaSet + + iex> OpenTelemetry.SemanticConventions.Common.k8s_replicaset_name() + :"k8s.replicaset.name" + """ + @spec k8s_replicaset_name :: :"k8s.replicaset.name" + def k8s_replicaset_name do + :"k8s.replicaset.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the ReplicaSet + + iex> OpenTelemetry.SemanticConventions.Common.k8s_replicaset_uid() + :"k8s.replicaset.uid" + """ + @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" + def k8s_replicaset_uid do + :"k8s.replicaset.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the StatefulSet + + iex> OpenTelemetry.SemanticConventions.Common.k8s_statefulset_name() + :"k8s.statefulset.name" + """ + @spec k8s_statefulset_name :: :"k8s.statefulset.name" + def k8s_statefulset_name do + :"k8s.statefulset.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the StatefulSet + + iex> OpenTelemetry.SemanticConventions.Common.k8s_statefulset_uid() + :"k8s.statefulset.uid" + """ + @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" + def k8s_statefulset_uid do + :"k8s.statefulset.uid" + end + + @doc namespace: :messaging + @doc """ + The number of messages sent, received, or processed in the scope of the batching operation + + ### Notes + + Instrumentations **SHOULD NOT** set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations **SHOULD** use `messaging.batch.message_count` for batching APIs and **SHOULD NOT** use it for single-message APIs + + iex> OpenTelemetry.SemanticConventions.Common.messaging_batch_message_count() + :"messaging.batch.message_count" + """ + @spec messaging_batch_message_count :: :"messaging.batch.message_count" + def messaging_batch_message_count do + :"messaging.batch.message_count" + end + + @doc namespace: :messaging + @doc """ + A unique identifier for the client that consumes or produces a message + + iex> OpenTelemetry.SemanticConventions.Common.messaging_client_id() + :"messaging.client_id" + """ + @spec messaging_client_id :: :"messaging.client_id" + def messaging_client_id do + :"messaging.client_id" + end + + @doc namespace: :messaging + @doc """ + A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) + + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_anonymous() + :"messaging.destination.anonymous" + """ + @spec messaging_destination_anonymous :: :"messaging.destination.anonymous" + def messaging_destination_anonymous do + :"messaging.destination.anonymous" + end + + @doc namespace: :messaging + @doc """ + The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` + + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_partition_id() + :"messaging.destination.partition.id" + """ + @spec messaging_destination_partition_id :: :"messaging.destination.partition.id" + def messaging_destination_partition_id do + :"messaging.destination.partition.id" + end + + @doc namespace: :messaging + @doc """ + A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed + + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_temporary() + :"messaging.destination.temporary" + """ + @spec messaging_destination_temporary :: :"messaging.destination.temporary" + def messaging_destination_temporary do + :"messaging.destination.temporary" + end + + @doc namespace: :messaging + @doc """ + A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name) + + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_publish_anonymous() + :"messaging.destination_publish.anonymous" + """ + @spec messaging_destination_publish_anonymous :: :"messaging.destination_publish.anonymous" + def messaging_destination_publish_anonymous do + :"messaging.destination_publish.anonymous" + end + + @doc namespace: :messaging + @doc """ + The name of the original destination the message was published to + + ### Notes + + The name **SHOULD** uniquely identify a specific queue, topic, or other entity within the broker. If + the broker doesn't have such notion, the original destination name **SHOULD** uniquely identify the broker + + iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_publish_name() + :"messaging.destination_publish.name" + """ + @spec messaging_destination_publish_name :: :"messaging.destination_publish.name" + def messaging_destination_publish_name do + :"messaging.destination_publish.name" + end + + @doc namespace: :messaging + @doc """ + The name of the consumer group the event consumer is associated with + + iex> OpenTelemetry.SemanticConventions.Common.messaging_eventhubs_consumer_group() + :"messaging.eventhubs.consumer.group" + """ + @spec messaging_eventhubs_consumer_group :: :"messaging.eventhubs.consumer.group" + def messaging_eventhubs_consumer_group do + :"messaging.eventhubs.consumer.group" + end + + @doc namespace: :messaging + @doc """ + The UTC epoch seconds at which the message has been accepted and stored in the entity + + iex> OpenTelemetry.SemanticConventions.Common.messaging_eventhubs_message_enqueued_time() + :"messaging.eventhubs.message.enqueued_time" + """ + @spec messaging_eventhubs_message_enqueued_time :: :"messaging.eventhubs.message.enqueued_time" + def messaging_eventhubs_message_enqueued_time do + :"messaging.eventhubs.message.enqueued_time" + end + + @doc namespace: :messaging + @doc """ + The ordering key for a given message. If the attribute is not present, the message does not have an ordering key + + iex> OpenTelemetry.SemanticConventions.Common.messaging_gcp_pubsub_message_ordering_key() + :"messaging.gcp_pubsub.message.ordering_key" + """ + @spec messaging_gcp_pubsub_message_ordering_key :: :"messaging.gcp_pubsub.message.ordering_key" + def messaging_gcp_pubsub_message_ordering_key do + :"messaging.gcp_pubsub.message.ordering_key" + end + + @doc namespace: :messaging + @doc """ + Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers + + iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_consumer_group() + :"messaging.kafka.consumer.group" + """ + @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer.group" + def messaging_kafka_consumer_group do + :"messaging.kafka.consumer.group" + end + + @doc namespace: :messaging + @doc """ + Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute **MUST NOT** be set + + ### Notes + + If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value + + iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_message_key() + :"messaging.kafka.message.key" + """ + @spec messaging_kafka_message_key :: :"messaging.kafka.message.key" + def messaging_kafka_message_key do + :"messaging.kafka.message.key" + end + + @doc namespace: :messaging + @doc """ + The offset of a record in the corresponding Kafka partition + + iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_message_offset() + :"messaging.kafka.message.offset" + """ + @spec messaging_kafka_message_offset :: :"messaging.kafka.message.offset" + def messaging_kafka_message_offset do + :"messaging.kafka.message.offset" + end + + @doc namespace: :messaging + @doc """ + A boolean that is true if the message is a tombstone + + iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_message_tombstone() + :"messaging.kafka.message.tombstone" + """ + @spec messaging_kafka_message_tombstone :: :"messaging.kafka.message.tombstone" + def messaging_kafka_message_tombstone do + :"messaging.kafka.message.tombstone" + end + + @doc namespace: :messaging + @doc """ + The size of the message body in bytes + + ### Notes + + This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed + body size should be used + + iex> OpenTelemetry.SemanticConventions.Common.messaging_message_body_size() + :"messaging.message.body.size" + """ + @spec messaging_message_body_size :: :"messaging.message.body.size" + def messaging_message_body_size do + :"messaging.message.body.size" + end + + @doc namespace: :messaging + @doc """ + The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" + + iex> OpenTelemetry.SemanticConventions.Common.messaging_message_conversation_id() + :"messaging.message.conversation_id" + """ + @spec messaging_message_conversation_id :: :"messaging.message.conversation_id" + def messaging_message_conversation_id do + :"messaging.message.conversation_id" + end + + @doc namespace: :messaging + @doc """ + The size of the message body and metadata in bytes + + ### Notes + + This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed + size should be used + + iex> OpenTelemetry.SemanticConventions.Common.messaging_message_envelope_size() + :"messaging.message.envelope.size" + """ + @spec messaging_message_envelope_size :: :"messaging.message.envelope.size" + def messaging_message_envelope_size do + :"messaging.message.envelope.size" + end + + @doc namespace: :messaging + @doc """ + A value used by the messaging system as an identifier for the message, represented as a string + + iex> OpenTelemetry.SemanticConventions.Common.messaging_message_id() + :"messaging.message.id" + """ + @spec messaging_message_id :: :"messaging.message.id" + def messaging_message_id do + :"messaging.message.id" + end + + @doc namespace: :messaging + @doc """ + A string identifying the kind of messaging operation + + ### Notes + + If a custom value is used, it **MUST** be of low cardinality + + iex> OpenTelemetry.SemanticConventions.Common.messaging_operation() + :"messaging.operation" + """ + @spec messaging_operation :: :"messaging.operation" + def messaging_operation do + :"messaging.operation" + end + + @doc namespace: :messaging + @doc """ + RabbitMQ message routing key + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rabbitmq_destination_routing_key() + :"messaging.rabbitmq.destination.routing_key" + """ + @spec messaging_rabbitmq_destination_routing_key :: + :"messaging.rabbitmq.destination.routing_key" + def messaging_rabbitmq_destination_routing_key do + :"messaging.rabbitmq.destination.routing_key" + end + + @doc namespace: :messaging + @doc """ + RabbitMQ message delivery tag + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rabbitmq_message_delivery_tag() + :"messaging.rabbitmq.message.delivery_tag" + """ + @spec messaging_rabbitmq_message_delivery_tag :: :"messaging.rabbitmq.message.delivery_tag" + def messaging_rabbitmq_message_delivery_tag do + :"messaging.rabbitmq.message.delivery_tag" + end + + @doc namespace: :messaging + @doc """ + Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_client_group() + :"messaging.rocketmq.client_group" + """ + @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" + def messaging_rocketmq_client_group do + :"messaging.rocketmq.client_group" + end + + @doc namespace: :messaging + @doc """ + Model of message consumption. This only applies to consumer spans + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_consumption_model() + :"messaging.rocketmq.consumption_model" + """ + @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" + def messaging_rocketmq_consumption_model do + :"messaging.rocketmq.consumption_model" + end + + @doc namespace: :messaging + @doc """ + The delay time level for delay message, which determines the message delay time + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_delay_time_level() + :"messaging.rocketmq.message.delay_time_level" + """ + @spec messaging_rocketmq_message_delay_time_level :: + :"messaging.rocketmq.message.delay_time_level" + def messaging_rocketmq_message_delay_time_level do + :"messaging.rocketmq.message.delay_time_level" + end + + @doc namespace: :messaging + @doc """ + The timestamp in milliseconds that the delay message is expected to be delivered to consumer + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_delivery_timestamp() + :"messaging.rocketmq.message.delivery_timestamp" + """ + @spec messaging_rocketmq_message_delivery_timestamp :: + :"messaging.rocketmq.message.delivery_timestamp" + def messaging_rocketmq_message_delivery_timestamp do + :"messaging.rocketmq.message.delivery_timestamp" + end + + @doc namespace: :messaging + @doc """ + It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_group() + :"messaging.rocketmq.message.group" + """ + @spec messaging_rocketmq_message_group :: :"messaging.rocketmq.message.group" + def messaging_rocketmq_message_group do + :"messaging.rocketmq.message.group" + end + + @doc namespace: :messaging + @doc """ + Key(s) of message, another way to mark message besides message id + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_keys() + :"messaging.rocketmq.message.keys" + """ + @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message.keys" + def messaging_rocketmq_message_keys do + :"messaging.rocketmq.message.keys" + end + + @doc namespace: :messaging + @doc """ + The secondary classifier of message besides topic + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_tag() + :"messaging.rocketmq.message.tag" + """ + @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message.tag" + def messaging_rocketmq_message_tag do + :"messaging.rocketmq.message.tag" + end + + @doc namespace: :messaging + @doc """ + Type of message + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_type() + :"messaging.rocketmq.message.type" + """ + @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message.type" + def messaging_rocketmq_message_type do + :"messaging.rocketmq.message.type" + end + + @doc namespace: :messaging + @doc """ + Namespace of RocketMQ resources, resources in different namespaces are individual + + iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_namespace() + :"messaging.rocketmq.namespace" + """ + @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" + def messaging_rocketmq_namespace do + :"messaging.rocketmq.namespace" + end + + @doc namespace: :messaging + @doc """ + The name of the subscription in the topic messages are received from + + iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_destination_subscription_name() + :"messaging.servicebus.destination.subscription_name" + """ + @spec messaging_servicebus_destination_subscription_name :: + :"messaging.servicebus.destination.subscription_name" + def messaging_servicebus_destination_subscription_name do + :"messaging.servicebus.destination.subscription_name" + end + + @doc namespace: :messaging + @doc """ + Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) + + iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_disposition_status() + :"messaging.servicebus.disposition_status" + """ + @spec messaging_servicebus_disposition_status :: :"messaging.servicebus.disposition_status" + def messaging_servicebus_disposition_status do + :"messaging.servicebus.disposition_status" + end + + @doc namespace: :messaging + @doc """ + Number of deliveries that have been attempted for this message + + iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_message_delivery_count() + :"messaging.servicebus.message.delivery_count" + """ + @spec messaging_servicebus_message_delivery_count :: + :"messaging.servicebus.message.delivery_count" + def messaging_servicebus_message_delivery_count do + :"messaging.servicebus.message.delivery_count" + end + + @doc namespace: :messaging + @doc """ + The UTC epoch seconds at which the message has been accepted and stored in the entity + + iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_message_enqueued_time() + :"messaging.servicebus.message.enqueued_time" + """ + @spec messaging_servicebus_message_enqueued_time :: + :"messaging.servicebus.message.enqueued_time" + def messaging_servicebus_message_enqueued_time do + :"messaging.servicebus.message.enqueued_time" + end + + @doc namespace: :network + @doc """ + The network IO operation direction + + iex> OpenTelemetry.SemanticConventions.Common.network_io_direction() + :"network.io.direction" + """ + @spec network_io_direction :: :"network.io.direction" + def network_io_direction do + :"network.io.direction" + end + + @doc namespace: :oci + @doc """ + The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known + + ### Notes + + Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). + An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) + + iex> OpenTelemetry.SemanticConventions.Common.oci_manifest_digest() + :"oci.manifest.digest" + """ + @spec oci_manifest_digest :: :"oci.manifest.digest" + def oci_manifest_digest do + :"oci.manifest.digest" + end + + @doc namespace: :process + @doc """ + The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` + + iex> OpenTelemetry.SemanticConventions.Common.process_command() + :"process.command" + """ + @spec process_command :: :"process.command" + def process_command do + :"process.command" + end + + @doc namespace: :process + @doc """ + All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` + + iex> OpenTelemetry.SemanticConventions.Common.process_command_args() + :"process.command_args" + """ + @spec process_command_args :: :"process.command_args" + def process_command_args do + :"process.command_args" + end + + @doc namespace: :process + @doc """ + The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead + + iex> OpenTelemetry.SemanticConventions.Common.process_command_line() + :"process.command_line" + """ + @spec process_command_line :: :"process.command_line" + def process_command_line do + :"process.command_line" + end + + @doc namespace: :process + @doc """ + The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` + + iex> OpenTelemetry.SemanticConventions.Common.process_executable_name() + :"process.executable.name" + """ + @spec process_executable_name :: :"process.executable.name" + def process_executable_name do + :"process.executable.name" + end + + @doc namespace: :process + @doc """ + The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` + + iex> OpenTelemetry.SemanticConventions.Common.process_executable_path() + :"process.executable.path" + """ + @spec process_executable_path :: :"process.executable.path" + def process_executable_path do + :"process.executable.path" + end + + @doc namespace: :process + @doc """ + The username of the user that owns the process + + iex> OpenTelemetry.SemanticConventions.Common.process_owner() + :"process.owner" + """ + @spec process_owner :: :"process.owner" + def process_owner do + :"process.owner" + end + + @doc namespace: :process + @doc """ + Parent Process identifier (PPID) + + iex> OpenTelemetry.SemanticConventions.Common.process_parent_pid() + :"process.parent_pid" + """ + @spec process_parent_pid :: :"process.parent_pid" + def process_parent_pid do + :"process.parent_pid" + end + + @doc namespace: :process + @doc """ + Process identifier (PID) + + iex> OpenTelemetry.SemanticConventions.Common.process_pid() + :"process.pid" + """ + @spec process_pid :: :"process.pid" + def process_pid do + :"process.pid" + end + + @doc namespace: :process + @doc """ + An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment + + iex> OpenTelemetry.SemanticConventions.Common.process_runtime_description() + :"process.runtime.description" + """ + @spec process_runtime_description :: :"process.runtime.description" + def process_runtime_description do + :"process.runtime.description" + end + + @doc namespace: :process + @doc """ + The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler + + iex> OpenTelemetry.SemanticConventions.Common.process_runtime_name() + :"process.runtime.name" + """ + @spec process_runtime_name :: :"process.runtime.name" + def process_runtime_name do + :"process.runtime.name" + end + + @doc namespace: :process + @doc """ + The version of the runtime of this process, as returned by the runtime without modification + + iex> OpenTelemetry.SemanticConventions.Common.process_runtime_version() + :"process.runtime.version" + """ + @spec process_runtime_version :: :"process.runtime.version" + def process_runtime_version do + :"process.runtime.version" + end + + @doc namespace: :rpc + @doc """ The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values - iex> OpenTelemetry.SemanticConventions.Common.rpc_connect_rpc_error_code() - :"rpc.connect_rpc.error_code" + iex> OpenTelemetry.SemanticConventions.Common.rpc_connect_rpc_error_code() + :"rpc.connect_rpc.error_code" + """ + @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" + def rpc_connect_rpc_error_code do + :"rpc.connect_rpc.error_code" + end + + @doc namespace: :rpc + @doc """ + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request + + iex> OpenTelemetry.SemanticConventions.Common.rpc_grpc_status_code() + :"rpc.grpc.status_code" + """ + @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" + def rpc_grpc_status_code do + :"rpc.grpc.status_code" + end + + @doc namespace: :rpc + @doc """ + `error.code` property of response if it is an error response + + iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_error_code() + :"rpc.jsonrpc.error_code" + """ + @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" + def rpc_jsonrpc_error_code do + :"rpc.jsonrpc.error_code" + end + + @doc namespace: :rpc + @doc """ + `error.message` property of response if it is an error response + + iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_error_message() + :"rpc.jsonrpc.error_message" + """ + @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" + def rpc_jsonrpc_error_message do + :"rpc.jsonrpc.error_message" + end + + @doc namespace: :rpc + @doc """ + `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification + + iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_request_id() + :"rpc.jsonrpc.request_id" + """ + @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" + def rpc_jsonrpc_request_id do + :"rpc.jsonrpc.request_id" + end + + @doc namespace: :rpc + @doc """ + Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted + + iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_version() + :"rpc.jsonrpc.version" + """ + @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" + def rpc_jsonrpc_version do + :"rpc.jsonrpc.version" + end + + @doc namespace: :service + @doc """ + The string ID of the service instance + + ### Notes + + **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words + `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to + distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled + service). + + Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC + 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of + this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and + **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. + + UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is + needed. Similar to what can be seen in the man page for the + [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying + data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it + or not via another resource attribute. + + For applications running behind an application server (like unicorn), we do not recommend using one identifier + for all processes participating in the application. Instead, it's recommended each division (e.g. a worker + thread in unicorn) to have its own instance.id. + + It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the + service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will + likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. + However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance + for that telemetry. This is typically the case for scraping receivers, as they know the target address and + port + + iex> OpenTelemetry.SemanticConventions.Common.service_instance_id() + :"service.instance.id" + """ + @spec service_instance_id :: :"service.instance.id" + def service_instance_id do + :"service.instance.id" + end + + @doc namespace: :service + @doc """ + Logical name of the service + + ### Notes + + **MUST** be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service` + + iex> OpenTelemetry.SemanticConventions.Common.service_name() + :"service.name" + """ + @spec service_name :: :"service.name" + def service_name do + :"service.name" + end + + @doc namespace: :service + @doc """ + A namespace for `service.name` + + ### Notes + + A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace + + iex> OpenTelemetry.SemanticConventions.Common.service_namespace() + :"service.namespace" + """ + @spec service_namespace :: :"service.namespace" + def service_namespace do + :"service.namespace" + end + + @doc namespace: :service + @doc """ + The version string of the service API or implementation. The format is not defined by these conventions + + iex> OpenTelemetry.SemanticConventions.Common.service_version() + :"service.version" + """ + @spec service_version :: :"service.version" + def service_version do + :"service.version" + end + + @doc namespace: :session + @doc """ + A unique id to identify a session + + iex> OpenTelemetry.SemanticConventions.Common.session_id() + :"session.id" + """ + @spec session_id :: :"session.id" + def session_id do + :"session.id" + end + + @doc namespace: :session + @doc """ + The previous `session.id` for this user, when known + + iex> OpenTelemetry.SemanticConventions.Common.session_previous_id() + :"session.previous_id" + """ + @spec session_previous_id :: :"session.previous_id" + def session_previous_id do + :"session.previous_id" + end + + @doc namespace: :telemetry + @doc """ + The language of the telemetry SDK + + iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_language() + :"telemetry.sdk.language" + """ + @spec telemetry_sdk_language :: :"telemetry.sdk.language" + def telemetry_sdk_language do + :"telemetry.sdk.language" + end + + @doc namespace: :telemetry + @doc """ + The name of the telemetry SDK as defined above + + ### Notes + + The OpenTelemetry SDK **MUST** set the `telemetry.sdk.name` attribute to `opentelemetry`. + If another SDK, like a fork or a vendor-provided implementation, is used, this SDK **MUST** set the + `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point + or another suitable identifier depending on the language. + The identifier `opentelemetry` is reserved and **MUST NOT** be used in this case. + All custom identifiers **SHOULD** be stable across different versions of an implementation + + iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_name() + :"telemetry.sdk.name" + """ + @spec telemetry_sdk_name :: :"telemetry.sdk.name" + def telemetry_sdk_name do + :"telemetry.sdk.name" + end + + @doc namespace: :telemetry + @doc """ + The version string of the telemetry SDK + + iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_version() + :"telemetry.sdk.version" + """ + @spec telemetry_sdk_version :: :"telemetry.sdk.version" + def telemetry_sdk_version do + :"telemetry.sdk.version" + end + + @doc namespace: :telemetry + @doc """ + The name of the auto instrumentation agent or distribution, if used + + ### Notes + + Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to + a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` + + iex> OpenTelemetry.SemanticConventions.Common.telemetry_distro_name() + :"telemetry.distro.name" + """ + @spec telemetry_distro_name :: :"telemetry.distro.name" + def telemetry_distro_name do + :"telemetry.distro.name" + end + + @doc namespace: :telemetry + @doc """ + The version string of the auto instrumentation agent or distribution, if used + + iex> OpenTelemetry.SemanticConventions.Common.telemetry_distro_version() + :"telemetry.distro.version" + """ + @spec telemetry_distro_version :: :"telemetry.distro.version" + def telemetry_distro_version do + :"telemetry.distro.version" + end + + @doc namespace: :thread + @doc """ + Current "managed" thread ID (as opposed to OS thread ID) + + iex> OpenTelemetry.SemanticConventions.Common.thread_id() + :"thread.id" + """ + @spec thread_id :: :"thread.id" + def thread_id do + :"thread.id" + end + + @doc namespace: :thread + @doc """ + Current thread name + + iex> OpenTelemetry.SemanticConventions.Common.thread_name() + :"thread.name" + """ + @spec thread_name :: :"thread.name" + def thread_name do + :"thread.name" + end + + @doc namespace: :tls + @doc """ + String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection + + ### Notes + + The values allowed for `tls.cipher` **MUST** be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4) + + iex> OpenTelemetry.SemanticConventions.Common.tls_cipher() + :"tls.cipher" + """ + @spec tls_cipher :: :"tls.cipher" + def tls_cipher do + :"tls.cipher" + end + + @doc namespace: :tls + @doc """ + PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_certificate() + :"tls.client.certificate" + """ + @spec tls_client_certificate :: :"tls.client.certificate" + def tls_client_certificate do + :"tls.client.certificate" + end + + @doc namespace: :tls + @doc """ + Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_certificate_chain() + :"tls.client.certificate_chain" + """ + @spec tls_client_certificate_chain :: :"tls.client.certificate_chain" + def tls_client_certificate_chain do + :"tls.client.certificate_chain" + end + + @doc namespace: :tls + @doc """ + Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_hash_md5() + :"tls.client.hash.md5" """ - - @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" - def rpc_connect_rpc_error_code do - :"rpc.connect_rpc.error_code" + @spec tls_client_hash_md5 :: :"tls.client.hash.md5" + def tls_client_hash_md5 do + :"tls.client.hash.md5" end - - @doc namespace: :rpc - + + @doc namespace: :tls @doc """ - + Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request + iex> OpenTelemetry.SemanticConventions.Common.tls_client_hash_sha1() + :"tls.client.hash.sha1" + """ + @spec tls_client_hash_sha1 :: :"tls.client.hash.sha1" + def tls_client_hash_sha1 do + :"tls.client.hash.sha1" + end - iex> OpenTelemetry.SemanticConventions.Common.rpc_grpc_status_code() - :"rpc.grpc.status_code" + @doc namespace: :tls + @doc """ + Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_hash_sha256() + :"tls.client.hash.sha256" """ - - @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" - def rpc_grpc_status_code do - :"rpc.grpc.status_code" + @spec tls_client_hash_sha256 :: :"tls.client.hash.sha256" + def tls_client_hash_sha256 do + :"tls.client.hash.sha256" end - - @doc namespace: :telemetry - + + @doc namespace: :tls @doc """ - + Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client - The language of the telemetry SDK + iex> OpenTelemetry.SemanticConventions.Common.tls_client_issuer() + :"tls.client.issuer" + """ + @spec tls_client_issuer :: :"tls.client.issuer" + def tls_client_issuer do + :"tls.client.issuer" + end - iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_language() - :"telemetry.sdk.language" + @doc namespace: :tls + @doc """ + A hash that identifies clients based on how they perform an SSL/TLS handshake + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_ja3() + :"tls.client.ja3" """ - - @spec telemetry_sdk_language :: :"telemetry.sdk.language" - def telemetry_sdk_language do - :"telemetry.sdk.language" + @spec tls_client_ja3 :: :"tls.client.ja3" + def tls_client_ja3 do + :"tls.client.ja3" + end + + @doc namespace: :tls + @doc """ + Date/Time indicating when client certificate is no longer considered valid + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_not_after() + :"tls.client.not_after" + """ + @spec tls_client_not_after :: :"tls.client.not_after" + def tls_client_not_after do + :"tls.client.not_after" + end + + @doc namespace: :tls + @doc """ + Date/Time indicating when client certificate is first considered valid + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_not_before() + :"tls.client.not_before" + """ + @spec tls_client_not_before :: :"tls.client.not_before" + def tls_client_not_before do + :"tls.client.not_before" + end + + @doc namespace: :tls + @doc """ + Also called an SNI, this tells the server which hostname to which the client is attempting to connect to + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_server_name() + :"tls.client.server_name" + """ + @spec tls_client_server_name :: :"tls.client.server_name" + def tls_client_server_name do + :"tls.client.server_name" + end + + @doc namespace: :tls + @doc """ + Distinguished name of subject of the x.509 certificate presented by the client + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_subject() + :"tls.client.subject" + """ + @spec tls_client_subject :: :"tls.client.subject" + def tls_client_subject do + :"tls.client.subject" + end + + @doc namespace: :tls + @doc """ + Array of ciphers offered by the client during the client hello + + iex> OpenTelemetry.SemanticConventions.Common.tls_client_supported_ciphers() + :"tls.client.supported_ciphers" + """ + @spec tls_client_supported_ciphers :: :"tls.client.supported_ciphers" + def tls_client_supported_ciphers do + :"tls.client.supported_ciphers" + end + + @doc namespace: :tls + @doc """ + String indicating the curve used for the given cipher, when applicable + + iex> OpenTelemetry.SemanticConventions.Common.tls_curve() + :"tls.curve" + """ + @spec tls_curve :: :"tls.curve" + def tls_curve do + :"tls.curve" + end + + @doc namespace: :tls + @doc """ + Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel + + iex> OpenTelemetry.SemanticConventions.Common.tls_established() + :"tls.established" + """ + @spec tls_established :: :"tls.established" + def tls_established do + :"tls.established" end - + @doc namespace: :tls - @doc """ - + String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case + iex> OpenTelemetry.SemanticConventions.Common.tls_next_protocol() + :"tls.next_protocol" + """ + @spec tls_next_protocol :: :"tls.next_protocol" + def tls_next_protocol do + :"tls.next_protocol" + end + + @doc namespace: :tls + @doc """ Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) iex> OpenTelemetry.SemanticConventions.Common.tls_protocol_name() :"tls.protocol.name" """ - @spec tls_protocol_name :: :"tls.protocol.name" def tls_protocol_name do :"tls.protocol.name" end -end \ No newline at end of file + + @doc namespace: :tls + @doc """ + Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + iex> OpenTelemetry.SemanticConventions.Common.tls_protocol_version() + :"tls.protocol.version" + """ + @spec tls_protocol_version :: :"tls.protocol.version" + def tls_protocol_version do + :"tls.protocol.version" + end + + @doc namespace: :tls + @doc """ + Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation + + iex> OpenTelemetry.SemanticConventions.Common.tls_resumed() + :"tls.resumed" + """ + @spec tls_resumed :: :"tls.resumed" + def tls_resumed do + :"tls.resumed" + end + + @doc namespace: :tls + @doc """ + PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_certificate() + :"tls.server.certificate" + """ + @spec tls_server_certificate :: :"tls.server.certificate" + def tls_server_certificate do + :"tls.server.certificate" + end + + @doc namespace: :tls + @doc """ + Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_certificate_chain() + :"tls.server.certificate_chain" + """ + @spec tls_server_certificate_chain :: :"tls.server.certificate_chain" + def tls_server_certificate_chain do + :"tls.server.certificate_chain" + end + + @doc namespace: :tls + @doc """ + Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_hash_md5() + :"tls.server.hash.md5" + """ + @spec tls_server_hash_md5 :: :"tls.server.hash.md5" + def tls_server_hash_md5 do + :"tls.server.hash.md5" + end + + @doc namespace: :tls + @doc """ + Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_hash_sha1() + :"tls.server.hash.sha1" + """ + @spec tls_server_hash_sha1 :: :"tls.server.hash.sha1" + def tls_server_hash_sha1 do + :"tls.server.hash.sha1" + end + + @doc namespace: :tls + @doc """ + Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_hash_sha256() + :"tls.server.hash.sha256" + """ + @spec tls_server_hash_sha256 :: :"tls.server.hash.sha256" + def tls_server_hash_sha256 do + :"tls.server.hash.sha256" + end + + @doc namespace: :tls + @doc """ + Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_issuer() + :"tls.server.issuer" + """ + @spec tls_server_issuer :: :"tls.server.issuer" + def tls_server_issuer do + :"tls.server.issuer" + end + + @doc namespace: :tls + @doc """ + A hash that identifies servers based on how they perform an SSL/TLS handshake + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_ja3s() + :"tls.server.ja3s" + """ + @spec tls_server_ja3s :: :"tls.server.ja3s" + def tls_server_ja3s do + :"tls.server.ja3s" + end + + @doc namespace: :tls + @doc """ + Date/Time indicating when server certificate is no longer considered valid + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_not_after() + :"tls.server.not_after" + """ + @spec tls_server_not_after :: :"tls.server.not_after" + def tls_server_not_after do + :"tls.server.not_after" + end + + @doc namespace: :tls + @doc """ + Date/Time indicating when server certificate is first considered valid + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_not_before() + :"tls.server.not_before" + """ + @spec tls_server_not_before :: :"tls.server.not_before" + def tls_server_not_before do + :"tls.server.not_before" + end + + @doc namespace: :tls + @doc """ + Distinguished name of subject of the x.509 certificate presented by the server + + iex> OpenTelemetry.SemanticConventions.Common.tls_server_subject() + :"tls.server.subject" + """ + @spec tls_server_subject :: :"tls.server.subject" + def tls_server_subject do + :"tls.server.subject" + end + + @doc namespace: :url + @doc """ + Domain extracted from the `url.full`, such as "opentelemetry.io" + + ### Notes + + In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field + + iex> OpenTelemetry.SemanticConventions.Common.url_domain() + :"url.domain" + """ + @spec url_domain :: :"url.domain" + def url_domain do + :"url.domain" + end + + @doc namespace: :url + @doc """ + The file extension extracted from the `url.full`, excluding the leading dot + + ### Notes + + The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz` + + iex> OpenTelemetry.SemanticConventions.Common.url_extension() + :"url.extension" + """ + @spec url_extension :: :"url.extension" + def url_extension do + :"url.extension" + end + + @doc namespace: :url + @doc """ + The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component + + iex> OpenTelemetry.SemanticConventions.Common.url_fragment() + :"url.fragment" + """ + @spec url_fragment :: :"url.fragment" + def url_fragment do + :"url.fragment" + end + + @doc namespace: :url + @doc """ + Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) + + ### Notes + + For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it **SHOULD** be included nevertheless. + `url.full` **MUST NOT** contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password **SHOULD** be redacted and attribute's value **SHOULD** be `https://REDACTED:REDACTED@www.example.com/`. + `url.full` **SHOULD** capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` **SHOULD** be scrubbed when instrumentations can identify it + + iex> OpenTelemetry.SemanticConventions.Common.url_full() + :"url.full" + """ + @spec url_full :: :"url.full" + def url_full do + :"url.full" + end + + @doc namespace: :url + @doc """ + Unmodified original URL as seen in the event source + + ### Notes + + In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. + `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username **SHOULD NOT** be redacted and attribute's value **SHOULD** remain the same + + iex> OpenTelemetry.SemanticConventions.Common.url_original() + :"url.original" + """ + @spec url_original :: :"url.original" + def url_original do + :"url.original" + end + + @doc namespace: :url + @doc """ + The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component + + ### Notes + + Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it + + iex> OpenTelemetry.SemanticConventions.Common.url_path() + :"url.path" + """ + @spec url_path :: :"url.path" + def url_path do + :"url.path" + end + + @doc namespace: :url + @doc """ + Port extracted from the `url.full` + + iex> OpenTelemetry.SemanticConventions.Common.url_port() + :"url.port" + """ + @spec url_port :: :"url.port" + def url_port do + :"url.port" + end + + @doc namespace: :url + @doc """ + The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component + + ### Notes + + Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it + + iex> OpenTelemetry.SemanticConventions.Common.url_query() + :"url.query" + """ + @spec url_query :: :"url.query" + def url_query do + :"url.query" + end + + @doc namespace: :url + @doc """ + The highest registered url domain, stripped of the subdomain + + ### Notes + + This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk` + + iex> OpenTelemetry.SemanticConventions.Common.url_registered_domain() + :"url.registered_domain" + """ + @spec url_registered_domain :: :"url.registered_domain" + def url_registered_domain do + :"url.registered_domain" + end + + @doc namespace: :url + @doc """ + The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain + + ### Notes + + The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period + + iex> OpenTelemetry.SemanticConventions.Common.url_subdomain() + :"url.subdomain" + """ + @spec url_subdomain :: :"url.subdomain" + def url_subdomain do + :"url.subdomain" + end + + @doc namespace: :url + @doc """ + The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com` + + ### Notes + + This value can be determined precisely with the [public suffix list](http://publicsuffix.org) + + iex> OpenTelemetry.SemanticConventions.Common.url_top_level_domain() + :"url.top_level_domain" + """ + @spec url_top_level_domain :: :"url.top_level_domain" + def url_top_level_domain do + :"url.top_level_domain" + end + + @doc namespace: :user_agent + @doc """ + Name of the user-agent extracted from original. Usually refers to the browser's name + + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` + + iex> OpenTelemetry.SemanticConventions.Common.user_agent_name() + :"user_agent.name" + """ + @spec user_agent_name :: :"user_agent.name" + def user_agent_name do + :"user_agent.name" + end + + @doc namespace: :user_agent + @doc """ + Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client + + iex> OpenTelemetry.SemanticConventions.Common.user_agent_original() + :"user_agent.original" + """ + @spec user_agent_original :: :"user_agent.original" + def user_agent_original do + :"user_agent.original" + end + + @doc namespace: :user_agent + @doc """ + Version of the user-agent extracted from original. Usually refers to the browser's version + + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` + + iex> OpenTelemetry.SemanticConventions.Common.user_agent_version() + :"user_agent.version" + """ + @spec user_agent_version :: :"user_agent.version" + def user_agent_version do + :"user_agent.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/event.ex b/apps/opentelemetry_semantic_conventions/lib/event.ex index d3c984ff..9bfecb7f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/event.ex +++ b/apps/opentelemetry_semantic_conventions/lib/event.ex @@ -9,13 +9,10 @@ defmodule OpenTelemetry.SemanticConventions.Event do ### Options - * `:SENT`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sent * `:RECEIVED`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - received - - """ @type message_type() :: :SENT | :RECEIVED @@ -30,19 +27,169 @@ defmodule OpenTelemetry.SemanticConventions.Event do "https://opentelemetry.io/schemas/1.25.0" end + @doc namespace: :feature_flag + @doc """ + The unique identifier of the feature flag + + iex> OpenTelemetry.SemanticConventions.Event.feature_flag_key() + :"feature_flag.key" + """ + @spec feature_flag_key :: :"feature_flag.key" + def feature_flag_key do + :"feature_flag.key" + end + + @doc namespace: :feature_flag + @doc """ + The name of the service provider that performs the flag evaluation + + iex> OpenTelemetry.SemanticConventions.Event.feature_flag_provider_name() + :"feature_flag.provider_name" + """ + @spec feature_flag_provider_name :: :"feature_flag.provider_name" + def feature_flag_provider_name do + :"feature_flag.provider_name" + end + + @doc namespace: :feature_flag + @doc """ + **SHOULD** be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used + + ### Notes + + 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`. + + A stringified version of the value can be used in situations where a + semantic identifier is unavailable. String representation of the value + should be determined by the implementer + + iex> OpenTelemetry.SemanticConventions.Event.feature_flag_variant() + :"feature_flag.variant" + """ + @spec feature_flag_variant :: :"feature_flag.variant" + def feature_flag_variant do + :"feature_flag.variant" + end + @doc namespace: :message + @doc """ + Compressed size of the message in bytes + + iex> OpenTelemetry.SemanticConventions.Event.message_compressed_size() + :"message.compressed_size" + """ + @spec message_compressed_size :: :"message.compressed_size" + def message_compressed_size do + :"message.compressed_size" + end + @doc namespace: :message @doc """ + **MUST** be calculated as two different counters starting from `1` one for sent messages and one for received message + + ### Notes + + This way we guarantee that the values will be consistent between different implementations + iex> OpenTelemetry.SemanticConventions.Event.message_id() + :"message.id" + """ + @spec message_id :: :"message.id" + def message_id do + :"message.id" + end + @doc namespace: :message + @doc """ Whether this is a received or sent message iex> OpenTelemetry.SemanticConventions.Event.message_type() :"message.type" """ - @spec message_type :: :"message.type" def message_type do :"message.type" end + + @doc namespace: :message + @doc """ + Uncompressed size of the message in bytes + + iex> OpenTelemetry.SemanticConventions.Event.message_uncompressed_size() + :"message.uncompressed_size" + """ + @spec message_uncompressed_size :: :"message.uncompressed_size" + def message_uncompressed_size do + :"message.uncompressed_size" + end + + @doc namespace: :exception + @doc """ + **SHOULD** be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span + + ### Notes + + An exception is considered to have escaped (or left) the scope of a span, + if that span is ended while the exception is still logically "in flight". + This may be actually "in flight" in some languages (e.g. if the exception + is passed to a Context manager's `__exit__` method in Python) but will + usually be caught at the point of recording the exception in most languages. + + It is usually not possible to determine at the point where an exception is thrown + whether it will escape the scope of a span. + However, it is trivial to know that an exception + will escape, if one checks for an active exception just before ending the span, + as done in the [example for recording span exceptions](#recording-an-exception). + + It follows that an exception may still escape the scope of the span + even if the `exception.escaped` attribute was not set or set to false, + since the event might have been recorded at a time where it was not + clear whether the exception will escape + + iex> OpenTelemetry.SemanticConventions.Event.exception_escaped() + :"exception.escaped" + """ + @spec exception_escaped :: :"exception.escaped" + def exception_escaped do + :"exception.escaped" + end + + @doc namespace: :exception + @doc """ + The exception message + + iex> OpenTelemetry.SemanticConventions.Event.exception_message() + :"exception.message" + """ + @spec exception_message :: :"exception.message" + def exception_message do + :"exception.message" + end + + @doc namespace: :exception + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG + + iex> OpenTelemetry.SemanticConventions.Event.exception_stacktrace() + :"exception.stacktrace" + """ + @spec exception_stacktrace :: :"exception.stacktrace" + def exception_stacktrace do + :"exception.stacktrace" + end + + @doc namespace: :exception + @doc """ + The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it + + iex> OpenTelemetry.SemanticConventions.Event.exception_type() + :"exception.type" + """ + @spec exception_type :: :"exception.type" + def exception_type do + :"exception.type" + end end diff --git a/apps/opentelemetry_semantic_conventions/lib/metric.ex b/apps/opentelemetry_semantic_conventions/lib/metric.ex index 3d4b63b2..328f9048 100644 --- a/apps/opentelemetry_semantic_conventions/lib/metric.ex +++ b/apps/opentelemetry_semantic_conventions/lib/metric.ex @@ -5,19 +5,16 @@ defmodule OpenTelemetry.SemanticConventions.Metric do @doc namespace: :container @typedoc """ - The CPU state for this data point. A container SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + The CPU state for this data point. A container **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels ### Options - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows) * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) * `:kernel`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows) - - """ @type container_cpu_state() :: :user | :system | :kernel | atom() @@ -27,13 +24,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read * `:write`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - write - - """ @type disk_io_direction() :: :read | :write @@ -43,13 +37,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:transmit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - transmit * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - receive - - """ @type network_io_direction() :: :transmit | :receive @@ -59,11 +50,8 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value - - """ @type error_type() :: :_OTHER | atom() @@ -73,7 +61,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:tcp` - TCP * `:udp` - UDP @@ -82,8 +69,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:unix` - Unix domain socket - - """ @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() @@ -93,13 +78,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:ipv4` - IPv4 * `:ipv6` - IPv6 - - """ @type network_type() :: :ipv4 | :ipv6 | atom() @@ -109,7 +91,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request @@ -120,8 +101,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - - """ @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other @@ -131,7 +110,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:CONNECT` - CONNECT method * `:DELETE` - DELETE method @@ -152,8 +130,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of - - """ @type http_request_method() :: :CONNECT @@ -174,13 +150,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:active`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state - - """ @type http_connection_state() :: :active | :idle | atom() @@ -190,7 +163,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) @@ -211,8 +183,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - - """ @type messaging_system() :: :activemq @@ -229,19 +199,16 @@ defmodule OpenTelemetry.SemanticConventions.Metric do @doc namespace: :process @typedoc """ - The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels ### Options - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user * `:wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wait - - """ @type process_cpu_state() :: :system | :user | :wait | atom() @@ -251,13 +218,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:voluntary`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - voluntary * `:involuntary`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - involuntary - - """ @type process_context_switch_type() :: :voluntary | :involuntary | atom() @@ -267,23 +231,19 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor - - """ @type process_paging_fault_type() :: :major | :minor | atom() @doc namespace: :system @typedoc """ - The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels ### Options - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system @@ -298,8 +258,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:steal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - steal - - """ @type system_cpu_state() :: :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() @@ -310,7 +268,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free @@ -321,8 +278,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:cached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cached - - """ @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() @@ -332,13 +287,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - """ @type system_paging_state() :: :used | :free @@ -348,13 +300,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor - - """ @type system_paging_type() :: :major | :minor @@ -364,13 +313,10 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:in`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - in * `:out`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out - - """ @type system_paging_direction() :: :in | :out @@ -380,15 +326,12 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free * `:reserved`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - reserved - - """ @type system_filesystem_state() :: :used | :free | :reserved @@ -398,7 +341,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:fat32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fat32 * `:exfat`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - exfat @@ -411,18 +353,15 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:ext4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ext4 - - """ @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() @doc namespace: :system @typedoc """ - A stateless protocol MUST NOT set this attribute + A stateless protocol **MUST NOT** set this attribute ### Options - * `:close`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close * `:close_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close_wait @@ -447,8 +386,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:time_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - time_wait - - """ @type system_network_state() :: :close @@ -470,7 +407,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do ### Options - * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping @@ -479,8 +415,6 @@ defmodule OpenTelemetry.SemanticConventions.Metric do * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct - - """ @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() @@ -496,292 +430,369 @@ defmodule OpenTelemetry.SemanticConventions.Metric do end @doc namespace: :container - @doc """ - - - The CPU state for this data point. A container SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + The CPU state for this data point. A container **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels iex> OpenTelemetry.SemanticConventions.Metric.container_cpu_state() :"container.cpu.state" """ - @spec container_cpu_state :: :"container.cpu.state" def container_cpu_state do :"container.cpu.state" end @doc namespace: :disk - @doc """ - - The disk IO operation direction iex> OpenTelemetry.SemanticConventions.Metric.disk_io_direction() :"disk.io.direction" """ - @spec disk_io_direction :: :"disk.io.direction" def disk_io_direction do :"disk.io.direction" end - @doc namespace: :network - + @doc namespace: :system @doc """ + The device identifier + iex> OpenTelemetry.SemanticConventions.Metric.system_device() + :"system.device" + """ + @spec system_device :: :"system.device" + def system_device do + :"system.device" + end + @doc namespace: :network + @doc """ The network IO operation direction iex> OpenTelemetry.SemanticConventions.Metric.network_io_direction() :"network.io.direction" """ - @spec network_io_direction :: :"network.io.direction" def network_io_direction do :"network.io.direction" end - @doc namespace: :error + @doc namespace: :pool + @doc """ + 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` + iex> OpenTelemetry.SemanticConventions.Metric.pool_name() + :"pool.name" + """ + @spec pool_name :: :"pool.name" + def pool_name do + :"pool.name" + end + + @doc namespace: :dns @doc """ + The name being queried + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.Metric.dns_question_name() + :"dns.question.name" + """ + @spec dns_question_name :: :"dns.question.name" + def dns_question_name do + :"dns.question.name" + end + @doc namespace: :error + @doc """ Describes the error the DNS lookup failed with ### Notes - Instrumentations SHOULD use error code such as one of errors reported by `getaddrinfo`([Linux or other POSIX systems](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) / [Windows](https://learn.microsoft.com/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) or one reported by the runtime or client library. If error code is not available, the full name of exception type SHOULD be used + Instrumentations **SHOULD** use error code such as one of errors reported by `getaddrinfo`([Linux or other POSIX systems](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) / [Windows](https://learn.microsoft.com/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) or one reported by the runtime or client library. If error code is not available, the full name of exception type **SHOULD** be used iex> OpenTelemetry.SemanticConventions.Metric.error_type() :"error.type" """ - @spec error_type :: :"error.type" def error_type do :"error.type" end - @doc namespace: :faas + @doc namespace: :http + @doc """ + The matched route, that is, the path template in the format used by the respective server framework + + ### Notes + + **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. + **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one + + iex> OpenTelemetry.SemanticConventions.Metric.http_route() + :"http.route" + """ + @spec http_route :: :"http.route" + def http_route do + :"http.route" + end + + @doc namespace: :network + @doc """ + [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent + + ### Notes + + The value **SHOULD** be normalized to lowercase + + iex> OpenTelemetry.SemanticConventions.Metric.network_protocol_name() + :"network.protocol.name" + """ + @spec network_protocol_name :: :"network.protocol.name" + def network_protocol_name do + :"network.protocol.name" + end + + @doc namespace: :network + @doc """ + The actual version of the protocol used for network communication + + ### Notes + + If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute **SHOULD** be set to the negotiated version. If the actual protocol version is not known, this attribute **SHOULD NOT** be set + + iex> OpenTelemetry.SemanticConventions.Metric.network_protocol_version() + :"network.protocol.version" + """ + @spec network_protocol_version :: :"network.protocol.version" + def network_protocol_version do + :"network.protocol.version" + end + @doc namespace: :tls @doc """ + Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + iex> OpenTelemetry.SemanticConventions.Metric.tls_protocol_version() + :"tls.protocol.version" + """ + @spec tls_protocol_version :: :"tls.protocol.version" + def tls_protocol_version do + :"tls.protocol.version" + end + @doc namespace: :faas + @doc """ Type of the trigger which caused this function invocation iex> OpenTelemetry.SemanticConventions.Metric.faas_trigger() :"faas.trigger" """ - @spec faas_trigger :: :"faas.trigger" def faas_trigger do :"faas.trigger" end @doc namespace: :http - @doc """ - - State of the HTTP connection in the HTTP connection pool iex> OpenTelemetry.SemanticConventions.Metric.http_connection_state() :"http.connection.state" """ - @spec http_connection_state :: :"http.connection.state" def http_connection_state do :"http.connection.state" end - @doc namespace: :process - + @doc namespace: :network @doc """ + Peer address of the network connection - IP address or Unix domain socket name + iex> OpenTelemetry.SemanticConventions.Metric.network_peer_address() + :"network.peer.address" + """ + @spec network_peer_address :: :"network.peer.address" + def network_peer_address do + :"network.peer.address" + end - The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels + @doc namespace: :process + @doc """ + The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels iex> OpenTelemetry.SemanticConventions.Metric.process_cpu_state() :"process.cpu.state" """ - @spec process_cpu_state :: :"process.cpu.state" def process_cpu_state do :"process.cpu.state" end @doc namespace: :process - @doc """ - - Specifies whether the context switches for this data point were voluntary or involuntary iex> OpenTelemetry.SemanticConventions.Metric.process_context_switch_type() :"process.context_switch_type" """ - @spec process_context_switch_type :: :"process.context_switch_type" def process_context_switch_type do :"process.context_switch_type" end @doc namespace: :process - @doc """ - - The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults iex> OpenTelemetry.SemanticConventions.Metric.process_paging_fault_type() :"process.paging.fault_type" """ - @spec process_paging_fault_type :: :"process.paging.fault_type" def process_paging_fault_type do :"process.paging.fault_type" end @doc namespace: :system - @doc """ + The logical CPU number [0..n-1] + iex> OpenTelemetry.SemanticConventions.Metric.system_cpu_logical_number() + :"system.cpu.logical_number" + """ + @spec system_cpu_logical_number :: :"system.cpu.logical_number" + def system_cpu_logical_number do + :"system.cpu.logical_number" + end - The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels + @doc namespace: :system + @doc """ + The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels iex> OpenTelemetry.SemanticConventions.Metric.system_cpu_state() :"system.cpu.state" """ - @spec system_cpu_state :: :"system.cpu.state" def system_cpu_state do :"system.cpu.state" end @doc namespace: :system - @doc """ - - The memory state iex> OpenTelemetry.SemanticConventions.Metric.system_memory_state() :"system.memory.state" """ - @spec system_memory_state :: :"system.memory.state" def system_memory_state do :"system.memory.state" end @doc namespace: :system - @doc """ - - The memory paging state iex> OpenTelemetry.SemanticConventions.Metric.system_paging_state() :"system.paging.state" """ - @spec system_paging_state :: :"system.paging.state" def system_paging_state do :"system.paging.state" end @doc namespace: :system - @doc """ - - The memory paging type iex> OpenTelemetry.SemanticConventions.Metric.system_paging_type() :"system.paging.type" """ - @spec system_paging_type :: :"system.paging.type" def system_paging_type do :"system.paging.type" end @doc namespace: :system - @doc """ - - The paging access direction iex> OpenTelemetry.SemanticConventions.Metric.system_paging_direction() :"system.paging.direction" """ - @spec system_paging_direction :: :"system.paging.direction" def system_paging_direction do :"system.paging.direction" end @doc namespace: :system + @doc """ + The filesystem mode + + iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_mode() + :"system.filesystem.mode" + """ + @spec system_filesystem_mode :: :"system.filesystem.mode" + def system_filesystem_mode do + :"system.filesystem.mode" + end + @doc namespace: :system @doc """ + The filesystem mount path + iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_mountpoint() + :"system.filesystem.mountpoint" + """ + @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" + def system_filesystem_mountpoint do + :"system.filesystem.mountpoint" + end + @doc namespace: :system + @doc """ The filesystem state iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_state() :"system.filesystem.state" """ - @spec system_filesystem_state :: :"system.filesystem.state" def system_filesystem_state do :"system.filesystem.state" end @doc namespace: :system - @doc """ - - The filesystem type iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_type() :"system.filesystem.type" """ - @spec system_filesystem_type :: :"system.filesystem.type" def system_filesystem_type do :"system.filesystem.type" end @doc namespace: :system - @doc """ - - - A stateless protocol MUST NOT set this attribute + A stateless protocol **MUST NOT** set this attribute iex> OpenTelemetry.SemanticConventions.Metric.system_network_state() :"system.network.state" """ - @spec system_network_state :: :"system.network.state" def system_network_state do :"system.network.state" end @doc namespace: :system - @doc """ - - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) iex> OpenTelemetry.SemanticConventions.Metric.system_process_status() :"system.process.status" """ - @spec system_process_status :: :"system.process.status" def system_process_status do :"system.process.status" diff --git a/apps/opentelemetry_semantic_conventions/lib/resource.ex b/apps/opentelemetry_semantic_conventions/lib/resource.ex index b5af5f5d..8e50c2a5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/resource.ex +++ b/apps/opentelemetry_semantic_conventions/lib/resource.ex @@ -9,13 +9,10 @@ defmodule OpenTelemetry.SemanticConventions.Resource do ### Options - * `:ec2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ec2 * `:fargate`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fargate - - """ @type aws_ecs_launchtype() :: :ec2 | :fargate @@ -25,7 +22,6 @@ defmodule OpenTelemetry.SemanticConventions.Resource do ### Options - * `:amd64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 * `:arm32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 @@ -42,8 +38,6 @@ defmodule OpenTelemetry.SemanticConventions.Resource do * `:x86`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 - - """ @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() @@ -53,7 +47,6 @@ defmodule OpenTelemetry.SemanticConventions.Resource do ### Options - * `:cpp` - cpp * `:dotnet` - dotnet @@ -78,8 +71,6 @@ defmodule OpenTelemetry.SemanticConventions.Resource do * `:webjs` - webjs - - """ @type telemetry_sdk_language() :: :cpp @@ -107,51 +98,1488 @@ defmodule OpenTelemetry.SemanticConventions.Resource do "https://opentelemetry.io/schemas/1.25.0" end + @doc namespace: :browser + @doc """ + Array of brand name and version separated by a space + + ### Notes + + This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) + + iex> OpenTelemetry.SemanticConventions.Resource.browser_brands() + :"browser.brands" + """ + @spec browser_brands :: :"browser.brands" + def browser_brands do + :"browser.brands" + end + + @doc namespace: :browser + @doc """ + Preferred language of the user using the browser + + ### Notes + + This value is intended to be taken from the Navigator API `navigator.language` + + iex> OpenTelemetry.SemanticConventions.Resource.browser_language() + :"browser.language" + """ + @spec browser_language :: :"browser.language" + def browser_language do + :"browser.language" + end + + @doc namespace: :browser + @doc """ + A boolean that is true if the browser is running on a mobile device + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.browser_mobile() + :"browser.mobile" + """ + @spec browser_mobile :: :"browser.mobile" + def browser_mobile do + :"browser.mobile" + end + + @doc namespace: :browser + @doc """ + The platform on which the browser is running + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.browser_platform() + :"browser.platform" + """ + @spec browser_platform :: :"browser.platform" + def browser_platform do + :"browser.platform" + end + + @doc namespace: :user_agent + @doc """ + Full user-agent string provided by the browser + + ### Notes + + The user-agent value **SHOULD** be provided only from browsers that do not have a mechanism to retrieve brands and platform individually from the User-Agent Client Hints API. To retrieve the value, the legacy `navigator.userAgent` API can be used + + iex> OpenTelemetry.SemanticConventions.Resource.user_agent_original() + :"user_agent.original" + """ + @spec user_agent_original :: :"user_agent.original" + def user_agent_original do + :"user_agent.original" + end + + @doc namespace: :aws + @doc """ + The ID of a running ECS task. The ID **MUST** be extracted from `task.arn` + + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_id() + :"aws.ecs.task.id" + """ + @spec aws_ecs_task_id :: :"aws.ecs.task.id" + def aws_ecs_task_id do + :"aws.ecs.task.id" + end + @doc namespace: :aws + @doc """ + The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) + + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_cluster_arn() + :"aws.ecs.cluster.arn" + """ + @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" + def aws_ecs_cluster_arn do + :"aws.ecs.cluster.arn" + end + @doc namespace: :aws @doc """ + The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html) + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_container_arn() + :"aws.ecs.container.arn" + """ + @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" + def aws_ecs_container_arn do + :"aws.ecs.container.arn" + end + @doc namespace: :aws + @doc """ The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_launchtype() :"aws.ecs.launchtype" """ - @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" def aws_ecs_launchtype do :"aws.ecs.launchtype" end - @doc namespace: :host + @doc namespace: :aws + @doc """ + The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) + + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_arn() + :"aws.ecs.task.arn" + """ + @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" + def aws_ecs_task_arn do + :"aws.ecs.task.arn" + end + @doc namespace: :aws @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_family() + :"aws.ecs.task.family" + """ + @spec aws_ecs_task_family :: :"aws.ecs.task.family" + def aws_ecs_task_family do + :"aws.ecs.task.family" + end - The CPU architecture the host system is running on + @doc namespace: :aws + @doc """ + The revision for the task definition used to create the ECS task - iex> OpenTelemetry.SemanticConventions.Resource.host_arch() - :"host.arch" + iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_revision() + :"aws.ecs.task.revision" """ + @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" + def aws_ecs_task_revision do + :"aws.ecs.task.revision" + end - @spec host_arch :: :"host.arch" - def host_arch do - :"host.arch" + @doc namespace: :aws + @doc """ + The ARN of an EKS cluster + + iex> OpenTelemetry.SemanticConventions.Resource.aws_eks_cluster_arn() + :"aws.eks.cluster.arn" + """ + @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" + def aws_eks_cluster_arn do + :"aws.eks.cluster.arn" end - @doc namespace: :telemetry + @doc namespace: :aws + @doc """ + The Amazon Resource Name(s) (ARN) of the AWS log group(s) + + ### Notes + + See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format) + + iex> OpenTelemetry.SemanticConventions.Resource.aws_log_group_arns() + :"aws.log.group.arns" + """ + @spec aws_log_group_arns :: :"aws.log.group.arns" + def aws_log_group_arns do + :"aws.log.group.arns" + end + @doc namespace: :aws @doc """ + The name(s) of the AWS log group(s) an application is writing to + ### Notes - The language of the telemetry SDK + 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 - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_language() - :"telemetry.sdk.language" + iex> OpenTelemetry.SemanticConventions.Resource.aws_log_group_names() + :"aws.log.group.names" """ + @spec aws_log_group_names :: :"aws.log.group.names" + def aws_log_group_names do + :"aws.log.group.names" + end - @spec telemetry_sdk_language :: :"telemetry.sdk.language" - def telemetry_sdk_language do - :"telemetry.sdk.language" + @doc namespace: :aws + @doc """ + The ARN(s) of the AWS log stream(s) + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.aws_log_stream_arns() + :"aws.log.stream.arns" + """ + @spec aws_log_stream_arns :: :"aws.log.stream.arns" + def aws_log_stream_arns do + :"aws.log.stream.arns" + end + + @doc namespace: :aws + @doc """ + The name(s) of the AWS log stream(s) an application is writing to + + iex> OpenTelemetry.SemanticConventions.Resource.aws_log_stream_names() + :"aws.log.stream.names" + """ + @spec aws_log_stream_names :: :"aws.log.stream.names" + def aws_log_stream_names do + :"aws.log.stream.names" + end + + @doc namespace: :gcp + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.gcp_cloud_run_job_execution() + :"gcp.cloud_run.job.execution" + """ + @spec gcp_cloud_run_job_execution :: :"gcp.cloud_run.job.execution" + def gcp_cloud_run_job_execution do + :"gcp.cloud_run.job.execution" + end + + @doc namespace: :gcp + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.gcp_cloud_run_job_task_index() + :"gcp.cloud_run.job.task_index" + """ + @spec gcp_cloud_run_job_task_index :: :"gcp.cloud_run.job.task_index" + def gcp_cloud_run_job_task_index do + :"gcp.cloud_run.job.task_index" + end + + @doc namespace: :gcp + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Resource.gcp_gce_instance_hostname() + :"gcp.gce.instance.hostname" + """ + @spec gcp_gce_instance_hostname :: :"gcp.gce.instance.hostname" + def gcp_gce_instance_hostname do + :"gcp.gce.instance.hostname" + end + + @doc namespace: :gcp + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Resource.gcp_gce_instance_name() + :"gcp.gce.instance.name" + """ + @spec gcp_gce_instance_name :: :"gcp.gce.instance.name" + def gcp_gce_instance_name do + :"gcp.gce.instance.name" + end + + @doc namespace: :heroku + @doc """ + Unique identifier for the application + + iex> OpenTelemetry.SemanticConventions.Resource.heroku_app_id() + :"heroku.app.id" + """ + @spec heroku_app_id :: :"heroku.app.id" + def heroku_app_id do + :"heroku.app.id" + end + + @doc namespace: :heroku + @doc """ + Commit hash for the current release + + iex> OpenTelemetry.SemanticConventions.Resource.heroku_release_commit() + :"heroku.release.commit" + """ + @spec heroku_release_commit :: :"heroku.release.commit" + def heroku_release_commit do + :"heroku.release.commit" + end + + @doc namespace: :heroku + @doc """ + Time and date the release was created + + iex> OpenTelemetry.SemanticConventions.Resource.heroku_release_creation_timestamp() + :"heroku.release.creation_timestamp" + """ + @spec heroku_release_creation_timestamp :: :"heroku.release.creation_timestamp" + def heroku_release_creation_timestamp do + :"heroku.release.creation_timestamp" + end + + @doc namespace: :container + @doc """ + Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated + + iex> OpenTelemetry.SemanticConventions.Resource.container_id() + :"container.id" + """ + @spec container_id :: :"container.id" + def container_id do + :"container.id" + end + + @doc namespace: :container + @doc """ + Runtime specific image identifier. Usually a hash algorithm followed by a UUID + + ### Notes + + 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 assinged 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 + + iex> OpenTelemetry.SemanticConventions.Resource.container_image_id() + :"container.image.id" + """ + @spec container_image_id :: :"container.image.id" + def container_image_id do + :"container.image.id" + end + + @doc namespace: :container + @doc """ + Name of the image the container was built on + + iex> OpenTelemetry.SemanticConventions.Resource.container_image_name() + :"container.image.name" + """ + @spec container_image_name :: :"container.image.name" + def container_image_name do + :"container.image.name" + end + + @doc namespace: :container + @doc """ + Repo digests of the container image as provided by the container runtime + + ### Notes + + [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 + + iex> OpenTelemetry.SemanticConventions.Resource.container_image_repo_digests() + :"container.image.repo_digests" + """ + @spec container_image_repo_digests :: :"container.image.repo_digests" + def container_image_repo_digests do + :"container.image.repo_digests" + end + + @doc namespace: :container + @doc """ + 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:` + + iex> OpenTelemetry.SemanticConventions.Resource.container_image_tags() + :"container.image.tags" + """ + @spec container_image_tags :: :"container.image.tags" + def container_image_tags do + :"container.image.tags" + end + + @doc namespace: :container + @doc """ + Container name used by container runtime + + iex> OpenTelemetry.SemanticConventions.Resource.container_name() + :"container.name" + """ + @spec container_name :: :"container.name" + def container_name do + :"container.name" + end + + @doc namespace: :container + @doc """ + The container runtime managing this container + + iex> OpenTelemetry.SemanticConventions.Resource.container_runtime() + :"container.runtime" + """ + @spec container_runtime :: :"container.runtime" + def container_runtime do + :"container.runtime" + end + + @doc namespace: :oci + @doc """ + The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known + + ### Notes + + Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). + An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) + + iex> OpenTelemetry.SemanticConventions.Resource.oci_manifest_digest() + :"oci.manifest.digest" + """ + @spec oci_manifest_digest :: :"oci.manifest.digest" + def oci_manifest_digest do + :"oci.manifest.digest" + end + + @doc namespace: :container + @doc """ + The command used to run the container (i.e. the command name) + + ### Notes + + If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage + + iex> OpenTelemetry.SemanticConventions.Resource.container_command() + :"container.command" + """ + @spec container_command :: :"container.command" + def container_command do + :"container.command" + end + + @doc namespace: :container + @doc """ + All the command arguments (including the command/executable itself) run by the container. [2] + + iex> OpenTelemetry.SemanticConventions.Resource.container_command_args() + :"container.command_args" + """ + @spec container_command_args :: :"container.command_args" + def container_command_args do + :"container.command_args" + end + + @doc namespace: :container + @doc """ + The full command run by the container as a single string representing the full command. [2] + + iex> OpenTelemetry.SemanticConventions.Resource.container_command_line() + :"container.command_line" + """ + @spec container_command_line :: :"container.command_line" + def container_command_line do + :"container.command_line" + end + + @doc namespace: :deployment + @doc """ + Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) + + ### Notes + + `deployment.environment` 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=production` + * `service.name=frontend`, `deployment.environment=staging` + + iex> OpenTelemetry.SemanticConventions.Resource.deployment_environment() + :"deployment.environment" + """ + @spec deployment_environment :: :"deployment.environment" + def deployment_environment do + :"deployment.environment" + end + + @doc namespace: :device + @doc """ + A unique identifier representing the device + + ### Notes + + The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 + + iex> OpenTelemetry.SemanticConventions.Resource.device_id() + :"device.id" + """ + @spec device_id :: :"device.id" + def device_id do + :"device.id" + end + + @doc namespace: :device + @doc """ + The name of the device manufacturer + + ### Notes + + The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple` + + iex> OpenTelemetry.SemanticConventions.Resource.device_manufacturer() + :"device.manufacturer" + """ + @spec device_manufacturer :: :"device.manufacturer" + def device_manufacturer do + :"device.manufacturer" + end + + @doc namespace: :device + @doc """ + The model identifier for the device + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.device_model_identifier() + :"device.model.identifier" + """ + @spec device_model_identifier :: :"device.model.identifier" + def device_model_identifier do + :"device.model.identifier" + end + + @doc namespace: :device + @doc """ + The marketing name for the device model + + ### Notes + + It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative + + iex> OpenTelemetry.SemanticConventions.Resource.device_model_name() + :"device.model.name" + """ + @spec device_model_name :: :"device.model.name" + def device_model_name do + :"device.model.name" + end + + @doc namespace: :faas + @doc """ + The name of the single function that this runtime instance executes + + ### Notes + + 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`](/docs/general/attributes.md#source-code-attributes) + span attributes). + + 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) + + iex> OpenTelemetry.SemanticConventions.Resource.faas_name() + :"faas.name" + """ + @spec faas_name :: :"faas.name" + def faas_name do + :"faas.name" + end + + @doc namespace: :faas + @doc """ + The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version + + ### Notes + + * **AWS Lambda:** Use the (full) log stream name + + iex> OpenTelemetry.SemanticConventions.Resource.faas_instance() + :"faas.instance" + """ + @spec faas_instance :: :"faas.instance" + def faas_instance do + :"faas.instance" + end + + @doc namespace: :faas + @doc """ + The amount of memory available to the serverless function converted to Bytes + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Resource.faas_max_memory() + :"faas.max_memory" + """ + @spec faas_max_memory :: :"faas.max_memory" + def faas_max_memory do + :"faas.max_memory" + end + + @doc namespace: :faas + @doc """ + The immutable version of the function being executed + + ### Notes + + Depending on the cloud provider and platform, use: + + * **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 + + iex> OpenTelemetry.SemanticConventions.Resource.faas_version() + :"faas.version" + """ + @spec faas_version :: :"faas.version" + def faas_version do + :"faas.version" + end + + @doc namespace: :host + @doc """ + The CPU architecture the host system is running on + + iex> OpenTelemetry.SemanticConventions.Resource.host_arch() + :"host.arch" + """ + @spec host_arch :: :"host.arch" + def host_arch do + :"host.arch" + end + + @doc namespace: :host + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.host_id() + :"host.id" + """ + @spec host_id :: :"host.id" + def host_id do + :"host.id" + end + + @doc namespace: :host + @doc """ + VM image ID or host OS image ID. For Cloud, this value is from the provider + + iex> OpenTelemetry.SemanticConventions.Resource.host_image_id() + :"host.image.id" + """ + @spec host_image_id :: :"host.image.id" + def host_image_id do + :"host.image.id" + end + + @doc namespace: :host + @doc """ + Name of the VM image or OS install the host was instantiated from + + iex> OpenTelemetry.SemanticConventions.Resource.host_image_name() + :"host.image.name" + """ + @spec host_image_name :: :"host.image.name" + def host_image_name do + :"host.image.name" + end + + @doc namespace: :host + @doc """ + The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) + + iex> OpenTelemetry.SemanticConventions.Resource.host_image_version() + :"host.image.version" + """ + @spec host_image_version :: :"host.image.version" + def host_image_version do + :"host.image.version" + end + + @doc namespace: :host + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.host_name() + :"host.name" + """ + @spec host_name :: :"host.name" + def host_name do + :"host.name" + end + + @doc namespace: :host + @doc """ + Type of host. For Cloud, this must be the machine type + + iex> OpenTelemetry.SemanticConventions.Resource.host_type() + :"host.type" + """ + @spec host_type :: :"host.type" + def host_type do + :"host.type" + end + + @doc namespace: :host + @doc """ + Available IP addresses of the host, excluding loopback interfaces + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.host_ip() + :"host.ip" + """ + @spec host_ip :: :"host.ip" + def host_ip do + :"host.ip" + end + + @doc namespace: :host + @doc """ + Available MAC addresses of the host, excluding loopback interfaces + + ### Notes + + 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 + + iex> OpenTelemetry.SemanticConventions.Resource.host_mac() + :"host.mac" + """ + @spec host_mac :: :"host.mac" + def host_mac do + :"host.mac" + end + + @doc namespace: :host + @doc """ + The amount of level 2 memory cache available to the processor (in Bytes) + + iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_cache_l2_size() + :"host.cpu.cache.l2.size" + """ + @spec host_cpu_cache_l2_size :: :"host.cpu.cache.l2.size" + def host_cpu_cache_l2_size do + :"host.cpu.cache.l2.size" + end + + @doc namespace: :host + @doc """ + Family or generation of the CPU + + iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_family() + :"host.cpu.family" + """ + @spec host_cpu_family :: :"host.cpu.family" + def host_cpu_family do + :"host.cpu.family" + end + + @doc namespace: :host + @doc """ + Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family + + iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_model_id() + :"host.cpu.model.id" + """ + @spec host_cpu_model_id :: :"host.cpu.model.id" + def host_cpu_model_id do + :"host.cpu.model.id" + end + + @doc namespace: :host + @doc """ + Model designation of the processor + + iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_model_name() + :"host.cpu.model.name" + """ + @spec host_cpu_model_name :: :"host.cpu.model.name" + def host_cpu_model_name do + :"host.cpu.model.name" + end + + @doc namespace: :host + @doc """ + Stepping or core revisions + + iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_stepping() + :"host.cpu.stepping" + """ + @spec host_cpu_stepping :: :"host.cpu.stepping" + def host_cpu_stepping do + :"host.cpu.stepping" + end + + @doc namespace: :host + @doc """ + Processor manufacturer identifier. A maximum 12-character string + + ### Notes + + [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 + + iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_vendor_id() + :"host.cpu.vendor.id" + """ + @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" + def host_cpu_vendor_id do + :"host.cpu.vendor.id" + end + + @doc namespace: :k8s + @doc """ + The name of the cluster + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_cluster_name() + :"k8s.cluster.name" + """ + @spec k8s_cluster_name :: :"k8s.cluster.name" + def k8s_cluster_name do + :"k8s.cluster.name" + end + + @doc namespace: :k8s + @doc """ + A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace + + ### Notes + + K8s doesn't have support for obtaining a cluster ID. If this is ever + added, we will recommend collecting the `k8s.cluster.uid` through the + official APIs. In the meantime, we are able to use the `uid` of the + `kube-system` namespace as a proxy for cluster ID. Read on for the + rationale. + + Every object created in a K8s cluster is assigned a distinct UID. The + `kube-system` namespace is used by Kubernetes itself and will exist + for the lifetime of the cluster. Using the `uid` of the `kube-system` + namespace is a reasonable proxy for the K8s ClusterID as it will only + change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are + UUIDs as standardized by + [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). + Which states: + + > If generated according to one of the mechanisms defined in Rec. + ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be + different from all other UUIDs generated before 3603 A.D., or is + extremely likely to be different (depending on the mechanism chosen). + + Therefore, UIDs between clusters should be extremely unlikely to + conflict + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_cluster_uid() + :"k8s.cluster.uid" + """ + @spec k8s_cluster_uid :: :"k8s.cluster.uid" + def k8s_cluster_uid do + :"k8s.cluster.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Node + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_node_name() + :"k8s.node.name" + """ + @spec k8s_node_name :: :"k8s.node.name" + def k8s_node_name do + :"k8s.node.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Node + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_node_uid() + :"k8s.node.uid" + """ + @spec k8s_node_uid :: :"k8s.node.uid" + def k8s_node_uid do + :"k8s.node.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the namespace that the pod is running in + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_namespace_name() + :"k8s.namespace.name" + """ + @spec k8s_namespace_name :: :"k8s.namespace.name" + def k8s_namespace_name do + :"k8s.namespace.name" + end + + @doc namespace: :k8s + @doc """ + The name of the Pod + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_pod_name() + :"k8s.pod.name" + """ + @spec k8s_pod_name :: :"k8s.pod.name" + def k8s_pod_name do + :"k8s.pod.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Pod + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_pod_uid() + :"k8s.pod.uid" + """ + @spec k8s_pod_uid :: :"k8s.pod.uid" + def k8s_pod_uid do + :"k8s.pod.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_container_name() + :"k8s.container.name" + """ + @spec k8s_container_name :: :"k8s.container.name" + def k8s_container_name do + :"k8s.container.name" + end + + @doc namespace: :k8s + @doc """ + Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_container_restart_count() + :"k8s.container.restart_count" + """ + @spec k8s_container_restart_count :: :"k8s.container.restart_count" + def k8s_container_restart_count do + :"k8s.container.restart_count" + end + + @doc namespace: :k8s + @doc """ + The name of the ReplicaSet + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_replicaset_name() + :"k8s.replicaset.name" + """ + @spec k8s_replicaset_name :: :"k8s.replicaset.name" + def k8s_replicaset_name do + :"k8s.replicaset.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the ReplicaSet + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_replicaset_uid() + :"k8s.replicaset.uid" + """ + @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" + def k8s_replicaset_uid do + :"k8s.replicaset.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Deployment + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_deployment_name() + :"k8s.deployment.name" + """ + @spec k8s_deployment_name :: :"k8s.deployment.name" + def k8s_deployment_name do + :"k8s.deployment.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Deployment + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_deployment_uid() + :"k8s.deployment.uid" + """ + @spec k8s_deployment_uid :: :"k8s.deployment.uid" + def k8s_deployment_uid do + :"k8s.deployment.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the StatefulSet + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_statefulset_name() + :"k8s.statefulset.name" + """ + @spec k8s_statefulset_name :: :"k8s.statefulset.name" + def k8s_statefulset_name do + :"k8s.statefulset.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the StatefulSet + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_statefulset_uid() + :"k8s.statefulset.uid" + """ + @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" + def k8s_statefulset_uid do + :"k8s.statefulset.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the DaemonSet + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_daemonset_name() + :"k8s.daemonset.name" + """ + @spec k8s_daemonset_name :: :"k8s.daemonset.name" + def k8s_daemonset_name do + :"k8s.daemonset.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the DaemonSet + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_daemonset_uid() + :"k8s.daemonset.uid" + """ + @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" + def k8s_daemonset_uid do + :"k8s.daemonset.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the Job + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_job_name() + :"k8s.job.name" + """ + @spec k8s_job_name :: :"k8s.job.name" + def k8s_job_name do + :"k8s.job.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the Job + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_job_uid() + :"k8s.job.uid" + """ + @spec k8s_job_uid :: :"k8s.job.uid" + def k8s_job_uid do + :"k8s.job.uid" + end + + @doc namespace: :k8s + @doc """ + The name of the CronJob + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_cronjob_name() + :"k8s.cronjob.name" + """ + @spec k8s_cronjob_name :: :"k8s.cronjob.name" + def k8s_cronjob_name do + :"k8s.cronjob.name" + end + + @doc namespace: :k8s + @doc """ + The UID of the CronJob + + iex> OpenTelemetry.SemanticConventions.Resource.k8s_cronjob_uid() + :"k8s.cronjob.uid" + """ + @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" + def k8s_cronjob_uid do + :"k8s.cronjob.uid" + end + + @doc namespace: :process + @doc """ + The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` + + iex> OpenTelemetry.SemanticConventions.Resource.process_command() + :"process.command" + """ + @spec process_command :: :"process.command" + def process_command do + :"process.command" + end + + @doc namespace: :process + @doc """ + All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` + + iex> OpenTelemetry.SemanticConventions.Resource.process_command_args() + :"process.command_args" + """ + @spec process_command_args :: :"process.command_args" + def process_command_args do + :"process.command_args" + end + + @doc namespace: :process + @doc """ + The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead + + iex> OpenTelemetry.SemanticConventions.Resource.process_command_line() + :"process.command_line" + """ + @spec process_command_line :: :"process.command_line" + def process_command_line do + :"process.command_line" + end + + @doc namespace: :process + @doc """ + The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` + + iex> OpenTelemetry.SemanticConventions.Resource.process_executable_name() + :"process.executable.name" + """ + @spec process_executable_name :: :"process.executable.name" + def process_executable_name do + :"process.executable.name" + end + + @doc namespace: :process + @doc """ + The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` + + iex> OpenTelemetry.SemanticConventions.Resource.process_executable_path() + :"process.executable.path" + """ + @spec process_executable_path :: :"process.executable.path" + def process_executable_path do + :"process.executable.path" + end + + @doc namespace: :process + @doc """ + The username of the user that owns the process + + iex> OpenTelemetry.SemanticConventions.Resource.process_owner() + :"process.owner" + """ + @spec process_owner :: :"process.owner" + def process_owner do + :"process.owner" + end + + @doc namespace: :process + @doc """ + Parent Process identifier (PPID) + + iex> OpenTelemetry.SemanticConventions.Resource.process_parent_pid() + :"process.parent_pid" + """ + @spec process_parent_pid :: :"process.parent_pid" + def process_parent_pid do + :"process.parent_pid" + end + + @doc namespace: :process + @doc """ + Process identifier (PID) + + iex> OpenTelemetry.SemanticConventions.Resource.process_pid() + :"process.pid" + """ + @spec process_pid :: :"process.pid" + def process_pid do + :"process.pid" + end + + @doc namespace: :process + @doc """ + An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment + + iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_description() + :"process.runtime.description" + """ + @spec process_runtime_description :: :"process.runtime.description" + def process_runtime_description do + :"process.runtime.description" + end + + @doc namespace: :process + @doc """ + The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler + + iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_name() + :"process.runtime.name" + """ + @spec process_runtime_name :: :"process.runtime.name" + def process_runtime_name do + :"process.runtime.name" + end + + @doc namespace: :process + @doc """ + The version of the runtime of this process, as returned by the runtime without modification + + iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_version() + :"process.runtime.version" + """ + @spec process_runtime_version :: :"process.runtime.version" + def process_runtime_version do + :"process.runtime.version" + end + + @doc namespace: :service + @doc """ + Logical name of the service + + ### Notes + + **MUST** be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service` + + iex> OpenTelemetry.SemanticConventions.Resource.service_name() + :"service.name" + """ + @spec service_name :: :"service.name" + def service_name do + :"service.name" + end + + @doc namespace: :service + @doc """ + The version string of the service API or implementation. The format is not defined by these conventions + + iex> OpenTelemetry.SemanticConventions.Resource.service_version() + :"service.version" + """ + @spec service_version :: :"service.version" + def service_version do + :"service.version" + end + + @doc namespace: :service + @doc """ + The string ID of the service instance + + ### Notes + + **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words + `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to + distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled + service). + + Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC + 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of + this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and + **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. + + UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is + needed. Similar to what can be seen in the man page for the + [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying + data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it + or not via another resource attribute. + + For applications running behind an application server (like unicorn), we do not recommend using one identifier + for all processes participating in the application. Instead, it's recommended each division (e.g. a worker + thread in unicorn) to have its own instance.id. + + It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the + service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will + likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. + However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance + for that telemetry. This is typically the case for scraping receivers, as they know the target address and + port + + iex> OpenTelemetry.SemanticConventions.Resource.service_instance_id() + :"service.instance.id" + """ + @spec service_instance_id :: :"service.instance.id" + def service_instance_id do + :"service.instance.id" + end + + @doc namespace: :service + @doc """ + A namespace for `service.name` + + ### Notes + + A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace + + iex> OpenTelemetry.SemanticConventions.Resource.service_namespace() + :"service.namespace" + """ + @spec service_namespace :: :"service.namespace" + def service_namespace do + :"service.namespace" + end + + @doc namespace: :telemetry + @doc """ + The language of the telemetry SDK + + iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_language() + :"telemetry.sdk.language" + """ + @spec telemetry_sdk_language :: :"telemetry.sdk.language" + def telemetry_sdk_language do + :"telemetry.sdk.language" + end + + @doc namespace: :telemetry + @doc """ + The name of the telemetry SDK as defined above + + ### Notes + + The OpenTelemetry SDK **MUST** set the `telemetry.sdk.name` attribute to `opentelemetry`. + If another SDK, like a fork or a vendor-provided implementation, is used, this SDK **MUST** set the + `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point + or another suitable identifier depending on the language. + The identifier `opentelemetry` is reserved and **MUST NOT** be used in this case. + All custom identifiers **SHOULD** be stable across different versions of an implementation + + iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_name() + :"telemetry.sdk.name" + """ + @spec telemetry_sdk_name :: :"telemetry.sdk.name" + def telemetry_sdk_name do + :"telemetry.sdk.name" + end + + @doc namespace: :telemetry + @doc """ + The version string of the telemetry SDK + + iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_version() + :"telemetry.sdk.version" + """ + @spec telemetry_sdk_version :: :"telemetry.sdk.version" + def telemetry_sdk_version do + :"telemetry.sdk.version" + end + + @doc namespace: :telemetry + @doc """ + The name of the auto instrumentation agent or distribution, if used + + ### Notes + + Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to + a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` + + iex> OpenTelemetry.SemanticConventions.Resource.telemetry_distro_name() + :"telemetry.distro.name" + """ + @spec telemetry_distro_name :: :"telemetry.distro.name" + def telemetry_distro_name do + :"telemetry.distro.name" + end + + @doc namespace: :telemetry + @doc """ + The version string of the auto instrumentation agent or distribution, if used + + iex> OpenTelemetry.SemanticConventions.Resource.telemetry_distro_version() + :"telemetry.distro.version" + """ + @spec telemetry_distro_version :: :"telemetry.distro.version" + def telemetry_distro_version do + :"telemetry.distro.version" + end + + @doc namespace: :webengine + @doc """ + The name of the web engine + + iex> OpenTelemetry.SemanticConventions.Resource.webengine_name() + :"webengine.name" + """ + @spec webengine_name :: :"webengine.name" + def webengine_name do + :"webengine.name" + end + + @doc namespace: :webengine + @doc """ + Additional description of the web engine (e.g. detailed version and edition information) + + iex> OpenTelemetry.SemanticConventions.Resource.webengine_description() + :"webengine.description" + """ + @spec webengine_description :: :"webengine.description" + def webengine_description do + :"webengine.description" + end + + @doc namespace: :webengine + @doc """ + The version of the web engine + + iex> OpenTelemetry.SemanticConventions.Resource.webengine_version() + :"webengine.version" + """ + @spec webengine_version :: :"webengine.version" + def webengine_version do + :"webengine.version" + end + + @doc namespace: :otel + @doc """ + The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP) + + iex> OpenTelemetry.SemanticConventions.Resource.otel_scope_name() + :"otel.scope.name" + """ + @spec otel_scope_name :: :"otel.scope.name" + def otel_scope_name do + :"otel.scope.name" + end + + @doc namespace: :otel + @doc """ + The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP) + + iex> OpenTelemetry.SemanticConventions.Resource.otel_scope_version() + :"otel.scope.version" + """ + @spec otel_scope_version :: :"otel.scope.version" + def otel_scope_version do + :"otel.scope.version" + end + + @doc namespace: :otel + + @deprecated """ + use the `otel.scope.name` attribute + """ + @spec otel_library_name :: :"otel.library.name" + def otel_library_name do + :"otel.library.name" + end + + @doc namespace: :otel + + @deprecated """ + use the `otel.scope.version` attribute + """ + @spec otel_library_version :: :"otel.library.version" + def otel_library_version do + :"otel.library.version" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/span.ex b/apps/opentelemetry_semantic_conventions/lib/span.ex index 7d145073..93b56578 100644 --- a/apps/opentelemetry_semantic_conventions/lib/span.ex +++ b/apps/opentelemetry_semantic_conventions/lib/span.ex @@ -9,13 +9,10 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:child_of`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span depends on the child Span in some capacity * `:follows_from`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span - - """ @type opentracing_ref_type() :: :child_of | :follows_from @@ -25,7 +22,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:other_sql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes * `:mssql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server @@ -130,8 +126,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:trino`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino - - """ @type db_system() :: :other_sql @@ -194,7 +188,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:all`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - all * `:each_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - each_quorum @@ -217,8 +210,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:local_serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_serial - - """ @type db_cassandra_consistency_level() :: :all @@ -239,7 +230,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:CONNECT` - CONNECT method * `:DELETE` - DELETE method @@ -260,8 +250,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of - - """ @type http_request_method() :: :CONNECT @@ -282,13 +270,10 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:gateway`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode * `:direct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection - - """ @type db_cosmosdb_connection_mode() :: :gateway | :direct @@ -298,7 +283,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:Invalid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid * `:Create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - create @@ -329,8 +313,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:ExecuteJavaScript`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute_javascript - - """ @type db_cosmosdb_operation_type() :: :Invalid @@ -352,17 +334,14 @@ defmodule OpenTelemetry.SemanticConventions.Span do @doc namespace: :otel @typedoc """ - Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET + Name of the code, either "OK" or "ERROR". **MUST NOT** be set if the status code is UNSET ### Options - * `:OK`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The operation has been validated by an Application developer or Operator to have completed successfully * `:ERROR`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The operation contains an error - - """ @type otel_status_code() :: :OK | :ERROR @@ -372,7 +351,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request @@ -383,8 +361,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - - """ @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other @@ -394,15 +370,12 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:insert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created * `:edit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted - - """ @type faas_document_operation() :: :insert | :edit | :delete | atom() @@ -412,7 +385,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:alibaba_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud * `:aws`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services @@ -423,8 +395,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:tencent_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud - - """ @type faas_invoked_provider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() @@ -434,11 +404,8 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value - - """ @type error_type() :: :_OTHER | atom() @@ -448,7 +415,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:grpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC * `:java_rmi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI @@ -459,8 +425,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:connect_rpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC - - """ @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() @@ -470,15 +434,12 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL query * `:mutation`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL mutation * `:subscription`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL subscription - - """ @type graphql_operation_type() :: :query | :mutation | :subscription @@ -488,7 +449,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:publish`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created * `:create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios @@ -499,8 +459,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:settle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled - - """ @type messaging_operation() :: :publish | :create | :receive | :process | :settle | atom() @@ -510,7 +468,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) @@ -531,8 +488,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - - """ @type messaging_system() :: :activemq @@ -553,7 +508,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:tcp` - TCP * `:udp` - UDP @@ -562,8 +516,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:unix` - Unix domain socket - - """ @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() @@ -573,13 +525,10 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:ipv4` - IPv4 * `:ipv6` - IPv6 - - """ @type network_type() :: :ipv4 | :ipv6 | atom() @@ -589,7 +538,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK * `1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED @@ -624,8 +572,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `16`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED - - """ @type rpc_grpc_status_code() :: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 @@ -636,7 +582,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do ### Options - * `:cancelled`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cancelled * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown @@ -669,8 +614,6 @@ defmodule OpenTelemetry.SemanticConventions.Span do * `:unauthenticated`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unauthenticated - - """ @type rpc_connect_rpc_error_code() :: :cancelled @@ -701,249 +644,1537 @@ defmodule OpenTelemetry.SemanticConventions.Span do "https://opentelemetry.io/schemas/1.25.0" end - @doc namespace: :opentracing - + @doc namespace: :peer @doc """ + The [`service.name`](/docs/resource/README.md#service) of the remote service. **SHOULD** be equal to the actual `service.name` resource attribute of the remote service if any + iex> OpenTelemetry.SemanticConventions.Span.peer_service() + :"peer.service" + """ + @spec peer_service :: :"peer.service" + def peer_service do + :"peer.service" + end - Parent-child Reference type + @doc namespace: :enduser + @doc """ + Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system - ### Notes + iex> OpenTelemetry.SemanticConventions.Span.enduser_id() + :"enduser.id" + """ + @spec enduser_id :: :"enduser.id" + def enduser_id do + :"enduser.id" + end - The causal relationship between a child Span and a parent Span + @doc namespace: :enduser + @doc """ + Actual/assumed role the client is making the request under extracted from token or application security context - iex> OpenTelemetry.SemanticConventions.Span.opentracing_ref_type() - :"opentracing.ref_type" + iex> OpenTelemetry.SemanticConventions.Span.enduser_role() + :"enduser.role" """ - - @spec opentracing_ref_type :: :"opentracing.ref_type" - def opentracing_ref_type do - :"opentracing.ref_type" + @spec enduser_role :: :"enduser.role" + def enduser_role do + :"enduser.role" end - @doc namespace: :db - + @doc namespace: :enduser @doc """ + Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) + iex> OpenTelemetry.SemanticConventions.Span.enduser_scope() + :"enduser.scope" + """ + @spec enduser_scope :: :"enduser.scope" + def enduser_scope do + :"enduser.scope" + end - 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) + @doc namespace: :thread + @doc """ + Current "managed" thread ID (as opposed to OS thread ID) - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_consistency_level() - :"db.cassandra.consistency_level" + iex> OpenTelemetry.SemanticConventions.Span.thread_id() + :"thread.id" """ - - @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" - def db_cassandra_consistency_level do - :"db.cassandra.consistency_level" + @spec thread_id :: :"thread.id" + def thread_id do + :"thread.id" end - @doc namespace: :http - + @doc namespace: :thread @doc """ + Current thread name + iex> OpenTelemetry.SemanticConventions.Span.thread_name() + :"thread.name" + """ + @spec thread_name :: :"thread.name" + def thread_name do + :"thread.name" + end - HTTP request method - - ### Notes + @doc namespace: :code + @doc """ + The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` - HTTP request method value SHOULD be "known" to the instrumentation. - By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) - and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). + iex> OpenTelemetry.SemanticConventions.Span.code_column() + :"code.column" + """ + @spec code_column :: :"code.column" + def code_column do + :"code.column" + end - If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. + @doc namespace: :code + @doc """ + The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) - If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override - the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named - OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods - (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). + iex> OpenTelemetry.SemanticConventions.Span.code_filepath() + :"code.filepath" + """ + @spec code_filepath :: :"code.filepath" + def code_filepath do + :"code.filepath" + end - HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. - Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. - Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value + @doc namespace: :code + @doc """ + The method or function name, or equivalent (usually rightmost part of the code unit's name) - iex> OpenTelemetry.SemanticConventions.Span.http_request_method() - :"http.request.method" + iex> OpenTelemetry.SemanticConventions.Span.code_function() + :"code.function" """ - - @spec http_request_method :: :"http.request.method" - def http_request_method do - :"http.request.method" + @spec code_function :: :"code.function" + def code_function do + :"code.function" end - @doc namespace: :db - + @doc namespace: :code @doc """ + The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` + iex> OpenTelemetry.SemanticConventions.Span.code_lineno() + :"code.lineno" + """ + @spec code_lineno :: :"code.lineno" + def code_lineno do + :"code.lineno" + end - Cosmos client connection mode + @doc namespace: :code + @doc """ + The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_connection_mode() - :"db.cosmosdb.connection_mode" + iex> OpenTelemetry.SemanticConventions.Span.code_namespace() + :"code.namespace" """ - - @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" - def db_cosmosdb_connection_mode do - :"db.cosmosdb.connection_mode" + @spec code_namespace :: :"code.namespace" + def code_namespace do + :"code.namespace" end - @doc namespace: :db + @doc namespace: :code + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG + + iex> OpenTelemetry.SemanticConventions.Span.code_stacktrace() + :"code.stacktrace" + """ + @spec code_stacktrace :: :"code.stacktrace" + def code_stacktrace do + :"code.stacktrace" + end + @doc namespace: :aws @doc """ + 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) + ### Notes - CosmosDB Operation Type + This may be different from `cloud.resource_id` if an alias is involved - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_operation_type() - :"db.cosmosdb.operation_type" + iex> OpenTelemetry.SemanticConventions.Span.aws_lambda_invoked_arn() + :"aws.lambda.invoked_arn" """ - - @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" - def db_cosmosdb_operation_type do - :"db.cosmosdb.operation_type" + @spec aws_lambda_invoked_arn :: :"aws.lambda.invoked_arn" + def aws_lambda_invoked_arn do + :"aws.lambda.invoked_arn" end - @doc namespace: :otel - + @doc namespace: :cloudevents @doc """ + The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event + iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_id() + :"cloudevents.event_id" + """ + @spec cloudevents_event_id :: :"cloudevents.event_id" + def cloudevents_event_id do + :"cloudevents.event_id" + end - Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET + @doc namespace: :cloudevents + @doc """ + The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened - iex> OpenTelemetry.SemanticConventions.Span.otel_status_code() - :"otel.status_code" + iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_source() + :"cloudevents.event_source" """ - - @spec otel_status_code :: :"otel.status_code" - def otel_status_code do - :"otel.status_code" + @spec cloudevents_event_source :: :"cloudevents.event_source" + def cloudevents_event_source do + :"cloudevents.event_source" end - @doc namespace: :faas - + @doc namespace: :cloudevents @doc """ + The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses + iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_spec_version() + :"cloudevents.event_spec_version" + """ + @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" + def cloudevents_event_spec_version do + :"cloudevents.event_spec_version" + end - Type of the trigger which caused this function invocation - - ### Notes + @doc namespace: :cloudevents + @doc """ + 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) - For the server/consumer span on the incoming side, - `faas.trigger` MUST be set. + iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_subject() + :"cloudevents.event_subject" + """ + @spec cloudevents_event_subject :: :"cloudevents.event_subject" + def cloudevents_event_subject do + :"cloudevents.event_subject" + end - Clients invoking FaaS instances usually cannot set `faas.trigger`, - since they would typically need to look in the payload to determine - the event type. If clients set it, it should be the same as the - trigger that corresponding incoming would have (i.e., this has - nothing to do with the underlying transport used to make the API - call to invoke the lambda, which is often HTTP) + @doc namespace: :cloudevents + @doc """ + 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 - iex> OpenTelemetry.SemanticConventions.Span.faas_trigger() - :"faas.trigger" + iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_type() + :"cloudevents.event_type" """ - - @spec faas_trigger :: :"faas.trigger" - def faas_trigger do - :"faas.trigger" + @spec cloudevents_event_type :: :"cloudevents.event_type" + def cloudevents_event_type do + :"cloudevents.event_type" end - @doc namespace: :faas - + @doc namespace: :opentracing @doc """ + Parent-child Reference type + ### Notes - Describes the type of the operation that was performed on the data + The causal relationship between a child Span and a parent Span - iex> OpenTelemetry.SemanticConventions.Span.faas_document_operation() - :"faas.document.operation" + iex> OpenTelemetry.SemanticConventions.Span.opentracing_ref_type() + :"opentracing.ref_type" """ - - @spec faas_document_operation :: :"faas.document.operation" - def faas_document_operation do - :"faas.document.operation" + @spec opentracing_ref_type :: :"opentracing.ref_type" + def opentracing_ref_type do + :"opentracing.ref_type" end - @doc namespace: :faas - + @doc namespace: :db @doc """ - - - The cloud provider of the invoked function + The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance ### Notes - SHOULD be equal to the `cloud.provider` resource attribute of the invoked function + If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) - iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_provider() - :"faas.invoked_provider" + iex> OpenTelemetry.SemanticConventions.Span.db_mssql_instance_name() + :"db.mssql.instance_name" """ - - @spec faas_invoked_provider :: :"faas.invoked_provider" - def faas_invoked_provider do - :"faas.invoked_provider" + @spec db_mssql_instance_name :: :"db.mssql.instance_name" + def db_mssql_instance_name do + :"db.mssql.instance_name" end - @doc namespace: :rpc - + @doc namespace: :db @doc """ + 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) + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_consistency_level() + :"db.cassandra.consistency_level" + """ + @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" + def db_cassandra_consistency_level do + :"db.cassandra.consistency_level" + end - The value `aws-api` + @doc namespace: :db + @doc """ + The data center of the coordinating node for a query - iex> OpenTelemetry.SemanticConventions.Span.rpc_system() - :"rpc.system" + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_coordinator_dc() + :"db.cassandra.coordinator.dc" """ - - @spec rpc_system :: :"rpc.system" - def rpc_system do - :"rpc.system" + @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" + def db_cassandra_coordinator_dc do + :"db.cassandra.coordinator.dc" end - @doc namespace: :graphql - + @doc namespace: :db @doc """ + The ID of the coordinating node for a query + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_coordinator_id() + :"db.cassandra.coordinator.id" + """ + @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" + def db_cassandra_coordinator_id do + :"db.cassandra.coordinator.id" + end - The type of the operation being executed + @doc namespace: :db + @doc """ + Whether or not the query is idempotent - iex> OpenTelemetry.SemanticConventions.Span.graphql_operation_type() - :"graphql.operation.type" + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_idempotence() + :"db.cassandra.idempotence" """ - - @spec graphql_operation_type :: :"graphql.operation.type" - def graphql_operation_type do - :"graphql.operation.type" + @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" + def db_cassandra_idempotence do + :"db.cassandra.idempotence" end - @doc namespace: :messaging + @doc namespace: :db + @doc """ + The fetch size used for paging, i.e. how many rows will be returned at once + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_page_size() + :"db.cassandra.page_size" + """ + @spec db_cassandra_page_size :: :"db.cassandra.page_size" + def db_cassandra_page_size do + :"db.cassandra.page_size" + end + + @doc namespace: :db @doc """ + The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_speculative_execution_count() + :"db.cassandra.speculative_execution_count" + """ + @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" + def db_cassandra_speculative_execution_count do + :"db.cassandra.speculative_execution_count" + end - A string identifying the kind of messaging operation + @doc namespace: :db + @doc """ + The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) ### Notes - If a custom value is used, it MUST be of low cardinality + This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value **MUST NOT** be set - iex> OpenTelemetry.SemanticConventions.Span.messaging_operation() - :"messaging.operation" + iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_table() + :"db.cassandra.table" """ - - @spec messaging_operation :: :"messaging.operation" - def messaging_operation do - :"messaging.operation" + @spec db_cassandra_table :: :"db.cassandra.table" + def db_cassandra_table do + :"db.cassandra.table" end - @doc namespace: :network - + @doc namespace: :db @doc """ + The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute + iex> OpenTelemetry.SemanticConventions.Span.db_redis_database_index() + :"db.redis.database_index" + """ + @spec db_redis_database_index :: :"db.redis.database_index" + def db_redis_database_index do + :"db.redis.database_index" + end + @doc namespace: :db + @doc """ + The MongoDB collection being accessed within the database stated in `db.name` + + iex> OpenTelemetry.SemanticConventions.Span.db_mongodb_collection() + :"db.mongodb.collection" + """ + @spec db_mongodb_collection :: :"db.mongodb.collection" + def db_mongodb_collection do + :"db.mongodb.collection" + end + + @doc namespace: :http + @doc """ + HTTP request method + + ### Notes + + HTTP request method value **SHOULD** be "known" to the instrumentation. + By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) + and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). + + If the HTTP request method is not known to instrumentation, it **MUST** set the `http.request.method` attribute to `_OTHER`. + + If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it **MUST** provide a way to override + the list of known HTTP methods. If this override is done via environment variable, then the environment variable **MUST** be named + OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods + (this list **MUST** be a full override of the default known method, it is not a list of known methods in addition to the defaults). + + HTTP method names are case-sensitive and `http.request.method` attribute value **MUST** match a known HTTP method name exactly. + Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. + Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value + + iex> OpenTelemetry.SemanticConventions.Span.http_request_method() + :"http.request.method" + """ + @spec http_request_method :: :"http.request.method" + def http_request_method do + :"http.request.method" + end + + @doc namespace: :url + @doc """ + Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) + + ### Notes + + For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it **SHOULD** be included nevertheless. + `url.full` **MUST NOT** contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password **SHOULD** be redacted and attribute's value **SHOULD** be `https://REDACTED:REDACTED@www.example.com/`. + `url.full` **SHOULD** capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` **SHOULD** be scrubbed when instrumentations can identify it + + iex> OpenTelemetry.SemanticConventions.Span.url_full() + :"url.full" + """ + @spec url_full :: :"url.full" + def url_full do + :"url.full" + end + + @doc namespace: :db + @doc """ + Represents the identifier of an Elasticsearch cluster + + iex> OpenTelemetry.SemanticConventions.Span.db_elasticsearch_cluster_name() + :"db.elasticsearch.cluster.name" + """ + @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" + def db_elasticsearch_cluster_name do + :"db.elasticsearch.cluster.name" + end + + @doc namespace: :db + @doc """ + Cosmos client connection mode + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_connection_mode() + :"db.cosmosdb.connection_mode" + """ + @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" + def db_cosmosdb_connection_mode do + :"db.cosmosdb.connection_mode" + end + + @doc namespace: :db + @doc """ + Cosmos DB container name + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_container() + :"db.cosmosdb.container" + """ + @spec db_cosmosdb_container :: :"db.cosmosdb.container" + def db_cosmosdb_container do + :"db.cosmosdb.container" + end + + @doc namespace: :db + @doc """ + CosmosDB Operation Type + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_operation_type() + :"db.cosmosdb.operation_type" + """ + @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" + def db_cosmosdb_operation_type do + :"db.cosmosdb.operation_type" + end + + @doc namespace: :db + @doc """ + RU consumed for that operation + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_request_charge() + :"db.cosmosdb.request_charge" + """ + @spec db_cosmosdb_request_charge :: :"db.cosmosdb.request_charge" + def db_cosmosdb_request_charge do + :"db.cosmosdb.request_charge" + end + + @doc namespace: :db + @doc """ + Cosmos DB status code + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_status_code() + :"db.cosmosdb.status_code" + """ + @spec db_cosmosdb_status_code :: :"db.cosmosdb.status_code" + def db_cosmosdb_status_code do + :"db.cosmosdb.status_code" + end + + @doc namespace: :db + @doc """ + Cosmos DB sub status code + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_sub_status_code() + :"db.cosmosdb.sub_status_code" + """ + @spec db_cosmosdb_sub_status_code :: :"db.cosmosdb.sub_status_code" + def db_cosmosdb_sub_status_code do + :"db.cosmosdb.sub_status_code" + end + + @doc namespace: :db + @doc """ + Unique Cosmos client instance id + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_client_id() + :"db.cosmosdb.client_id" + """ + @spec db_cosmosdb_client_id :: :"db.cosmosdb.client_id" + def db_cosmosdb_client_id do + :"db.cosmosdb.client_id" + end + + @doc namespace: :db + @doc """ + Request payload size in bytes + + iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_request_content_length() + :"db.cosmosdb.request_content_length" + """ + @spec db_cosmosdb_request_content_length :: :"db.cosmosdb.request_content_length" + def db_cosmosdb_request_content_length do + :"db.cosmosdb.request_content_length" + end + + @doc namespace: :user_agent + @doc """ + Full user-agent string is generated by Cosmos DB SDK + + ### Notes + + The user-agent value is generated by SDK which is a combination of
`sdk_version` : Current version of SDK. e.g. 'cosmos-netstandard-sdk/3.23.0'
`direct_pkg_version` : Direct package version used by Cosmos DB SDK. e.g. '3.23.1'
`number_of_client_instances` : Number of cosmos client instances created by the application. e.g. '1'
`type_of_machine_architecture` : Machine architecture. e.g. 'X64'
`operating_system` : Operating System. e.g. 'Linux 5.4.0-1098-azure 104 18'
`runtime_framework` : Runtime Framework. e.g. '.NET Core 3.1.32'
`failover_information` : Generated key to determine if region failover enabled. + Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it). + Default value is "NS" + + iex> OpenTelemetry.SemanticConventions.Span.user_agent_original() + :"user_agent.original" + """ + @spec user_agent_original :: :"user_agent.original" + def user_agent_original do + :"user_agent.original" + end + + @doc namespace: :otel + @doc """ + Name of the code, either "OK" or "ERROR". **MUST NOT** be set if the status code is UNSET + + iex> OpenTelemetry.SemanticConventions.Span.otel_status_code() + :"otel.status_code" + """ + @spec otel_status_code :: :"otel.status_code" + def otel_status_code do + :"otel.status_code" + end + + @doc namespace: :otel + @doc """ + Description of the Status if it has a value, otherwise not set + + iex> OpenTelemetry.SemanticConventions.Span.otel_status_description() + :"otel.status_description" + """ + @spec otel_status_description :: :"otel.status_description" + def otel_status_description do + :"otel.status_description" + end + + @doc namespace: :faas + @doc """ + The invocation ID of the current function invocation + + iex> OpenTelemetry.SemanticConventions.Span.faas_invocation_id() + :"faas.invocation_id" + """ + @spec faas_invocation_id :: :"faas.invocation_id" + def faas_invocation_id do + :"faas.invocation_id" + end + + @doc namespace: :faas + @doc """ + Type of the trigger which caused this function invocation + + ### Notes + + For the server/consumer span on the incoming side, + `faas.trigger` **MUST** be set. + + Clients invoking FaaS instances usually cannot set `faas.trigger`, + since they would typically need to look in the payload to determine + the event type. If clients set it, it should be the same as the + trigger that corresponding incoming would have (i.e., this has + nothing to do with the underlying transport used to make the API + call to invoke the lambda, which is often HTTP) + + iex> OpenTelemetry.SemanticConventions.Span.faas_trigger() + :"faas.trigger" + """ + @spec faas_trigger :: :"faas.trigger" + def faas_trigger do + :"faas.trigger" + end + + @doc namespace: :faas + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Span.faas_document_collection() + :"faas.document.collection" + """ + @spec faas_document_collection :: :"faas.document.collection" + def faas_document_collection do + :"faas.document.collection" + end + + @doc namespace: :faas + @doc """ + Describes the type of the operation that was performed on the data + + iex> OpenTelemetry.SemanticConventions.Span.faas_document_operation() + :"faas.document.operation" + """ + @spec faas_document_operation :: :"faas.document.operation" + def faas_document_operation do + :"faas.document.operation" + end + + @doc namespace: :faas + @doc """ + 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 + + iex> OpenTelemetry.SemanticConventions.Span.faas_document_name() + :"faas.document.name" + """ + @spec faas_document_name :: :"faas.document.name" + def faas_document_name do + :"faas.document.name" + end + + @doc namespace: :faas + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Span.faas_document_time() + :"faas.document.time" + """ + @spec faas_document_time :: :"faas.document.time" + def faas_document_time do + :"faas.document.time" + end + + @doc namespace: :faas + @doc """ + A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) + + iex> OpenTelemetry.SemanticConventions.Span.faas_cron() + :"faas.cron" + """ + @spec faas_cron :: :"faas.cron" + def faas_cron do + :"faas.cron" + end + + @doc namespace: :faas + @doc """ + 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) + + iex> OpenTelemetry.SemanticConventions.Span.faas_time() + :"faas.time" + """ + @spec faas_time :: :"faas.time" + def faas_time do + :"faas.time" + end + + @doc namespace: :faas + @doc """ + A boolean that is true if the serverless function is executed for the first time (aka cold-start) + + iex> OpenTelemetry.SemanticConventions.Span.faas_coldstart() + :"faas.coldstart" + """ + @spec faas_coldstart :: :"faas.coldstart" + def faas_coldstart do + :"faas.coldstart" + end + + @doc namespace: :faas + @doc """ + The name of the invoked function + + ### Notes + + **SHOULD** be equal to the `faas.name` resource attribute of the invoked function + + iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_name() + :"faas.invoked_name" + """ + @spec faas_invoked_name :: :"faas.invoked_name" + def faas_invoked_name do + :"faas.invoked_name" + end + + @doc namespace: :faas + @doc """ + The cloud provider of the invoked function + + ### Notes + + **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function + + iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_provider() + :"faas.invoked_provider" + """ + @spec faas_invoked_provider :: :"faas.invoked_provider" + def faas_invoked_provider do + :"faas.invoked_provider" + end + + @doc namespace: :faas + @doc """ + The cloud region of the invoked function + + ### Notes + + **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function + + iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_region() + :"faas.invoked_region" + """ + @spec faas_invoked_region :: :"faas.invoked_region" + def faas_invoked_region do + :"faas.invoked_region" + end + + @doc namespace: :http + @doc """ + The ordinal number of request resending attempt (for any reason, including redirects) + + ### Notes + + The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) + + iex> OpenTelemetry.SemanticConventions.Span.http_request_resend_count() + :"http.request.resend_count" + """ + @spec http_request_resend_count :: :"http.request.resend_count" + def http_request_resend_count do + :"http.request.resend_count" + end + + @doc namespace: :url + @doc """ + The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol + + iex> OpenTelemetry.SemanticConventions.Span.url_scheme() + :"url.scheme" + """ + @spec url_scheme :: :"url.scheme" + def url_scheme do + :"url.scheme" + end + + @doc namespace: :url + @doc """ + The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component + + ### Notes + + Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it + + iex> OpenTelemetry.SemanticConventions.Span.url_path() + :"url.path" + """ + @spec url_path :: :"url.path" + def url_path do + :"url.path" + end + + @doc namespace: :http + @doc """ + The matched route, that is, the path template in the format used by the respective server framework + + ### Notes + + **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. + **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one + + iex> OpenTelemetry.SemanticConventions.Span.http_route() + :"http.route" + """ + @spec http_route :: :"http.route" + def http_route do + :"http.route" + end + + @doc namespace: :url + @doc """ + The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component + + ### Notes + + Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it + + iex> OpenTelemetry.SemanticConventions.Span.url_query() + :"url.query" + """ + @spec url_query :: :"url.query" + def url_query do + :"url.query" + end + + @doc namespace: :client + @doc """ + Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name + + ### Notes + + The IP address of the original client behind all proxies, if known (e.g. from [Forwarded#for](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded#for), [X-Forwarded-For](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-For), or a similar header). Otherwise, the immediate client peer address + + iex> OpenTelemetry.SemanticConventions.Span.client_address() + :"client.address" + """ + @spec client_address :: :"client.address" + def client_address do + :"client.address" + end + + @doc namespace: :client + @doc """ + The port of whichever client was captured in `client.address` + + ### Notes + + When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available + + iex> OpenTelemetry.SemanticConventions.Span.client_port() + :"client.port" + """ + @spec client_port :: :"client.port" + def client_port do + :"client.port" + end + + @doc namespace: :network + @doc """ + Local socket address. Useful in case of a multi-IP host + + iex> OpenTelemetry.SemanticConventions.Span.network_local_address() + :"network.local.address" + """ + @spec network_local_address :: :"network.local.address" + def network_local_address do + :"network.local.address" + end + + @doc namespace: :network + @doc """ + Local socket port. Useful in case of a multi-port host + + iex> OpenTelemetry.SemanticConventions.Span.network_local_port() + :"network.local.port" + """ + @spec network_local_port :: :"network.local.port" + def network_local_port do + :"network.local.port" + end + + @doc namespace: :rpc + @doc """ + The value `aws-api` + + iex> OpenTelemetry.SemanticConventions.Span.rpc_system() + :"rpc.system" + """ + @spec rpc_system :: :"rpc.system" + def rpc_system do + :"rpc.system" + end + + @doc namespace: :aws + @doc """ + The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid` + + iex> OpenTelemetry.SemanticConventions.Span.aws_request_id() + :"aws.request_id" + """ + @spec aws_request_id :: :"aws.request_id" + def aws_request_id do + :"aws.request_id" + end + + @doc namespace: :rpc + @doc """ + The name of the operation corresponding to the request, as returned by the AWS SDK + + ### Notes + + This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) + + iex> OpenTelemetry.SemanticConventions.Span.rpc_method() + :"rpc.method" + """ + @spec rpc_method :: :"rpc.method" + def rpc_method do + :"rpc.method" + end + + @doc namespace: :rpc + @doc """ + The name of the service to which a request is made, as returned by the AWS SDK + + ### Notes + + This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) + + iex> OpenTelemetry.SemanticConventions.Span.rpc_service() + :"rpc.service" + """ + @spec rpc_service :: :"rpc.service" + def rpc_service do + :"rpc.service" + end + + @doc namespace: :aws + @doc """ + The value of the `AttributesToGet` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_attributes_to_get() + :"aws.dynamodb.attributes_to_get" + """ + @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" + def aws_dynamodb_attributes_to_get do + :"aws.dynamodb.attributes_to_get" + end + + @doc namespace: :aws + @doc """ + The value of the `ConsistentRead` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_consistent_read() + :"aws.dynamodb.consistent_read" + """ + @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" + def aws_dynamodb_consistent_read do + :"aws.dynamodb.consistent_read" + end + + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item in the `ConsumedCapacity` response field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_consumed_capacity() + :"aws.dynamodb.consumed_capacity" + """ + @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" + def aws_dynamodb_consumed_capacity do + :"aws.dynamodb.consumed_capacity" + end + + @doc namespace: :aws + @doc """ + The value of the `IndexName` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_index_name() + :"aws.dynamodb.index_name" + """ + @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" + def aws_dynamodb_index_name do + :"aws.dynamodb.index_name" + end + + @doc namespace: :aws + @doc """ + The JSON-serialized value of the `ItemCollectionMetrics` response field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_item_collection_metrics() + :"aws.dynamodb.item_collection_metrics" + """ + @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" + def aws_dynamodb_item_collection_metrics do + :"aws.dynamodb.item_collection_metrics" + end + + @doc namespace: :aws + @doc """ + The value of the `Limit` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_limit() + :"aws.dynamodb.limit" + """ + @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" + def aws_dynamodb_limit do + :"aws.dynamodb.limit" + end + + @doc namespace: :aws + @doc """ + The value of the `ProjectionExpression` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_projection() + :"aws.dynamodb.projection" + """ + @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" + def aws_dynamodb_projection do + :"aws.dynamodb.projection" + end + + @doc namespace: :aws + @doc """ + The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_provisioned_read_capacity() + :"aws.dynamodb.provisioned_read_capacity" + """ + @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" + def aws_dynamodb_provisioned_read_capacity do + :"aws.dynamodb.provisioned_read_capacity" + end + + @doc namespace: :aws + @doc """ + The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_provisioned_write_capacity() + :"aws.dynamodb.provisioned_write_capacity" + """ + @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" + def aws_dynamodb_provisioned_write_capacity do + :"aws.dynamodb.provisioned_write_capacity" + end + + @doc namespace: :aws + @doc """ + The value of the `Select` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_select() + :"aws.dynamodb.select" + """ + @spec aws_dynamodb_select :: :"aws.dynamodb.select" + def aws_dynamodb_select do + :"aws.dynamodb.select" + end + + @doc namespace: :aws + @doc """ + The keys in the `RequestItems` object field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_table_names() + :"aws.dynamodb.table_names" + """ + @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" + def aws_dynamodb_table_names do + :"aws.dynamodb.table_names" + end + + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_global_secondary_indexes() + :"aws.dynamodb.global_secondary_indexes" + """ + @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" + def aws_dynamodb_global_secondary_indexes do + :"aws.dynamodb.global_secondary_indexes" + end + + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_local_secondary_indexes() + :"aws.dynamodb.local_secondary_indexes" + """ + @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" + def aws_dynamodb_local_secondary_indexes do + :"aws.dynamodb.local_secondary_indexes" + end + + @doc namespace: :aws + @doc """ + The value of the `ExclusiveStartTableName` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_exclusive_start_table() + :"aws.dynamodb.exclusive_start_table" + """ + @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" + def aws_dynamodb_exclusive_start_table do + :"aws.dynamodb.exclusive_start_table" + end + + @doc namespace: :aws + @doc """ + The number of items in the `TableNames` response parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_table_count() + :"aws.dynamodb.table_count" + """ + @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" + def aws_dynamodb_table_count do + :"aws.dynamodb.table_count" + end + + @doc namespace: :aws + @doc """ + The value of the `ScanIndexForward` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_scan_forward() + :"aws.dynamodb.scan_forward" + """ + @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" + def aws_dynamodb_scan_forward do + :"aws.dynamodb.scan_forward" + end + + @doc namespace: :aws + @doc """ + The value of the `Count` response parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_count() + :"aws.dynamodb.count" + """ + @spec aws_dynamodb_count :: :"aws.dynamodb.count" + def aws_dynamodb_count do + :"aws.dynamodb.count" + end + + @doc namespace: :aws + @doc """ + The value of the `ScannedCount` response parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_scanned_count() + :"aws.dynamodb.scanned_count" + """ + @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" + def aws_dynamodb_scanned_count do + :"aws.dynamodb.scanned_count" + end + + @doc namespace: :aws + @doc """ + The value of the `Segment` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_segment() + :"aws.dynamodb.segment" + """ + @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" + def aws_dynamodb_segment do + :"aws.dynamodb.segment" + end + + @doc namespace: :aws + @doc """ + The value of the `TotalSegments` request parameter + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_total_segments() + :"aws.dynamodb.total_segments" + """ + @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" + def aws_dynamodb_total_segments do + :"aws.dynamodb.total_segments" + end + + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item in the `AttributeDefinitions` request field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_attribute_definitions() + :"aws.dynamodb.attribute_definitions" + """ + @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" + def aws_dynamodb_attribute_definitions do + :"aws.dynamodb.attribute_definitions" + end + + @doc namespace: :aws + @doc """ + The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field + + iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_global_secondary_index_updates() + :"aws.dynamodb.global_secondary_index_updates" + """ + @spec aws_dynamodb_global_secondary_index_updates :: + :"aws.dynamodb.global_secondary_index_updates" + def aws_dynamodb_global_secondary_index_updates do + :"aws.dynamodb.global_secondary_index_updates" + end + + @doc namespace: :aws + @doc """ + 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 + + ### Notes + + 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` + + iex> OpenTelemetry.SemanticConventions.Span.aws_s3_bucket() + :"aws.s3.bucket" + """ + @spec aws_s3_bucket :: :"aws.s3.bucket" + def aws_s3_bucket do + :"aws.s3.bucket" + end + + @doc namespace: :aws + @doc """ + The source object (in the form `bucket`/`key`) for the copy operation + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Span.aws_s3_copy_source() + :"aws.s3.copy_source" + """ + @spec aws_s3_copy_source :: :"aws.s3.copy_source" + def aws_s3_copy_source do + :"aws.s3.copy_source" + end + + @doc namespace: :aws + @doc """ + The delete request container that specifies the objects to be deleted + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Span.aws_s3_delete() + :"aws.s3.delete" + """ + @spec aws_s3_delete :: :"aws.s3.delete" + def aws_s3_delete do + :"aws.s3.delete" + end + + @doc namespace: :aws + @doc """ + 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 + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Span.aws_s3_key() + :"aws.s3.key" + """ + @spec aws_s3_key :: :"aws.s3.key" + def aws_s3_key do + :"aws.s3.key" + end + + @doc namespace: :aws + @doc """ + The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000 + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Span.aws_s3_part_number() + :"aws.s3.part_number" + """ + @spec aws_s3_part_number :: :"aws.s3.part_number" + def aws_s3_part_number do + :"aws.s3.part_number" + end + + @doc namespace: :aws + @doc """ + Upload ID that identifies the multipart upload + + ### Notes + + 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) + + iex> OpenTelemetry.SemanticConventions.Span.aws_s3_upload_id() + :"aws.s3.upload_id" + """ + @spec aws_s3_upload_id :: :"aws.s3.upload_id" + def aws_s3_upload_id do + :"aws.s3.upload_id" + end + + @doc namespace: :graphql + @doc """ + The GraphQL document being executed + + ### Notes + + The value may be sanitized to exclude sensitive information + + iex> OpenTelemetry.SemanticConventions.Span.graphql_document() + :"graphql.document" + """ + @spec graphql_document :: :"graphql.document" + def graphql_document do + :"graphql.document" + end + + @doc namespace: :graphql + @doc """ + The name of the operation being executed + + iex> OpenTelemetry.SemanticConventions.Span.graphql_operation_name() + :"graphql.operation.name" + """ + @spec graphql_operation_name :: :"graphql.operation.name" + def graphql_operation_name do + :"graphql.operation.name" + end + + @doc namespace: :graphql + @doc """ + The type of the operation being executed + + iex> OpenTelemetry.SemanticConventions.Span.graphql_operation_type() + :"graphql.operation.type" + """ + @spec graphql_operation_type :: :"graphql.operation.type" + def graphql_operation_type do + :"graphql.operation.type" + end + + @doc namespace: :messaging + @doc """ + A string identifying the kind of messaging operation + + ### Notes + + If a custom value is used, it **MUST** be of low cardinality + + iex> OpenTelemetry.SemanticConventions.Span.messaging_operation() + :"messaging.operation" + """ + @spec messaging_operation :: :"messaging.operation" + def messaging_operation do + :"messaging.operation" + end + + @doc namespace: :messaging + @doc """ + The number of messages sent, received, or processed in the scope of the batching operation + + ### Notes + + Instrumentations **SHOULD NOT** set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations **SHOULD** use `messaging.batch.message_count` for batching APIs and **SHOULD NOT** use it for single-message APIs + + iex> OpenTelemetry.SemanticConventions.Span.messaging_batch_message_count() + :"messaging.batch.message_count" + """ + @spec messaging_batch_message_count :: :"messaging.batch.message_count" + def messaging_batch_message_count do + :"messaging.batch.message_count" + end + + @doc namespace: :messaging + @doc """ + A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) + + iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_anonymous() + :"messaging.destination.anonymous" + """ + @spec messaging_destination_anonymous :: :"messaging.destination.anonymous" + def messaging_destination_anonymous do + :"messaging.destination.anonymous" + end + + @doc namespace: :messaging + @doc """ + The message destination name + + ### Notes + + Destination name **SHOULD** uniquely identify a specific queue, topic or other entity within the broker. If + the broker doesn't have such notion, the destination name **SHOULD** uniquely identify the broker + + iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_name() + :"messaging.destination.name" + """ + @spec messaging_destination_name :: :"messaging.destination.name" + def messaging_destination_name do + :"messaging.destination.name" + end + + @doc namespace: :messaging + @doc """ + Low cardinality representation of the messaging destination name + + ### Notes + + Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation + + iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_template() + :"messaging.destination.template" + """ + @spec messaging_destination_template :: :"messaging.destination.template" + def messaging_destination_template do + :"messaging.destination.template" + end + + @doc namespace: :messaging + @doc """ + A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed + + iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_temporary() + :"messaging.destination.temporary" + """ + @spec messaging_destination_temporary :: :"messaging.destination.temporary" + def messaging_destination_temporary do + :"messaging.destination.temporary" + end + + @doc namespace: :messaging + @doc """ + A unique identifier for the client that consumes or produces a message + + iex> OpenTelemetry.SemanticConventions.Span.messaging_client_id() + :"messaging.client_id" + """ + @spec messaging_client_id :: :"messaging.client_id" + def messaging_client_id do + :"messaging.client_id" + end + + @doc namespace: :messaging + @doc """ + The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` + + iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_partition_id() + :"messaging.destination.partition.id" + """ + @spec messaging_destination_partition_id :: :"messaging.destination.partition.id" + def messaging_destination_partition_id do + :"messaging.destination.partition.id" + end + + @doc namespace: :messaging + @doc """ + The size of the message body in bytes + + ### Notes + + This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed + body size should be used + + iex> OpenTelemetry.SemanticConventions.Span.messaging_message_body_size() + :"messaging.message.body.size" + """ + @spec messaging_message_body_size :: :"messaging.message.body.size" + def messaging_message_body_size do + :"messaging.message.body.size" + end + + @doc namespace: :messaging + @doc """ + The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" + + iex> OpenTelemetry.SemanticConventions.Span.messaging_message_conversation_id() + :"messaging.message.conversation_id" + """ + @spec messaging_message_conversation_id :: :"messaging.message.conversation_id" + def messaging_message_conversation_id do + :"messaging.message.conversation_id" + end + + @doc namespace: :messaging + @doc """ + The size of the message body and metadata in bytes + + ### Notes + + This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed + size should be used + + iex> OpenTelemetry.SemanticConventions.Span.messaging_message_envelope_size() + :"messaging.message.envelope.size" + """ + @spec messaging_message_envelope_size :: :"messaging.message.envelope.size" + def messaging_message_envelope_size do + :"messaging.message.envelope.size" + end + + @doc namespace: :messaging + @doc """ + A value used by the messaging system as an identifier for the message, represented as a string + + iex> OpenTelemetry.SemanticConventions.Span.messaging_message_id() + :"messaging.message.id" + """ + @spec messaging_message_id :: :"messaging.message.id" + def messaging_message_id do + :"messaging.message.id" + end + + @doc namespace: :network + @doc """ [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) ### Notes - The value SHOULD be normalized to lowercase. + The value **SHOULD** be normalized to lowercase. Consider always setting the transport when setting a port number, since a port number is ambiguous without knowing the transport. For example @@ -952,59 +2183,94 @@ defmodule OpenTelemetry.SemanticConventions.Span do iex> OpenTelemetry.SemanticConventions.Span.network_transport() :"network.transport" """ - @spec network_transport :: :"network.transport" def network_transport do :"network.transport" end @doc namespace: :network - @doc """ - - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent ### Notes - The value SHOULD be normalized to lowercase + The value **SHOULD** be normalized to lowercase iex> OpenTelemetry.SemanticConventions.Span.network_type() :"network.type" """ - @spec network_type :: :"network.type" def network_type do :"network.type" end @doc namespace: :rpc - @doc """ - - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request iex> OpenTelemetry.SemanticConventions.Span.rpc_grpc_status_code() :"rpc.grpc.status_code" """ - @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" def rpc_grpc_status_code do :"rpc.grpc.status_code" end @doc namespace: :rpc + @doc """ + `error.code` property of response if it is an error response + + iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_error_code() + :"rpc.jsonrpc.error_code" + """ + @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" + def rpc_jsonrpc_error_code do + :"rpc.jsonrpc.error_code" + end + + @doc namespace: :rpc + @doc """ + Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted + + iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_version() + :"rpc.jsonrpc.version" + """ + @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" + def rpc_jsonrpc_version do + :"rpc.jsonrpc.version" + end + + @doc namespace: :rpc + @doc """ + `error.message` property of response if it is an error response + + iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_error_message() + :"rpc.jsonrpc.error_message" + """ + @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" + def rpc_jsonrpc_error_message do + :"rpc.jsonrpc.error_message" + end + @doc namespace: :rpc @doc """ + `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification + iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_request_id() + :"rpc.jsonrpc.request_id" + """ + @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" + def rpc_jsonrpc_request_id do + :"rpc.jsonrpc.request_id" + end + @doc namespace: :rpc + @doc """ The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values iex> OpenTelemetry.SemanticConventions.Span.rpc_connect_rpc_error_code() :"rpc.connect_rpc.error_code" """ - @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" def rpc_connect_rpc_error_code do :"rpc.connect_rpc.error_code" diff --git a/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 index 96a454ba..d11bc856 100644 --- a/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 @@ -19,6 +19,9 @@ {%- macro excluded_namespaces() -%} ('android', 'aspnetcore', 'cloud', 'dotnet', 'ios', 'jvm', 'signalr') {%- endmacro -%} +{%- macro strong_reqs(string) -%} + {{ string | regex_replace(pattern="(? OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.{{ funcName(attribute.fqn) }}() :"{{ attribute.fqn }}" """ - {% endif %} + {%- endif %} @spec {{ funcName(attribute.fqn) }} :: {{ toAtom(attribute.fqn) }} def {{ funcName(attribute.fqn) }} do {{ toAtom(attribute.fqn) }} From 8f86370458ae3ad630ef9aa5561cebce65749622 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 20 Apr 2024 22:00:05 -0600 Subject: [PATCH 04/57] Switch to elixir script --- .../generate.sh | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100755 apps/opentelemetry_semantic_conventions/generate.sh diff --git a/apps/opentelemetry_semantic_conventions/generate.sh b/apps/opentelemetry_semantic_conventions/generate.sh deleted file mode 100755 index a0df414c..00000000 --- a/apps/opentelemetry_semantic_conventions/generate.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -set -ex - -semconv_version='1.25.0' -docker_img_vsn='0.24.0' -schema_uri=https://opentelemetry.io/schemas/$semconv_version - -tmp_dir=$(mktemp -d) -git clone https://github.com/open-telemetry/opentelemetry-specification.git $tmp_dir - -cwd=$(pwd) - -cd $tmp_dir - -git checkout "v${semconv_version}" - -ls -al - -for kind in trace resource logs metrics; do - echo "generating ${kind}" - echo $tmp_dir - docker run --rm \ - -v "${tmp_dir}/semantic-conventions/model/${kind}":/source \ - -v "${cwd}/templates":/templates \ - -v "${cwd}/include":/output \ - otel/semconvgen:${docker_img_vsn} \ - -f /source code \ - --template /templates/semantic_conventions.hrl.j2 \ - --output /output/${kind}.hrl \ - -Dmodule=${kind} \ - -Dschema_uri=${schema_uri} - - docker run --rm \ - -v "${tmp_dir}/semantic-conventions/model/${kind}":/source \ - -v "${cwd}/templates":/templates \ - -v "${cwd}/lib/open_telemetry/semantic_conventions":/output \ - otel/semconvgen:${docker_img_vsn} \ - -f /source code \ - --template /templates/semantic_conventions.ex.j2 \ - --output /output/${kind}.ex \ - -Dmodule=${kind} \ - -Dschema_uri=${schema_uri} -done From 1bd8c7b2fabe497283435e7b3263c00df598cc26 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 20 Apr 2024 22:07:17 -0600 Subject: [PATCH 05/57] Format generate --- .../generate.exs | 47 +++++++++---------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs index 0903e008..d5fba268 100644 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -47,30 +47,29 @@ for kind <- ["metric", "attribute_group", "resource", "span", "event"] do # erlang Task.async(fn -> - - System.cmd("docker", [ - "run", - "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/templates", - "-v", - "#{cwd}/include:/output", - "otel/semconvgen:#{docker_img_vsn}", - "--only", - kind, - "--yaml-root", - "/source", - "code", - "--template", - "/templates/semantic_attributes.hrl.j2", - "--output", - "/output/#{module}.hrl", - "-Dmodule=#{module}", - "-Dschema_uri=#{schema_uri}" - ]) - end) + System.cmd("docker", [ + "run", + "--rm", + "-v", + "#{build_dir}/model:/source", + "-v", + "#{cwd}/templates:/templates", + "-v", + "#{cwd}/include:/output", + "otel/semconvgen:#{docker_img_vsn}", + "--only", + kind, + "--yaml-root", + "/source", + "code", + "--template", + "/templates/semantic_attributes.hrl.j2", + "--output", + "/output/#{module}.hrl", + "-Dmodule=#{module}", + "-Dschema_uri=#{schema_uri}" + ]) + end) end |> List.flatten() |> Task.await_many(:timer.minutes(5)) From 11177ef06b799a8f8048d332b46ff1801c368e4d Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Apr 2024 10:04:23 -0600 Subject: [PATCH 06/57] Update README.md --- apps/opentelemetry_semantic_conventions/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 600b9284..958851d2 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -25,3 +25,12 @@ You could also use `OpenTelemetry.SemanticConventions.Logs`, `OpenTelemetry.Sema iex> OpenTelemetry.SemanticConventions.Logs.event_name() :"event.name" + +## Contribution + +The semantic conventions are auto-generated from the definitions in +[OpenTelemetry Semantic +Conventions](https://github.com/open-telemetry/semantic-conventions) repository. +To generate the file, execute the generator by invoking `elixir generate.exs` in the +root of this folder. The definitions version to be generated is set in the `generate.exs` +file. From a80626c24eea81da518e7d191fa2eadb20e7c9cc Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 13:01:12 -0600 Subject: [PATCH 07/57] Pre-enum rework with weaver --- .../.gitignore | 1 + .../generate.exs | 135 +- .../lib/common.ex | 5604 ----------------- .../lib/event.ex | 195 - .../lib/metric.ex | 800 --- .../lib/resource.ex | 1585 ----- .../lib/span.ex | 2278 ------- .../registry/elixir/semantic_attributes.ex.j2 | 113 + .../templates/registry/elixir/weaver.yaml | 91 + .../erlang}/semantic_attributes.hrl.j2 | 0 .../templates/semantic_attributes.ex.j2 | 93 - 11 files changed, 272 insertions(+), 10623 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/lib/common.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/event.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/metric.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/resource.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/span.ex create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml rename apps/opentelemetry_semantic_conventions/templates/{ => registry/erlang}/semantic_attributes.hrl.j2 (100%) delete mode 100644 apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 diff --git a/apps/opentelemetry_semantic_conventions/.gitignore b/apps/opentelemetry_semantic_conventions/.gitignore index 80316eb7..bc9ab70d 100644 --- a/apps/opentelemetry_semantic_conventions/.gitignore +++ b/apps/opentelemetry_semantic_conventions/.gitignore @@ -18,3 +18,4 @@ _build rebar3.crashdump *~ deps +semtmp diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs index d5fba268..ddf3a02e 100644 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -1,80 +1,79 @@ -semconv_version = "1.25.0" -docker_img_vsn = "0.24.0" +semconv_version = "1.26.0" +docker_img_vsn = "0.5.0" schema_uri = "https://opentelemetry.io/schemas/#{semconv_version}" -build_dir = System.cmd("mktemp", ["-d"]) |> elem(0) |> String.trim() +# build_dir = System.cmd("mktemp", ["-d"]) |> elem(0) |> String.trim() +build_dir = "#{File.cwd!()}/semtmp" +# File.rm_rf!(build_dir) -System.cmd("git", [ - "clone", - "https://github.com/open-telemetry/semantic-conventions.git", - build_dir -]) +# System.cmd("git", [ +# "clone", +# "https://github.com/open-telemetry/semantic-conventions.git", +# build_dir +# ]) cwd = File.cwd!() -File.cd!(build_dir, fn -> - System.cmd("git", ["checkout", "v#{semconv_version}"]) -end) +# File.cd!(build_dir, fn -> +# System.cmd("git", ["pull"]) +# System.cmd("git", ["checkout", "v#{semconv_version}"]) +# end) + +# for kind <- ["metric", "attribute_group", "resource", "span", "event"] do +# module = if kind == "attribute_group", do: "common", else: kind -for kind <- ["metric", "attribute_group", "resource", "span", "event"] do - module = if kind == "attribute_group", do: "common", else: kind +# elixir +# Task.async(fn -> +System.cmd("docker", [ + "run", + # "--rm", + "-v", + "#{build_dir}:/source", + "-v", + "#{cwd}/templates:/weaver/templates", + "-v", + "#{cwd}/lib:/output", + "local-weaver", + # "otel/weaver:#{docker_img_vsn}", + "registry", + "generate", + "--registry=/source/model", + "--templates=/weaver/templates", + "elixir", + "/output/" +]) - # elixir - Task.async(fn -> - System.cmd("docker", [ - "run", - "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/templates", - "-v", - "#{cwd}/lib:/output", - "otel/semconvgen:#{docker_img_vsn}", - "--only", - kind, - "--yaml-root", - "/source", - "code", - "--template", - "/templates/semantic_attributes.ex.j2", - "--output", - "/output/#{module}.ex", - "-Dmodule=#{module}", - "-Dschema_uri=#{schema_uri}" - ]) - end) +# end) - # erlang - Task.async(fn -> - System.cmd("docker", [ - "run", - "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/templates", - "-v", - "#{cwd}/include:/output", - "otel/semconvgen:#{docker_img_vsn}", - "--only", - kind, - "--yaml-root", - "/source", - "code", - "--template", - "/templates/semantic_attributes.hrl.j2", - "--output", - "/output/#{module}.hrl", - "-Dmodule=#{module}", - "-Dschema_uri=#{schema_uri}" - ]) - end) -end -|> List.flatten() -|> Task.await_many(:timer.minutes(5)) +# erlang +# Task.async(fn -> +# System.cmd("docker", [ +# "run", +# "--rm", +# "-v", +# "#{build_dir}/model:/source", +# "-v", +# "#{cwd}/templates:/templates", +# "-v", +# "#{cwd}/include:/output", +# "otel/semconvgen:#{docker_img_vsn}", +# "--only", +# kind, +# "--yaml-root", +# "/source", +# "code", +# "--template", +# "/templates/semantic_attributes.hrl.j2", +# "--output", +# "/output/#{module}.hrl", +# "-Dmodule=#{module}", +# "-Dschema_uri=#{schema_uri}" +# ]) +# end) +# end) +# |> List.flatten() +# |> Task.await_many(:timer.minutes(5)) System.cmd("mix", ["format"]) System.cmd("mix", ["docs"]) - -File.rm_rf!(build_dir) +# diff --git a/apps/opentelemetry_semantic_conventions/lib/common.ex b/apps/opentelemetry_semantic_conventions/lib/common.ex deleted file mode 100644 index 4be63406..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/common.ex +++ /dev/null @@ -1,5604 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Common do - @moduledoc """ - OpenTelemetry Semantic Conventions for Attributes. - """ - - @doc namespace: :faas - @typedoc """ - The cloud provider of the invoked function - - ### Options - - * `:alibaba_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud - - * `:aws`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services - - * `:azure`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure - - * `:gcp`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform - - * `:tencent_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud - - """ - @type faas_invoked_provider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() - - @doc namespace: :faas - @typedoc """ - Type of the trigger which caused this function invocation - - ### Options - - * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write - - * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request - - * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system - - * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly - - * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - - """ - @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other - - @doc namespace: :http - @typedoc """ - HTTP request method - - ### Options - - * `:CONNECT` - CONNECT method - - * `:DELETE` - DELETE method - - * `:GET` - GET method - - * `:HEAD` - HEAD method - - * `:OPTIONS` - OPTIONS method - - * `:PATCH` - PATCH method - - * `:POST` - POST method - - * `:PUT` - PUT method - - * `:TRACE` - TRACE method - - * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of - - """ - @type http_request_method() :: - :CONNECT - | :DELETE - | :GET - | :HEAD - | :OPTIONS - | :PATCH - | :POST - | :PUT - | :TRACE - | :_OTHER - | atom() - - @doc namespace: :error - @typedoc """ - Describes a class of error the operation ended with - - ### Options - - * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value - - """ - @type error_type() :: :_OTHER | atom() - - @doc namespace: :log - @typedoc """ - The stream associated with the log. See below for a list of well-known values - - ### Options - - * `:stdout`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Logs from stdout stream - - * `:stderr`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Events from stderr stream - - """ - @type log_iostream() :: :stdout | :stderr - - @doc namespace: :messaging - @typedoc """ - An identifier for the messaging system being used. See below for a list of well-known identifiers - - ### Options - - * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ - - * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) - - * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid - - * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs - - * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus - - * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub - - * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service - - * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka - - * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ - - * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - - """ - @type messaging_system() :: - :activemq - | :aws_sqs - | :eventgrid - | :eventhubs - | :servicebus - | :gcp_pubsub - | :jms - | :kafka - | :rabbitmq - | :rocketmq - | atom() - - @doc namespace: :network - @typedoc """ - [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) - - ### Options - - * `:tcp` - TCP - - * `:udp` - UDP - - * `:pipe` - Named or anonymous pipe - - * `:unix` - Unix domain socket - - """ - @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() - - @doc namespace: :network - @typedoc """ - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent - - ### Options - - * `:ipv4` - IPv4 - - * `:ipv6` - IPv6 - - """ - @type network_type() :: :ipv4 | :ipv6 | atom() - - @doc namespace: :process - @typedoc """ - The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels - - ### Options - - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system - - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user - - * `:wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wait - - """ - @type process_cpu_state() :: :system | :user | :wait | atom() - - @doc namespace: :rpc - @typedoc """ - A string identifying the remoting system. See below for a list of well-known identifiers - - ### Options - - * `:grpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC - - * `:java_rmi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI - - * `:dotnet_wcf`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF - - * `:apache_dubbo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo - - * `:connect_rpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC - - """ - @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() - - @doc namespace: :system - @typedoc """ - The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels - - ### Options - - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user - - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system - - * `:nice`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - nice - - * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle - - * `:iowait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - iowait - - * `:interrupt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - interrupt - - * `:steal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - steal - - """ - @type system_cpu_state() :: - :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() - - @doc namespace: :system - @typedoc """ - The memory state - - ### Options - - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - - * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - * `:shared`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - shared - - * `:buffers`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - buffers - - * `:cached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cached - - """ - @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() - - @doc namespace: :system - @typedoc """ - The paging access direction - - ### Options - - * `:in`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - in - - * `:out`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out - - """ - @type system_paging_direction() :: :in | :out - - @doc namespace: :system - @typedoc """ - The memory paging state - - ### Options - - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - - * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - """ - @type system_paging_state() :: :used | :free - - @doc namespace: :system - @typedoc """ - The memory paging type - - ### Options - - * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major - - * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor - - """ - @type system_paging_type() :: :major | :minor - - @doc namespace: :system - @typedoc """ - The filesystem state - - ### Options - - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - - * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - * `:reserved`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - reserved - - """ - @type system_filesystem_state() :: :used | :free | :reserved - - @doc namespace: :system - @typedoc """ - The filesystem type - - ### Options - - * `:fat32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fat32 - - * `:exfat`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - exfat - - * `:ntfs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ntfs - - * `:refs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - refs - - * `:hfsplus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - hfsplus - - * `:ext4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ext4 - - """ - @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() - - @doc namespace: :system - @typedoc """ - A stateless protocol **MUST NOT** set this attribute - - ### Options - - * `:close`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close - - * `:close_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close_wait - - * `:closing`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - closing - - * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete - - * `:established`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - established - - * `:fin_wait_1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_1 - - * `:fin_wait_2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_2 - - * `:last_ack`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - last_ack - - * `:listen`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - listen - - * `:syn_recv`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_recv - - * `:syn_sent`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_sent - - * `:time_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - time_wait - - """ - @type system_network_state() :: - :close - | :close_wait - | :closing - | :delete - | :established - | :fin_wait_1 - | :fin_wait_2 - | :last_ack - | :listen - | :syn_recv - | :syn_sent - | :time_wait - - @doc namespace: :system - @typedoc """ - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - - ### Options - - * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running - - * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping - - * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped - - * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct - - """ - @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() - - @doc namespace: :network - @typedoc """ - This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection - - ### Options - - * `:gprs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GPRS - - * `:edge`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EDGE - - * `:umts`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UMTS - - * `:cdma`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA - - * `:evdo_0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rel. 0 - - * `:evdo_a`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. A - - * `:cdma2000_1xrtt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA2000 1XRTT - - * `:hsdpa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSDPA - - * `:hsupa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSUPA - - * `:hspa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPA - - * `:iden`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IDEN - - * `:evdo_b`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. B - - * `:lte`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE - - * `:ehrpd`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EHRPD - - * `:hspap`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPAP - - * `:gsm`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GSM - - * `:td_scdma`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - TD-SCDMA - - * `:iwlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IWLAN - - * `:nr`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NR (New Radio) - - * `:nrnsa`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) - - * `:lte_ca`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE CA - - """ - @type network_connection_subtype() :: - :gprs - | :edge - | :umts - | :cdma - | :evdo_0 - | :evdo_a - | :cdma2000_1xrtt - | :hsdpa - | :hsupa - | :hspa - | :iden - | :evdo_b - | :lte - | :ehrpd - | :hspap - | :gsm - | :td_scdma - | :iwlan - | :nr - | :nrnsa - | :lte_ca - | atom() - - @doc namespace: :network - @typedoc """ - The internet connection type - - ### Options - - * `:wifi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wifi - - * `:wired`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wired - - * `:cell`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cell - - * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable - - * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown - - """ - @type network_connection_type() :: :wifi | :wired | :cell | :unavailable | :unknown | atom() - - @doc namespace: :container - @typedoc """ - The CPU state for this data point - - ### Options - - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows) - - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) - - * `:kernel`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows) - - """ - @type container_cpu_state() :: :user | :system | :kernel | atom() - - @doc namespace: :db - @typedoc """ - 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) - - ### Options - - * `:all`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - all - - * `:each_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - each_quorum - - * `:quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - quorum - - * `:local_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_quorum - - * `:one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - one - - * `:two`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - two - - * `:three`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - three - - * `:local_one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_one - - * `:any`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - any - - * `:serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - serial - - * `:local_serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_serial - - """ - @type db_cassandra_consistency_level() :: - :all - | :each_quorum - | :quorum - | :local_quorum - | :one - | :two - | :three - | :local_one - | :any - | :serial - | :local_serial - - @doc namespace: :db - @typedoc """ - Cosmos client connection mode - - ### Options - - * `:gateway`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode - - * `:direct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection - - """ - @type db_cosmosdb_connection_mode() :: :gateway | :direct - - @doc namespace: :db - @typedoc """ - CosmosDB Operation Type - - ### Options - - * `:Invalid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid - - * `:Create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - create - - * `:Patch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - patch - - * `:Read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read - - * `:ReadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read_feed - - * `:Delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete - - * `:Replace`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - replace - - * `:Execute`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute - - * `:Query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query - - * `:Head`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head - - * `:HeadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head_feed - - * `:Upsert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - upsert - - * `:Batch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - batch - - * `:QueryPlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query_plan - - * `:ExecuteJavaScript`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute_javascript - - """ - @type db_cosmosdb_operation_type() :: - :Invalid - | :Create - | :Patch - | :Read - | :ReadFeed - | :Delete - | :Replace - | :Execute - | :Query - | :Head - | :HeadFeed - | :Upsert - | :Batch - | :QueryPlan - | :ExecuteJavaScript - | atom() - - @doc namespace: :db - @typedoc """ - An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers - - ### Options - - * `:other_sql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes - - * `:mssql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server - - * `:mssqlcompact`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact - - * `:mysql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL - - * `:oracle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database - - * `:db2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 - - * `:postgresql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL - - * `:redshift`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift - - * `:hive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive - - * `:cloudscape`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape - - * `:hsqldb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase - - * `:progress`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database - - * `:maxdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB - - * `:hanadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA - - * `:ingres`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres - - * `:firstsql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL - - * `:edb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB - - * `:cache`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché - - * `:adabas`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) - - * `:firebird`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird - - * `:derby`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby - - * `:filemaker`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker - - * `:informix`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix - - * `:instantdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB - - * `:interbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase - - * `:mariadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB - - * `:netezza`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza - - * `:pervasive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL - - * `:pointbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase - - * `:sqlite`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite - - * `:sybase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase - - * `:teradata`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata - - * `:vertica`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica - - * `:h2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 - - * `:coldfusion`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ - - * `:cassandra`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra - - * `:hbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase - - * `:mongodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB - - * `:redis`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis - - * `:couchbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase - - * `:couchdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB - - * `:cosmosdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB - - * `:dynamodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB - - * `:neo4j`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j - - * `:geode`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode - - * `:elasticsearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch - - * `:memcached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached - - * `:cockroachdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB - - * `:opensearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch - - * `:clickhouse`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse - - * `:spanner`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner - - * `:trino`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino - - """ - @type db_system() :: - :other_sql - | :mssql - | :mssqlcompact - | :mysql - | :oracle - | :db2 - | :postgresql - | :redshift - | :hive - | :cloudscape - | :hsqldb - | :progress - | :maxdb - | :hanadb - | :ingres - | :firstsql - | :edb - | :cache - | :adabas - | :firebird - | :derby - | :filemaker - | :informix - | :instantdb - | :interbase - | :mariadb - | :netezza - | :pervasive - | :pointbase - | :sqlite - | :sybase - | :teradata - | :vertica - | :h2 - | :coldfusion - | :cassandra - | :hbase - | :mongodb - | :redis - | :couchbase - | :couchdb - | :cosmosdb - | :dynamodb - | :neo4j - | :geode - | :elasticsearch - | :memcached - | :cockroachdb - | :opensearch - | :clickhouse - | :spanner - | :trino - | atom() - - @doc namespace: :http - @typedoc """ - Deprecated, use `network.protocol.name` instead - - ### Options - - * `:"1.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.0 - - * `:"1.1"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.1 - - * `:"2.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/2 - - * `:"3.0"`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/3 - - * `:SPDY`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SPDY protocol - - * `:QUIC`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - QUIC protocol - - """ - @type http_flavor() :: :"1.0" | :"1.1" | :"2.0" | :"3.0" | :SPDY | :QUIC | atom() - - @doc namespace: :system - @typedoc """ - Deprecated, use `system.process.status` instead - - ### Options - - * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running - - * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping - - * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped - - * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct - - """ - @type system_processes_status() :: :running | :sleeping | :stopped | :defunct | atom() - - @doc namespace: :disk - @typedoc """ - The disk IO operation direction - - ### Options - - * `:read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read - - * `:write`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - write - - """ - @type disk_io_direction() :: :read | :write - - @doc namespace: :faas - @typedoc """ - Describes the type of the operation that was performed on the data - - ### Options - - * `:insert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created - - * `:edit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified - - * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted - - """ - @type faas_document_operation() :: :insert | :edit | :delete | atom() - - @doc namespace: :host - @typedoc """ - The CPU architecture the host system is running on - - ### Options - - * `:amd64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 - - * `:arm32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 - - * `:arm64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 - - * `:ia64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium - - * `:ppc32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC - - * `:ppc64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC - - * `:s390x`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture - - * `:x86`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 - - """ - @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() - - @doc namespace: :http - @typedoc """ - State of the HTTP connection in the HTTP connection pool - - ### Options - - * `:active`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state - - * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state - - """ - @type http_connection_state() :: :active | :idle | atom() - - @doc namespace: :messaging - @typedoc """ - A string identifying the kind of messaging operation - - ### Options - - * `:publish`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created - - * `:create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios - - * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages - - * `:process`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer - - * `:settle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled - - """ - @type messaging_operation() :: :publish | :create | :receive | :process | :settle | atom() - - @doc namespace: :messaging - @typedoc """ - Model of message consumption. This only applies to consumer spans - - ### Options - - * `:clustering`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Clustering consumption model - - * `:broadcasting`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Broadcasting consumption model - - """ - @type messaging_rocketmq_consumption_model() :: :clustering | :broadcasting - - @doc namespace: :messaging - @typedoc """ - Type of message - - ### Options - - * `:normal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Normal message - - * `:fifo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FIFO message - - * `:delay`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Delay message - - * `:transaction`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Transaction message - - """ - @type messaging_rocketmq_message_type() :: :normal | :fifo | :delay | :transaction - - @doc namespace: :messaging - @typedoc """ - Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) - - ### Options - - * `:complete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is completed - - * `:abandon`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is abandoned - - * `:dead_letter`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is sent to dead letter queue - - * `:defer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is deferred - - """ - @type messaging_servicebus_disposition_status() :: - :complete | :abandon | :dead_letter | :defer | atom() - - @doc namespace: :network - @typedoc """ - The network IO operation direction - - ### Options - - * `:transmit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - transmit - - * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - receive - - """ - @type network_io_direction() :: :transmit | :receive - - @doc namespace: :rpc - @typedoc """ - The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values - - ### Options - - * `:cancelled`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cancelled - - * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown - - * `:invalid_argument`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid_argument - - * `:deadline_exceeded`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - deadline_exceeded - - * `:not_found`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - not_found - - * `:already_exists`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - already_exists - - * `:permission_denied`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - permission_denied - - * `:resource_exhausted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - resource_exhausted - - * `:failed_precondition`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - failed_precondition - - * `:aborted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - aborted - - * `:out_of_range`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out_of_range - - * `:unimplemented`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unimplemented - - * `:internal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - internal - - * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable - - * `:data_loss`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - data_loss - - * `:unauthenticated`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unauthenticated - - """ - @type rpc_connect_rpc_error_code() :: - :cancelled - | :unknown - | :invalid_argument - | :deadline_exceeded - | :not_found - | :already_exists - | :permission_denied - | :resource_exhausted - | :failed_precondition - | :aborted - | :out_of_range - | :unimplemented - | :internal - | :unavailable - | :data_loss - | :unauthenticated - - @doc namespace: :rpc - @typedoc """ - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request - - ### Options - - * `0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK - - * `1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED - - * `2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN - - * `3`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT - - * `4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED - - * `5`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND - - * `6`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS - - * `7`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED - - * `8`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED - - * `9`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION - - * `10`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED - - * `11`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE - - * `12`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED - - * `13`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL - - * `14`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE - - * `15`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS - - * `16`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED - - """ - @type rpc_grpc_status_code() :: - 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 - - @doc namespace: :telemetry - @typedoc """ - The language of the telemetry SDK - - ### Options - - * `:cpp` - cpp - - * `:dotnet` - dotnet - - * `:erlang` - erlang - - * `:go` - go - - * `:java` - java - - * `:nodejs` - nodejs - - * `:php` - php - - * `:python` - python - - * `:ruby` - ruby - - * `:rust` - rust - - * `:swift` - swift - - * `:webjs` - webjs - - """ - @type telemetry_sdk_language() :: - :cpp - | :dotnet - | :erlang - | :go - | :java - | :nodejs - | :php - | :python - | :ruby - | :rust - | :swift - | :webjs - | atom() - - @doc namespace: :tls - @typedoc """ - Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - ### Options - - * `:ssl`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ssl - - * `:tls`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - tls - - """ - @type tls_protocol_name() :: :ssl | :tls | atom() - - @doc """ - The URL of the OpenTelemetry schema for these keys and values. - - iex> OpenTelemetry.SemanticConventions.Common.schema_url() - "https://opentelemetry.io/schemas/1.25.0" - """ - @spec schema_url :: String.t() - def schema_url do - "https://opentelemetry.io/schemas/1.25.0" - end - - @doc namespace: :faas - @doc """ - The name of the invoked function - - ### Notes - - **SHOULD** be equal to the `faas.name` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_name() - :"faas.invoked_name" - """ - @spec faas_invoked_name :: :"faas.invoked_name" - def faas_invoked_name do - :"faas.invoked_name" - end - - @doc namespace: :faas - @doc """ - The cloud provider of the invoked function - - ### Notes - - **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_provider() - :"faas.invoked_provider" - """ - @spec faas_invoked_provider :: :"faas.invoked_provider" - def faas_invoked_provider do - :"faas.invoked_provider" - end - - @doc namespace: :faas - @doc """ - The cloud region of the invoked function - - ### Notes - - **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Common.faas_invoked_region() - :"faas.invoked_region" - """ - @spec faas_invoked_region :: :"faas.invoked_region" - def faas_invoked_region do - :"faas.invoked_region" - end - - @doc namespace: :faas - @doc """ - Type of the trigger which caused this function invocation - - iex> OpenTelemetry.SemanticConventions.Common.faas_trigger() - :"faas.trigger" - """ - @spec faas_trigger :: :"faas.trigger" - def faas_trigger do - :"faas.trigger" - end - - @doc namespace: :client - @doc """ - Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name - - ### Notes - - When observed from the server side, and when communicating through an intermediary, `client.address` **SHOULD** represent the client address behind any intermediaries, for example proxies, if it's available - - iex> OpenTelemetry.SemanticConventions.Common.client_address() - :"client.address" - """ - @spec client_address :: :"client.address" - def client_address do - :"client.address" - end - - @doc namespace: :client - @doc """ - Client port number - - ### Notes - - When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available - - iex> OpenTelemetry.SemanticConventions.Common.client_port() - :"client.port" - """ - @spec client_port :: :"client.port" - def client_port do - :"client.port" - end - - @doc namespace: :server - @doc """ - Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name - - ### Notes - - When observed from the client side, and when communicating through an intermediary, `server.address` **SHOULD** represent the server address behind any intermediaries, for example proxies, if it's available - - iex> OpenTelemetry.SemanticConventions.Common.server_address() - :"server.address" - """ - @spec server_address :: :"server.address" - def server_address do - :"server.address" - end - - @doc namespace: :server - @doc """ - Server port number - - ### Notes - - When observed from the client side, and when communicating through an intermediary, `server.port` **SHOULD** represent the server port behind any intermediaries, for example proxies, if it's available - - iex> OpenTelemetry.SemanticConventions.Common.server_port() - :"server.port" - """ - @spec server_port :: :"server.port" - def server_port do - :"server.port" - end - - @doc namespace: :source - @doc """ - Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name - - ### Notes - - When observed from the destination side, and when communicating through an intermediary, `source.address` **SHOULD** represent the source address behind any intermediaries, for example proxies, if it's available - - iex> OpenTelemetry.SemanticConventions.Common.source_address() - :"source.address" - """ - @spec source_address :: :"source.address" - def source_address do - :"source.address" - end - - @doc namespace: :source - @doc """ - Source port number - - iex> OpenTelemetry.SemanticConventions.Common.source_port() - :"source.port" - """ - @spec source_port :: :"source.port" - def source_port do - :"source.port" - end - - @doc namespace: :destination - @doc """ - Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.destination_address() - :"destination.address" - """ - @spec destination_address :: :"destination.address" - def destination_address do - :"destination.address" - end - - @doc namespace: :destination - @doc """ - Destination port number - - iex> OpenTelemetry.SemanticConventions.Common.destination_port() - :"destination.port" - """ - @spec destination_port :: :"destination.port" - def destination_port do - :"destination.port" - end - - @doc namespace: :http - @doc """ - HTTP request method - - ### Notes - - HTTP request method value **SHOULD** be "known" to the instrumentation. - By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) - and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). - - If the HTTP request method is not known to instrumentation, it **MUST** set the `http.request.method` attribute to `_OTHER`. - - If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it **MUST** provide a way to override - the list of known HTTP methods. If this override is done via environment variable, then the environment variable **MUST** be named - OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods - (this list **MUST** be a full override of the default known method, it is not a list of known methods in addition to the defaults). - - HTTP method names are case-sensitive and `http.request.method` attribute value **MUST** match a known HTTP method name exactly. - Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. - Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value - - iex> OpenTelemetry.SemanticConventions.Common.http_request_method() - :"http.request.method" - """ - @spec http_request_method :: :"http.request.method" - def http_request_method do - :"http.request.method" - end - - @doc namespace: :error - @doc """ - Describes a class of error the operation ended with - - ### Notes - - If the request fails with an error before response status code was sent or received, - `error.type` **SHOULD** be set to exception type (its fully-qualified class name, if applicable) - or a component-specific low cardinality error identifier. - - If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), - `error.type` **SHOULD** be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. - - The `error.type` value **SHOULD** be predictable and **SHOULD** have low cardinality. - Instrumentations **SHOULD** document the list of errors they report. - - The cardinality of `error.type` within one instrumentation library **SHOULD** be low, but - telemetry consumers that aggregate data from multiple instrumentation libraries and applications - should be prepared for `error.type` to have high cardinality at query time, when no - additional filters are applied. - - If the request has completed successfully, instrumentations **SHOULD NOT** set `error.type` - - iex> OpenTelemetry.SemanticConventions.Common.error_type() - :"error.type" - """ - @spec error_type :: :"error.type" - def error_type do - :"error.type" - end - - @doc namespace: :http - @doc """ - [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) - - iex> OpenTelemetry.SemanticConventions.Common.http_response_status_code() - :"http.response.status_code" - """ - @spec http_response_status_code :: :"http.response.status_code" - def http_response_status_code do - :"http.response.status_code" - end - - @doc namespace: :network - @doc """ - [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent - - ### Notes - - The value **SHOULD** be normalized to lowercase - - iex> OpenTelemetry.SemanticConventions.Common.network_protocol_name() - :"network.protocol.name" - """ - @spec network_protocol_name :: :"network.protocol.name" - def network_protocol_name do - :"network.protocol.name" - end - - @doc namespace: :network - @doc """ - The actual version of the protocol used for network communication - - ### Notes - - If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute **SHOULD** be set to the negotiated version. If the actual protocol version is not known, this attribute **SHOULD NOT** be set - - iex> OpenTelemetry.SemanticConventions.Common.network_protocol_version() - :"network.protocol.version" - """ - @spec network_protocol_version :: :"network.protocol.version" - def network_protocol_version do - :"network.protocol.version" - end - - @doc namespace: :url - @doc """ - The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol - - iex> OpenTelemetry.SemanticConventions.Common.url_scheme() - :"url.scheme" - """ - @spec url_scheme :: :"url.scheme" - def url_scheme do - :"url.scheme" - end - - @doc namespace: :http - @doc """ - The matched route, that is, the path template in the format used by the respective server framework - - ### Notes - - **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. - **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one - - iex> OpenTelemetry.SemanticConventions.Common.http_route() - :"http.route" - """ - @spec http_route :: :"http.route" - def http_route do - :"http.route" - end - - @doc namespace: :event - @doc """ - Identifies the class / type of event - - ### Notes - - Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.31.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes - - iex> OpenTelemetry.SemanticConventions.Common.event_name() - :"event.name" - """ - @spec event_name :: :"event.name" - def event_name do - :"event.name" - end - - @doc namespace: :log - @doc """ - A unique identifier for the Log Record - - ### Notes - - If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records **MUST** have different values. - The id **MAY** be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed - - iex> OpenTelemetry.SemanticConventions.Common.log_record_uid() - :"log.record.uid" - """ - @spec log_record_uid :: :"log.record.uid" - def log_record_uid do - :"log.record.uid" - end - - @doc namespace: :exception - @doc """ - The exception message - - iex> OpenTelemetry.SemanticConventions.Common.exception_message() - :"exception.message" - """ - @spec exception_message :: :"exception.message" - def exception_message do - :"exception.message" - end - - @doc namespace: :exception - @doc """ - A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG - - iex> OpenTelemetry.SemanticConventions.Common.exception_stacktrace() - :"exception.stacktrace" - """ - @spec exception_stacktrace :: :"exception.stacktrace" - def exception_stacktrace do - :"exception.stacktrace" - end - - @doc namespace: :exception - @doc """ - The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it - - iex> OpenTelemetry.SemanticConventions.Common.exception_type() - :"exception.type" - """ - @spec exception_type :: :"exception.type" - def exception_type do - :"exception.type" - end - - @doc namespace: :log - @doc """ - The stream associated with the log. See below for a list of well-known values - - iex> OpenTelemetry.SemanticConventions.Common.log_iostream() - :"log.iostream" - """ - @spec log_iostream :: :"log.iostream" - def log_iostream do - :"log.iostream" - end - - @doc namespace: :log - @doc """ - The basename of the file - - iex> OpenTelemetry.SemanticConventions.Common.log_file_name() - :"log.file.name" - """ - @spec log_file_name :: :"log.file.name" - def log_file_name do - :"log.file.name" - end - - @doc namespace: :log - @doc """ - The basename of the file, with symlinks resolved - - iex> OpenTelemetry.SemanticConventions.Common.log_file_name_resolved() - :"log.file.name_resolved" - """ - @spec log_file_name_resolved :: :"log.file.name_resolved" - def log_file_name_resolved do - :"log.file.name_resolved" - end - - @doc namespace: :log - @doc """ - The full path to the file - - iex> OpenTelemetry.SemanticConventions.Common.log_file_path() - :"log.file.path" - """ - @spec log_file_path :: :"log.file.path" - def log_file_path do - :"log.file.path" - end - - @doc namespace: :log - @doc """ - The full path to the file, with symlinks resolved - - iex> OpenTelemetry.SemanticConventions.Common.log_file_path_resolved() - :"log.file.path_resolved" - """ - @spec log_file_path_resolved :: :"log.file.path_resolved" - def log_file_path_resolved do - :"log.file.path_resolved" - end - - @doc namespace: :messaging - @doc """ - An identifier for the messaging system being used. See below for a list of well-known identifiers - - iex> OpenTelemetry.SemanticConventions.Common.messaging_system() - :"messaging.system" - """ - @spec messaging_system :: :"messaging.system" - def messaging_system do - :"messaging.system" - end - - @doc namespace: :pool - @doc """ - 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` - - iex> OpenTelemetry.SemanticConventions.Common.pool_name() - :"pool.name" - """ - @spec pool_name :: :"pool.name" - def pool_name do - :"pool.name" - end - - @doc namespace: :network - @doc """ - [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) - - ### Notes - - The value **SHOULD** be normalized to lowercase. - - Consider always setting the transport when setting a port number, since - a port number is ambiguous without knowing the transport. For example - different processes could be listening on TCP port 12345 and UDP port 12345 - - iex> OpenTelemetry.SemanticConventions.Common.network_transport() - :"network.transport" - """ - @spec network_transport :: :"network.transport" - def network_transport do - :"network.transport" - end - - @doc namespace: :network - @doc """ - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent - - ### Notes - - The value **SHOULD** be normalized to lowercase - - iex> OpenTelemetry.SemanticConventions.Common.network_type() - :"network.type" - """ - @spec network_type :: :"network.type" - def network_type do - :"network.type" - end - - @doc namespace: :messaging - @doc """ - The message destination name - - ### Notes - - Destination name **SHOULD** uniquely identify a specific queue, topic or other entity within the broker. If - the broker doesn't have such notion, the destination name **SHOULD** uniquely identify the broker - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_name() - :"messaging.destination.name" - """ - @spec messaging_destination_name :: :"messaging.destination.name" - def messaging_destination_name do - :"messaging.destination.name" - end - - @doc namespace: :messaging - @doc """ - Low cardinality representation of the messaging destination name - - ### Notes - - Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_template() - :"messaging.destination.template" - """ - @spec messaging_destination_template :: :"messaging.destination.template" - def messaging_destination_template do - :"messaging.destination.template" - end - - @doc namespace: :process - @doc """ - The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels - - iex> OpenTelemetry.SemanticConventions.Common.process_cpu_state() - :"process.cpu.state" - """ - @spec process_cpu_state :: :"process.cpu.state" - def process_cpu_state do - :"process.cpu.state" - end - - @doc namespace: :rpc - @doc """ - A string identifying the remoting system. See below for a list of well-known identifiers - - iex> OpenTelemetry.SemanticConventions.Common.rpc_system() - :"rpc.system" - """ - @spec rpc_system :: :"rpc.system" - def rpc_system do - :"rpc.system" - end - - @doc namespace: :rpc - @doc """ - The name of the (logical) method being called, must be equal to the $method part in the span name - - ### Notes - - This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) - - iex> OpenTelemetry.SemanticConventions.Common.rpc_method() - :"rpc.method" - """ - @spec rpc_method :: :"rpc.method" - def rpc_method do - :"rpc.method" - end - - @doc namespace: :rpc - @doc """ - The full (logical) name of the service being called, including its package name, if applicable - - ### Notes - - This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) - - iex> OpenTelemetry.SemanticConventions.Common.rpc_service() - :"rpc.service" - """ - @spec rpc_service :: :"rpc.service" - def rpc_service do - :"rpc.service" - end - - @doc namespace: :system - @doc """ - The device identifier - - iex> OpenTelemetry.SemanticConventions.Common.system_device() - :"system.device" - """ - @spec system_device :: :"system.device" - def system_device do - :"system.device" - end - - @doc namespace: :system - @doc """ - The logical CPU number [0..n-1] - - iex> OpenTelemetry.SemanticConventions.Common.system_cpu_logical_number() - :"system.cpu.logical_number" - """ - @spec system_cpu_logical_number :: :"system.cpu.logical_number" - def system_cpu_logical_number do - :"system.cpu.logical_number" - end - - @doc namespace: :system - @doc """ - The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels - - iex> OpenTelemetry.SemanticConventions.Common.system_cpu_state() - :"system.cpu.state" - """ - @spec system_cpu_state :: :"system.cpu.state" - def system_cpu_state do - :"system.cpu.state" - end - - @doc namespace: :system - @doc """ - The memory state - - iex> OpenTelemetry.SemanticConventions.Common.system_memory_state() - :"system.memory.state" - """ - @spec system_memory_state :: :"system.memory.state" - def system_memory_state do - :"system.memory.state" - end - - @doc namespace: :system - @doc """ - The paging access direction - - iex> OpenTelemetry.SemanticConventions.Common.system_paging_direction() - :"system.paging.direction" - """ - @spec system_paging_direction :: :"system.paging.direction" - def system_paging_direction do - :"system.paging.direction" - end - - @doc namespace: :system - @doc """ - The memory paging state - - iex> OpenTelemetry.SemanticConventions.Common.system_paging_state() - :"system.paging.state" - """ - @spec system_paging_state :: :"system.paging.state" - def system_paging_state do - :"system.paging.state" - end - - @doc namespace: :system - @doc """ - The memory paging type - - iex> OpenTelemetry.SemanticConventions.Common.system_paging_type() - :"system.paging.type" - """ - @spec system_paging_type :: :"system.paging.type" - def system_paging_type do - :"system.paging.type" - end - - @doc namespace: :system - @doc """ - The filesystem mode - - iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_mode() - :"system.filesystem.mode" - """ - @spec system_filesystem_mode :: :"system.filesystem.mode" - def system_filesystem_mode do - :"system.filesystem.mode" - end - - @doc namespace: :system - @doc """ - The filesystem mount path - - iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_mountpoint() - :"system.filesystem.mountpoint" - """ - @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" - def system_filesystem_mountpoint do - :"system.filesystem.mountpoint" - end - - @doc namespace: :system - @doc """ - The filesystem state - - iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_state() - :"system.filesystem.state" - """ - @spec system_filesystem_state :: :"system.filesystem.state" - def system_filesystem_state do - :"system.filesystem.state" - end - - @doc namespace: :system - @doc """ - The filesystem type - - iex> OpenTelemetry.SemanticConventions.Common.system_filesystem_type() - :"system.filesystem.type" - """ - @spec system_filesystem_type :: :"system.filesystem.type" - def system_filesystem_type do - :"system.filesystem.type" - end - - @doc namespace: :system - @doc """ - A stateless protocol **MUST NOT** set this attribute - - iex> OpenTelemetry.SemanticConventions.Common.system_network_state() - :"system.network.state" - """ - @spec system_network_state :: :"system.network.state" - def system_network_state do - :"system.network.state" - end - - @doc namespace: :system - @doc """ - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - - iex> OpenTelemetry.SemanticConventions.Common.system_process_status() - :"system.process.status" - """ - @spec system_process_status :: :"system.process.status" - def system_process_status do - :"system.process.status" - end - - @doc namespace: :network - @doc """ - Local address of the network connection - IP address or Unix domain socket name - - iex> OpenTelemetry.SemanticConventions.Common.network_local_address() - :"network.local.address" - """ - @spec network_local_address :: :"network.local.address" - def network_local_address do - :"network.local.address" - end - - @doc namespace: :network - @doc """ - Local port number of the network connection - - iex> OpenTelemetry.SemanticConventions.Common.network_local_port() - :"network.local.port" - """ - @spec network_local_port :: :"network.local.port" - def network_local_port do - :"network.local.port" - end - - @doc namespace: :network - @doc """ - Peer address of the network connection - IP address or Unix domain socket name - - iex> OpenTelemetry.SemanticConventions.Common.network_peer_address() - :"network.peer.address" - """ - @spec network_peer_address :: :"network.peer.address" - def network_peer_address do - :"network.peer.address" - end - - @doc namespace: :network - @doc """ - Peer port number of the network connection - - iex> OpenTelemetry.SemanticConventions.Common.network_peer_port() - :"network.peer.port" - """ - @spec network_peer_port :: :"network.peer.port" - def network_peer_port do - :"network.peer.port" - end - - @doc namespace: :network - @doc """ - The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network - - iex> OpenTelemetry.SemanticConventions.Common.network_carrier_icc() - :"network.carrier.icc" - """ - @spec network_carrier_icc :: :"network.carrier.icc" - def network_carrier_icc do - :"network.carrier.icc" - end - - @doc namespace: :network - @doc """ - The mobile carrier country code - - iex> OpenTelemetry.SemanticConventions.Common.network_carrier_mcc() - :"network.carrier.mcc" - """ - @spec network_carrier_mcc :: :"network.carrier.mcc" - def network_carrier_mcc do - :"network.carrier.mcc" - end - - @doc namespace: :network - @doc """ - The mobile carrier network code - - iex> OpenTelemetry.SemanticConventions.Common.network_carrier_mnc() - :"network.carrier.mnc" - """ - @spec network_carrier_mnc :: :"network.carrier.mnc" - def network_carrier_mnc do - :"network.carrier.mnc" - end - - @doc namespace: :network - @doc """ - The name of the mobile carrier - - iex> OpenTelemetry.SemanticConventions.Common.network_carrier_name() - :"network.carrier.name" - """ - @spec network_carrier_name :: :"network.carrier.name" - def network_carrier_name do - :"network.carrier.name" - end - - @doc namespace: :network - @doc """ - This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection - - iex> OpenTelemetry.SemanticConventions.Common.network_connection_subtype() - :"network.connection.subtype" - """ - @spec network_connection_subtype :: :"network.connection.subtype" - def network_connection_subtype do - :"network.connection.subtype" - end - - @doc namespace: :network - @doc """ - The internet connection type - - iex> OpenTelemetry.SemanticConventions.Common.network_connection_type() - :"network.connection.type" - """ - @spec network_connection_type :: :"network.connection.type" - def network_connection_type do - :"network.connection.type" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item in the `AttributeDefinitions` request field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_attribute_definitions() - :"aws.dynamodb.attribute_definitions" - """ - @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" - def aws_dynamodb_attribute_definitions do - :"aws.dynamodb.attribute_definitions" - end - - @doc namespace: :aws - @doc """ - The value of the `AttributesToGet` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_attributes_to_get() - :"aws.dynamodb.attributes_to_get" - """ - @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" - def aws_dynamodb_attributes_to_get do - :"aws.dynamodb.attributes_to_get" - end - - @doc namespace: :aws - @doc """ - The value of the `ConsistentRead` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_consistent_read() - :"aws.dynamodb.consistent_read" - """ - @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" - def aws_dynamodb_consistent_read do - :"aws.dynamodb.consistent_read" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item in the `ConsumedCapacity` response field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_consumed_capacity() - :"aws.dynamodb.consumed_capacity" - """ - @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" - def aws_dynamodb_consumed_capacity do - :"aws.dynamodb.consumed_capacity" - end - - @doc namespace: :aws - @doc """ - The value of the `Count` response parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_count() - :"aws.dynamodb.count" - """ - @spec aws_dynamodb_count :: :"aws.dynamodb.count" - def aws_dynamodb_count do - :"aws.dynamodb.count" - end - - @doc namespace: :aws - @doc """ - The value of the `ExclusiveStartTableName` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_exclusive_start_table() - :"aws.dynamodb.exclusive_start_table" - """ - @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" - def aws_dynamodb_exclusive_start_table do - :"aws.dynamodb.exclusive_start_table" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_global_secondary_index_updates() - :"aws.dynamodb.global_secondary_index_updates" - """ - @spec aws_dynamodb_global_secondary_index_updates :: - :"aws.dynamodb.global_secondary_index_updates" - def aws_dynamodb_global_secondary_index_updates do - :"aws.dynamodb.global_secondary_index_updates" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_global_secondary_indexes() - :"aws.dynamodb.global_secondary_indexes" - """ - @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" - def aws_dynamodb_global_secondary_indexes do - :"aws.dynamodb.global_secondary_indexes" - end - - @doc namespace: :aws - @doc """ - The value of the `IndexName` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_index_name() - :"aws.dynamodb.index_name" - """ - @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" - def aws_dynamodb_index_name do - :"aws.dynamodb.index_name" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of the `ItemCollectionMetrics` response field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_item_collection_metrics() - :"aws.dynamodb.item_collection_metrics" - """ - @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" - def aws_dynamodb_item_collection_metrics do - :"aws.dynamodb.item_collection_metrics" - end - - @doc namespace: :aws - @doc """ - The value of the `Limit` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_limit() - :"aws.dynamodb.limit" - """ - @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" - def aws_dynamodb_limit do - :"aws.dynamodb.limit" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_local_secondary_indexes() - :"aws.dynamodb.local_secondary_indexes" - """ - @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" - def aws_dynamodb_local_secondary_indexes do - :"aws.dynamodb.local_secondary_indexes" - end - - @doc namespace: :aws - @doc """ - The value of the `ProjectionExpression` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_projection() - :"aws.dynamodb.projection" - """ - @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" - def aws_dynamodb_projection do - :"aws.dynamodb.projection" - end - - @doc namespace: :aws - @doc """ - The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_provisioned_read_capacity() - :"aws.dynamodb.provisioned_read_capacity" - """ - @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" - def aws_dynamodb_provisioned_read_capacity do - :"aws.dynamodb.provisioned_read_capacity" - end - - @doc namespace: :aws - @doc """ - The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_provisioned_write_capacity() - :"aws.dynamodb.provisioned_write_capacity" - """ - @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" - def aws_dynamodb_provisioned_write_capacity do - :"aws.dynamodb.provisioned_write_capacity" - end - - @doc namespace: :aws - @doc """ - The value of the `ScanIndexForward` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_scan_forward() - :"aws.dynamodb.scan_forward" - """ - @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" - def aws_dynamodb_scan_forward do - :"aws.dynamodb.scan_forward" - end - - @doc namespace: :aws - @doc """ - The value of the `ScannedCount` response parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_scanned_count() - :"aws.dynamodb.scanned_count" - """ - @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" - def aws_dynamodb_scanned_count do - :"aws.dynamodb.scanned_count" - end - - @doc namespace: :aws - @doc """ - The value of the `Segment` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_segment() - :"aws.dynamodb.segment" - """ - @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" - def aws_dynamodb_segment do - :"aws.dynamodb.segment" - end - - @doc namespace: :aws - @doc """ - The value of the `Select` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_select() - :"aws.dynamodb.select" - """ - @spec aws_dynamodb_select :: :"aws.dynamodb.select" - def aws_dynamodb_select do - :"aws.dynamodb.select" - end - - @doc namespace: :aws - @doc """ - The number of items in the `TableNames` response parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_table_count() - :"aws.dynamodb.table_count" - """ - @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" - def aws_dynamodb_table_count do - :"aws.dynamodb.table_count" - end - - @doc namespace: :aws - @doc """ - The keys in the `RequestItems` object field - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_table_names() - :"aws.dynamodb.table_names" - """ - @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" - def aws_dynamodb_table_names do - :"aws.dynamodb.table_names" - end - - @doc namespace: :aws - @doc """ - The value of the `TotalSegments` request parameter - - iex> OpenTelemetry.SemanticConventions.Common.aws_dynamodb_total_segments() - :"aws.dynamodb.total_segments" - """ - @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" - def aws_dynamodb_total_segments do - :"aws.dynamodb.total_segments" - end - - @doc namespace: :browser - @doc """ - Array of brand name and version separated by a space - - ### Notes - - This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) - - iex> OpenTelemetry.SemanticConventions.Common.browser_brands() - :"browser.brands" - """ - @spec browser_brands :: :"browser.brands" - def browser_brands do - :"browser.brands" - end - - @doc namespace: :browser - @doc """ - Preferred language of the user using the browser - - ### Notes - - This value is intended to be taken from the Navigator API `navigator.language` - - iex> OpenTelemetry.SemanticConventions.Common.browser_language() - :"browser.language" - """ - @spec browser_language :: :"browser.language" - def browser_language do - :"browser.language" - end - - @doc namespace: :browser - @doc """ - A boolean that is true if the browser is running on a mobile device - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.browser_mobile() - :"browser.mobile" - """ - @spec browser_mobile :: :"browser.mobile" - def browser_mobile do - :"browser.mobile" - end - - @doc namespace: :browser - @doc """ - The platform on which the browser is running - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.browser_platform() - :"browser.platform" - """ - @spec browser_platform :: :"browser.platform" - def browser_platform do - :"browser.platform" - end - - @doc namespace: :cloudevents - @doc """ - The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event - - iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_id() - :"cloudevents.event_id" - """ - @spec cloudevents_event_id :: :"cloudevents.event_id" - def cloudevents_event_id do - :"cloudevents.event_id" - end - - @doc namespace: :cloudevents - @doc """ - The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened - - iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_source() - :"cloudevents.event_source" - """ - @spec cloudevents_event_source :: :"cloudevents.event_source" - def cloudevents_event_source do - :"cloudevents.event_source" - end - - @doc namespace: :cloudevents - @doc """ - The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses - - iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_spec_version() - :"cloudevents.event_spec_version" - """ - @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" - def cloudevents_event_spec_version do - :"cloudevents.event_spec_version" - end - - @doc namespace: :cloudevents - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_subject() - :"cloudevents.event_subject" - """ - @spec cloudevents_event_subject :: :"cloudevents.event_subject" - def cloudevents_event_subject do - :"cloudevents.event_subject" - end - - @doc namespace: :cloudevents - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.cloudevents_event_type() - :"cloudevents.event_type" - """ - @spec cloudevents_event_type :: :"cloudevents.event_type" - def cloudevents_event_type do - :"cloudevents.event_type" - end - - @doc namespace: :code - @doc """ - The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` - - iex> OpenTelemetry.SemanticConventions.Common.code_column() - :"code.column" - """ - @spec code_column :: :"code.column" - def code_column do - :"code.column" - end - - @doc namespace: :code - @doc """ - The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) - - iex> OpenTelemetry.SemanticConventions.Common.code_filepath() - :"code.filepath" - """ - @spec code_filepath :: :"code.filepath" - def code_filepath do - :"code.filepath" - end - - @doc namespace: :code - @doc """ - The method or function name, or equivalent (usually rightmost part of the code unit's name) - - iex> OpenTelemetry.SemanticConventions.Common.code_function() - :"code.function" - """ - @spec code_function :: :"code.function" - def code_function do - :"code.function" - end - - @doc namespace: :code - @doc """ - The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` - - iex> OpenTelemetry.SemanticConventions.Common.code_lineno() - :"code.lineno" - """ - @spec code_lineno :: :"code.lineno" - def code_lineno do - :"code.lineno" - end - - @doc namespace: :code - @doc """ - The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit - - iex> OpenTelemetry.SemanticConventions.Common.code_namespace() - :"code.namespace" - """ - @spec code_namespace :: :"code.namespace" - def code_namespace do - :"code.namespace" - end - - @doc namespace: :code - @doc """ - A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG - - iex> OpenTelemetry.SemanticConventions.Common.code_stacktrace() - :"code.stacktrace" - """ - @spec code_stacktrace :: :"code.stacktrace" - def code_stacktrace do - :"code.stacktrace" - end - - @doc namespace: :container - @doc """ - The command used to run the container (i.e. the command name) - - ### Notes - - If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage - - iex> OpenTelemetry.SemanticConventions.Common.container_command() - :"container.command" - """ - @spec container_command :: :"container.command" - def container_command do - :"container.command" - end - - @doc namespace: :container - @doc """ - All the command arguments (including the command/executable itself) run by the container. [2] - - iex> OpenTelemetry.SemanticConventions.Common.container_command_args() - :"container.command_args" - """ - @spec container_command_args :: :"container.command_args" - def container_command_args do - :"container.command_args" - end - - @doc namespace: :container - @doc """ - The full command run by the container as a single string representing the full command. [2] - - iex> OpenTelemetry.SemanticConventions.Common.container_command_line() - :"container.command_line" - """ - @spec container_command_line :: :"container.command_line" - def container_command_line do - :"container.command_line" - end - - @doc namespace: :container - @doc """ - The CPU state for this data point - - iex> OpenTelemetry.SemanticConventions.Common.container_cpu_state() - :"container.cpu.state" - """ - @spec container_cpu_state :: :"container.cpu.state" - def container_cpu_state do - :"container.cpu.state" - end - - @doc namespace: :container - @doc """ - Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated - - iex> OpenTelemetry.SemanticConventions.Common.container_id() - :"container.id" - """ - @spec container_id :: :"container.id" - def container_id do - :"container.id" - end - - @doc namespace: :container - @doc """ - Runtime specific image identifier. Usually a hash algorithm followed by a UUID - - ### Notes - - 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 assinged 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 - - iex> OpenTelemetry.SemanticConventions.Common.container_image_id() - :"container.image.id" - """ - @spec container_image_id :: :"container.image.id" - def container_image_id do - :"container.image.id" - end - - @doc namespace: :container - @doc """ - Name of the image the container was built on - - iex> OpenTelemetry.SemanticConventions.Common.container_image_name() - :"container.image.name" - """ - @spec container_image_name :: :"container.image.name" - def container_image_name do - :"container.image.name" - end - - @doc namespace: :container - @doc """ - Repo digests of the container image as provided by the container runtime - - ### Notes - - [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 - - iex> OpenTelemetry.SemanticConventions.Common.container_image_repo_digests() - :"container.image.repo_digests" - """ - @spec container_image_repo_digests :: :"container.image.repo_digests" - def container_image_repo_digests do - :"container.image.repo_digests" - end - - @doc namespace: :container - @doc """ - 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:` - - iex> OpenTelemetry.SemanticConventions.Common.container_image_tags() - :"container.image.tags" - """ - @spec container_image_tags :: :"container.image.tags" - def container_image_tags do - :"container.image.tags" - end - - @doc namespace: :container - @doc """ - Container name used by container runtime - - iex> OpenTelemetry.SemanticConventions.Common.container_name() - :"container.name" - """ - @spec container_name :: :"container.name" - def container_name do - :"container.name" - end - - @doc namespace: :container - @doc """ - The container runtime managing this container - - iex> OpenTelemetry.SemanticConventions.Common.container_runtime() - :"container.runtime" - """ - @spec container_runtime :: :"container.runtime" - def container_runtime do - :"container.runtime" - end - - @doc namespace: :db - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_consistency_level() - :"db.cassandra.consistency_level" - """ - @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" - def db_cassandra_consistency_level do - :"db.cassandra.consistency_level" - end - - @doc namespace: :db - @doc """ - The data center of the coordinating node for a query - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_coordinator_dc() - :"db.cassandra.coordinator.dc" - """ - @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" - def db_cassandra_coordinator_dc do - :"db.cassandra.coordinator.dc" - end - - @doc namespace: :db - @doc """ - The ID of the coordinating node for a query - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_coordinator_id() - :"db.cassandra.coordinator.id" - """ - @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" - def db_cassandra_coordinator_id do - :"db.cassandra.coordinator.id" - end - - @doc namespace: :db - @doc """ - Whether or not the query is idempotent - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_idempotence() - :"db.cassandra.idempotence" - """ - @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" - def db_cassandra_idempotence do - :"db.cassandra.idempotence" - end - - @doc namespace: :db - @doc """ - The fetch size used for paging, i.e. how many rows will be returned at once - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_page_size() - :"db.cassandra.page_size" - """ - @spec db_cassandra_page_size :: :"db.cassandra.page_size" - def db_cassandra_page_size do - :"db.cassandra.page_size" - end - - @doc namespace: :db - @doc """ - The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_speculative_execution_count() - :"db.cassandra.speculative_execution_count" - """ - @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" - def db_cassandra_speculative_execution_count do - :"db.cassandra.speculative_execution_count" - end - - @doc namespace: :db - @doc """ - The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) - - ### Notes - - This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value **MUST NOT** be set - - iex> OpenTelemetry.SemanticConventions.Common.db_cassandra_table() - :"db.cassandra.table" - """ - @spec db_cassandra_table :: :"db.cassandra.table" - def db_cassandra_table do - :"db.cassandra.table" - end - - @doc namespace: :db - @doc """ - Unique Cosmos client instance id - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_client_id() - :"db.cosmosdb.client_id" - """ - @spec db_cosmosdb_client_id :: :"db.cosmosdb.client_id" - def db_cosmosdb_client_id do - :"db.cosmosdb.client_id" - end - - @doc namespace: :db - @doc """ - Cosmos client connection mode - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_connection_mode() - :"db.cosmosdb.connection_mode" - """ - @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" - def db_cosmosdb_connection_mode do - :"db.cosmosdb.connection_mode" - end - - @doc namespace: :db - @doc """ - Cosmos DB container name - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_container() - :"db.cosmosdb.container" - """ - @spec db_cosmosdb_container :: :"db.cosmosdb.container" - def db_cosmosdb_container do - :"db.cosmosdb.container" - end - - @doc namespace: :db - @doc """ - CosmosDB Operation Type - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_operation_type() - :"db.cosmosdb.operation_type" - """ - @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" - def db_cosmosdb_operation_type do - :"db.cosmosdb.operation_type" - end - - @doc namespace: :db - @doc """ - RU consumed for that operation - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_request_charge() - :"db.cosmosdb.request_charge" - """ - @spec db_cosmosdb_request_charge :: :"db.cosmosdb.request_charge" - def db_cosmosdb_request_charge do - :"db.cosmosdb.request_charge" - end - - @doc namespace: :db - @doc """ - Request payload size in bytes - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_request_content_length() - :"db.cosmosdb.request_content_length" - """ - @spec db_cosmosdb_request_content_length :: :"db.cosmosdb.request_content_length" - def db_cosmosdb_request_content_length do - :"db.cosmosdb.request_content_length" - end - - @doc namespace: :db - @doc """ - Cosmos DB status code - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_status_code() - :"db.cosmosdb.status_code" - """ - @spec db_cosmosdb_status_code :: :"db.cosmosdb.status_code" - def db_cosmosdb_status_code do - :"db.cosmosdb.status_code" - end - - @doc namespace: :db - @doc """ - Cosmos DB sub status code - - iex> OpenTelemetry.SemanticConventions.Common.db_cosmosdb_sub_status_code() - :"db.cosmosdb.sub_status_code" - """ - @spec db_cosmosdb_sub_status_code :: :"db.cosmosdb.sub_status_code" - def db_cosmosdb_sub_status_code do - :"db.cosmosdb.sub_status_code" - end - - @doc namespace: :db - @doc """ - Represents the identifier of an Elasticsearch cluster - - iex> OpenTelemetry.SemanticConventions.Common.db_elasticsearch_cluster_name() - :"db.elasticsearch.cluster.name" - """ - @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" - def db_elasticsearch_cluster_name do - :"db.elasticsearch.cluster.name" - end - - @doc namespace: :db - @doc """ - An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like `select @@hostname` - - iex> OpenTelemetry.SemanticConventions.Common.db_instance_id() - :"db.instance.id" - """ - @spec db_instance_id :: :"db.instance.id" - def db_instance_id do - :"db.instance.id" - end - - @doc namespace: :db - @doc """ - The MongoDB collection being accessed within the database stated in `db.name` - - iex> OpenTelemetry.SemanticConventions.Common.db_mongodb_collection() - :"db.mongodb.collection" - """ - @spec db_mongodb_collection :: :"db.mongodb.collection" - def db_mongodb_collection do - :"db.mongodb.collection" - end - - @doc namespace: :db - @doc """ - The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance - - ### Notes - - If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) - - iex> OpenTelemetry.SemanticConventions.Common.db_mssql_instance_name() - :"db.mssql.instance_name" - """ - @spec db_mssql_instance_name :: :"db.mssql.instance_name" - def db_mssql_instance_name do - :"db.mssql.instance_name" - end - - @doc namespace: :db - @doc """ - This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) - - ### Notes - - In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) - - iex> OpenTelemetry.SemanticConventions.Common.db_name() - :"db.name" - """ - @spec db_name :: :"db.name" - def db_name do - :"db.name" - end - - @doc namespace: :db - @doc """ - The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword - - ### Notes - - When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted - - iex> OpenTelemetry.SemanticConventions.Common.db_operation() - :"db.operation" - """ - @spec db_operation :: :"db.operation" - def db_operation do - :"db.operation" - end - - @doc namespace: :db - @doc """ - The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute - - iex> OpenTelemetry.SemanticConventions.Common.db_redis_database_index() - :"db.redis.database_index" - """ - @spec db_redis_database_index :: :"db.redis.database_index" - def db_redis_database_index do - :"db.redis.database_index" - end - - @doc namespace: :db - @doc """ - The name of the primary table that the operation is acting upon, including the database name (if applicable) - - ### Notes - - It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value **MUST NOT** be set - - iex> OpenTelemetry.SemanticConventions.Common.db_sql_table() - :"db.sql.table" - """ - @spec db_sql_table :: :"db.sql.table" - def db_sql_table do - :"db.sql.table" - end - - @doc namespace: :db - @doc """ - The database statement being executed - - iex> OpenTelemetry.SemanticConventions.Common.db_statement() - :"db.statement" - """ - @spec db_statement :: :"db.statement" - def db_statement do - :"db.statement" - end - - @doc namespace: :db - @doc """ - An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers - - iex> OpenTelemetry.SemanticConventions.Common.db_system() - :"db.system" - """ - @spec db_system :: :"db.system" - def db_system do - :"db.system" - end - - @doc namespace: :db - @doc """ - Username for accessing the database - - iex> OpenTelemetry.SemanticConventions.Common.db_user() - :"db.user" - """ - @spec db_user :: :"db.user" - def db_user do - :"db.user" - end - - @doc namespace: :deployment - @doc """ - Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) - - ### Notes - - `deployment.environment` 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=production` - * `service.name=frontend`, `deployment.environment=staging` - - iex> OpenTelemetry.SemanticConventions.Common.deployment_environment() - :"deployment.environment" - """ - @spec deployment_environment :: :"deployment.environment" - def deployment_environment do - :"deployment.environment" - end - - @doc namespace: :db - - @deprecated """ - "Replaced by `server.address` and `server.port`." - """ - @spec db_connection_string :: :"db.connection_string" - def db_connection_string do - :"db.connection_string" - end - - @doc namespace: :db - - @deprecated """ - Replaced by `db.instance.id` - """ - @spec db_elasticsearch_node_name :: :"db.elasticsearch.node.name" - def db_elasticsearch_node_name do - :"db.elasticsearch.node.name" - end - - @doc namespace: :db - - @deprecated """ - Removed as not used - """ - @spec db_jdbc_driver_classname :: :"db.jdbc.driver_classname" - def db_jdbc_driver_classname do - :"db.jdbc.driver_classname" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `network.protocol.name` - """ - @spec http_flavor :: :"http.flavor" - def http_flavor do - :"http.flavor" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `http.request.method` - """ - @spec http_method :: :"http.method" - def http_method do - :"http.method" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `http.request.header.content-length` - """ - @spec http_request_content_length :: :"http.request_content_length" - def http_request_content_length do - :"http.request_content_length" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `http.response.header.content-length` - """ - @spec http_response_content_length :: :"http.response_content_length" - def http_response_content_length do - :"http.response_content_length" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `url.scheme` instead - """ - @spec http_scheme :: :"http.scheme" - def http_scheme do - :"http.scheme" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `http.response.status_code` - """ - @spec http_status_code :: :"http.status_code" - def http_status_code do - :"http.status_code" - end - - @doc namespace: :http - - @deprecated """ - Split to `url.path` and `url.query - """ - @spec http_target :: :"http.target" - def http_target do - :"http.target" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `url.full` - """ - @spec http_url :: :"http.url" - def http_url do - :"http.url" - end - - @doc namespace: :http - - @deprecated """ - Replaced by `user_agent.original` - """ - @spec http_user_agent :: :"http.user_agent" - def http_user_agent do - :"http.user_agent" - end - - @doc namespace: :messaging - - @deprecated """ - Replaced by `messaging.destination.partition.id` - """ - @spec messaging_kafka_destination_partition :: :"messaging.kafka.destination.partition" - def messaging_kafka_destination_partition do - :"messaging.kafka.destination.partition" - end - - @doc namespace: :system - - @deprecated """ - Replaced by `system.process.status` - """ - @spec system_processes_status :: :"system.processes.status" - def system_processes_status do - :"system.processes.status" - end - - @doc namespace: :device - @doc """ - A unique identifier representing the device - - ### Notes - - The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 - - iex> OpenTelemetry.SemanticConventions.Common.device_id() - :"device.id" - """ - @spec device_id :: :"device.id" - def device_id do - :"device.id" - end - - @doc namespace: :device - @doc """ - The name of the device manufacturer - - ### Notes - - The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple` - - iex> OpenTelemetry.SemanticConventions.Common.device_manufacturer() - :"device.manufacturer" - """ - @spec device_manufacturer :: :"device.manufacturer" - def device_manufacturer do - :"device.manufacturer" - end - - @doc namespace: :device - @doc """ - The model identifier for the device - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.device_model_identifier() - :"device.model.identifier" - """ - @spec device_model_identifier :: :"device.model.identifier" - def device_model_identifier do - :"device.model.identifier" - end - - @doc namespace: :device - @doc """ - The marketing name for the device model - - ### Notes - - It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative - - iex> OpenTelemetry.SemanticConventions.Common.device_model_name() - :"device.model.name" - """ - @spec device_model_name :: :"device.model.name" - def device_model_name do - :"device.model.name" - end - - @doc namespace: :disk - @doc """ - The disk IO operation direction - - iex> OpenTelemetry.SemanticConventions.Common.disk_io_direction() - :"disk.io.direction" - """ - @spec disk_io_direction :: :"disk.io.direction" - def disk_io_direction do - :"disk.io.direction" - end - - @doc namespace: :dns - @doc """ - The name being queried - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.dns_question_name() - :"dns.question.name" - """ - @spec dns_question_name :: :"dns.question.name" - def dns_question_name do - :"dns.question.name" - end - - @doc namespace: :enduser - @doc """ - Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system - - iex> OpenTelemetry.SemanticConventions.Common.enduser_id() - :"enduser.id" - """ - @spec enduser_id :: :"enduser.id" - def enduser_id do - :"enduser.id" - end - - @doc namespace: :enduser - @doc """ - Actual/assumed role the client is making the request under extracted from token or application security context - - iex> OpenTelemetry.SemanticConventions.Common.enduser_role() - :"enduser.role" - """ - @spec enduser_role :: :"enduser.role" - def enduser_role do - :"enduser.role" - end - - @doc namespace: :enduser - @doc """ - Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) - - iex> OpenTelemetry.SemanticConventions.Common.enduser_scope() - :"enduser.scope" - """ - @spec enduser_scope :: :"enduser.scope" - def enduser_scope do - :"enduser.scope" - end - - @doc namespace: :exception - @doc """ - **SHOULD** be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span - - ### Notes - - An exception is considered to have escaped (or left) the scope of a span, - if that span is ended while the exception is still logically "in flight". - This may be actually "in flight" in some languages (e.g. if the exception - is passed to a Context manager's `__exit__` method in Python) but will - usually be caught at the point of recording the exception in most languages. - - It is usually not possible to determine at the point where an exception is thrown - whether it will escape the scope of a span. - However, it is trivial to know that an exception - will escape, if one checks for an active exception just before ending the span, - as done in the [example for recording span exceptions](#recording-an-exception). - - It follows that an exception may still escape the scope of the span - even if the `exception.escaped` attribute was not set or set to false, - since the event might have been recorded at a time where it was not - clear whether the exception will escape - - iex> OpenTelemetry.SemanticConventions.Common.exception_escaped() - :"exception.escaped" - """ - @spec exception_escaped :: :"exception.escaped" - def exception_escaped do - :"exception.escaped" - end - - @doc namespace: :faas - @doc """ - A boolean that is true if the serverless function is executed for the first time (aka cold-start) - - iex> OpenTelemetry.SemanticConventions.Common.faas_coldstart() - :"faas.coldstart" - """ - @spec faas_coldstart :: :"faas.coldstart" - def faas_coldstart do - :"faas.coldstart" - end - - @doc namespace: :faas - @doc """ - A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) - - iex> OpenTelemetry.SemanticConventions.Common.faas_cron() - :"faas.cron" - """ - @spec faas_cron :: :"faas.cron" - def faas_cron do - :"faas.cron" - end - - @doc namespace: :faas - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.faas_document_collection() - :"faas.document.collection" - """ - @spec faas_document_collection :: :"faas.document.collection" - def faas_document_collection do - :"faas.document.collection" - end - - @doc namespace: :faas - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.faas_document_name() - :"faas.document.name" - """ - @spec faas_document_name :: :"faas.document.name" - def faas_document_name do - :"faas.document.name" - end - - @doc namespace: :faas - @doc """ - Describes the type of the operation that was performed on the data - - iex> OpenTelemetry.SemanticConventions.Common.faas_document_operation() - :"faas.document.operation" - """ - @spec faas_document_operation :: :"faas.document.operation" - def faas_document_operation do - :"faas.document.operation" - end - - @doc namespace: :faas - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Common.faas_document_time() - :"faas.document.time" - """ - @spec faas_document_time :: :"faas.document.time" - def faas_document_time do - :"faas.document.time" - end - - @doc namespace: :faas - @doc """ - The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version - - ### Notes - - * **AWS Lambda:** Use the (full) log stream name - - iex> OpenTelemetry.SemanticConventions.Common.faas_instance() - :"faas.instance" - """ - @spec faas_instance :: :"faas.instance" - def faas_instance do - :"faas.instance" - end - - @doc namespace: :faas - @doc """ - The invocation ID of the current function invocation - - iex> OpenTelemetry.SemanticConventions.Common.faas_invocation_id() - :"faas.invocation_id" - """ - @spec faas_invocation_id :: :"faas.invocation_id" - def faas_invocation_id do - :"faas.invocation_id" - end - - @doc namespace: :faas - @doc """ - The amount of memory available to the serverless function converted to Bytes - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Common.faas_max_memory() - :"faas.max_memory" - """ - @spec faas_max_memory :: :"faas.max_memory" - def faas_max_memory do - :"faas.max_memory" - end - - @doc namespace: :faas - @doc """ - The name of the single function that this runtime instance executes - - ### Notes - - 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`](/docs/general/attributes.md#source-code-attributes) - span attributes). - - 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) - - iex> OpenTelemetry.SemanticConventions.Common.faas_name() - :"faas.name" - """ - @spec faas_name :: :"faas.name" - def faas_name do - :"faas.name" - end - - @doc namespace: :faas - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Common.faas_time() - :"faas.time" - """ - @spec faas_time :: :"faas.time" - def faas_time do - :"faas.time" - end - - @doc namespace: :faas - @doc """ - The immutable version of the function being executed - - ### Notes - - Depending on the cloud provider and platform, use: - - * **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 - - iex> OpenTelemetry.SemanticConventions.Common.faas_version() - :"faas.version" - """ - @spec faas_version :: :"faas.version" - def faas_version do - :"faas.version" - end - - @doc namespace: :feature_flag - @doc """ - The unique identifier of the feature flag - - iex> OpenTelemetry.SemanticConventions.Common.feature_flag_key() - :"feature_flag.key" - """ - @spec feature_flag_key :: :"feature_flag.key" - def feature_flag_key do - :"feature_flag.key" - end - - @doc namespace: :feature_flag - @doc """ - The name of the service provider that performs the flag evaluation - - iex> OpenTelemetry.SemanticConventions.Common.feature_flag_provider_name() - :"feature_flag.provider_name" - """ - @spec feature_flag_provider_name :: :"feature_flag.provider_name" - def feature_flag_provider_name do - :"feature_flag.provider_name" - end - - @doc namespace: :feature_flag - @doc """ - **SHOULD** be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used - - ### Notes - - 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`. - - A stringified version of the value can be used in situations where a - semantic identifier is unavailable. String representation of the value - should be determined by the implementer - - iex> OpenTelemetry.SemanticConventions.Common.feature_flag_variant() - :"feature_flag.variant" - """ - @spec feature_flag_variant :: :"feature_flag.variant" - def feature_flag_variant do - :"feature_flag.variant" - end - - @doc namespace: :file - @doc """ - Directory where the file is located. It should include the drive letter, when appropriate - - iex> OpenTelemetry.SemanticConventions.Common.file_directory() - :"file.directory" - """ - @spec file_directory :: :"file.directory" - def file_directory do - :"file.directory" - end - - @doc namespace: :file - @doc """ - File extension, excluding the leading dot - - ### Notes - - When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz") - - iex> OpenTelemetry.SemanticConventions.Common.file_extension() - :"file.extension" - """ - @spec file_extension :: :"file.extension" - def file_extension do - :"file.extension" - end - - @doc namespace: :file - @doc """ - Name of the file including the extension, without the directory - - iex> OpenTelemetry.SemanticConventions.Common.file_name() - :"file.name" - """ - @spec file_name :: :"file.name" - def file_name do - :"file.name" - end - - @doc namespace: :file - @doc """ - Full path to the file, including the file name. It should include the drive letter, when appropriate - - iex> OpenTelemetry.SemanticConventions.Common.file_path() - :"file.path" - """ - @spec file_path :: :"file.path" - def file_path do - :"file.path" - end - - @doc namespace: :file - @doc """ - File size in bytes - - iex> OpenTelemetry.SemanticConventions.Common.file_size() - :"file.size" - """ - @spec file_size :: :"file.size" - def file_size do - :"file.size" - end - - @doc namespace: :gcp - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.gcp_cloud_run_job_execution() - :"gcp.cloud_run.job.execution" - """ - @spec gcp_cloud_run_job_execution :: :"gcp.cloud_run.job.execution" - def gcp_cloud_run_job_execution do - :"gcp.cloud_run.job.execution" - end - - @doc namespace: :gcp - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.gcp_cloud_run_job_task_index() - :"gcp.cloud_run.job.task_index" - """ - @spec gcp_cloud_run_job_task_index :: :"gcp.cloud_run.job.task_index" - def gcp_cloud_run_job_task_index do - :"gcp.cloud_run.job.task_index" - end - - @doc namespace: :gcp - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Common.gcp_gce_instance_hostname() - :"gcp.gce.instance.hostname" - """ - @spec gcp_gce_instance_hostname :: :"gcp.gce.instance.hostname" - def gcp_gce_instance_hostname do - :"gcp.gce.instance.hostname" - end - - @doc namespace: :gcp - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Common.gcp_gce_instance_name() - :"gcp.gce.instance.name" - """ - @spec gcp_gce_instance_name :: :"gcp.gce.instance.name" - def gcp_gce_instance_name do - :"gcp.gce.instance.name" - end - - @doc namespace: :host - @doc """ - The CPU architecture the host system is running on - - iex> OpenTelemetry.SemanticConventions.Common.host_arch() - :"host.arch" - """ - @spec host_arch :: :"host.arch" - def host_arch do - :"host.arch" - end - - @doc namespace: :host - @doc """ - The amount of level 2 memory cache available to the processor (in Bytes) - - iex> OpenTelemetry.SemanticConventions.Common.host_cpu_cache_l2_size() - :"host.cpu.cache.l2.size" - """ - @spec host_cpu_cache_l2_size :: :"host.cpu.cache.l2.size" - def host_cpu_cache_l2_size do - :"host.cpu.cache.l2.size" - end - - @doc namespace: :host - @doc """ - Family or generation of the CPU - - iex> OpenTelemetry.SemanticConventions.Common.host_cpu_family() - :"host.cpu.family" - """ - @spec host_cpu_family :: :"host.cpu.family" - def host_cpu_family do - :"host.cpu.family" - end - - @doc namespace: :host - @doc """ - Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family - - iex> OpenTelemetry.SemanticConventions.Common.host_cpu_model_id() - :"host.cpu.model.id" - """ - @spec host_cpu_model_id :: :"host.cpu.model.id" - def host_cpu_model_id do - :"host.cpu.model.id" - end - - @doc namespace: :host - @doc """ - Model designation of the processor - - iex> OpenTelemetry.SemanticConventions.Common.host_cpu_model_name() - :"host.cpu.model.name" - """ - @spec host_cpu_model_name :: :"host.cpu.model.name" - def host_cpu_model_name do - :"host.cpu.model.name" - end - - @doc namespace: :host - @doc """ - Stepping or core revisions - - iex> OpenTelemetry.SemanticConventions.Common.host_cpu_stepping() - :"host.cpu.stepping" - """ - @spec host_cpu_stepping :: :"host.cpu.stepping" - def host_cpu_stepping do - :"host.cpu.stepping" - end - - @doc namespace: :host - @doc """ - Processor manufacturer identifier. A maximum 12-character string - - ### Notes - - [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 - - iex> OpenTelemetry.SemanticConventions.Common.host_cpu_vendor_id() - :"host.cpu.vendor.id" - """ - @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" - def host_cpu_vendor_id do - :"host.cpu.vendor.id" - end - - @doc namespace: :host - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.host_id() - :"host.id" - """ - @spec host_id :: :"host.id" - def host_id do - :"host.id" - end - - @doc namespace: :host - @doc """ - VM image ID or host OS image ID. For Cloud, this value is from the provider - - iex> OpenTelemetry.SemanticConventions.Common.host_image_id() - :"host.image.id" - """ - @spec host_image_id :: :"host.image.id" - def host_image_id do - :"host.image.id" - end - - @doc namespace: :host - @doc """ - Name of the VM image or OS install the host was instantiated from - - iex> OpenTelemetry.SemanticConventions.Common.host_image_name() - :"host.image.name" - """ - @spec host_image_name :: :"host.image.name" - def host_image_name do - :"host.image.name" - end - - @doc namespace: :host - @doc """ - The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) - - iex> OpenTelemetry.SemanticConventions.Common.host_image_version() - :"host.image.version" - """ - @spec host_image_version :: :"host.image.version" - def host_image_version do - :"host.image.version" - end - - @doc namespace: :host - @doc """ - Available IP addresses of the host, excluding loopback interfaces - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.host_ip() - :"host.ip" - """ - @spec host_ip :: :"host.ip" - def host_ip do - :"host.ip" - end - - @doc namespace: :host - @doc """ - Available MAC addresses of the host, excluding loopback interfaces - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Common.host_mac() - :"host.mac" - """ - @spec host_mac :: :"host.mac" - def host_mac do - :"host.mac" - end - - @doc namespace: :host - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.host_name() - :"host.name" - """ - @spec host_name :: :"host.name" - def host_name do - :"host.name" - end - - @doc namespace: :host - @doc """ - Type of host. For Cloud, this must be the machine type - - iex> OpenTelemetry.SemanticConventions.Common.host_type() - :"host.type" - """ - @spec host_type :: :"host.type" - def host_type do - :"host.type" - end - - @doc namespace: :http - @doc """ - State of the HTTP connection in the HTTP connection pool - - iex> OpenTelemetry.SemanticConventions.Common.http_connection_state() - :"http.connection.state" - """ - @spec http_connection_state :: :"http.connection.state" - def http_connection_state do - :"http.connection.state" - end - - @doc namespace: :http - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.http_request_body_size() - :"http.request.body.size" - """ - @spec http_request_body_size :: :"http.request.body.size" - def http_request_body_size do - :"http.request.body.size" - end - - @doc namespace: :http - @doc """ - Original HTTP method sent by the client in the request line - - iex> OpenTelemetry.SemanticConventions.Common.http_request_method_original() - :"http.request.method_original" - """ - @spec http_request_method_original :: :"http.request.method_original" - def http_request_method_original do - :"http.request.method_original" - end - - @doc namespace: :http - @doc """ - The ordinal number of request resending attempt (for any reason, including redirects) - - ### Notes - - The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) - - iex> OpenTelemetry.SemanticConventions.Common.http_request_resend_count() - :"http.request.resend_count" - """ - @spec http_request_resend_count :: :"http.request.resend_count" - def http_request_resend_count do - :"http.request.resend_count" - end - - @doc namespace: :http - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.http_request_size() - :"http.request.size" - """ - @spec http_request_size :: :"http.request.size" - def http_request_size do - :"http.request.size" - end - - @doc namespace: :http - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.http_response_body_size() - :"http.response.body.size" - """ - @spec http_response_body_size :: :"http.response.body.size" - def http_response_body_size do - :"http.response.body.size" - end - - @doc namespace: :http - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Common.http_response_size() - :"http.response.size" - """ - @spec http_response_size :: :"http.response.size" - def http_response_size do - :"http.response.size" - end - - @doc namespace: :k8s - @doc """ - The name of the cluster - - iex> OpenTelemetry.SemanticConventions.Common.k8s_cluster_name() - :"k8s.cluster.name" - """ - @spec k8s_cluster_name :: :"k8s.cluster.name" - def k8s_cluster_name do - :"k8s.cluster.name" - end - - @doc namespace: :k8s - @doc """ - A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace - - ### Notes - - K8s doesn't have support for obtaining a cluster ID. If this is ever - added, we will recommend collecting the `k8s.cluster.uid` through the - official APIs. In the meantime, we are able to use the `uid` of the - `kube-system` namespace as a proxy for cluster ID. Read on for the - rationale. - - Every object created in a K8s cluster is assigned a distinct UID. The - `kube-system` namespace is used by Kubernetes itself and will exist - for the lifetime of the cluster. Using the `uid` of the `kube-system` - namespace is a reasonable proxy for the K8s ClusterID as it will only - change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are - UUIDs as standardized by - [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). - Which states: - - > If generated according to one of the mechanisms defined in Rec. - ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be - different from all other UUIDs generated before 3603 A.D., or is - extremely likely to be different (depending on the mechanism chosen). - - Therefore, UIDs between clusters should be extremely unlikely to - conflict - - iex> OpenTelemetry.SemanticConventions.Common.k8s_cluster_uid() - :"k8s.cluster.uid" - """ - @spec k8s_cluster_uid :: :"k8s.cluster.uid" - def k8s_cluster_uid do - :"k8s.cluster.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) - - iex> OpenTelemetry.SemanticConventions.Common.k8s_container_name() - :"k8s.container.name" - """ - @spec k8s_container_name :: :"k8s.container.name" - def k8s_container_name do - :"k8s.container.name" - end - - @doc namespace: :k8s - @doc """ - Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec - - iex> OpenTelemetry.SemanticConventions.Common.k8s_container_restart_count() - :"k8s.container.restart_count" - """ - @spec k8s_container_restart_count :: :"k8s.container.restart_count" - def k8s_container_restart_count do - :"k8s.container.restart_count" - end - - @doc namespace: :k8s - @doc """ - The name of the CronJob - - iex> OpenTelemetry.SemanticConventions.Common.k8s_cronjob_name() - :"k8s.cronjob.name" - """ - @spec k8s_cronjob_name :: :"k8s.cronjob.name" - def k8s_cronjob_name do - :"k8s.cronjob.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the CronJob - - iex> OpenTelemetry.SemanticConventions.Common.k8s_cronjob_uid() - :"k8s.cronjob.uid" - """ - @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" - def k8s_cronjob_uid do - :"k8s.cronjob.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the DaemonSet - - iex> OpenTelemetry.SemanticConventions.Common.k8s_daemonset_name() - :"k8s.daemonset.name" - """ - @spec k8s_daemonset_name :: :"k8s.daemonset.name" - def k8s_daemonset_name do - :"k8s.daemonset.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the DaemonSet - - iex> OpenTelemetry.SemanticConventions.Common.k8s_daemonset_uid() - :"k8s.daemonset.uid" - """ - @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" - def k8s_daemonset_uid do - :"k8s.daemonset.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Deployment - - iex> OpenTelemetry.SemanticConventions.Common.k8s_deployment_name() - :"k8s.deployment.name" - """ - @spec k8s_deployment_name :: :"k8s.deployment.name" - def k8s_deployment_name do - :"k8s.deployment.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Deployment - - iex> OpenTelemetry.SemanticConventions.Common.k8s_deployment_uid() - :"k8s.deployment.uid" - """ - @spec k8s_deployment_uid :: :"k8s.deployment.uid" - def k8s_deployment_uid do - :"k8s.deployment.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Job - - iex> OpenTelemetry.SemanticConventions.Common.k8s_job_name() - :"k8s.job.name" - """ - @spec k8s_job_name :: :"k8s.job.name" - def k8s_job_name do - :"k8s.job.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Job - - iex> OpenTelemetry.SemanticConventions.Common.k8s_job_uid() - :"k8s.job.uid" - """ - @spec k8s_job_uid :: :"k8s.job.uid" - def k8s_job_uid do - :"k8s.job.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the namespace that the pod is running in - - iex> OpenTelemetry.SemanticConventions.Common.k8s_namespace_name() - :"k8s.namespace.name" - """ - @spec k8s_namespace_name :: :"k8s.namespace.name" - def k8s_namespace_name do - :"k8s.namespace.name" - end - - @doc namespace: :k8s - @doc """ - The name of the Node - - iex> OpenTelemetry.SemanticConventions.Common.k8s_node_name() - :"k8s.node.name" - """ - @spec k8s_node_name :: :"k8s.node.name" - def k8s_node_name do - :"k8s.node.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Node - - iex> OpenTelemetry.SemanticConventions.Common.k8s_node_uid() - :"k8s.node.uid" - """ - @spec k8s_node_uid :: :"k8s.node.uid" - def k8s_node_uid do - :"k8s.node.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Pod - - iex> OpenTelemetry.SemanticConventions.Common.k8s_pod_name() - :"k8s.pod.name" - """ - @spec k8s_pod_name :: :"k8s.pod.name" - def k8s_pod_name do - :"k8s.pod.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Pod - - iex> OpenTelemetry.SemanticConventions.Common.k8s_pod_uid() - :"k8s.pod.uid" - """ - @spec k8s_pod_uid :: :"k8s.pod.uid" - def k8s_pod_uid do - :"k8s.pod.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the ReplicaSet - - iex> OpenTelemetry.SemanticConventions.Common.k8s_replicaset_name() - :"k8s.replicaset.name" - """ - @spec k8s_replicaset_name :: :"k8s.replicaset.name" - def k8s_replicaset_name do - :"k8s.replicaset.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the ReplicaSet - - iex> OpenTelemetry.SemanticConventions.Common.k8s_replicaset_uid() - :"k8s.replicaset.uid" - """ - @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" - def k8s_replicaset_uid do - :"k8s.replicaset.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the StatefulSet - - iex> OpenTelemetry.SemanticConventions.Common.k8s_statefulset_name() - :"k8s.statefulset.name" - """ - @spec k8s_statefulset_name :: :"k8s.statefulset.name" - def k8s_statefulset_name do - :"k8s.statefulset.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the StatefulSet - - iex> OpenTelemetry.SemanticConventions.Common.k8s_statefulset_uid() - :"k8s.statefulset.uid" - """ - @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" - def k8s_statefulset_uid do - :"k8s.statefulset.uid" - end - - @doc namespace: :messaging - @doc """ - The number of messages sent, received, or processed in the scope of the batching operation - - ### Notes - - Instrumentations **SHOULD NOT** set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations **SHOULD** use `messaging.batch.message_count` for batching APIs and **SHOULD NOT** use it for single-message APIs - - iex> OpenTelemetry.SemanticConventions.Common.messaging_batch_message_count() - :"messaging.batch.message_count" - """ - @spec messaging_batch_message_count :: :"messaging.batch.message_count" - def messaging_batch_message_count do - :"messaging.batch.message_count" - end - - @doc namespace: :messaging - @doc """ - A unique identifier for the client that consumes or produces a message - - iex> OpenTelemetry.SemanticConventions.Common.messaging_client_id() - :"messaging.client_id" - """ - @spec messaging_client_id :: :"messaging.client_id" - def messaging_client_id do - :"messaging.client_id" - end - - @doc namespace: :messaging - @doc """ - A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_anonymous() - :"messaging.destination.anonymous" - """ - @spec messaging_destination_anonymous :: :"messaging.destination.anonymous" - def messaging_destination_anonymous do - :"messaging.destination.anonymous" - end - - @doc namespace: :messaging - @doc """ - The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_partition_id() - :"messaging.destination.partition.id" - """ - @spec messaging_destination_partition_id :: :"messaging.destination.partition.id" - def messaging_destination_partition_id do - :"messaging.destination.partition.id" - end - - @doc namespace: :messaging - @doc """ - A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_temporary() - :"messaging.destination.temporary" - """ - @spec messaging_destination_temporary :: :"messaging.destination.temporary" - def messaging_destination_temporary do - :"messaging.destination.temporary" - end - - @doc namespace: :messaging - @doc """ - A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name) - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_publish_anonymous() - :"messaging.destination_publish.anonymous" - """ - @spec messaging_destination_publish_anonymous :: :"messaging.destination_publish.anonymous" - def messaging_destination_publish_anonymous do - :"messaging.destination_publish.anonymous" - end - - @doc namespace: :messaging - @doc """ - The name of the original destination the message was published to - - ### Notes - - The name **SHOULD** uniquely identify a specific queue, topic, or other entity within the broker. If - the broker doesn't have such notion, the original destination name **SHOULD** uniquely identify the broker - - iex> OpenTelemetry.SemanticConventions.Common.messaging_destination_publish_name() - :"messaging.destination_publish.name" - """ - @spec messaging_destination_publish_name :: :"messaging.destination_publish.name" - def messaging_destination_publish_name do - :"messaging.destination_publish.name" - end - - @doc namespace: :messaging - @doc """ - The name of the consumer group the event consumer is associated with - - iex> OpenTelemetry.SemanticConventions.Common.messaging_eventhubs_consumer_group() - :"messaging.eventhubs.consumer.group" - """ - @spec messaging_eventhubs_consumer_group :: :"messaging.eventhubs.consumer.group" - def messaging_eventhubs_consumer_group do - :"messaging.eventhubs.consumer.group" - end - - @doc namespace: :messaging - @doc """ - The UTC epoch seconds at which the message has been accepted and stored in the entity - - iex> OpenTelemetry.SemanticConventions.Common.messaging_eventhubs_message_enqueued_time() - :"messaging.eventhubs.message.enqueued_time" - """ - @spec messaging_eventhubs_message_enqueued_time :: :"messaging.eventhubs.message.enqueued_time" - def messaging_eventhubs_message_enqueued_time do - :"messaging.eventhubs.message.enqueued_time" - end - - @doc namespace: :messaging - @doc """ - The ordering key for a given message. If the attribute is not present, the message does not have an ordering key - - iex> OpenTelemetry.SemanticConventions.Common.messaging_gcp_pubsub_message_ordering_key() - :"messaging.gcp_pubsub.message.ordering_key" - """ - @spec messaging_gcp_pubsub_message_ordering_key :: :"messaging.gcp_pubsub.message.ordering_key" - def messaging_gcp_pubsub_message_ordering_key do - :"messaging.gcp_pubsub.message.ordering_key" - end - - @doc namespace: :messaging - @doc """ - Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers - - iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_consumer_group() - :"messaging.kafka.consumer.group" - """ - @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer.group" - def messaging_kafka_consumer_group do - :"messaging.kafka.consumer.group" - end - - @doc namespace: :messaging - @doc """ - Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute **MUST NOT** be set - - ### Notes - - If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value - - iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_message_key() - :"messaging.kafka.message.key" - """ - @spec messaging_kafka_message_key :: :"messaging.kafka.message.key" - def messaging_kafka_message_key do - :"messaging.kafka.message.key" - end - - @doc namespace: :messaging - @doc """ - The offset of a record in the corresponding Kafka partition - - iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_message_offset() - :"messaging.kafka.message.offset" - """ - @spec messaging_kafka_message_offset :: :"messaging.kafka.message.offset" - def messaging_kafka_message_offset do - :"messaging.kafka.message.offset" - end - - @doc namespace: :messaging - @doc """ - A boolean that is true if the message is a tombstone - - iex> OpenTelemetry.SemanticConventions.Common.messaging_kafka_message_tombstone() - :"messaging.kafka.message.tombstone" - """ - @spec messaging_kafka_message_tombstone :: :"messaging.kafka.message.tombstone" - def messaging_kafka_message_tombstone do - :"messaging.kafka.message.tombstone" - end - - @doc namespace: :messaging - @doc """ - The size of the message body in bytes - - ### Notes - - This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed - body size should be used - - iex> OpenTelemetry.SemanticConventions.Common.messaging_message_body_size() - :"messaging.message.body.size" - """ - @spec messaging_message_body_size :: :"messaging.message.body.size" - def messaging_message_body_size do - :"messaging.message.body.size" - end - - @doc namespace: :messaging - @doc """ - The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" - - iex> OpenTelemetry.SemanticConventions.Common.messaging_message_conversation_id() - :"messaging.message.conversation_id" - """ - @spec messaging_message_conversation_id :: :"messaging.message.conversation_id" - def messaging_message_conversation_id do - :"messaging.message.conversation_id" - end - - @doc namespace: :messaging - @doc """ - The size of the message body and metadata in bytes - - ### Notes - - This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed - size should be used - - iex> OpenTelemetry.SemanticConventions.Common.messaging_message_envelope_size() - :"messaging.message.envelope.size" - """ - @spec messaging_message_envelope_size :: :"messaging.message.envelope.size" - def messaging_message_envelope_size do - :"messaging.message.envelope.size" - end - - @doc namespace: :messaging - @doc """ - A value used by the messaging system as an identifier for the message, represented as a string - - iex> OpenTelemetry.SemanticConventions.Common.messaging_message_id() - :"messaging.message.id" - """ - @spec messaging_message_id :: :"messaging.message.id" - def messaging_message_id do - :"messaging.message.id" - end - - @doc namespace: :messaging - @doc """ - A string identifying the kind of messaging operation - - ### Notes - - If a custom value is used, it **MUST** be of low cardinality - - iex> OpenTelemetry.SemanticConventions.Common.messaging_operation() - :"messaging.operation" - """ - @spec messaging_operation :: :"messaging.operation" - def messaging_operation do - :"messaging.operation" - end - - @doc namespace: :messaging - @doc """ - RabbitMQ message routing key - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rabbitmq_destination_routing_key() - :"messaging.rabbitmq.destination.routing_key" - """ - @spec messaging_rabbitmq_destination_routing_key :: - :"messaging.rabbitmq.destination.routing_key" - def messaging_rabbitmq_destination_routing_key do - :"messaging.rabbitmq.destination.routing_key" - end - - @doc namespace: :messaging - @doc """ - RabbitMQ message delivery tag - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rabbitmq_message_delivery_tag() - :"messaging.rabbitmq.message.delivery_tag" - """ - @spec messaging_rabbitmq_message_delivery_tag :: :"messaging.rabbitmq.message.delivery_tag" - def messaging_rabbitmq_message_delivery_tag do - :"messaging.rabbitmq.message.delivery_tag" - end - - @doc namespace: :messaging - @doc """ - Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_client_group() - :"messaging.rocketmq.client_group" - """ - @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" - def messaging_rocketmq_client_group do - :"messaging.rocketmq.client_group" - end - - @doc namespace: :messaging - @doc """ - Model of message consumption. This only applies to consumer spans - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_consumption_model() - :"messaging.rocketmq.consumption_model" - """ - @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" - def messaging_rocketmq_consumption_model do - :"messaging.rocketmq.consumption_model" - end - - @doc namespace: :messaging - @doc """ - The delay time level for delay message, which determines the message delay time - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_delay_time_level() - :"messaging.rocketmq.message.delay_time_level" - """ - @spec messaging_rocketmq_message_delay_time_level :: - :"messaging.rocketmq.message.delay_time_level" - def messaging_rocketmq_message_delay_time_level do - :"messaging.rocketmq.message.delay_time_level" - end - - @doc namespace: :messaging - @doc """ - The timestamp in milliseconds that the delay message is expected to be delivered to consumer - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_delivery_timestamp() - :"messaging.rocketmq.message.delivery_timestamp" - """ - @spec messaging_rocketmq_message_delivery_timestamp :: - :"messaging.rocketmq.message.delivery_timestamp" - def messaging_rocketmq_message_delivery_timestamp do - :"messaging.rocketmq.message.delivery_timestamp" - end - - @doc namespace: :messaging - @doc """ - It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_group() - :"messaging.rocketmq.message.group" - """ - @spec messaging_rocketmq_message_group :: :"messaging.rocketmq.message.group" - def messaging_rocketmq_message_group do - :"messaging.rocketmq.message.group" - end - - @doc namespace: :messaging - @doc """ - Key(s) of message, another way to mark message besides message id - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_keys() - :"messaging.rocketmq.message.keys" - """ - @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message.keys" - def messaging_rocketmq_message_keys do - :"messaging.rocketmq.message.keys" - end - - @doc namespace: :messaging - @doc """ - The secondary classifier of message besides topic - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_tag() - :"messaging.rocketmq.message.tag" - """ - @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message.tag" - def messaging_rocketmq_message_tag do - :"messaging.rocketmq.message.tag" - end - - @doc namespace: :messaging - @doc """ - Type of message - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_message_type() - :"messaging.rocketmq.message.type" - """ - @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message.type" - def messaging_rocketmq_message_type do - :"messaging.rocketmq.message.type" - end - - @doc namespace: :messaging - @doc """ - Namespace of RocketMQ resources, resources in different namespaces are individual - - iex> OpenTelemetry.SemanticConventions.Common.messaging_rocketmq_namespace() - :"messaging.rocketmq.namespace" - """ - @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" - def messaging_rocketmq_namespace do - :"messaging.rocketmq.namespace" - end - - @doc namespace: :messaging - @doc """ - The name of the subscription in the topic messages are received from - - iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_destination_subscription_name() - :"messaging.servicebus.destination.subscription_name" - """ - @spec messaging_servicebus_destination_subscription_name :: - :"messaging.servicebus.destination.subscription_name" - def messaging_servicebus_destination_subscription_name do - :"messaging.servicebus.destination.subscription_name" - end - - @doc namespace: :messaging - @doc """ - Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) - - iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_disposition_status() - :"messaging.servicebus.disposition_status" - """ - @spec messaging_servicebus_disposition_status :: :"messaging.servicebus.disposition_status" - def messaging_servicebus_disposition_status do - :"messaging.servicebus.disposition_status" - end - - @doc namespace: :messaging - @doc """ - Number of deliveries that have been attempted for this message - - iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_message_delivery_count() - :"messaging.servicebus.message.delivery_count" - """ - @spec messaging_servicebus_message_delivery_count :: - :"messaging.servicebus.message.delivery_count" - def messaging_servicebus_message_delivery_count do - :"messaging.servicebus.message.delivery_count" - end - - @doc namespace: :messaging - @doc """ - The UTC epoch seconds at which the message has been accepted and stored in the entity - - iex> OpenTelemetry.SemanticConventions.Common.messaging_servicebus_message_enqueued_time() - :"messaging.servicebus.message.enqueued_time" - """ - @spec messaging_servicebus_message_enqueued_time :: - :"messaging.servicebus.message.enqueued_time" - def messaging_servicebus_message_enqueued_time do - :"messaging.servicebus.message.enqueued_time" - end - - @doc namespace: :network - @doc """ - The network IO operation direction - - iex> OpenTelemetry.SemanticConventions.Common.network_io_direction() - :"network.io.direction" - """ - @spec network_io_direction :: :"network.io.direction" - def network_io_direction do - :"network.io.direction" - end - - @doc namespace: :oci - @doc """ - The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known - - ### Notes - - Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). - An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) - - iex> OpenTelemetry.SemanticConventions.Common.oci_manifest_digest() - :"oci.manifest.digest" - """ - @spec oci_manifest_digest :: :"oci.manifest.digest" - def oci_manifest_digest do - :"oci.manifest.digest" - end - - @doc namespace: :process - @doc """ - The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` - - iex> OpenTelemetry.SemanticConventions.Common.process_command() - :"process.command" - """ - @spec process_command :: :"process.command" - def process_command do - :"process.command" - end - - @doc namespace: :process - @doc """ - All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` - - iex> OpenTelemetry.SemanticConventions.Common.process_command_args() - :"process.command_args" - """ - @spec process_command_args :: :"process.command_args" - def process_command_args do - :"process.command_args" - end - - @doc namespace: :process - @doc """ - The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead - - iex> OpenTelemetry.SemanticConventions.Common.process_command_line() - :"process.command_line" - """ - @spec process_command_line :: :"process.command_line" - def process_command_line do - :"process.command_line" - end - - @doc namespace: :process - @doc """ - The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` - - iex> OpenTelemetry.SemanticConventions.Common.process_executable_name() - :"process.executable.name" - """ - @spec process_executable_name :: :"process.executable.name" - def process_executable_name do - :"process.executable.name" - end - - @doc namespace: :process - @doc """ - The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` - - iex> OpenTelemetry.SemanticConventions.Common.process_executable_path() - :"process.executable.path" - """ - @spec process_executable_path :: :"process.executable.path" - def process_executable_path do - :"process.executable.path" - end - - @doc namespace: :process - @doc """ - The username of the user that owns the process - - iex> OpenTelemetry.SemanticConventions.Common.process_owner() - :"process.owner" - """ - @spec process_owner :: :"process.owner" - def process_owner do - :"process.owner" - end - - @doc namespace: :process - @doc """ - Parent Process identifier (PPID) - - iex> OpenTelemetry.SemanticConventions.Common.process_parent_pid() - :"process.parent_pid" - """ - @spec process_parent_pid :: :"process.parent_pid" - def process_parent_pid do - :"process.parent_pid" - end - - @doc namespace: :process - @doc """ - Process identifier (PID) - - iex> OpenTelemetry.SemanticConventions.Common.process_pid() - :"process.pid" - """ - @spec process_pid :: :"process.pid" - def process_pid do - :"process.pid" - end - - @doc namespace: :process - @doc """ - An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment - - iex> OpenTelemetry.SemanticConventions.Common.process_runtime_description() - :"process.runtime.description" - """ - @spec process_runtime_description :: :"process.runtime.description" - def process_runtime_description do - :"process.runtime.description" - end - - @doc namespace: :process - @doc """ - The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler - - iex> OpenTelemetry.SemanticConventions.Common.process_runtime_name() - :"process.runtime.name" - """ - @spec process_runtime_name :: :"process.runtime.name" - def process_runtime_name do - :"process.runtime.name" - end - - @doc namespace: :process - @doc """ - The version of the runtime of this process, as returned by the runtime without modification - - iex> OpenTelemetry.SemanticConventions.Common.process_runtime_version() - :"process.runtime.version" - """ - @spec process_runtime_version :: :"process.runtime.version" - def process_runtime_version do - :"process.runtime.version" - end - - @doc namespace: :rpc - @doc """ - The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values - - iex> OpenTelemetry.SemanticConventions.Common.rpc_connect_rpc_error_code() - :"rpc.connect_rpc.error_code" - """ - @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" - def rpc_connect_rpc_error_code do - :"rpc.connect_rpc.error_code" - end - - @doc namespace: :rpc - @doc """ - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request - - iex> OpenTelemetry.SemanticConventions.Common.rpc_grpc_status_code() - :"rpc.grpc.status_code" - """ - @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" - def rpc_grpc_status_code do - :"rpc.grpc.status_code" - end - - @doc namespace: :rpc - @doc """ - `error.code` property of response if it is an error response - - iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_error_code() - :"rpc.jsonrpc.error_code" - """ - @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" - def rpc_jsonrpc_error_code do - :"rpc.jsonrpc.error_code" - end - - @doc namespace: :rpc - @doc """ - `error.message` property of response if it is an error response - - iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_error_message() - :"rpc.jsonrpc.error_message" - """ - @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" - def rpc_jsonrpc_error_message do - :"rpc.jsonrpc.error_message" - end - - @doc namespace: :rpc - @doc """ - `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification - - iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_request_id() - :"rpc.jsonrpc.request_id" - """ - @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" - def rpc_jsonrpc_request_id do - :"rpc.jsonrpc.request_id" - end - - @doc namespace: :rpc - @doc """ - Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted - - iex> OpenTelemetry.SemanticConventions.Common.rpc_jsonrpc_version() - :"rpc.jsonrpc.version" - """ - @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" - def rpc_jsonrpc_version do - :"rpc.jsonrpc.version" - end - - @doc namespace: :service - @doc """ - The string ID of the service instance - - ### Notes - - **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words - `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to - distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled - service). - - Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC - 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of - this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and - **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. - - UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is - needed. Similar to what can be seen in the man page for the - [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying - data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it - or not via another resource attribute. - - For applications running behind an application server (like unicorn), we do not recommend using one identifier - for all processes participating in the application. Instead, it's recommended each division (e.g. a worker - thread in unicorn) to have its own instance.id. - - It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the - service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will - likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. - However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance - for that telemetry. This is typically the case for scraping receivers, as they know the target address and - port - - iex> OpenTelemetry.SemanticConventions.Common.service_instance_id() - :"service.instance.id" - """ - @spec service_instance_id :: :"service.instance.id" - def service_instance_id do - :"service.instance.id" - end - - @doc namespace: :service - @doc """ - Logical name of the service - - ### Notes - - **MUST** be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service` - - iex> OpenTelemetry.SemanticConventions.Common.service_name() - :"service.name" - """ - @spec service_name :: :"service.name" - def service_name do - :"service.name" - end - - @doc namespace: :service - @doc """ - A namespace for `service.name` - - ### Notes - - A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace - - iex> OpenTelemetry.SemanticConventions.Common.service_namespace() - :"service.namespace" - """ - @spec service_namespace :: :"service.namespace" - def service_namespace do - :"service.namespace" - end - - @doc namespace: :service - @doc """ - The version string of the service API or implementation. The format is not defined by these conventions - - iex> OpenTelemetry.SemanticConventions.Common.service_version() - :"service.version" - """ - @spec service_version :: :"service.version" - def service_version do - :"service.version" - end - - @doc namespace: :session - @doc """ - A unique id to identify a session - - iex> OpenTelemetry.SemanticConventions.Common.session_id() - :"session.id" - """ - @spec session_id :: :"session.id" - def session_id do - :"session.id" - end - - @doc namespace: :session - @doc """ - The previous `session.id` for this user, when known - - iex> OpenTelemetry.SemanticConventions.Common.session_previous_id() - :"session.previous_id" - """ - @spec session_previous_id :: :"session.previous_id" - def session_previous_id do - :"session.previous_id" - end - - @doc namespace: :telemetry - @doc """ - The language of the telemetry SDK - - iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_language() - :"telemetry.sdk.language" - """ - @spec telemetry_sdk_language :: :"telemetry.sdk.language" - def telemetry_sdk_language do - :"telemetry.sdk.language" - end - - @doc namespace: :telemetry - @doc """ - The name of the telemetry SDK as defined above - - ### Notes - - The OpenTelemetry SDK **MUST** set the `telemetry.sdk.name` attribute to `opentelemetry`. - If another SDK, like a fork or a vendor-provided implementation, is used, this SDK **MUST** set the - `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point - or another suitable identifier depending on the language. - The identifier `opentelemetry` is reserved and **MUST NOT** be used in this case. - All custom identifiers **SHOULD** be stable across different versions of an implementation - - iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_name() - :"telemetry.sdk.name" - """ - @spec telemetry_sdk_name :: :"telemetry.sdk.name" - def telemetry_sdk_name do - :"telemetry.sdk.name" - end - - @doc namespace: :telemetry - @doc """ - The version string of the telemetry SDK - - iex> OpenTelemetry.SemanticConventions.Common.telemetry_sdk_version() - :"telemetry.sdk.version" - """ - @spec telemetry_sdk_version :: :"telemetry.sdk.version" - def telemetry_sdk_version do - :"telemetry.sdk.version" - end - - @doc namespace: :telemetry - @doc """ - The name of the auto instrumentation agent or distribution, if used - - ### Notes - - Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to - a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` - - iex> OpenTelemetry.SemanticConventions.Common.telemetry_distro_name() - :"telemetry.distro.name" - """ - @spec telemetry_distro_name :: :"telemetry.distro.name" - def telemetry_distro_name do - :"telemetry.distro.name" - end - - @doc namespace: :telemetry - @doc """ - The version string of the auto instrumentation agent or distribution, if used - - iex> OpenTelemetry.SemanticConventions.Common.telemetry_distro_version() - :"telemetry.distro.version" - """ - @spec telemetry_distro_version :: :"telemetry.distro.version" - def telemetry_distro_version do - :"telemetry.distro.version" - end - - @doc namespace: :thread - @doc """ - Current "managed" thread ID (as opposed to OS thread ID) - - iex> OpenTelemetry.SemanticConventions.Common.thread_id() - :"thread.id" - """ - @spec thread_id :: :"thread.id" - def thread_id do - :"thread.id" - end - - @doc namespace: :thread - @doc """ - Current thread name - - iex> OpenTelemetry.SemanticConventions.Common.thread_name() - :"thread.name" - """ - @spec thread_name :: :"thread.name" - def thread_name do - :"thread.name" - end - - @doc namespace: :tls - @doc """ - String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection - - ### Notes - - The values allowed for `tls.cipher` **MUST** be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4) - - iex> OpenTelemetry.SemanticConventions.Common.tls_cipher() - :"tls.cipher" - """ - @spec tls_cipher :: :"tls.cipher" - def tls_cipher do - :"tls.cipher" - end - - @doc namespace: :tls - @doc """ - PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_certificate() - :"tls.client.certificate" - """ - @spec tls_client_certificate :: :"tls.client.certificate" - def tls_client_certificate do - :"tls.client.certificate" - end - - @doc namespace: :tls - @doc """ - Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_certificate_chain() - :"tls.client.certificate_chain" - """ - @spec tls_client_certificate_chain :: :"tls.client.certificate_chain" - def tls_client_certificate_chain do - :"tls.client.certificate_chain" - end - - @doc namespace: :tls - @doc """ - Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_hash_md5() - :"tls.client.hash.md5" - """ - @spec tls_client_hash_md5 :: :"tls.client.hash.md5" - def tls_client_hash_md5 do - :"tls.client.hash.md5" - end - - @doc namespace: :tls - @doc """ - Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_hash_sha1() - :"tls.client.hash.sha1" - """ - @spec tls_client_hash_sha1 :: :"tls.client.hash.sha1" - def tls_client_hash_sha1 do - :"tls.client.hash.sha1" - end - - @doc namespace: :tls - @doc """ - Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_hash_sha256() - :"tls.client.hash.sha256" - """ - @spec tls_client_hash_sha256 :: :"tls.client.hash.sha256" - def tls_client_hash_sha256 do - :"tls.client.hash.sha256" - end - - @doc namespace: :tls - @doc """ - Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_issuer() - :"tls.client.issuer" - """ - @spec tls_client_issuer :: :"tls.client.issuer" - def tls_client_issuer do - :"tls.client.issuer" - end - - @doc namespace: :tls - @doc """ - A hash that identifies clients based on how they perform an SSL/TLS handshake - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_ja3() - :"tls.client.ja3" - """ - @spec tls_client_ja3 :: :"tls.client.ja3" - def tls_client_ja3 do - :"tls.client.ja3" - end - - @doc namespace: :tls - @doc """ - Date/Time indicating when client certificate is no longer considered valid - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_not_after() - :"tls.client.not_after" - """ - @spec tls_client_not_after :: :"tls.client.not_after" - def tls_client_not_after do - :"tls.client.not_after" - end - - @doc namespace: :tls - @doc """ - Date/Time indicating when client certificate is first considered valid - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_not_before() - :"tls.client.not_before" - """ - @spec tls_client_not_before :: :"tls.client.not_before" - def tls_client_not_before do - :"tls.client.not_before" - end - - @doc namespace: :tls - @doc """ - Also called an SNI, this tells the server which hostname to which the client is attempting to connect to - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_server_name() - :"tls.client.server_name" - """ - @spec tls_client_server_name :: :"tls.client.server_name" - def tls_client_server_name do - :"tls.client.server_name" - end - - @doc namespace: :tls - @doc """ - Distinguished name of subject of the x.509 certificate presented by the client - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_subject() - :"tls.client.subject" - """ - @spec tls_client_subject :: :"tls.client.subject" - def tls_client_subject do - :"tls.client.subject" - end - - @doc namespace: :tls - @doc """ - Array of ciphers offered by the client during the client hello - - iex> OpenTelemetry.SemanticConventions.Common.tls_client_supported_ciphers() - :"tls.client.supported_ciphers" - """ - @spec tls_client_supported_ciphers :: :"tls.client.supported_ciphers" - def tls_client_supported_ciphers do - :"tls.client.supported_ciphers" - end - - @doc namespace: :tls - @doc """ - String indicating the curve used for the given cipher, when applicable - - iex> OpenTelemetry.SemanticConventions.Common.tls_curve() - :"tls.curve" - """ - @spec tls_curve :: :"tls.curve" - def tls_curve do - :"tls.curve" - end - - @doc namespace: :tls - @doc """ - Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel - - iex> OpenTelemetry.SemanticConventions.Common.tls_established() - :"tls.established" - """ - @spec tls_established :: :"tls.established" - def tls_established do - :"tls.established" - end - - @doc namespace: :tls - @doc """ - String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case - - iex> OpenTelemetry.SemanticConventions.Common.tls_next_protocol() - :"tls.next_protocol" - """ - @spec tls_next_protocol :: :"tls.next_protocol" - def tls_next_protocol do - :"tls.next_protocol" - end - - @doc namespace: :tls - @doc """ - Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - iex> OpenTelemetry.SemanticConventions.Common.tls_protocol_name() - :"tls.protocol.name" - """ - @spec tls_protocol_name :: :"tls.protocol.name" - def tls_protocol_name do - :"tls.protocol.name" - end - - @doc namespace: :tls - @doc """ - Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - iex> OpenTelemetry.SemanticConventions.Common.tls_protocol_version() - :"tls.protocol.version" - """ - @spec tls_protocol_version :: :"tls.protocol.version" - def tls_protocol_version do - :"tls.protocol.version" - end - - @doc namespace: :tls - @doc """ - Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation - - iex> OpenTelemetry.SemanticConventions.Common.tls_resumed() - :"tls.resumed" - """ - @spec tls_resumed :: :"tls.resumed" - def tls_resumed do - :"tls.resumed" - end - - @doc namespace: :tls - @doc """ - PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_certificate() - :"tls.server.certificate" - """ - @spec tls_server_certificate :: :"tls.server.certificate" - def tls_server_certificate do - :"tls.server.certificate" - end - - @doc namespace: :tls - @doc """ - Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_certificate_chain() - :"tls.server.certificate_chain" - """ - @spec tls_server_certificate_chain :: :"tls.server.certificate_chain" - def tls_server_certificate_chain do - :"tls.server.certificate_chain" - end - - @doc namespace: :tls - @doc """ - Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_hash_md5() - :"tls.server.hash.md5" - """ - @spec tls_server_hash_md5 :: :"tls.server.hash.md5" - def tls_server_hash_md5 do - :"tls.server.hash.md5" - end - - @doc namespace: :tls - @doc """ - Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_hash_sha1() - :"tls.server.hash.sha1" - """ - @spec tls_server_hash_sha1 :: :"tls.server.hash.sha1" - def tls_server_hash_sha1 do - :"tls.server.hash.sha1" - end - - @doc namespace: :tls - @doc """ - Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_hash_sha256() - :"tls.server.hash.sha256" - """ - @spec tls_server_hash_sha256 :: :"tls.server.hash.sha256" - def tls_server_hash_sha256 do - :"tls.server.hash.sha256" - end - - @doc namespace: :tls - @doc """ - Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_issuer() - :"tls.server.issuer" - """ - @spec tls_server_issuer :: :"tls.server.issuer" - def tls_server_issuer do - :"tls.server.issuer" - end - - @doc namespace: :tls - @doc """ - A hash that identifies servers based on how they perform an SSL/TLS handshake - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_ja3s() - :"tls.server.ja3s" - """ - @spec tls_server_ja3s :: :"tls.server.ja3s" - def tls_server_ja3s do - :"tls.server.ja3s" - end - - @doc namespace: :tls - @doc """ - Date/Time indicating when server certificate is no longer considered valid - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_not_after() - :"tls.server.not_after" - """ - @spec tls_server_not_after :: :"tls.server.not_after" - def tls_server_not_after do - :"tls.server.not_after" - end - - @doc namespace: :tls - @doc """ - Date/Time indicating when server certificate is first considered valid - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_not_before() - :"tls.server.not_before" - """ - @spec tls_server_not_before :: :"tls.server.not_before" - def tls_server_not_before do - :"tls.server.not_before" - end - - @doc namespace: :tls - @doc """ - Distinguished name of subject of the x.509 certificate presented by the server - - iex> OpenTelemetry.SemanticConventions.Common.tls_server_subject() - :"tls.server.subject" - """ - @spec tls_server_subject :: :"tls.server.subject" - def tls_server_subject do - :"tls.server.subject" - end - - @doc namespace: :url - @doc """ - Domain extracted from the `url.full`, such as "opentelemetry.io" - - ### Notes - - In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field - - iex> OpenTelemetry.SemanticConventions.Common.url_domain() - :"url.domain" - """ - @spec url_domain :: :"url.domain" - def url_domain do - :"url.domain" - end - - @doc namespace: :url - @doc """ - The file extension extracted from the `url.full`, excluding the leading dot - - ### Notes - - The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz` - - iex> OpenTelemetry.SemanticConventions.Common.url_extension() - :"url.extension" - """ - @spec url_extension :: :"url.extension" - def url_extension do - :"url.extension" - end - - @doc namespace: :url - @doc """ - The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component - - iex> OpenTelemetry.SemanticConventions.Common.url_fragment() - :"url.fragment" - """ - @spec url_fragment :: :"url.fragment" - def url_fragment do - :"url.fragment" - end - - @doc namespace: :url - @doc """ - Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) - - ### Notes - - For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it **SHOULD** be included nevertheless. - `url.full` **MUST NOT** contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password **SHOULD** be redacted and attribute's value **SHOULD** be `https://REDACTED:REDACTED@www.example.com/`. - `url.full` **SHOULD** capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` **SHOULD** be scrubbed when instrumentations can identify it - - iex> OpenTelemetry.SemanticConventions.Common.url_full() - :"url.full" - """ - @spec url_full :: :"url.full" - def url_full do - :"url.full" - end - - @doc namespace: :url - @doc """ - Unmodified original URL as seen in the event source - - ### Notes - - In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. - `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username **SHOULD NOT** be redacted and attribute's value **SHOULD** remain the same - - iex> OpenTelemetry.SemanticConventions.Common.url_original() - :"url.original" - """ - @spec url_original :: :"url.original" - def url_original do - :"url.original" - end - - @doc namespace: :url - @doc """ - The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component - - ### Notes - - Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it - - iex> OpenTelemetry.SemanticConventions.Common.url_path() - :"url.path" - """ - @spec url_path :: :"url.path" - def url_path do - :"url.path" - end - - @doc namespace: :url - @doc """ - Port extracted from the `url.full` - - iex> OpenTelemetry.SemanticConventions.Common.url_port() - :"url.port" - """ - @spec url_port :: :"url.port" - def url_port do - :"url.port" - end - - @doc namespace: :url - @doc """ - The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component - - ### Notes - - Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it - - iex> OpenTelemetry.SemanticConventions.Common.url_query() - :"url.query" - """ - @spec url_query :: :"url.query" - def url_query do - :"url.query" - end - - @doc namespace: :url - @doc """ - The highest registered url domain, stripped of the subdomain - - ### Notes - - This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk` - - iex> OpenTelemetry.SemanticConventions.Common.url_registered_domain() - :"url.registered_domain" - """ - @spec url_registered_domain :: :"url.registered_domain" - def url_registered_domain do - :"url.registered_domain" - end - - @doc namespace: :url - @doc """ - The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain - - ### Notes - - The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period - - iex> OpenTelemetry.SemanticConventions.Common.url_subdomain() - :"url.subdomain" - """ - @spec url_subdomain :: :"url.subdomain" - def url_subdomain do - :"url.subdomain" - end - - @doc namespace: :url - @doc """ - The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com` - - ### Notes - - This value can be determined precisely with the [public suffix list](http://publicsuffix.org) - - iex> OpenTelemetry.SemanticConventions.Common.url_top_level_domain() - :"url.top_level_domain" - """ - @spec url_top_level_domain :: :"url.top_level_domain" - def url_top_level_domain do - :"url.top_level_domain" - end - - @doc namespace: :user_agent - @doc """ - Name of the user-agent extracted from original. Usually refers to the browser's name - - ### Notes - - [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` - - iex> OpenTelemetry.SemanticConventions.Common.user_agent_name() - :"user_agent.name" - """ - @spec user_agent_name :: :"user_agent.name" - def user_agent_name do - :"user_agent.name" - end - - @doc namespace: :user_agent - @doc """ - Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client - - iex> OpenTelemetry.SemanticConventions.Common.user_agent_original() - :"user_agent.original" - """ - @spec user_agent_original :: :"user_agent.original" - def user_agent_original do - :"user_agent.original" - end - - @doc namespace: :user_agent - @doc """ - Version of the user-agent extracted from original. Usually refers to the browser's version - - ### Notes - - [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` - - iex> OpenTelemetry.SemanticConventions.Common.user_agent_version() - :"user_agent.version" - """ - @spec user_agent_version :: :"user_agent.version" - def user_agent_version do - :"user_agent.version" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/event.ex b/apps/opentelemetry_semantic_conventions/lib/event.ex deleted file mode 100644 index 9bfecb7f..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/event.ex +++ /dev/null @@ -1,195 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Event do - @moduledoc """ - OpenTelemetry Semantic Conventions for Attributes. - """ - - @doc namespace: :message - @typedoc """ - Whether this is a received or sent message - - ### Options - - * `:SENT`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sent - - * `:RECEIVED`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - received - - """ - @type message_type() :: :SENT | :RECEIVED - - @doc """ - The URL of the OpenTelemetry schema for these keys and values. - - iex> OpenTelemetry.SemanticConventions.Event.schema_url() - "https://opentelemetry.io/schemas/1.25.0" - """ - @spec schema_url :: String.t() - def schema_url do - "https://opentelemetry.io/schemas/1.25.0" - end - - @doc namespace: :feature_flag - @doc """ - The unique identifier of the feature flag - - iex> OpenTelemetry.SemanticConventions.Event.feature_flag_key() - :"feature_flag.key" - """ - @spec feature_flag_key :: :"feature_flag.key" - def feature_flag_key do - :"feature_flag.key" - end - - @doc namespace: :feature_flag - @doc """ - The name of the service provider that performs the flag evaluation - - iex> OpenTelemetry.SemanticConventions.Event.feature_flag_provider_name() - :"feature_flag.provider_name" - """ - @spec feature_flag_provider_name :: :"feature_flag.provider_name" - def feature_flag_provider_name do - :"feature_flag.provider_name" - end - - @doc namespace: :feature_flag - @doc """ - **SHOULD** be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used - - ### Notes - - 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`. - - A stringified version of the value can be used in situations where a - semantic identifier is unavailable. String representation of the value - should be determined by the implementer - - iex> OpenTelemetry.SemanticConventions.Event.feature_flag_variant() - :"feature_flag.variant" - """ - @spec feature_flag_variant :: :"feature_flag.variant" - def feature_flag_variant do - :"feature_flag.variant" - end - - @doc namespace: :message - @doc """ - Compressed size of the message in bytes - - iex> OpenTelemetry.SemanticConventions.Event.message_compressed_size() - :"message.compressed_size" - """ - @spec message_compressed_size :: :"message.compressed_size" - def message_compressed_size do - :"message.compressed_size" - end - - @doc namespace: :message - @doc """ - **MUST** be calculated as two different counters starting from `1` one for sent messages and one for received message - - ### Notes - - This way we guarantee that the values will be consistent between different implementations - - iex> OpenTelemetry.SemanticConventions.Event.message_id() - :"message.id" - """ - @spec message_id :: :"message.id" - def message_id do - :"message.id" - end - - @doc namespace: :message - @doc """ - Whether this is a received or sent message - - iex> OpenTelemetry.SemanticConventions.Event.message_type() - :"message.type" - """ - @spec message_type :: :"message.type" - def message_type do - :"message.type" - end - - @doc namespace: :message - @doc """ - Uncompressed size of the message in bytes - - iex> OpenTelemetry.SemanticConventions.Event.message_uncompressed_size() - :"message.uncompressed_size" - """ - @spec message_uncompressed_size :: :"message.uncompressed_size" - def message_uncompressed_size do - :"message.uncompressed_size" - end - - @doc namespace: :exception - @doc """ - **SHOULD** be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span - - ### Notes - - An exception is considered to have escaped (or left) the scope of a span, - if that span is ended while the exception is still logically "in flight". - This may be actually "in flight" in some languages (e.g. if the exception - is passed to a Context manager's `__exit__` method in Python) but will - usually be caught at the point of recording the exception in most languages. - - It is usually not possible to determine at the point where an exception is thrown - whether it will escape the scope of a span. - However, it is trivial to know that an exception - will escape, if one checks for an active exception just before ending the span, - as done in the [example for recording span exceptions](#recording-an-exception). - - It follows that an exception may still escape the scope of the span - even if the `exception.escaped` attribute was not set or set to false, - since the event might have been recorded at a time where it was not - clear whether the exception will escape - - iex> OpenTelemetry.SemanticConventions.Event.exception_escaped() - :"exception.escaped" - """ - @spec exception_escaped :: :"exception.escaped" - def exception_escaped do - :"exception.escaped" - end - - @doc namespace: :exception - @doc """ - The exception message - - iex> OpenTelemetry.SemanticConventions.Event.exception_message() - :"exception.message" - """ - @spec exception_message :: :"exception.message" - def exception_message do - :"exception.message" - end - - @doc namespace: :exception - @doc """ - A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG - - iex> OpenTelemetry.SemanticConventions.Event.exception_stacktrace() - :"exception.stacktrace" - """ - @spec exception_stacktrace :: :"exception.stacktrace" - def exception_stacktrace do - :"exception.stacktrace" - end - - @doc namespace: :exception - @doc """ - The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it - - iex> OpenTelemetry.SemanticConventions.Event.exception_type() - :"exception.type" - """ - @spec exception_type :: :"exception.type" - def exception_type do - :"exception.type" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/metric.ex b/apps/opentelemetry_semantic_conventions/lib/metric.ex deleted file mode 100644 index 328f9048..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/metric.ex +++ /dev/null @@ -1,800 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Metric do - @moduledoc """ - OpenTelemetry Semantic Conventions for Attributes. - """ - - @doc namespace: :container - @typedoc """ - The CPU state for this data point. A container **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels - - ### Options - - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows) - - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) - - * `:kernel`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows) - - """ - @type container_cpu_state() :: :user | :system | :kernel | atom() - - @doc namespace: :disk - @typedoc """ - The disk IO operation direction - - ### Options - - * `:read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read - - * `:write`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - write - - """ - @type disk_io_direction() :: :read | :write - - @doc namespace: :network - @typedoc """ - The network IO operation direction - - ### Options - - * `:transmit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - transmit - - * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - receive - - """ - @type network_io_direction() :: :transmit | :receive - - @doc namespace: :error - @typedoc """ - Describes the error the DNS lookup failed with - - ### Options - - * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value - - """ - @type error_type() :: :_OTHER | atom() - - @doc namespace: :network - @typedoc """ - [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) - - ### Options - - * `:tcp` - TCP - - * `:udp` - UDP - - * `:pipe` - Named or anonymous pipe - - * `:unix` - Unix domain socket - - """ - @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() - - @doc namespace: :network - @typedoc """ - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent - - ### Options - - * `:ipv4` - IPv4 - - * `:ipv6` - IPv6 - - """ - @type network_type() :: :ipv4 | :ipv6 | atom() - - @doc namespace: :faas - @typedoc """ - Type of the trigger which caused this function invocation - - ### Options - - * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write - - * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request - - * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system - - * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly - - * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - - """ - @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other - - @doc namespace: :http - @typedoc """ - HTTP request method - - ### Options - - * `:CONNECT` - CONNECT method - - * `:DELETE` - DELETE method - - * `:GET` - GET method - - * `:HEAD` - HEAD method - - * `:OPTIONS` - OPTIONS method - - * `:PATCH` - PATCH method - - * `:POST` - POST method - - * `:PUT` - PUT method - - * `:TRACE` - TRACE method - - * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of - - """ - @type http_request_method() :: - :CONNECT - | :DELETE - | :GET - | :HEAD - | :OPTIONS - | :PATCH - | :POST - | :PUT - | :TRACE - | :_OTHER - | atom() - - @doc namespace: :http - @typedoc """ - State of the HTTP connection in the HTTP connection pool - - ### Options - - * `:active`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state - - * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state - - """ - @type http_connection_state() :: :active | :idle | atom() - - @doc namespace: :messaging - @typedoc """ - An identifier for the messaging system being used. See below for a list of well-known identifiers - - ### Options - - * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ - - * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) - - * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid - - * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs - - * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus - - * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub - - * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service - - * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka - - * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ - - * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - - """ - @type messaging_system() :: - :activemq - | :aws_sqs - | :eventgrid - | :eventhubs - | :servicebus - | :gcp_pubsub - | :jms - | :kafka - | :rabbitmq - | :rocketmq - | atom() - - @doc namespace: :process - @typedoc """ - The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels - - ### Options - - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system - - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user - - * `:wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - wait - - """ - @type process_cpu_state() :: :system | :user | :wait | atom() - - @doc namespace: :process - @typedoc """ - Specifies whether the context switches for this data point were voluntary or involuntary - - ### Options - - * `:voluntary`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - voluntary - - * `:involuntary`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - involuntary - - """ - @type process_context_switch_type() :: :voluntary | :involuntary | atom() - - @doc namespace: :process - @typedoc """ - The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults - - ### Options - - * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major - - * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor - - """ - @type process_paging_fault_type() :: :major | :minor | atom() - - @doc namespace: :system - @typedoc """ - The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels - - ### Options - - * `:user`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - user - - * `:system`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - system - - * `:nice`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - nice - - * `:idle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle - - * `:iowait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - iowait - - * `:interrupt`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - interrupt - - * `:steal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - steal - - """ - @type system_cpu_state() :: - :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() - - @doc namespace: :system - @typedoc """ - The memory state - - ### Options - - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - - * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - * `:shared`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - shared - - * `:buffers`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - buffers - - * `:cached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cached - - """ - @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() - - @doc namespace: :system - @typedoc """ - The memory paging state - - ### Options - - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - - * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - """ - @type system_paging_state() :: :used | :free - - @doc namespace: :system - @typedoc """ - The memory paging type - - ### Options - - * `:major`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - major - - * `:minor`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - minor - - """ - @type system_paging_type() :: :major | :minor - - @doc namespace: :system - @typedoc """ - The paging access direction - - ### Options - - * `:in`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - in - - * `:out`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out - - """ - @type system_paging_direction() :: :in | :out - - @doc namespace: :system - @typedoc """ - The filesystem state - - ### Options - - * `:used`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - used - - * `:free`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - free - - * `:reserved`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - reserved - - """ - @type system_filesystem_state() :: :used | :free | :reserved - - @doc namespace: :system - @typedoc """ - The filesystem type - - ### Options - - * `:fat32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fat32 - - * `:exfat`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - exfat - - * `:ntfs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ntfs - - * `:refs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - refs - - * `:hfsplus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - hfsplus - - * `:ext4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ext4 - - """ - @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() - - @doc namespace: :system - @typedoc """ - A stateless protocol **MUST NOT** set this attribute - - ### Options - - * `:close`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close - - * `:close_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - close_wait - - * `:closing`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - closing - - * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete - - * `:established`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - established - - * `:fin_wait_1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_1 - - * `:fin_wait_2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fin_wait_2 - - * `:last_ack`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - last_ack - - * `:listen`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - listen - - * `:syn_recv`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_recv - - * `:syn_sent`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - syn_sent - - * `:time_wait`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - time_wait - - """ - @type system_network_state() :: - :close - | :close_wait - | :closing - | :delete - | :established - | :fin_wait_1 - | :fin_wait_2 - | :last_ack - | :listen - | :syn_recv - | :syn_sent - | :time_wait - - @doc namespace: :system - @typedoc """ - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - - ### Options - - * `:running`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - running - - * `:sleeping`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - sleeping - - * `:stopped`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - stopped - - * `:defunct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - defunct - - """ - @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() - - @doc """ - The URL of the OpenTelemetry schema for these keys and values. - - iex> OpenTelemetry.SemanticConventions.Metric.schema_url() - "https://opentelemetry.io/schemas/1.25.0" - """ - @spec schema_url :: String.t() - def schema_url do - "https://opentelemetry.io/schemas/1.25.0" - end - - @doc namespace: :container - @doc """ - The CPU state for this data point. A container **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels - - iex> OpenTelemetry.SemanticConventions.Metric.container_cpu_state() - :"container.cpu.state" - """ - @spec container_cpu_state :: :"container.cpu.state" - def container_cpu_state do - :"container.cpu.state" - end - - @doc namespace: :disk - @doc """ - The disk IO operation direction - - iex> OpenTelemetry.SemanticConventions.Metric.disk_io_direction() - :"disk.io.direction" - """ - @spec disk_io_direction :: :"disk.io.direction" - def disk_io_direction do - :"disk.io.direction" - end - - @doc namespace: :system - @doc """ - The device identifier - - iex> OpenTelemetry.SemanticConventions.Metric.system_device() - :"system.device" - """ - @spec system_device :: :"system.device" - def system_device do - :"system.device" - end - - @doc namespace: :network - @doc """ - The network IO operation direction - - iex> OpenTelemetry.SemanticConventions.Metric.network_io_direction() - :"network.io.direction" - """ - @spec network_io_direction :: :"network.io.direction" - def network_io_direction do - :"network.io.direction" - end - - @doc namespace: :pool - @doc """ - 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` - - iex> OpenTelemetry.SemanticConventions.Metric.pool_name() - :"pool.name" - """ - @spec pool_name :: :"pool.name" - def pool_name do - :"pool.name" - end - - @doc namespace: :dns - @doc """ - The name being queried - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Metric.dns_question_name() - :"dns.question.name" - """ - @spec dns_question_name :: :"dns.question.name" - def dns_question_name do - :"dns.question.name" - end - - @doc namespace: :error - @doc """ - Describes the error the DNS lookup failed with - - ### Notes - - Instrumentations **SHOULD** use error code such as one of errors reported by `getaddrinfo`([Linux or other POSIX systems](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) / [Windows](https://learn.microsoft.com/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) or one reported by the runtime or client library. If error code is not available, the full name of exception type **SHOULD** be used - - iex> OpenTelemetry.SemanticConventions.Metric.error_type() - :"error.type" - """ - @spec error_type :: :"error.type" - def error_type do - :"error.type" - end - - @doc namespace: :http - @doc """ - The matched route, that is, the path template in the format used by the respective server framework - - ### Notes - - **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. - **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one - - iex> OpenTelemetry.SemanticConventions.Metric.http_route() - :"http.route" - """ - @spec http_route :: :"http.route" - def http_route do - :"http.route" - end - - @doc namespace: :network - @doc """ - [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent - - ### Notes - - The value **SHOULD** be normalized to lowercase - - iex> OpenTelemetry.SemanticConventions.Metric.network_protocol_name() - :"network.protocol.name" - """ - @spec network_protocol_name :: :"network.protocol.name" - def network_protocol_name do - :"network.protocol.name" - end - - @doc namespace: :network - @doc """ - The actual version of the protocol used for network communication - - ### Notes - - If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute **SHOULD** be set to the negotiated version. If the actual protocol version is not known, this attribute **SHOULD NOT** be set - - iex> OpenTelemetry.SemanticConventions.Metric.network_protocol_version() - :"network.protocol.version" - """ - @spec network_protocol_version :: :"network.protocol.version" - def network_protocol_version do - :"network.protocol.version" - end - - @doc namespace: :tls - @doc """ - Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - iex> OpenTelemetry.SemanticConventions.Metric.tls_protocol_version() - :"tls.protocol.version" - """ - @spec tls_protocol_version :: :"tls.protocol.version" - def tls_protocol_version do - :"tls.protocol.version" - end - - @doc namespace: :faas - @doc """ - Type of the trigger which caused this function invocation - - iex> OpenTelemetry.SemanticConventions.Metric.faas_trigger() - :"faas.trigger" - """ - @spec faas_trigger :: :"faas.trigger" - def faas_trigger do - :"faas.trigger" - end - - @doc namespace: :http - @doc """ - State of the HTTP connection in the HTTP connection pool - - iex> OpenTelemetry.SemanticConventions.Metric.http_connection_state() - :"http.connection.state" - """ - @spec http_connection_state :: :"http.connection.state" - def http_connection_state do - :"http.connection.state" - end - - @doc namespace: :network - @doc """ - Peer address of the network connection - IP address or Unix domain socket name - - iex> OpenTelemetry.SemanticConventions.Metric.network_peer_address() - :"network.peer.address" - """ - @spec network_peer_address :: :"network.peer.address" - def network_peer_address do - :"network.peer.address" - end - - @doc namespace: :process - @doc """ - The CPU state for this data point. A process **SHOULD** be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels - - iex> OpenTelemetry.SemanticConventions.Metric.process_cpu_state() - :"process.cpu.state" - """ - @spec process_cpu_state :: :"process.cpu.state" - def process_cpu_state do - :"process.cpu.state" - end - - @doc namespace: :process - @doc """ - Specifies whether the context switches for this data point were voluntary or involuntary - - iex> OpenTelemetry.SemanticConventions.Metric.process_context_switch_type() - :"process.context_switch_type" - """ - @spec process_context_switch_type :: :"process.context_switch_type" - def process_context_switch_type do - :"process.context_switch_type" - end - - @doc namespace: :process - @doc """ - The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults - - iex> OpenTelemetry.SemanticConventions.Metric.process_paging_fault_type() - :"process.paging.fault_type" - """ - @spec process_paging_fault_type :: :"process.paging.fault_type" - def process_paging_fault_type do - :"process.paging.fault_type" - end - - @doc namespace: :system - @doc """ - The logical CPU number [0..n-1] - - iex> OpenTelemetry.SemanticConventions.Metric.system_cpu_logical_number() - :"system.cpu.logical_number" - """ - @spec system_cpu_logical_number :: :"system.cpu.logical_number" - def system_cpu_logical_number do - :"system.cpu.logical_number" - end - - @doc namespace: :system - @doc """ - The CPU state for this data point. A system's CPU **SHOULD** be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels - - iex> OpenTelemetry.SemanticConventions.Metric.system_cpu_state() - :"system.cpu.state" - """ - @spec system_cpu_state :: :"system.cpu.state" - def system_cpu_state do - :"system.cpu.state" - end - - @doc namespace: :system - @doc """ - The memory state - - iex> OpenTelemetry.SemanticConventions.Metric.system_memory_state() - :"system.memory.state" - """ - @spec system_memory_state :: :"system.memory.state" - def system_memory_state do - :"system.memory.state" - end - - @doc namespace: :system - @doc """ - The memory paging state - - iex> OpenTelemetry.SemanticConventions.Metric.system_paging_state() - :"system.paging.state" - """ - @spec system_paging_state :: :"system.paging.state" - def system_paging_state do - :"system.paging.state" - end - - @doc namespace: :system - @doc """ - The memory paging type - - iex> OpenTelemetry.SemanticConventions.Metric.system_paging_type() - :"system.paging.type" - """ - @spec system_paging_type :: :"system.paging.type" - def system_paging_type do - :"system.paging.type" - end - - @doc namespace: :system - @doc """ - The paging access direction - - iex> OpenTelemetry.SemanticConventions.Metric.system_paging_direction() - :"system.paging.direction" - """ - @spec system_paging_direction :: :"system.paging.direction" - def system_paging_direction do - :"system.paging.direction" - end - - @doc namespace: :system - @doc """ - The filesystem mode - - iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_mode() - :"system.filesystem.mode" - """ - @spec system_filesystem_mode :: :"system.filesystem.mode" - def system_filesystem_mode do - :"system.filesystem.mode" - end - - @doc namespace: :system - @doc """ - The filesystem mount path - - iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_mountpoint() - :"system.filesystem.mountpoint" - """ - @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" - def system_filesystem_mountpoint do - :"system.filesystem.mountpoint" - end - - @doc namespace: :system - @doc """ - The filesystem state - - iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_state() - :"system.filesystem.state" - """ - @spec system_filesystem_state :: :"system.filesystem.state" - def system_filesystem_state do - :"system.filesystem.state" - end - - @doc namespace: :system - @doc """ - The filesystem type - - iex> OpenTelemetry.SemanticConventions.Metric.system_filesystem_type() - :"system.filesystem.type" - """ - @spec system_filesystem_type :: :"system.filesystem.type" - def system_filesystem_type do - :"system.filesystem.type" - end - - @doc namespace: :system - @doc """ - A stateless protocol **MUST NOT** set this attribute - - iex> OpenTelemetry.SemanticConventions.Metric.system_network_state() - :"system.network.state" - """ - @spec system_network_state :: :"system.network.state" - def system_network_state do - :"system.network.state" - end - - @doc namespace: :system - @doc """ - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - - iex> OpenTelemetry.SemanticConventions.Metric.system_process_status() - :"system.process.status" - """ - @spec system_process_status :: :"system.process.status" - def system_process_status do - :"system.process.status" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/resource.ex b/apps/opentelemetry_semantic_conventions/lib/resource.ex deleted file mode 100644 index 8e50c2a5..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/resource.ex +++ /dev/null @@ -1,1585 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Resource do - @moduledoc """ - OpenTelemetry Semantic Conventions for Attributes. - """ - - @doc namespace: :aws - @typedoc """ - The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task - - ### Options - - * `:ec2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ec2 - - * `:fargate`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - fargate - - """ - @type aws_ecs_launchtype() :: :ec2 | :fargate - - @doc namespace: :host - @typedoc """ - The CPU architecture the host system is running on - - ### Options - - * `:amd64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 - - * `:arm32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 - - * `:arm64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 - - * `:ia64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium - - * `:ppc32`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC - - * `:ppc64`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC - - * `:s390x`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture - - * `:x86`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 - - """ - @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() - - @doc namespace: :telemetry - @typedoc """ - The language of the telemetry SDK - - ### Options - - * `:cpp` - cpp - - * `:dotnet` - dotnet - - * `:erlang` - erlang - - * `:go` - go - - * `:java` - java - - * `:nodejs` - nodejs - - * `:php` - php - - * `:python` - python - - * `:ruby` - ruby - - * `:rust` - rust - - * `:swift` - swift - - * `:webjs` - webjs - - """ - @type telemetry_sdk_language() :: - :cpp - | :dotnet - | :erlang - | :go - | :java - | :nodejs - | :php - | :python - | :ruby - | :rust - | :swift - | :webjs - | atom() - - @doc """ - The URL of the OpenTelemetry schema for these keys and values. - - iex> OpenTelemetry.SemanticConventions.Resource.schema_url() - "https://opentelemetry.io/schemas/1.25.0" - """ - @spec schema_url :: String.t() - def schema_url do - "https://opentelemetry.io/schemas/1.25.0" - end - - @doc namespace: :browser - @doc """ - Array of brand name and version separated by a space - - ### Notes - - This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) - - iex> OpenTelemetry.SemanticConventions.Resource.browser_brands() - :"browser.brands" - """ - @spec browser_brands :: :"browser.brands" - def browser_brands do - :"browser.brands" - end - - @doc namespace: :browser - @doc """ - Preferred language of the user using the browser - - ### Notes - - This value is intended to be taken from the Navigator API `navigator.language` - - iex> OpenTelemetry.SemanticConventions.Resource.browser_language() - :"browser.language" - """ - @spec browser_language :: :"browser.language" - def browser_language do - :"browser.language" - end - - @doc namespace: :browser - @doc """ - A boolean that is true if the browser is running on a mobile device - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.browser_mobile() - :"browser.mobile" - """ - @spec browser_mobile :: :"browser.mobile" - def browser_mobile do - :"browser.mobile" - end - - @doc namespace: :browser - @doc """ - The platform on which the browser is running - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.browser_platform() - :"browser.platform" - """ - @spec browser_platform :: :"browser.platform" - def browser_platform do - :"browser.platform" - end - - @doc namespace: :user_agent - @doc """ - Full user-agent string provided by the browser - - ### Notes - - The user-agent value **SHOULD** be provided only from browsers that do not have a mechanism to retrieve brands and platform individually from the User-Agent Client Hints API. To retrieve the value, the legacy `navigator.userAgent` API can be used - - iex> OpenTelemetry.SemanticConventions.Resource.user_agent_original() - :"user_agent.original" - """ - @spec user_agent_original :: :"user_agent.original" - def user_agent_original do - :"user_agent.original" - end - - @doc namespace: :aws - @doc """ - The ID of a running ECS task. The ID **MUST** be extracted from `task.arn` - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_id() - :"aws.ecs.task.id" - """ - @spec aws_ecs_task_id :: :"aws.ecs.task.id" - def aws_ecs_task_id do - :"aws.ecs.task.id" - end - - @doc namespace: :aws - @doc """ - The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_cluster_arn() - :"aws.ecs.cluster.arn" - """ - @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" - def aws_ecs_cluster_arn do - :"aws.ecs.cluster.arn" - end - - @doc namespace: :aws - @doc """ - The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_container_arn() - :"aws.ecs.container.arn" - """ - @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" - def aws_ecs_container_arn do - :"aws.ecs.container.arn" - end - - @doc namespace: :aws - @doc """ - The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_launchtype() - :"aws.ecs.launchtype" - """ - @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" - def aws_ecs_launchtype do - :"aws.ecs.launchtype" - end - - @doc namespace: :aws - @doc """ - The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_arn() - :"aws.ecs.task.arn" - """ - @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" - def aws_ecs_task_arn do - :"aws.ecs.task.arn" - end - - @doc namespace: :aws - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_family() - :"aws.ecs.task.family" - """ - @spec aws_ecs_task_family :: :"aws.ecs.task.family" - def aws_ecs_task_family do - :"aws.ecs.task.family" - end - - @doc namespace: :aws - @doc """ - The revision for the task definition used to create the ECS task - - iex> OpenTelemetry.SemanticConventions.Resource.aws_ecs_task_revision() - :"aws.ecs.task.revision" - """ - @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" - def aws_ecs_task_revision do - :"aws.ecs.task.revision" - end - - @doc namespace: :aws - @doc """ - The ARN of an EKS cluster - - iex> OpenTelemetry.SemanticConventions.Resource.aws_eks_cluster_arn() - :"aws.eks.cluster.arn" - """ - @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" - def aws_eks_cluster_arn do - :"aws.eks.cluster.arn" - end - - @doc namespace: :aws - @doc """ - The Amazon Resource Name(s) (ARN) of the AWS log group(s) - - ### Notes - - See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format) - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_group_arns() - :"aws.log.group.arns" - """ - @spec aws_log_group_arns :: :"aws.log.group.arns" - def aws_log_group_arns do - :"aws.log.group.arns" - end - - @doc namespace: :aws - @doc """ - The name(s) of the AWS log group(s) an application is writing to - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_group_names() - :"aws.log.group.names" - """ - @spec aws_log_group_names :: :"aws.log.group.names" - def aws_log_group_names do - :"aws.log.group.names" - end - - @doc namespace: :aws - @doc """ - The ARN(s) of the AWS log stream(s) - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_stream_arns() - :"aws.log.stream.arns" - """ - @spec aws_log_stream_arns :: :"aws.log.stream.arns" - def aws_log_stream_arns do - :"aws.log.stream.arns" - end - - @doc namespace: :aws - @doc """ - The name(s) of the AWS log stream(s) an application is writing to - - iex> OpenTelemetry.SemanticConventions.Resource.aws_log_stream_names() - :"aws.log.stream.names" - """ - @spec aws_log_stream_names :: :"aws.log.stream.names" - def aws_log_stream_names do - :"aws.log.stream.names" - end - - @doc namespace: :gcp - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.gcp_cloud_run_job_execution() - :"gcp.cloud_run.job.execution" - """ - @spec gcp_cloud_run_job_execution :: :"gcp.cloud_run.job.execution" - def gcp_cloud_run_job_execution do - :"gcp.cloud_run.job.execution" - end - - @doc namespace: :gcp - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.gcp_cloud_run_job_task_index() - :"gcp.cloud_run.job.task_index" - """ - @spec gcp_cloud_run_job_task_index :: :"gcp.cloud_run.job.task_index" - def gcp_cloud_run_job_task_index do - :"gcp.cloud_run.job.task_index" - end - - @doc namespace: :gcp - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Resource.gcp_gce_instance_hostname() - :"gcp.gce.instance.hostname" - """ - @spec gcp_gce_instance_hostname :: :"gcp.gce.instance.hostname" - def gcp_gce_instance_hostname do - :"gcp.gce.instance.hostname" - end - - @doc namespace: :gcp - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Resource.gcp_gce_instance_name() - :"gcp.gce.instance.name" - """ - @spec gcp_gce_instance_name :: :"gcp.gce.instance.name" - def gcp_gce_instance_name do - :"gcp.gce.instance.name" - end - - @doc namespace: :heroku - @doc """ - Unique identifier for the application - - iex> OpenTelemetry.SemanticConventions.Resource.heroku_app_id() - :"heroku.app.id" - """ - @spec heroku_app_id :: :"heroku.app.id" - def heroku_app_id do - :"heroku.app.id" - end - - @doc namespace: :heroku - @doc """ - Commit hash for the current release - - iex> OpenTelemetry.SemanticConventions.Resource.heroku_release_commit() - :"heroku.release.commit" - """ - @spec heroku_release_commit :: :"heroku.release.commit" - def heroku_release_commit do - :"heroku.release.commit" - end - - @doc namespace: :heroku - @doc """ - Time and date the release was created - - iex> OpenTelemetry.SemanticConventions.Resource.heroku_release_creation_timestamp() - :"heroku.release.creation_timestamp" - """ - @spec heroku_release_creation_timestamp :: :"heroku.release.creation_timestamp" - def heroku_release_creation_timestamp do - :"heroku.release.creation_timestamp" - end - - @doc namespace: :container - @doc """ - Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated - - iex> OpenTelemetry.SemanticConventions.Resource.container_id() - :"container.id" - """ - @spec container_id :: :"container.id" - def container_id do - :"container.id" - end - - @doc namespace: :container - @doc """ - Runtime specific image identifier. Usually a hash algorithm followed by a UUID - - ### Notes - - 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 assinged 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 - - iex> OpenTelemetry.SemanticConventions.Resource.container_image_id() - :"container.image.id" - """ - @spec container_image_id :: :"container.image.id" - def container_image_id do - :"container.image.id" - end - - @doc namespace: :container - @doc """ - Name of the image the container was built on - - iex> OpenTelemetry.SemanticConventions.Resource.container_image_name() - :"container.image.name" - """ - @spec container_image_name :: :"container.image.name" - def container_image_name do - :"container.image.name" - end - - @doc namespace: :container - @doc """ - Repo digests of the container image as provided by the container runtime - - ### Notes - - [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 - - iex> OpenTelemetry.SemanticConventions.Resource.container_image_repo_digests() - :"container.image.repo_digests" - """ - @spec container_image_repo_digests :: :"container.image.repo_digests" - def container_image_repo_digests do - :"container.image.repo_digests" - end - - @doc namespace: :container - @doc """ - 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:` - - iex> OpenTelemetry.SemanticConventions.Resource.container_image_tags() - :"container.image.tags" - """ - @spec container_image_tags :: :"container.image.tags" - def container_image_tags do - :"container.image.tags" - end - - @doc namespace: :container - @doc """ - Container name used by container runtime - - iex> OpenTelemetry.SemanticConventions.Resource.container_name() - :"container.name" - """ - @spec container_name :: :"container.name" - def container_name do - :"container.name" - end - - @doc namespace: :container - @doc """ - The container runtime managing this container - - iex> OpenTelemetry.SemanticConventions.Resource.container_runtime() - :"container.runtime" - """ - @spec container_runtime :: :"container.runtime" - def container_runtime do - :"container.runtime" - end - - @doc namespace: :oci - @doc """ - The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known - - ### Notes - - Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). - An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) - - iex> OpenTelemetry.SemanticConventions.Resource.oci_manifest_digest() - :"oci.manifest.digest" - """ - @spec oci_manifest_digest :: :"oci.manifest.digest" - def oci_manifest_digest do - :"oci.manifest.digest" - end - - @doc namespace: :container - @doc """ - The command used to run the container (i.e. the command name) - - ### Notes - - If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage - - iex> OpenTelemetry.SemanticConventions.Resource.container_command() - :"container.command" - """ - @spec container_command :: :"container.command" - def container_command do - :"container.command" - end - - @doc namespace: :container - @doc """ - All the command arguments (including the command/executable itself) run by the container. [2] - - iex> OpenTelemetry.SemanticConventions.Resource.container_command_args() - :"container.command_args" - """ - @spec container_command_args :: :"container.command_args" - def container_command_args do - :"container.command_args" - end - - @doc namespace: :container - @doc """ - The full command run by the container as a single string representing the full command. [2] - - iex> OpenTelemetry.SemanticConventions.Resource.container_command_line() - :"container.command_line" - """ - @spec container_command_line :: :"container.command_line" - def container_command_line do - :"container.command_line" - end - - @doc namespace: :deployment - @doc """ - Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) - - ### Notes - - `deployment.environment` 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=production` - * `service.name=frontend`, `deployment.environment=staging` - - iex> OpenTelemetry.SemanticConventions.Resource.deployment_environment() - :"deployment.environment" - """ - @spec deployment_environment :: :"deployment.environment" - def deployment_environment do - :"deployment.environment" - end - - @doc namespace: :device - @doc """ - A unique identifier representing the device - - ### Notes - - The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 - - iex> OpenTelemetry.SemanticConventions.Resource.device_id() - :"device.id" - """ - @spec device_id :: :"device.id" - def device_id do - :"device.id" - end - - @doc namespace: :device - @doc """ - The name of the device manufacturer - - ### Notes - - The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple` - - iex> OpenTelemetry.SemanticConventions.Resource.device_manufacturer() - :"device.manufacturer" - """ - @spec device_manufacturer :: :"device.manufacturer" - def device_manufacturer do - :"device.manufacturer" - end - - @doc namespace: :device - @doc """ - The model identifier for the device - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.device_model_identifier() - :"device.model.identifier" - """ - @spec device_model_identifier :: :"device.model.identifier" - def device_model_identifier do - :"device.model.identifier" - end - - @doc namespace: :device - @doc """ - The marketing name for the device model - - ### Notes - - It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative - - iex> OpenTelemetry.SemanticConventions.Resource.device_model_name() - :"device.model.name" - """ - @spec device_model_name :: :"device.model.name" - def device_model_name do - :"device.model.name" - end - - @doc namespace: :faas - @doc """ - The name of the single function that this runtime instance executes - - ### Notes - - 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`](/docs/general/attributes.md#source-code-attributes) - span attributes). - - 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) - - iex> OpenTelemetry.SemanticConventions.Resource.faas_name() - :"faas.name" - """ - @spec faas_name :: :"faas.name" - def faas_name do - :"faas.name" - end - - @doc namespace: :faas - @doc """ - The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version - - ### Notes - - * **AWS Lambda:** Use the (full) log stream name - - iex> OpenTelemetry.SemanticConventions.Resource.faas_instance() - :"faas.instance" - """ - @spec faas_instance :: :"faas.instance" - def faas_instance do - :"faas.instance" - end - - @doc namespace: :faas - @doc """ - The amount of memory available to the serverless function converted to Bytes - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Resource.faas_max_memory() - :"faas.max_memory" - """ - @spec faas_max_memory :: :"faas.max_memory" - def faas_max_memory do - :"faas.max_memory" - end - - @doc namespace: :faas - @doc """ - The immutable version of the function being executed - - ### Notes - - Depending on the cloud provider and platform, use: - - * **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 - - iex> OpenTelemetry.SemanticConventions.Resource.faas_version() - :"faas.version" - """ - @spec faas_version :: :"faas.version" - def faas_version do - :"faas.version" - end - - @doc namespace: :host - @doc """ - The CPU architecture the host system is running on - - iex> OpenTelemetry.SemanticConventions.Resource.host_arch() - :"host.arch" - """ - @spec host_arch :: :"host.arch" - def host_arch do - :"host.arch" - end - - @doc namespace: :host - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.host_id() - :"host.id" - """ - @spec host_id :: :"host.id" - def host_id do - :"host.id" - end - - @doc namespace: :host - @doc """ - VM image ID or host OS image ID. For Cloud, this value is from the provider - - iex> OpenTelemetry.SemanticConventions.Resource.host_image_id() - :"host.image.id" - """ - @spec host_image_id :: :"host.image.id" - def host_image_id do - :"host.image.id" - end - - @doc namespace: :host - @doc """ - Name of the VM image or OS install the host was instantiated from - - iex> OpenTelemetry.SemanticConventions.Resource.host_image_name() - :"host.image.name" - """ - @spec host_image_name :: :"host.image.name" - def host_image_name do - :"host.image.name" - end - - @doc namespace: :host - @doc """ - The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) - - iex> OpenTelemetry.SemanticConventions.Resource.host_image_version() - :"host.image.version" - """ - @spec host_image_version :: :"host.image.version" - def host_image_version do - :"host.image.version" - end - - @doc namespace: :host - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.host_name() - :"host.name" - """ - @spec host_name :: :"host.name" - def host_name do - :"host.name" - end - - @doc namespace: :host - @doc """ - Type of host. For Cloud, this must be the machine type - - iex> OpenTelemetry.SemanticConventions.Resource.host_type() - :"host.type" - """ - @spec host_type :: :"host.type" - def host_type do - :"host.type" - end - - @doc namespace: :host - @doc """ - Available IP addresses of the host, excluding loopback interfaces - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.host_ip() - :"host.ip" - """ - @spec host_ip :: :"host.ip" - def host_ip do - :"host.ip" - end - - @doc namespace: :host - @doc """ - Available MAC addresses of the host, excluding loopback interfaces - - ### Notes - - 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 - - iex> OpenTelemetry.SemanticConventions.Resource.host_mac() - :"host.mac" - """ - @spec host_mac :: :"host.mac" - def host_mac do - :"host.mac" - end - - @doc namespace: :host - @doc """ - The amount of level 2 memory cache available to the processor (in Bytes) - - iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_cache_l2_size() - :"host.cpu.cache.l2.size" - """ - @spec host_cpu_cache_l2_size :: :"host.cpu.cache.l2.size" - def host_cpu_cache_l2_size do - :"host.cpu.cache.l2.size" - end - - @doc namespace: :host - @doc """ - Family or generation of the CPU - - iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_family() - :"host.cpu.family" - """ - @spec host_cpu_family :: :"host.cpu.family" - def host_cpu_family do - :"host.cpu.family" - end - - @doc namespace: :host - @doc """ - Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family - - iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_model_id() - :"host.cpu.model.id" - """ - @spec host_cpu_model_id :: :"host.cpu.model.id" - def host_cpu_model_id do - :"host.cpu.model.id" - end - - @doc namespace: :host - @doc """ - Model designation of the processor - - iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_model_name() - :"host.cpu.model.name" - """ - @spec host_cpu_model_name :: :"host.cpu.model.name" - def host_cpu_model_name do - :"host.cpu.model.name" - end - - @doc namespace: :host - @doc """ - Stepping or core revisions - - iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_stepping() - :"host.cpu.stepping" - """ - @spec host_cpu_stepping :: :"host.cpu.stepping" - def host_cpu_stepping do - :"host.cpu.stepping" - end - - @doc namespace: :host - @doc """ - Processor manufacturer identifier. A maximum 12-character string - - ### Notes - - [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 - - iex> OpenTelemetry.SemanticConventions.Resource.host_cpu_vendor_id() - :"host.cpu.vendor.id" - """ - @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" - def host_cpu_vendor_id do - :"host.cpu.vendor.id" - end - - @doc namespace: :k8s - @doc """ - The name of the cluster - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cluster_name() - :"k8s.cluster.name" - """ - @spec k8s_cluster_name :: :"k8s.cluster.name" - def k8s_cluster_name do - :"k8s.cluster.name" - end - - @doc namespace: :k8s - @doc """ - A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace - - ### Notes - - K8s doesn't have support for obtaining a cluster ID. If this is ever - added, we will recommend collecting the `k8s.cluster.uid` through the - official APIs. In the meantime, we are able to use the `uid` of the - `kube-system` namespace as a proxy for cluster ID. Read on for the - rationale. - - Every object created in a K8s cluster is assigned a distinct UID. The - `kube-system` namespace is used by Kubernetes itself and will exist - for the lifetime of the cluster. Using the `uid` of the `kube-system` - namespace is a reasonable proxy for the K8s ClusterID as it will only - change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are - UUIDs as standardized by - [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). - Which states: - - > If generated according to one of the mechanisms defined in Rec. - ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be - different from all other UUIDs generated before 3603 A.D., or is - extremely likely to be different (depending on the mechanism chosen). - - Therefore, UIDs between clusters should be extremely unlikely to - conflict - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cluster_uid() - :"k8s.cluster.uid" - """ - @spec k8s_cluster_uid :: :"k8s.cluster.uid" - def k8s_cluster_uid do - :"k8s.cluster.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Node - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_node_name() - :"k8s.node.name" - """ - @spec k8s_node_name :: :"k8s.node.name" - def k8s_node_name do - :"k8s.node.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Node - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_node_uid() - :"k8s.node.uid" - """ - @spec k8s_node_uid :: :"k8s.node.uid" - def k8s_node_uid do - :"k8s.node.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the namespace that the pod is running in - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_namespace_name() - :"k8s.namespace.name" - """ - @spec k8s_namespace_name :: :"k8s.namespace.name" - def k8s_namespace_name do - :"k8s.namespace.name" - end - - @doc namespace: :k8s - @doc """ - The name of the Pod - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_pod_name() - :"k8s.pod.name" - """ - @spec k8s_pod_name :: :"k8s.pod.name" - def k8s_pod_name do - :"k8s.pod.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Pod - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_pod_uid() - :"k8s.pod.uid" - """ - @spec k8s_pod_uid :: :"k8s.pod.uid" - def k8s_pod_uid do - :"k8s.pod.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_container_name() - :"k8s.container.name" - """ - @spec k8s_container_name :: :"k8s.container.name" - def k8s_container_name do - :"k8s.container.name" - end - - @doc namespace: :k8s - @doc """ - Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_container_restart_count() - :"k8s.container.restart_count" - """ - @spec k8s_container_restart_count :: :"k8s.container.restart_count" - def k8s_container_restart_count do - :"k8s.container.restart_count" - end - - @doc namespace: :k8s - @doc """ - The name of the ReplicaSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_replicaset_name() - :"k8s.replicaset.name" - """ - @spec k8s_replicaset_name :: :"k8s.replicaset.name" - def k8s_replicaset_name do - :"k8s.replicaset.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the ReplicaSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_replicaset_uid() - :"k8s.replicaset.uid" - """ - @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" - def k8s_replicaset_uid do - :"k8s.replicaset.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Deployment - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_deployment_name() - :"k8s.deployment.name" - """ - @spec k8s_deployment_name :: :"k8s.deployment.name" - def k8s_deployment_name do - :"k8s.deployment.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Deployment - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_deployment_uid() - :"k8s.deployment.uid" - """ - @spec k8s_deployment_uid :: :"k8s.deployment.uid" - def k8s_deployment_uid do - :"k8s.deployment.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the StatefulSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_statefulset_name() - :"k8s.statefulset.name" - """ - @spec k8s_statefulset_name :: :"k8s.statefulset.name" - def k8s_statefulset_name do - :"k8s.statefulset.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the StatefulSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_statefulset_uid() - :"k8s.statefulset.uid" - """ - @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" - def k8s_statefulset_uid do - :"k8s.statefulset.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the DaemonSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_daemonset_name() - :"k8s.daemonset.name" - """ - @spec k8s_daemonset_name :: :"k8s.daemonset.name" - def k8s_daemonset_name do - :"k8s.daemonset.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the DaemonSet - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_daemonset_uid() - :"k8s.daemonset.uid" - """ - @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" - def k8s_daemonset_uid do - :"k8s.daemonset.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the Job - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_job_name() - :"k8s.job.name" - """ - @spec k8s_job_name :: :"k8s.job.name" - def k8s_job_name do - :"k8s.job.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the Job - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_job_uid() - :"k8s.job.uid" - """ - @spec k8s_job_uid :: :"k8s.job.uid" - def k8s_job_uid do - :"k8s.job.uid" - end - - @doc namespace: :k8s - @doc """ - The name of the CronJob - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cronjob_name() - :"k8s.cronjob.name" - """ - @spec k8s_cronjob_name :: :"k8s.cronjob.name" - def k8s_cronjob_name do - :"k8s.cronjob.name" - end - - @doc namespace: :k8s - @doc """ - The UID of the CronJob - - iex> OpenTelemetry.SemanticConventions.Resource.k8s_cronjob_uid() - :"k8s.cronjob.uid" - """ - @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" - def k8s_cronjob_uid do - :"k8s.cronjob.uid" - end - - @doc namespace: :process - @doc """ - The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` - - iex> OpenTelemetry.SemanticConventions.Resource.process_command() - :"process.command" - """ - @spec process_command :: :"process.command" - def process_command do - :"process.command" - end - - @doc namespace: :process - @doc """ - All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` - - iex> OpenTelemetry.SemanticConventions.Resource.process_command_args() - :"process.command_args" - """ - @spec process_command_args :: :"process.command_args" - def process_command_args do - :"process.command_args" - end - - @doc namespace: :process - @doc """ - The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead - - iex> OpenTelemetry.SemanticConventions.Resource.process_command_line() - :"process.command_line" - """ - @spec process_command_line :: :"process.command_line" - def process_command_line do - :"process.command_line" - end - - @doc namespace: :process - @doc """ - The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` - - iex> OpenTelemetry.SemanticConventions.Resource.process_executable_name() - :"process.executable.name" - """ - @spec process_executable_name :: :"process.executable.name" - def process_executable_name do - :"process.executable.name" - end - - @doc namespace: :process - @doc """ - The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` - - iex> OpenTelemetry.SemanticConventions.Resource.process_executable_path() - :"process.executable.path" - """ - @spec process_executable_path :: :"process.executable.path" - def process_executable_path do - :"process.executable.path" - end - - @doc namespace: :process - @doc """ - The username of the user that owns the process - - iex> OpenTelemetry.SemanticConventions.Resource.process_owner() - :"process.owner" - """ - @spec process_owner :: :"process.owner" - def process_owner do - :"process.owner" - end - - @doc namespace: :process - @doc """ - Parent Process identifier (PPID) - - iex> OpenTelemetry.SemanticConventions.Resource.process_parent_pid() - :"process.parent_pid" - """ - @spec process_parent_pid :: :"process.parent_pid" - def process_parent_pid do - :"process.parent_pid" - end - - @doc namespace: :process - @doc """ - Process identifier (PID) - - iex> OpenTelemetry.SemanticConventions.Resource.process_pid() - :"process.pid" - """ - @spec process_pid :: :"process.pid" - def process_pid do - :"process.pid" - end - - @doc namespace: :process - @doc """ - An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment - - iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_description() - :"process.runtime.description" - """ - @spec process_runtime_description :: :"process.runtime.description" - def process_runtime_description do - :"process.runtime.description" - end - - @doc namespace: :process - @doc """ - The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler - - iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_name() - :"process.runtime.name" - """ - @spec process_runtime_name :: :"process.runtime.name" - def process_runtime_name do - :"process.runtime.name" - end - - @doc namespace: :process - @doc """ - The version of the runtime of this process, as returned by the runtime without modification - - iex> OpenTelemetry.SemanticConventions.Resource.process_runtime_version() - :"process.runtime.version" - """ - @spec process_runtime_version :: :"process.runtime.version" - def process_runtime_version do - :"process.runtime.version" - end - - @doc namespace: :service - @doc """ - Logical name of the service - - ### Notes - - **MUST** be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service` - - iex> OpenTelemetry.SemanticConventions.Resource.service_name() - :"service.name" - """ - @spec service_name :: :"service.name" - def service_name do - :"service.name" - end - - @doc namespace: :service - @doc """ - The version string of the service API or implementation. The format is not defined by these conventions - - iex> OpenTelemetry.SemanticConventions.Resource.service_version() - :"service.version" - """ - @spec service_version :: :"service.version" - def service_version do - :"service.version" - end - - @doc namespace: :service - @doc """ - The string ID of the service instance - - ### Notes - - **MUST** be unique for each instance of the same `service.namespace,service.name` pair (in other words - `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to - distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled - service). - - Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC - 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of - this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and - **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. - - UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is - needed. Similar to what can be seen in the man page for the - [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying - data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it - or not via another resource attribute. - - For applications running behind an application server (like unicorn), we do not recommend using one identifier - for all processes participating in the application. Instead, it's recommended each division (e.g. a worker - thread in unicorn) to have its own instance.id. - - It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the - service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will - likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. - However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance - for that telemetry. This is typically the case for scraping receivers, as they know the target address and - port - - iex> OpenTelemetry.SemanticConventions.Resource.service_instance_id() - :"service.instance.id" - """ - @spec service_instance_id :: :"service.instance.id" - def service_instance_id do - :"service.instance.id" - end - - @doc namespace: :service - @doc """ - A namespace for `service.name` - - ### Notes - - A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace - - iex> OpenTelemetry.SemanticConventions.Resource.service_namespace() - :"service.namespace" - """ - @spec service_namespace :: :"service.namespace" - def service_namespace do - :"service.namespace" - end - - @doc namespace: :telemetry - @doc """ - The language of the telemetry SDK - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_language() - :"telemetry.sdk.language" - """ - @spec telemetry_sdk_language :: :"telemetry.sdk.language" - def telemetry_sdk_language do - :"telemetry.sdk.language" - end - - @doc namespace: :telemetry - @doc """ - The name of the telemetry SDK as defined above - - ### Notes - - The OpenTelemetry SDK **MUST** set the `telemetry.sdk.name` attribute to `opentelemetry`. - If another SDK, like a fork or a vendor-provided implementation, is used, this SDK **MUST** set the - `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point - or another suitable identifier depending on the language. - The identifier `opentelemetry` is reserved and **MUST NOT** be used in this case. - All custom identifiers **SHOULD** be stable across different versions of an implementation - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_name() - :"telemetry.sdk.name" - """ - @spec telemetry_sdk_name :: :"telemetry.sdk.name" - def telemetry_sdk_name do - :"telemetry.sdk.name" - end - - @doc namespace: :telemetry - @doc """ - The version string of the telemetry SDK - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_sdk_version() - :"telemetry.sdk.version" - """ - @spec telemetry_sdk_version :: :"telemetry.sdk.version" - def telemetry_sdk_version do - :"telemetry.sdk.version" - end - - @doc namespace: :telemetry - @doc """ - The name of the auto instrumentation agent or distribution, if used - - ### Notes - - Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to - a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_distro_name() - :"telemetry.distro.name" - """ - @spec telemetry_distro_name :: :"telemetry.distro.name" - def telemetry_distro_name do - :"telemetry.distro.name" - end - - @doc namespace: :telemetry - @doc """ - The version string of the auto instrumentation agent or distribution, if used - - iex> OpenTelemetry.SemanticConventions.Resource.telemetry_distro_version() - :"telemetry.distro.version" - """ - @spec telemetry_distro_version :: :"telemetry.distro.version" - def telemetry_distro_version do - :"telemetry.distro.version" - end - - @doc namespace: :webengine - @doc """ - The name of the web engine - - iex> OpenTelemetry.SemanticConventions.Resource.webengine_name() - :"webengine.name" - """ - @spec webengine_name :: :"webengine.name" - def webengine_name do - :"webengine.name" - end - - @doc namespace: :webengine - @doc """ - Additional description of the web engine (e.g. detailed version and edition information) - - iex> OpenTelemetry.SemanticConventions.Resource.webengine_description() - :"webengine.description" - """ - @spec webengine_description :: :"webengine.description" - def webengine_description do - :"webengine.description" - end - - @doc namespace: :webengine - @doc """ - The version of the web engine - - iex> OpenTelemetry.SemanticConventions.Resource.webengine_version() - :"webengine.version" - """ - @spec webengine_version :: :"webengine.version" - def webengine_version do - :"webengine.version" - end - - @doc namespace: :otel - @doc """ - The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP) - - iex> OpenTelemetry.SemanticConventions.Resource.otel_scope_name() - :"otel.scope.name" - """ - @spec otel_scope_name :: :"otel.scope.name" - def otel_scope_name do - :"otel.scope.name" - end - - @doc namespace: :otel - @doc """ - The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP) - - iex> OpenTelemetry.SemanticConventions.Resource.otel_scope_version() - :"otel.scope.version" - """ - @spec otel_scope_version :: :"otel.scope.version" - def otel_scope_version do - :"otel.scope.version" - end - - @doc namespace: :otel - - @deprecated """ - use the `otel.scope.name` attribute - """ - @spec otel_library_name :: :"otel.library.name" - def otel_library_name do - :"otel.library.name" - end - - @doc namespace: :otel - - @deprecated """ - use the `otel.scope.version` attribute - """ - @spec otel_library_version :: :"otel.library.version" - def otel_library_version do - :"otel.library.version" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/span.ex b/apps/opentelemetry_semantic_conventions/lib/span.ex deleted file mode 100644 index 93b56578..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/span.ex +++ /dev/null @@ -1,2278 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.Span do - @moduledoc """ - OpenTelemetry Semantic Conventions for Attributes. - """ - - @doc namespace: :opentracing - @typedoc """ - Parent-child Reference type - - ### Options - - * `:child_of`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span depends on the child Span in some capacity - - * `:follows_from`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span - - """ - @type opentracing_ref_type() :: :child_of | :follows_from - - @doc namespace: :db - @typedoc """ - An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers - - ### Options - - * `:other_sql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes - - * `:mssql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server - - * `:mssqlcompact`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact - - * `:mysql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL - - * `:oracle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database - - * `:db2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 - - * `:postgresql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL - - * `:redshift`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift - - * `:hive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive - - * `:cloudscape`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape - - * `:hsqldb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase - - * `:progress`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database - - * `:maxdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB - - * `:hanadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA - - * `:ingres`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres - - * `:firstsql`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL - - * `:edb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB - - * `:cache`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché - - * `:adabas`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) - - * `:firebird`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird - - * `:derby`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby - - * `:filemaker`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker - - * `:informix`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix - - * `:instantdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB - - * `:interbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase - - * `:mariadb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB - - * `:netezza`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza - - * `:pervasive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL - - * `:pointbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase - - * `:sqlite`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite - - * `:sybase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase - - * `:teradata`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata - - * `:vertica`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica - - * `:h2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 - - * `:coldfusion`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ - - * `:cassandra`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra - - * `:hbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase - - * `:mongodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB - - * `:redis`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis - - * `:couchbase`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase - - * `:couchdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB - - * `:cosmosdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB - - * `:dynamodb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB - - * `:neo4j`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j - - * `:geode`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode - - * `:elasticsearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch - - * `:memcached`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached - - * `:cockroachdb`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB - - * `:opensearch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch - - * `:clickhouse`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse - - * `:spanner`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner - - * `:trino`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino - - """ - @type db_system() :: - :other_sql - | :mssql - | :mssqlcompact - | :mysql - | :oracle - | :db2 - | :postgresql - | :redshift - | :hive - | :cloudscape - | :hsqldb - | :progress - | :maxdb - | :hanadb - | :ingres - | :firstsql - | :edb - | :cache - | :adabas - | :firebird - | :derby - | :filemaker - | :informix - | :instantdb - | :interbase - | :mariadb - | :netezza - | :pervasive - | :pointbase - | :sqlite - | :sybase - | :teradata - | :vertica - | :h2 - | :coldfusion - | :cassandra - | :hbase - | :mongodb - | :redis - | :couchbase - | :couchdb - | :cosmosdb - | :dynamodb - | :neo4j - | :geode - | :elasticsearch - | :memcached - | :cockroachdb - | :opensearch - | :clickhouse - | :spanner - | :trino - | atom() - - @doc namespace: :db - @typedoc """ - 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) - - ### Options - - * `:all`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - all - - * `:each_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - each_quorum - - * `:quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - quorum - - * `:local_quorum`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_quorum - - * `:one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - one - - * `:two`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - two - - * `:three`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - three - - * `:local_one`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_one - - * `:any`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - any - - * `:serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - serial - - * `:local_serial`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - local_serial - - """ - @type db_cassandra_consistency_level() :: - :all - | :each_quorum - | :quorum - | :local_quorum - | :one - | :two - | :three - | :local_one - | :any - | :serial - | :local_serial - - @doc namespace: :http - @typedoc """ - HTTP request method - - ### Options - - * `:CONNECT` - CONNECT method - - * `:DELETE` - DELETE method - - * `:GET` - GET method - - * `:HEAD` - HEAD method - - * `:OPTIONS` - OPTIONS method - - * `:PATCH` - PATCH method - - * `:POST` - POST method - - * `:PUT` - PUT method - - * `:TRACE` - TRACE method - - * `:_OTHER` - Any HTTP method that the instrumentation has no prior knowledge of - - """ - @type http_request_method() :: - :CONNECT - | :DELETE - | :GET - | :HEAD - | :OPTIONS - | :PATCH - | :POST - | :PUT - | :TRACE - | :_OTHER - | atom() - - @doc namespace: :db - @typedoc """ - Cosmos client connection mode - - ### Options - - * `:gateway`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode - - * `:direct`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection - - """ - @type db_cosmosdb_connection_mode() :: :gateway | :direct - - @doc namespace: :db - @typedoc """ - CosmosDB Operation Type - - ### Options - - * `:Invalid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid - - * `:Create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - create - - * `:Patch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - patch - - * `:Read`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read - - * `:ReadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - read_feed - - * `:Delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - delete - - * `:Replace`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - replace - - * `:Execute`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute - - * `:Query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query - - * `:Head`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head - - * `:HeadFeed`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - head_feed - - * `:Upsert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - upsert - - * `:Batch`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - batch - - * `:QueryPlan`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - query_plan - - * `:ExecuteJavaScript`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - execute_javascript - - """ - @type db_cosmosdb_operation_type() :: - :Invalid - | :Create - | :Patch - | :Read - | :ReadFeed - | :Delete - | :Replace - | :Execute - | :Query - | :Head - | :HeadFeed - | :Upsert - | :Batch - | :QueryPlan - | :ExecuteJavaScript - | atom() - - @doc namespace: :otel - @typedoc """ - Name of the code, either "OK" or "ERROR". **MUST NOT** be set if the status code is UNSET - - ### Options - - * `:OK`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The operation has been validated by an Application developer or Operator to have completed successfully - - * `:ERROR`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The operation contains an error - - """ - @type otel_status_code() :: :OK | :ERROR - - @doc namespace: :faas - @typedoc """ - Type of the trigger which caused this function invocation - - ### Options - - * `:datasource`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write - - * `:http`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request - - * `:pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system - - * `:timer`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly - - * `:other`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - - """ - @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other - - @doc namespace: :faas - @typedoc """ - Describes the type of the operation that was performed on the data - - ### Options - - * `:insert`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created - - * `:edit`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified - - * `:delete`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted - - """ - @type faas_document_operation() :: :insert | :edit | :delete | atom() - - @doc namespace: :faas - @typedoc """ - The cloud provider of the invoked function - - ### Options - - * `:alibaba_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud - - * `:aws`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services - - * `:azure`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure - - * `:gcp`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform - - * `:tencent_cloud`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud - - """ - @type faas_invoked_provider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() - - @doc namespace: :error - @typedoc """ - Describes a class of error the operation ended with - - ### Options - - * `:_OTHER` - A fallback error value to be used when the instrumentation doesn't define a custom value - - """ - @type error_type() :: :_OTHER | atom() - - @doc namespace: :rpc - @typedoc """ - The value `aws-api` - - ### Options - - * `:grpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC - - * `:java_rmi`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI - - * `:dotnet_wcf`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF - - * `:apache_dubbo`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo - - * `:connect_rpc`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC - - """ - @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() - - @doc namespace: :graphql - @typedoc """ - The type of the operation being executed - - ### Options - - * `:query`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL query - - * `:mutation`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL mutation - - * `:subscription`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL subscription - - """ - @type graphql_operation_type() :: :query | :mutation | :subscription - - @doc namespace: :messaging - @typedoc """ - A string identifying the kind of messaging operation - - ### Options - - * `:publish`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created - - * `:create`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios - - * `:receive`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages - - * `:process`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer - - * `:settle`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled - - """ - @type messaging_operation() :: :publish | :create | :receive | :process | :settle | atom() - - @doc namespace: :messaging - @typedoc """ - An identifier for the messaging system being used. See below for a list of well-known identifiers - - ### Options - - * `:activemq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ - - * `:aws_sqs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) - - * `:eventgrid`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid - - * `:eventhubs`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs - - * `:servicebus`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus - - * `:gcp_pubsub`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub - - * `:jms`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service - - * `:kafka`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka - - * `:rabbitmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ - - * `:rocketmq`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - - """ - @type messaging_system() :: - :activemq - | :aws_sqs - | :eventgrid - | :eventhubs - | :servicebus - | :gcp_pubsub - | :jms - | :kafka - | :rabbitmq - | :rocketmq - | atom() - - @doc namespace: :network - @typedoc """ - [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) - - ### Options - - * `:tcp` - TCP - - * `:udp` - UDP - - * `:pipe` - Named or anonymous pipe - - * `:unix` - Unix domain socket - - """ - @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() - - @doc namespace: :network - @typedoc """ - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent - - ### Options - - * `:ipv4` - IPv4 - - * `:ipv6` - IPv6 - - """ - @type network_type() :: :ipv4 | :ipv6 | atom() - - @doc namespace: :rpc - @typedoc """ - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request - - ### Options - - * `0`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK - - * `1`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED - - * `2`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN - - * `3`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT - - * `4`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED - - * `5`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND - - * `6`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS - - * `7`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED - - * `8`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED - - * `9`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION - - * `10`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED - - * `11`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE - - * `12`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED - - * `13`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL - - * `14`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE - - * `15`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS - - * `16`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED - - """ - @type rpc_grpc_status_code() :: - 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 - - @doc namespace: :rpc - @typedoc """ - The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values - - ### Options - - * `:cancelled`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - cancelled - - * `:unknown`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unknown - - * `:invalid_argument`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - invalid_argument - - * `:deadline_exceeded`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - deadline_exceeded - - * `:not_found`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - not_found - - * `:already_exists`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - already_exists - - * `:permission_denied`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - permission_denied - - * `:resource_exhausted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - resource_exhausted - - * `:failed_precondition`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - failed_precondition - - * `:aborted`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - aborted - - * `:out_of_range`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - out_of_range - - * `:unimplemented`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unimplemented - - * `:internal`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - internal - - * `:unavailable`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unavailable - - * `:data_loss`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - data_loss - - * `:unauthenticated`^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - unauthenticated - - """ - @type rpc_connect_rpc_error_code() :: - :cancelled - | :unknown - | :invalid_argument - | :deadline_exceeded - | :not_found - | :already_exists - | :permission_denied - | :resource_exhausted - | :failed_precondition - | :aborted - | :out_of_range - | :unimplemented - | :internal - | :unavailable - | :data_loss - | :unauthenticated - - @doc """ - The URL of the OpenTelemetry schema for these keys and values. - - iex> OpenTelemetry.SemanticConventions.Span.schema_url() - "https://opentelemetry.io/schemas/1.25.0" - """ - @spec schema_url :: String.t() - def schema_url do - "https://opentelemetry.io/schemas/1.25.0" - end - - @doc namespace: :peer - @doc """ - The [`service.name`](/docs/resource/README.md#service) of the remote service. **SHOULD** be equal to the actual `service.name` resource attribute of the remote service if any - - iex> OpenTelemetry.SemanticConventions.Span.peer_service() - :"peer.service" - """ - @spec peer_service :: :"peer.service" - def peer_service do - :"peer.service" - end - - @doc namespace: :enduser - @doc """ - Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system - - iex> OpenTelemetry.SemanticConventions.Span.enduser_id() - :"enduser.id" - """ - @spec enduser_id :: :"enduser.id" - def enduser_id do - :"enduser.id" - end - - @doc namespace: :enduser - @doc """ - Actual/assumed role the client is making the request under extracted from token or application security context - - iex> OpenTelemetry.SemanticConventions.Span.enduser_role() - :"enduser.role" - """ - @spec enduser_role :: :"enduser.role" - def enduser_role do - :"enduser.role" - end - - @doc namespace: :enduser - @doc """ - Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) - - iex> OpenTelemetry.SemanticConventions.Span.enduser_scope() - :"enduser.scope" - """ - @spec enduser_scope :: :"enduser.scope" - def enduser_scope do - :"enduser.scope" - end - - @doc namespace: :thread - @doc """ - Current "managed" thread ID (as opposed to OS thread ID) - - iex> OpenTelemetry.SemanticConventions.Span.thread_id() - :"thread.id" - """ - @spec thread_id :: :"thread.id" - def thread_id do - :"thread.id" - end - - @doc namespace: :thread - @doc """ - Current thread name - - iex> OpenTelemetry.SemanticConventions.Span.thread_name() - :"thread.name" - """ - @spec thread_name :: :"thread.name" - def thread_name do - :"thread.name" - end - - @doc namespace: :code - @doc """ - The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` - - iex> OpenTelemetry.SemanticConventions.Span.code_column() - :"code.column" - """ - @spec code_column :: :"code.column" - def code_column do - :"code.column" - end - - @doc namespace: :code - @doc """ - The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) - - iex> OpenTelemetry.SemanticConventions.Span.code_filepath() - :"code.filepath" - """ - @spec code_filepath :: :"code.filepath" - def code_filepath do - :"code.filepath" - end - - @doc namespace: :code - @doc """ - The method or function name, or equivalent (usually rightmost part of the code unit's name) - - iex> OpenTelemetry.SemanticConventions.Span.code_function() - :"code.function" - """ - @spec code_function :: :"code.function" - def code_function do - :"code.function" - end - - @doc namespace: :code - @doc """ - The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function` - - iex> OpenTelemetry.SemanticConventions.Span.code_lineno() - :"code.lineno" - """ - @spec code_lineno :: :"code.lineno" - def code_lineno do - :"code.lineno" - end - - @doc namespace: :code - @doc """ - The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit - - iex> OpenTelemetry.SemanticConventions.Span.code_namespace() - :"code.namespace" - """ - @spec code_namespace :: :"code.namespace" - def code_namespace do - :"code.namespace" - end - - @doc namespace: :code - @doc """ - A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG - - iex> OpenTelemetry.SemanticConventions.Span.code_stacktrace() - :"code.stacktrace" - """ - @spec code_stacktrace :: :"code.stacktrace" - def code_stacktrace do - :"code.stacktrace" - end - - @doc namespace: :aws - @doc """ - 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) - - ### Notes - - This may be different from `cloud.resource_id` if an alias is involved - - iex> OpenTelemetry.SemanticConventions.Span.aws_lambda_invoked_arn() - :"aws.lambda.invoked_arn" - """ - @spec aws_lambda_invoked_arn :: :"aws.lambda.invoked_arn" - def aws_lambda_invoked_arn do - :"aws.lambda.invoked_arn" - end - - @doc namespace: :cloudevents - @doc """ - The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event - - iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_id() - :"cloudevents.event_id" - """ - @spec cloudevents_event_id :: :"cloudevents.event_id" - def cloudevents_event_id do - :"cloudevents.event_id" - end - - @doc namespace: :cloudevents - @doc """ - The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened - - iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_source() - :"cloudevents.event_source" - """ - @spec cloudevents_event_source :: :"cloudevents.event_source" - def cloudevents_event_source do - :"cloudevents.event_source" - end - - @doc namespace: :cloudevents - @doc """ - The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses - - iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_spec_version() - :"cloudevents.event_spec_version" - """ - @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" - def cloudevents_event_spec_version do - :"cloudevents.event_spec_version" - end - - @doc namespace: :cloudevents - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_subject() - :"cloudevents.event_subject" - """ - @spec cloudevents_event_subject :: :"cloudevents.event_subject" - def cloudevents_event_subject do - :"cloudevents.event_subject" - end - - @doc namespace: :cloudevents - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Span.cloudevents_event_type() - :"cloudevents.event_type" - """ - @spec cloudevents_event_type :: :"cloudevents.event_type" - def cloudevents_event_type do - :"cloudevents.event_type" - end - - @doc namespace: :opentracing - @doc """ - Parent-child Reference type - - ### Notes - - The causal relationship between a child Span and a parent Span - - iex> OpenTelemetry.SemanticConventions.Span.opentracing_ref_type() - :"opentracing.ref_type" - """ - @spec opentracing_ref_type :: :"opentracing.ref_type" - def opentracing_ref_type do - :"opentracing.ref_type" - end - - @doc namespace: :db - @doc """ - The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance - - ### Notes - - If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) - - iex> OpenTelemetry.SemanticConventions.Span.db_mssql_instance_name() - :"db.mssql.instance_name" - """ - @spec db_mssql_instance_name :: :"db.mssql.instance_name" - def db_mssql_instance_name do - :"db.mssql.instance_name" - end - - @doc namespace: :db - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_consistency_level() - :"db.cassandra.consistency_level" - """ - @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" - def db_cassandra_consistency_level do - :"db.cassandra.consistency_level" - end - - @doc namespace: :db - @doc """ - The data center of the coordinating node for a query - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_coordinator_dc() - :"db.cassandra.coordinator.dc" - """ - @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" - def db_cassandra_coordinator_dc do - :"db.cassandra.coordinator.dc" - end - - @doc namespace: :db - @doc """ - The ID of the coordinating node for a query - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_coordinator_id() - :"db.cassandra.coordinator.id" - """ - @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" - def db_cassandra_coordinator_id do - :"db.cassandra.coordinator.id" - end - - @doc namespace: :db - @doc """ - Whether or not the query is idempotent - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_idempotence() - :"db.cassandra.idempotence" - """ - @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" - def db_cassandra_idempotence do - :"db.cassandra.idempotence" - end - - @doc namespace: :db - @doc """ - The fetch size used for paging, i.e. how many rows will be returned at once - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_page_size() - :"db.cassandra.page_size" - """ - @spec db_cassandra_page_size :: :"db.cassandra.page_size" - def db_cassandra_page_size do - :"db.cassandra.page_size" - end - - @doc namespace: :db - @doc """ - The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_speculative_execution_count() - :"db.cassandra.speculative_execution_count" - """ - @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" - def db_cassandra_speculative_execution_count do - :"db.cassandra.speculative_execution_count" - end - - @doc namespace: :db - @doc """ - The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) - - ### Notes - - This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value **MUST NOT** be set - - iex> OpenTelemetry.SemanticConventions.Span.db_cassandra_table() - :"db.cassandra.table" - """ - @spec db_cassandra_table :: :"db.cassandra.table" - def db_cassandra_table do - :"db.cassandra.table" - end - - @doc namespace: :db - @doc """ - The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute - - iex> OpenTelemetry.SemanticConventions.Span.db_redis_database_index() - :"db.redis.database_index" - """ - @spec db_redis_database_index :: :"db.redis.database_index" - def db_redis_database_index do - :"db.redis.database_index" - end - - @doc namespace: :db - @doc """ - The MongoDB collection being accessed within the database stated in `db.name` - - iex> OpenTelemetry.SemanticConventions.Span.db_mongodb_collection() - :"db.mongodb.collection" - """ - @spec db_mongodb_collection :: :"db.mongodb.collection" - def db_mongodb_collection do - :"db.mongodb.collection" - end - - @doc namespace: :http - @doc """ - HTTP request method - - ### Notes - - HTTP request method value **SHOULD** be "known" to the instrumentation. - By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) - and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). - - If the HTTP request method is not known to instrumentation, it **MUST** set the `http.request.method` attribute to `_OTHER`. - - If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it **MUST** provide a way to override - the list of known HTTP methods. If this override is done via environment variable, then the environment variable **MUST** be named - OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods - (this list **MUST** be a full override of the default known method, it is not a list of known methods in addition to the defaults). - - HTTP method names are case-sensitive and `http.request.method` attribute value **MUST** match a known HTTP method name exactly. - Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. - Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value - - iex> OpenTelemetry.SemanticConventions.Span.http_request_method() - :"http.request.method" - """ - @spec http_request_method :: :"http.request.method" - def http_request_method do - :"http.request.method" - end - - @doc namespace: :url - @doc """ - Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) - - ### Notes - - For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it **SHOULD** be included nevertheless. - `url.full` **MUST NOT** contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password **SHOULD** be redacted and attribute's value **SHOULD** be `https://REDACTED:REDACTED@www.example.com/`. - `url.full` **SHOULD** capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` **SHOULD** be scrubbed when instrumentations can identify it - - iex> OpenTelemetry.SemanticConventions.Span.url_full() - :"url.full" - """ - @spec url_full :: :"url.full" - def url_full do - :"url.full" - end - - @doc namespace: :db - @doc """ - Represents the identifier of an Elasticsearch cluster - - iex> OpenTelemetry.SemanticConventions.Span.db_elasticsearch_cluster_name() - :"db.elasticsearch.cluster.name" - """ - @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" - def db_elasticsearch_cluster_name do - :"db.elasticsearch.cluster.name" - end - - @doc namespace: :db - @doc """ - Cosmos client connection mode - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_connection_mode() - :"db.cosmosdb.connection_mode" - """ - @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" - def db_cosmosdb_connection_mode do - :"db.cosmosdb.connection_mode" - end - - @doc namespace: :db - @doc """ - Cosmos DB container name - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_container() - :"db.cosmosdb.container" - """ - @spec db_cosmosdb_container :: :"db.cosmosdb.container" - def db_cosmosdb_container do - :"db.cosmosdb.container" - end - - @doc namespace: :db - @doc """ - CosmosDB Operation Type - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_operation_type() - :"db.cosmosdb.operation_type" - """ - @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" - def db_cosmosdb_operation_type do - :"db.cosmosdb.operation_type" - end - - @doc namespace: :db - @doc """ - RU consumed for that operation - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_request_charge() - :"db.cosmosdb.request_charge" - """ - @spec db_cosmosdb_request_charge :: :"db.cosmosdb.request_charge" - def db_cosmosdb_request_charge do - :"db.cosmosdb.request_charge" - end - - @doc namespace: :db - @doc """ - Cosmos DB status code - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_status_code() - :"db.cosmosdb.status_code" - """ - @spec db_cosmosdb_status_code :: :"db.cosmosdb.status_code" - def db_cosmosdb_status_code do - :"db.cosmosdb.status_code" - end - - @doc namespace: :db - @doc """ - Cosmos DB sub status code - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_sub_status_code() - :"db.cosmosdb.sub_status_code" - """ - @spec db_cosmosdb_sub_status_code :: :"db.cosmosdb.sub_status_code" - def db_cosmosdb_sub_status_code do - :"db.cosmosdb.sub_status_code" - end - - @doc namespace: :db - @doc """ - Unique Cosmos client instance id - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_client_id() - :"db.cosmosdb.client_id" - """ - @spec db_cosmosdb_client_id :: :"db.cosmosdb.client_id" - def db_cosmosdb_client_id do - :"db.cosmosdb.client_id" - end - - @doc namespace: :db - @doc """ - Request payload size in bytes - - iex> OpenTelemetry.SemanticConventions.Span.db_cosmosdb_request_content_length() - :"db.cosmosdb.request_content_length" - """ - @spec db_cosmosdb_request_content_length :: :"db.cosmosdb.request_content_length" - def db_cosmosdb_request_content_length do - :"db.cosmosdb.request_content_length" - end - - @doc namespace: :user_agent - @doc """ - Full user-agent string is generated by Cosmos DB SDK - - ### Notes - - The user-agent value is generated by SDK which is a combination of
`sdk_version` : Current version of SDK. e.g. 'cosmos-netstandard-sdk/3.23.0'
`direct_pkg_version` : Direct package version used by Cosmos DB SDK. e.g. '3.23.1'
`number_of_client_instances` : Number of cosmos client instances created by the application. e.g. '1'
`type_of_machine_architecture` : Machine architecture. e.g. 'X64'
`operating_system` : Operating System. e.g. 'Linux 5.4.0-1098-azure 104 18'
`runtime_framework` : Runtime Framework. e.g. '.NET Core 3.1.32'
`failover_information` : Generated key to determine if region failover enabled. - Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it). - Default value is "NS" - - iex> OpenTelemetry.SemanticConventions.Span.user_agent_original() - :"user_agent.original" - """ - @spec user_agent_original :: :"user_agent.original" - def user_agent_original do - :"user_agent.original" - end - - @doc namespace: :otel - @doc """ - Name of the code, either "OK" or "ERROR". **MUST NOT** be set if the status code is UNSET - - iex> OpenTelemetry.SemanticConventions.Span.otel_status_code() - :"otel.status_code" - """ - @spec otel_status_code :: :"otel.status_code" - def otel_status_code do - :"otel.status_code" - end - - @doc namespace: :otel - @doc """ - Description of the Status if it has a value, otherwise not set - - iex> OpenTelemetry.SemanticConventions.Span.otel_status_description() - :"otel.status_description" - """ - @spec otel_status_description :: :"otel.status_description" - def otel_status_description do - :"otel.status_description" - end - - @doc namespace: :faas - @doc """ - The invocation ID of the current function invocation - - iex> OpenTelemetry.SemanticConventions.Span.faas_invocation_id() - :"faas.invocation_id" - """ - @spec faas_invocation_id :: :"faas.invocation_id" - def faas_invocation_id do - :"faas.invocation_id" - end - - @doc namespace: :faas - @doc """ - Type of the trigger which caused this function invocation - - ### Notes - - For the server/consumer span on the incoming side, - `faas.trigger` **MUST** be set. - - Clients invoking FaaS instances usually cannot set `faas.trigger`, - since they would typically need to look in the payload to determine - the event type. If clients set it, it should be the same as the - trigger that corresponding incoming would have (i.e., this has - nothing to do with the underlying transport used to make the API - call to invoke the lambda, which is often HTTP) - - iex> OpenTelemetry.SemanticConventions.Span.faas_trigger() - :"faas.trigger" - """ - @spec faas_trigger :: :"faas.trigger" - def faas_trigger do - :"faas.trigger" - end - - @doc namespace: :faas - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Span.faas_document_collection() - :"faas.document.collection" - """ - @spec faas_document_collection :: :"faas.document.collection" - def faas_document_collection do - :"faas.document.collection" - end - - @doc namespace: :faas - @doc """ - Describes the type of the operation that was performed on the data - - iex> OpenTelemetry.SemanticConventions.Span.faas_document_operation() - :"faas.document.operation" - """ - @spec faas_document_operation :: :"faas.document.operation" - def faas_document_operation do - :"faas.document.operation" - end - - @doc namespace: :faas - @doc """ - 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 - - iex> OpenTelemetry.SemanticConventions.Span.faas_document_name() - :"faas.document.name" - """ - @spec faas_document_name :: :"faas.document.name" - def faas_document_name do - :"faas.document.name" - end - - @doc namespace: :faas - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Span.faas_document_time() - :"faas.document.time" - """ - @spec faas_document_time :: :"faas.document.time" - def faas_document_time do - :"faas.document.time" - end - - @doc namespace: :faas - @doc """ - A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) - - iex> OpenTelemetry.SemanticConventions.Span.faas_cron() - :"faas.cron" - """ - @spec faas_cron :: :"faas.cron" - def faas_cron do - :"faas.cron" - end - - @doc namespace: :faas - @doc """ - 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) - - iex> OpenTelemetry.SemanticConventions.Span.faas_time() - :"faas.time" - """ - @spec faas_time :: :"faas.time" - def faas_time do - :"faas.time" - end - - @doc namespace: :faas - @doc """ - A boolean that is true if the serverless function is executed for the first time (aka cold-start) - - iex> OpenTelemetry.SemanticConventions.Span.faas_coldstart() - :"faas.coldstart" - """ - @spec faas_coldstart :: :"faas.coldstart" - def faas_coldstart do - :"faas.coldstart" - end - - @doc namespace: :faas - @doc """ - The name of the invoked function - - ### Notes - - **SHOULD** be equal to the `faas.name` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_name() - :"faas.invoked_name" - """ - @spec faas_invoked_name :: :"faas.invoked_name" - def faas_invoked_name do - :"faas.invoked_name" - end - - @doc namespace: :faas - @doc """ - The cloud provider of the invoked function - - ### Notes - - **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_provider() - :"faas.invoked_provider" - """ - @spec faas_invoked_provider :: :"faas.invoked_provider" - def faas_invoked_provider do - :"faas.invoked_provider" - end - - @doc namespace: :faas - @doc """ - The cloud region of the invoked function - - ### Notes - - **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function - - iex> OpenTelemetry.SemanticConventions.Span.faas_invoked_region() - :"faas.invoked_region" - """ - @spec faas_invoked_region :: :"faas.invoked_region" - def faas_invoked_region do - :"faas.invoked_region" - end - - @doc namespace: :http - @doc """ - The ordinal number of request resending attempt (for any reason, including redirects) - - ### Notes - - The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) - - iex> OpenTelemetry.SemanticConventions.Span.http_request_resend_count() - :"http.request.resend_count" - """ - @spec http_request_resend_count :: :"http.request.resend_count" - def http_request_resend_count do - :"http.request.resend_count" - end - - @doc namespace: :url - @doc """ - The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol - - iex> OpenTelemetry.SemanticConventions.Span.url_scheme() - :"url.scheme" - """ - @spec url_scheme :: :"url.scheme" - def url_scheme do - :"url.scheme" - end - - @doc namespace: :url - @doc """ - The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component - - ### Notes - - Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it - - iex> OpenTelemetry.SemanticConventions.Span.url_path() - :"url.path" - """ - @spec url_path :: :"url.path" - def url_path do - :"url.path" - end - - @doc namespace: :http - @doc """ - The matched route, that is, the path template in the format used by the respective server framework - - ### Notes - - **MUST NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. - **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one - - iex> OpenTelemetry.SemanticConventions.Span.http_route() - :"http.route" - """ - @spec http_route :: :"http.route" - def http_route do - :"http.route" - end - - @doc namespace: :url - @doc """ - The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component - - ### Notes - - Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it - - iex> OpenTelemetry.SemanticConventions.Span.url_query() - :"url.query" - """ - @spec url_query :: :"url.query" - def url_query do - :"url.query" - end - - @doc namespace: :client - @doc """ - Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name - - ### Notes - - The IP address of the original client behind all proxies, if known (e.g. from [Forwarded#for](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded#for), [X-Forwarded-For](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-For), or a similar header). Otherwise, the immediate client peer address - - iex> OpenTelemetry.SemanticConventions.Span.client_address() - :"client.address" - """ - @spec client_address :: :"client.address" - def client_address do - :"client.address" - end - - @doc namespace: :client - @doc """ - The port of whichever client was captured in `client.address` - - ### Notes - - When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available - - iex> OpenTelemetry.SemanticConventions.Span.client_port() - :"client.port" - """ - @spec client_port :: :"client.port" - def client_port do - :"client.port" - end - - @doc namespace: :network - @doc """ - Local socket address. Useful in case of a multi-IP host - - iex> OpenTelemetry.SemanticConventions.Span.network_local_address() - :"network.local.address" - """ - @spec network_local_address :: :"network.local.address" - def network_local_address do - :"network.local.address" - end - - @doc namespace: :network - @doc """ - Local socket port. Useful in case of a multi-port host - - iex> OpenTelemetry.SemanticConventions.Span.network_local_port() - :"network.local.port" - """ - @spec network_local_port :: :"network.local.port" - def network_local_port do - :"network.local.port" - end - - @doc namespace: :rpc - @doc """ - The value `aws-api` - - iex> OpenTelemetry.SemanticConventions.Span.rpc_system() - :"rpc.system" - """ - @spec rpc_system :: :"rpc.system" - def rpc_system do - :"rpc.system" - end - - @doc namespace: :aws - @doc """ - The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid` - - iex> OpenTelemetry.SemanticConventions.Span.aws_request_id() - :"aws.request_id" - """ - @spec aws_request_id :: :"aws.request_id" - def aws_request_id do - :"aws.request_id" - end - - @doc namespace: :rpc - @doc """ - The name of the operation corresponding to the request, as returned by the AWS SDK - - ### Notes - - This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) - - iex> OpenTelemetry.SemanticConventions.Span.rpc_method() - :"rpc.method" - """ - @spec rpc_method :: :"rpc.method" - def rpc_method do - :"rpc.method" - end - - @doc namespace: :rpc - @doc """ - The name of the service to which a request is made, as returned by the AWS SDK - - ### Notes - - This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) - - iex> OpenTelemetry.SemanticConventions.Span.rpc_service() - :"rpc.service" - """ - @spec rpc_service :: :"rpc.service" - def rpc_service do - :"rpc.service" - end - - @doc namespace: :aws - @doc """ - The value of the `AttributesToGet` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_attributes_to_get() - :"aws.dynamodb.attributes_to_get" - """ - @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" - def aws_dynamodb_attributes_to_get do - :"aws.dynamodb.attributes_to_get" - end - - @doc namespace: :aws - @doc """ - The value of the `ConsistentRead` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_consistent_read() - :"aws.dynamodb.consistent_read" - """ - @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" - def aws_dynamodb_consistent_read do - :"aws.dynamodb.consistent_read" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item in the `ConsumedCapacity` response field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_consumed_capacity() - :"aws.dynamodb.consumed_capacity" - """ - @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" - def aws_dynamodb_consumed_capacity do - :"aws.dynamodb.consumed_capacity" - end - - @doc namespace: :aws - @doc """ - The value of the `IndexName` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_index_name() - :"aws.dynamodb.index_name" - """ - @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" - def aws_dynamodb_index_name do - :"aws.dynamodb.index_name" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of the `ItemCollectionMetrics` response field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_item_collection_metrics() - :"aws.dynamodb.item_collection_metrics" - """ - @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" - def aws_dynamodb_item_collection_metrics do - :"aws.dynamodb.item_collection_metrics" - end - - @doc namespace: :aws - @doc """ - The value of the `Limit` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_limit() - :"aws.dynamodb.limit" - """ - @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" - def aws_dynamodb_limit do - :"aws.dynamodb.limit" - end - - @doc namespace: :aws - @doc """ - The value of the `ProjectionExpression` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_projection() - :"aws.dynamodb.projection" - """ - @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" - def aws_dynamodb_projection do - :"aws.dynamodb.projection" - end - - @doc namespace: :aws - @doc """ - The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_provisioned_read_capacity() - :"aws.dynamodb.provisioned_read_capacity" - """ - @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" - def aws_dynamodb_provisioned_read_capacity do - :"aws.dynamodb.provisioned_read_capacity" - end - - @doc namespace: :aws - @doc """ - The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_provisioned_write_capacity() - :"aws.dynamodb.provisioned_write_capacity" - """ - @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" - def aws_dynamodb_provisioned_write_capacity do - :"aws.dynamodb.provisioned_write_capacity" - end - - @doc namespace: :aws - @doc """ - The value of the `Select` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_select() - :"aws.dynamodb.select" - """ - @spec aws_dynamodb_select :: :"aws.dynamodb.select" - def aws_dynamodb_select do - :"aws.dynamodb.select" - end - - @doc namespace: :aws - @doc """ - The keys in the `RequestItems` object field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_table_names() - :"aws.dynamodb.table_names" - """ - @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" - def aws_dynamodb_table_names do - :"aws.dynamodb.table_names" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_global_secondary_indexes() - :"aws.dynamodb.global_secondary_indexes" - """ - @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" - def aws_dynamodb_global_secondary_indexes do - :"aws.dynamodb.global_secondary_indexes" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_local_secondary_indexes() - :"aws.dynamodb.local_secondary_indexes" - """ - @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" - def aws_dynamodb_local_secondary_indexes do - :"aws.dynamodb.local_secondary_indexes" - end - - @doc namespace: :aws - @doc """ - The value of the `ExclusiveStartTableName` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_exclusive_start_table() - :"aws.dynamodb.exclusive_start_table" - """ - @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" - def aws_dynamodb_exclusive_start_table do - :"aws.dynamodb.exclusive_start_table" - end - - @doc namespace: :aws - @doc """ - The number of items in the `TableNames` response parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_table_count() - :"aws.dynamodb.table_count" - """ - @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" - def aws_dynamodb_table_count do - :"aws.dynamodb.table_count" - end - - @doc namespace: :aws - @doc """ - The value of the `ScanIndexForward` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_scan_forward() - :"aws.dynamodb.scan_forward" - """ - @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" - def aws_dynamodb_scan_forward do - :"aws.dynamodb.scan_forward" - end - - @doc namespace: :aws - @doc """ - The value of the `Count` response parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_count() - :"aws.dynamodb.count" - """ - @spec aws_dynamodb_count :: :"aws.dynamodb.count" - def aws_dynamodb_count do - :"aws.dynamodb.count" - end - - @doc namespace: :aws - @doc """ - The value of the `ScannedCount` response parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_scanned_count() - :"aws.dynamodb.scanned_count" - """ - @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" - def aws_dynamodb_scanned_count do - :"aws.dynamodb.scanned_count" - end - - @doc namespace: :aws - @doc """ - The value of the `Segment` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_segment() - :"aws.dynamodb.segment" - """ - @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" - def aws_dynamodb_segment do - :"aws.dynamodb.segment" - end - - @doc namespace: :aws - @doc """ - The value of the `TotalSegments` request parameter - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_total_segments() - :"aws.dynamodb.total_segments" - """ - @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" - def aws_dynamodb_total_segments do - :"aws.dynamodb.total_segments" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item in the `AttributeDefinitions` request field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_attribute_definitions() - :"aws.dynamodb.attribute_definitions" - """ - @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" - def aws_dynamodb_attribute_definitions do - :"aws.dynamodb.attribute_definitions" - end - - @doc namespace: :aws - @doc """ - The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field - - iex> OpenTelemetry.SemanticConventions.Span.aws_dynamodb_global_secondary_index_updates() - :"aws.dynamodb.global_secondary_index_updates" - """ - @spec aws_dynamodb_global_secondary_index_updates :: - :"aws.dynamodb.global_secondary_index_updates" - def aws_dynamodb_global_secondary_index_updates do - :"aws.dynamodb.global_secondary_index_updates" - end - - @doc namespace: :aws - @doc """ - 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 - - ### Notes - - 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` - - iex> OpenTelemetry.SemanticConventions.Span.aws_s3_bucket() - :"aws.s3.bucket" - """ - @spec aws_s3_bucket :: :"aws.s3.bucket" - def aws_s3_bucket do - :"aws.s3.bucket" - end - - @doc namespace: :aws - @doc """ - The source object (in the form `bucket`/`key`) for the copy operation - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Span.aws_s3_copy_source() - :"aws.s3.copy_source" - """ - @spec aws_s3_copy_source :: :"aws.s3.copy_source" - def aws_s3_copy_source do - :"aws.s3.copy_source" - end - - @doc namespace: :aws - @doc """ - The delete request container that specifies the objects to be deleted - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Span.aws_s3_delete() - :"aws.s3.delete" - """ - @spec aws_s3_delete :: :"aws.s3.delete" - def aws_s3_delete do - :"aws.s3.delete" - end - - @doc namespace: :aws - @doc """ - 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 - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Span.aws_s3_key() - :"aws.s3.key" - """ - @spec aws_s3_key :: :"aws.s3.key" - def aws_s3_key do - :"aws.s3.key" - end - - @doc namespace: :aws - @doc """ - The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000 - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Span.aws_s3_part_number() - :"aws.s3.part_number" - """ - @spec aws_s3_part_number :: :"aws.s3.part_number" - def aws_s3_part_number do - :"aws.s3.part_number" - end - - @doc namespace: :aws - @doc """ - Upload ID that identifies the multipart upload - - ### Notes - - 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) - - iex> OpenTelemetry.SemanticConventions.Span.aws_s3_upload_id() - :"aws.s3.upload_id" - """ - @spec aws_s3_upload_id :: :"aws.s3.upload_id" - def aws_s3_upload_id do - :"aws.s3.upload_id" - end - - @doc namespace: :graphql - @doc """ - The GraphQL document being executed - - ### Notes - - The value may be sanitized to exclude sensitive information - - iex> OpenTelemetry.SemanticConventions.Span.graphql_document() - :"graphql.document" - """ - @spec graphql_document :: :"graphql.document" - def graphql_document do - :"graphql.document" - end - - @doc namespace: :graphql - @doc """ - The name of the operation being executed - - iex> OpenTelemetry.SemanticConventions.Span.graphql_operation_name() - :"graphql.operation.name" - """ - @spec graphql_operation_name :: :"graphql.operation.name" - def graphql_operation_name do - :"graphql.operation.name" - end - - @doc namespace: :graphql - @doc """ - The type of the operation being executed - - iex> OpenTelemetry.SemanticConventions.Span.graphql_operation_type() - :"graphql.operation.type" - """ - @spec graphql_operation_type :: :"graphql.operation.type" - def graphql_operation_type do - :"graphql.operation.type" - end - - @doc namespace: :messaging - @doc """ - A string identifying the kind of messaging operation - - ### Notes - - If a custom value is used, it **MUST** be of low cardinality - - iex> OpenTelemetry.SemanticConventions.Span.messaging_operation() - :"messaging.operation" - """ - @spec messaging_operation :: :"messaging.operation" - def messaging_operation do - :"messaging.operation" - end - - @doc namespace: :messaging - @doc """ - The number of messages sent, received, or processed in the scope of the batching operation - - ### Notes - - Instrumentations **SHOULD NOT** set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations **SHOULD** use `messaging.batch.message_count` for batching APIs and **SHOULD NOT** use it for single-message APIs - - iex> OpenTelemetry.SemanticConventions.Span.messaging_batch_message_count() - :"messaging.batch.message_count" - """ - @spec messaging_batch_message_count :: :"messaging.batch.message_count" - def messaging_batch_message_count do - :"messaging.batch.message_count" - end - - @doc namespace: :messaging - @doc """ - A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) - - iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_anonymous() - :"messaging.destination.anonymous" - """ - @spec messaging_destination_anonymous :: :"messaging.destination.anonymous" - def messaging_destination_anonymous do - :"messaging.destination.anonymous" - end - - @doc namespace: :messaging - @doc """ - The message destination name - - ### Notes - - Destination name **SHOULD** uniquely identify a specific queue, topic or other entity within the broker. If - the broker doesn't have such notion, the destination name **SHOULD** uniquely identify the broker - - iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_name() - :"messaging.destination.name" - """ - @spec messaging_destination_name :: :"messaging.destination.name" - def messaging_destination_name do - :"messaging.destination.name" - end - - @doc namespace: :messaging - @doc """ - Low cardinality representation of the messaging destination name - - ### Notes - - Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation - - iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_template() - :"messaging.destination.template" - """ - @spec messaging_destination_template :: :"messaging.destination.template" - def messaging_destination_template do - :"messaging.destination.template" - end - - @doc namespace: :messaging - @doc """ - A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed - - iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_temporary() - :"messaging.destination.temporary" - """ - @spec messaging_destination_temporary :: :"messaging.destination.temporary" - def messaging_destination_temporary do - :"messaging.destination.temporary" - end - - @doc namespace: :messaging - @doc """ - A unique identifier for the client that consumes or produces a message - - iex> OpenTelemetry.SemanticConventions.Span.messaging_client_id() - :"messaging.client_id" - """ - @spec messaging_client_id :: :"messaging.client_id" - def messaging_client_id do - :"messaging.client_id" - end - - @doc namespace: :messaging - @doc """ - The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` - - iex> OpenTelemetry.SemanticConventions.Span.messaging_destination_partition_id() - :"messaging.destination.partition.id" - """ - @spec messaging_destination_partition_id :: :"messaging.destination.partition.id" - def messaging_destination_partition_id do - :"messaging.destination.partition.id" - end - - @doc namespace: :messaging - @doc """ - The size of the message body in bytes - - ### Notes - - This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed - body size should be used - - iex> OpenTelemetry.SemanticConventions.Span.messaging_message_body_size() - :"messaging.message.body.size" - """ - @spec messaging_message_body_size :: :"messaging.message.body.size" - def messaging_message_body_size do - :"messaging.message.body.size" - end - - @doc namespace: :messaging - @doc """ - The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" - - iex> OpenTelemetry.SemanticConventions.Span.messaging_message_conversation_id() - :"messaging.message.conversation_id" - """ - @spec messaging_message_conversation_id :: :"messaging.message.conversation_id" - def messaging_message_conversation_id do - :"messaging.message.conversation_id" - end - - @doc namespace: :messaging - @doc """ - The size of the message body and metadata in bytes - - ### Notes - - This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed - size should be used - - iex> OpenTelemetry.SemanticConventions.Span.messaging_message_envelope_size() - :"messaging.message.envelope.size" - """ - @spec messaging_message_envelope_size :: :"messaging.message.envelope.size" - def messaging_message_envelope_size do - :"messaging.message.envelope.size" - end - - @doc namespace: :messaging - @doc """ - A value used by the messaging system as an identifier for the message, represented as a string - - iex> OpenTelemetry.SemanticConventions.Span.messaging_message_id() - :"messaging.message.id" - """ - @spec messaging_message_id :: :"messaging.message.id" - def messaging_message_id do - :"messaging.message.id" - end - - @doc namespace: :network - @doc """ - [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) - - ### Notes - - The value **SHOULD** be normalized to lowercase. - - Consider always setting the transport when setting a port number, since - a port number is ambiguous without knowing the transport. For example - different processes could be listening on TCP port 12345 and UDP port 12345 - - iex> OpenTelemetry.SemanticConventions.Span.network_transport() - :"network.transport" - """ - @spec network_transport :: :"network.transport" - def network_transport do - :"network.transport" - end - - @doc namespace: :network - @doc """ - [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent - - ### Notes - - The value **SHOULD** be normalized to lowercase - - iex> OpenTelemetry.SemanticConventions.Span.network_type() - :"network.type" - """ - @spec network_type :: :"network.type" - def network_type do - :"network.type" - end - - @doc namespace: :rpc - @doc """ - The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request - - iex> OpenTelemetry.SemanticConventions.Span.rpc_grpc_status_code() - :"rpc.grpc.status_code" - """ - @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" - def rpc_grpc_status_code do - :"rpc.grpc.status_code" - end - - @doc namespace: :rpc - @doc """ - `error.code` property of response if it is an error response - - iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_error_code() - :"rpc.jsonrpc.error_code" - """ - @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" - def rpc_jsonrpc_error_code do - :"rpc.jsonrpc.error_code" - end - - @doc namespace: :rpc - @doc """ - Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted - - iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_version() - :"rpc.jsonrpc.version" - """ - @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" - def rpc_jsonrpc_version do - :"rpc.jsonrpc.version" - end - - @doc namespace: :rpc - @doc """ - `error.message` property of response if it is an error response - - iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_error_message() - :"rpc.jsonrpc.error_message" - """ - @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" - def rpc_jsonrpc_error_message do - :"rpc.jsonrpc.error_message" - end - - @doc namespace: :rpc - @doc """ - `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification - - iex> OpenTelemetry.SemanticConventions.Span.rpc_jsonrpc_request_id() - :"rpc.jsonrpc.request_id" - """ - @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" - def rpc_jsonrpc_request_id do - :"rpc.jsonrpc.request_id" - end - - @doc namespace: :rpc - @doc """ - The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values - - iex> OpenTelemetry.SemanticConventions.Span.rpc_connect_rpc_error_code() - :"rpc.connect_rpc.error_code" - """ - @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" - def rpc_connect_rpc_error_code do - :"rpc.connect_rpc.error_code" - end -end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 new file mode 100644 index 00000000..2e4f9e24 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -0,0 +1,113 @@ +{%- macro to_elixir_module(text) -%} + {{ text | pascal_case }} +{%- endmacro -%} +{%- macro func_name(text) -%} + {{ text | snake_case_const }} +{%- endmacro -%} +{%- macro to_atom(text) -%} +{#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} +{% if text | split_id | length > 1 -%}:"{{ text }}"{%- else -%}:{{ text }}{%- endif %} +{%- endmacro -%} +{% macro to_elixir_type(member) -%} + {%- if member.id == member.value -%} + {{ to_atom(member.value) }} + {%- else -%} + {{ member }} + {{ member.type | type_mapping }} + {%- endif -%} +{%- endmacro %} +{%- macro enum_value_to_elixir_type(value) -%} + {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} +{%- endmacro -%} +{%- macro strong_reqs(string) -%} + {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", replace=" **MAY** ") | replace(" NOT ", " **NOT** ") }} +{%- endmacro -%} + +{%- set file_name = ctx.id | snake_case ~ "_attributes.ex" -%} +{%- set module_name = ctx.id | pascal_case -%} +{%- set trim_blocks = true %} +{%- set trim_lstrip_blocks = true %} +{{ template.set_file_name(file_name) }} + +{%- set module_name = ctx.id | pascal_case ~ "Attributes" -%} +{{ params }} + +defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do + @moduledoc """ + OpenTelemetry Semantic Conventions for Attributes. + +``` +{%- for attribute in ctx.attributes | sort(attribute="name") %} + {{ attribute }} +{%- endfor %} +``` + """ +{%- for attribute in ctx.attributes | sort(attribute="name") %} +{% if attribute.type is mapping %} + {%- set type_name = attribute.name | snake_case_const %} + {# @doc namespace: {{ to_atom(ctx.id) }} #} + + {% for member in attribute.type.members %} + {% if member.id ~ '' != member.value -%} + @type {{ member.id }}() :: {{ enum_value_to_elixir_type(member.value) }} + {%- endif %} + {% endfor %} + @typedoc """ + {{ strong_reqs(attribute.brief) }} + + ### Options + {% for member in attribute.type.members -%} + * `{{ to_atom(member.id) }}` + {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} + {% endfor %} + """ + @type {{ attribute.name | snake_case_const }}() :: + {%- for member in attribute.type.members -%} + {% if loop.first %} {% endif %}{% if member.id ~ '' != member.value %}{{ member.id }}(){% else %}{{ enum_value_to_elixir_type(member.value) }}{% endif %}{% if not loop.last %} | {% endif %} + {%- endfor -%} + {% if attribute.type.allow_custom_values == true %} | atom(){% endif %} + {%- endif %} +{%- endfor %} + + {# @doc """ + The URL of the OpenTelemetry schema for these keys and values. + + iex> OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.schema_url() + "{{ schema_uri }}" + """ + @spec schema_url :: String.t() + def schema_url do + "{{ schema_uri }}" + end #} + + +{%- for attribute in ctx.attributes | sort(attribute="name") %} +{% if not(attribute.type is mapping) %} + + {# {%- if attribute|is_deprecated %} + @deprecated """ + {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} + """ + {%- else -%} + @doc """ + {{ attribute }} + {{ strong_reqs(attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} + {%- if attribute.note %} + + ### Notes + + {{ strong_reqs(attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} + {%- endif %} + + iex> OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.{{ funcName(attribute.fqn) }}() + :"{{ attribute.fqn }}" + + """ + {%- endif %} #} + @spec {{ func_name(attribute.name) }} :: {{ to_atom(attribute.name) }} + def {{ func_name(attribute.name) }} do + {{ to_atom(attribute.name) }} + end + {%- endif %} +{%- endfor %} +end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml new file mode 100644 index 00000000..e9d511c2 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -0,0 +1,91 @@ +templates: + - pattern: semantic_attributes.ex.j2 + filter: > + ["ios", "android", "dotnet", "aspnetcore", "signalr", "jvm"] as $excluded | + .groups + | map(select(.type == "attribute_group")) + | map(select(.id | startswith("registry."))) + | map({ id: .id, group_id: .id | split(".") | .[1], attributes: .attributes}) + | group_by(.group_id) + | map({ id: .[0].group_id, attributes: [.[].attributes[]] | sort_by(.id) }) + | map(select( .id as $id | any( $excluded[]; . == $id) | not )) + | map(select(.attributes | length > 0)) + application_mode: each + + # | map(select([.attributes[] | select(.stability="stable")] | any)) +text_maps: + type_mapping: + "int": "integer()" + "int[]": "[integer()]" + "double": "float()" + "double[]": "[float()]" + "boolean": "boolean()" + "boolean[]": "[boolean()]" + "string": "String.t()" + "string[]": "[String.t()]" + "template[int]": "integer()" + "template[double]": "float()" + "template[boolean]": "boolean()" + "template[string]": "String.t()" + "template[string[]]": "[String.t()]" + "template[int[]]": "[integer()]" + "template[double[]]": "[float()]" + "template[boolean[]]": "[boolean()]" +# java_generic_type: +# int: Long +# double: Double +# boolean: Boolean +# string: String +# string[]: List +# int[]: List +# double[]: List +# boolean[]: List +# template[int]: Long +# template[double]: Double +# template[boolean]: Boolean +# template[string]: String +# template[string[]]: List +# template[int[]]: List +# template[double[]]: List +# template[boolean[]]: List +# java_key_type: +# int: AttributeKey +# double: AttributeKey +# boolean: AttributeKey +# string: AttributeKey +# string[]: AttributeKey> +# int[]: AttributeKey> +# double[]: AttributeKey> +# boolean[]: AttributeKey> +# template[int]: AttributeKeyTemplate +# template[double]: AttributeKeyTemplate +# template[boolean]: AttributeKeyTemplate +# template[string]: AttributeKeyTemplate +# template[string[]]: AttributeKeyTemplate> +# template[int[]]: AttributeKeyTemplate> +# template[double[]]: AttributeKeyTemplate> +# template[boolean[]]: AttributeKeyTemplate> +# java_key_factory: +# int: longKey +# double: doubleKey +# boolean: booleanKey +# string: stringKey +# string[]: stringArrayKey +# int[]: longArrayKey +# double[]: doubleArrayKey +# boolean[]: booleanArrayKey +# template[int]: longKeyTemplate +# template[double]: doubleKeyTemplate +# template[boolean]: booleanKeyTemplate +# template[string]: stringKeyTemplate +# template[string[]]: stringArrayKeyTemplate +# template[int[]]: longArrayKeyTemplate +# template[double[]]: doubleArrayKeyTemplate +# template[boolean[]]: booleanArrayKeyTemplate + +# Space delimited list of root namespaces to excluded (i.e. "foo bar") +# "-Dexcluded_namespaces=\"ios aspnetcore signalr\"", +#"-Dfilter=${filter}", +# "-DclassPrefix=${classPrefix}", +# "-Dpkg=$packageNameArg", +# "-DstablePkg=$stablePackageNameArg" diff --git a/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 similarity index 100% rename from apps/opentelemetry_semantic_conventions/templates/semantic_attributes.hrl.j2 rename to apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 diff --git a/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 deleted file mode 100644 index d11bc856..00000000 --- a/apps/opentelemetry_semantic_conventions/templates/semantic_attributes.ex.j2 +++ /dev/null @@ -1,93 +0,0 @@ -{%- macro upFirst(text) -%} - {{ text[0] | upper}}{{text[1:] }} -{%- endmacro -%} -{%- macro funcName(text) -%} - {{ text | regex_replace(pattern="\.", replace="_") }} -{%- endmacro -%} -{%- macro toAtom(text) -%} -{%- if text.find('.') != -1 %}:"{{ text }}"{%- else %}:{{ text }}{%- endif %} -{%- endmacro -%} -{%- macro to_elixir_type(value) -%} - {%- if value|string == value -%} - {{ toAtom(value) }} - {%- elif value == value|int -%} - {{ value }} - {%- else -%} - unmatchedtype: {{ value }} - {%- endif -%} -{%- endmacro -%} -{%- macro excluded_namespaces() -%} -('android', 'aspnetcore', 'cloud', 'dotnet', 'ios', 'jvm', 'signalr') -{%- endmacro -%} -{%- macro strong_reqs(string) -%} - {{ string | regex_replace(pattern="(? OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.schema_url() - "{{ schema_uri }}" - """ - @spec schema_url :: String.t() - def schema_url do - "{{ schema_uri }}" - end - -{%- for attribute in attributes | unique(attribute="fqn") %} - {%- if attribute.is_local and attribute.root_namespace not in excluded_namespaces() %} - {% if attribute.root_namespace != '' %} - @doc namespace: {{ toAtom(attribute.root_namespace) }} - {% endif -%} - {%- if attribute|is_deprecated %} - @deprecated """ - {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} - """ - {%- else -%} - @doc """ - {{ strong_reqs(attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} - {%- if attribute.note %} - - ### Notes - - {{ strong_reqs(attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} - {%- endif %} - - iex> OpenTelemetry.SemanticConventions.{{ upFirst(module) }}.{{ funcName(attribute.fqn) }}() - :"{{ attribute.fqn }}" - """ - {%- endif %} - @spec {{ funcName(attribute.fqn) }} :: {{ toAtom(attribute.fqn) }} - def {{ funcName(attribute.fqn) }} do - {{ toAtom(attribute.fqn) }} - end - {%- endif -%} -{%- endfor %} -end From 53eac185cd56076b89e3b612706eb05ccebd133f Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 18:20:37 -0600 Subject: [PATCH 08/57] 1.26.0 and weaver --- .../generate.exs | 9 +- .../include/common.hrl | 1394 ----------------- .../include/event.hrl | 68 - .../include/metric.hrl | 203 --- .../include/resource.hrl | 496 ------ .../include/span.hrl | 553 ------- .../lib/aws_attributes.ex | 648 ++++++++ .../lib/browser_attributes.ex | 71 + .../lib/client_attributes.ex | 38 + .../lib/cloud_attributes.ex | 280 ++++ .../lib/cloudevents_attributes.ex | 76 + .../lib/code_attributes.ex | 90 ++ .../lib/container_attributes.ex | 214 +++ .../lib/db_attributes.ex | 938 +++++++++++ .../lib/deployment_attributes.ex | 29 + .../lib/destination_attributes.ex | 35 + .../lib/device_attributes.ex | 74 + .../lib/disk_attributes.ex | 38 + .../lib/dns_attributes.ex | 22 + .../lib/enduser_attributes.ex | 47 + .../lib/error_attributes.ex | 62 + .../lib/event_attributes.ex | 23 + .../lib/exception_attributes.ex | 78 + .../lib/faas_attributes.ex | 346 ++++ .../lib/feature_flag_attributes.ex | 55 + .../lib/file_attributes.ex | 79 + .../lib/gcp_attributes.ex | 62 + .../lib/gen_ai_attributes.ex | 186 +++ .../lib/graphql_attributes.ex | 69 + .../lib/heroku_attributes.ex | 48 + .../lib/host_attributes.ex | 258 +++ .../lib/http_attributes.ex | 463 ++++++ .../lib/k_8_s_attributes.ex | 376 +++++ .../lib/log_attributes.ex | 114 ++ .../lib/messaging_attributes.ex | 795 ++++++++++ .../lib/network_attributes.ex | 580 +++++++ .../lib/oci_attributes.ex | 24 + .../lib/opentracing_attributes.ex | 41 + .../lib/os_attributes.ex | 136 ++ .../lib/otel_attributes.ex | 99 ++ .../lib/peer_attributes.ex | 20 + .../lib/process_attributes.ex | 448 ++++++ .../lib/rpc_attributes.ex | 553 +++++++ .../lib/server_attributes.ex | 38 + .../lib/service_attributes.ex | 96 ++ .../lib/session_attributes.ex | 32 + .../lib/source_attributes.ex | 35 + .../lib/system_attributes.ex | 459 ++++++ .../lib/telemetry_attributes.ex | 154 ++ .../lib/thread_attributes.ex | 34 + .../lib/tls_attributes.ex | 420 +++++ .../lib/url_attributes.ex | 217 +++ .../lib/user_agent_attributes.ex | 54 + .../lib/webengine_attributes.ex | 48 + .../mix.exs | 76 +- .../mix.lock | 6 +- ...opentelemetry_semantic_conventions.app.src | 2 +- .../registry/elixir/semantic_attributes.ex.j2 | 83 +- .../semantic_conventions/registry_test.exs | 22 + 59 files changed, 9212 insertions(+), 2802 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/include/common.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/event.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/metric.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/resource.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/span.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/client_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/code_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/container_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/db_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/device_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/error_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/event_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/file_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/host_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/http_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/log_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/network_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/os_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/process_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/server_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/service_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/session_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/source_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/system_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/url_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs index ddf3a02e..5b7a8360 100644 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -17,13 +17,10 @@ cwd = File.cwd!() # File.cd!(build_dir, fn -> # System.cmd("git", ["pull"]) # System.cmd("git", ["checkout", "v#{semconv_version}"]) +# System.cmd("cp", ["-r", "#{build_dir}/docs", "guides"]) +# System.cmd("rm", ["-rf", "#{cwd}/guides/docs"]) # end) -# for kind <- ["metric", "attribute_group", "resource", "span", "event"] do -# module = if kind == "attribute_group", do: "common", else: kind - -# elixir -# Task.async(fn -> System.cmd("docker", [ "run", # "--rm", @@ -43,8 +40,6 @@ System.cmd("docker", [ "/output/" ]) -# end) - # erlang # Task.async(fn -> # System.cmd("docker", [ diff --git a/apps/opentelemetry_semantic_conventions/include/common.hrl b/apps/opentelemetry_semantic_conventions/include/common.hrl deleted file mode 100644 index 53f4172d..00000000 --- a/apps/opentelemetry_semantic_conventions/include/common.hrl +++ /dev/null @@ -1,1394 +0,0 @@ -%% The schema url for telemetry resources --define(COMMON_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). - -%% The name of the invoked function -%% SHOULD be equal to the `faas.name` resource attribute of the invoked function --define(FAAS_INVOKED_NAME, 'faas.invoked_name'). - -%% The cloud provider of the invoked function -%% SHOULD be equal to the `cloud.provider` resource attribute of the invoked function --define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). - -%% The cloud region of the invoked function -%% SHOULD be equal to the `cloud.region` resource attribute of the invoked function --define(FAAS_INVOKED_REGION, 'faas.invoked_region'). - -%% Type of the trigger which caused this function invocation --define(FAAS_TRIGGER, 'faas.trigger'). - -%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name -%% When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available --define(CLIENT_ADDRESS, 'client.address'). - -%% Client port number -%% When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available --define(CLIENT_PORT, 'client.port'). - -%% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name -%% When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available --define(SERVER_ADDRESS, 'server.address'). - -%% Server port number -%% When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available --define(SERVER_PORT, 'server.port'). - -%% Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name -%% When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent the source address behind any intermediaries, for example proxies, if it's available --define(SOURCE_ADDRESS, 'source.address'). - -%% Source port number --define(SOURCE_PORT, 'source.port'). - -%% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name -%% 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 --define(DESTINATION_ADDRESS, 'destination.address'). - -%% Destination port number --define(DESTINATION_PORT, 'destination.port'). - -%% HTTP request method -%% HTTP request method value SHOULD be "known" to the instrumentation. -%% By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) -%% and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). -%% -%% If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. -%% -%% If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override -%% the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named -%% OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods -%% (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). -%% -%% HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. -%% Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. -%% Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value --define(HTTP_REQUEST_METHOD, 'http.request.method'). - -%% Describes a class of error the operation ended with -%% If the request fails with an error before response status code was sent or received, -%% `error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable) -%% or a component-specific low cardinality error identifier. -%% -%% If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), -%% `error.type` SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. -%% -%% The `error.type` value SHOULD be predictable and SHOULD have low cardinality. -%% Instrumentations SHOULD document the list of errors they report. -%% -%% The cardinality of `error.type` within one instrumentation library SHOULD be low, but -%% telemetry consumers that aggregate data from multiple instrumentation libraries and applications -%% should be prepared for `error.type` to have high cardinality at query time, when no -%% additional filters are applied. -%% -%% If the request has completed successfully, instrumentations SHOULD NOT set `error.type` --define(ERROR_TYPE, 'error.type'). - -%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) --define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). - -%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent -%% The value SHOULD be normalized to lowercase --define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). - -%% The actual version of the protocol used for network communication -%% If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set --define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). - -%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol --define(URL_SCHEME, 'url.scheme'). - -%% The matched route, that is, the path template in the format used by the respective server framework -%% MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. -%% SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one --define(HTTP_ROUTE, 'http.route'). - -%% Identifies the class / type of event -%% Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.31.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes --define(EVENT_NAME, 'event.name'). - -%% A unique identifier for the Log Record -%% If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records MUST have different values. -%% The id MAY be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed --define(LOG_RECORD_UID, 'log.record.uid'). - -%% The exception message --define(EXCEPTION_MESSAGE, 'exception.message'). - -%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG --define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). - -%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it --define(EXCEPTION_TYPE, 'exception.type'). - -%% The stream associated with the log. See below for a list of well-known values --define(LOG_IOSTREAM, 'log.iostream'). - -%% The basename of the file --define(LOG_FILE_NAME, 'log.file.name'). - -%% The basename of the file, with symlinks resolved --define(LOG_FILE_NAME_RESOLVED, 'log.file.name_resolved'). - -%% The full path to the file --define(LOG_FILE_PATH, 'log.file.path'). - -%% The full path to the file, with symlinks resolved --define(LOG_FILE_PATH_RESOLVED, 'log.file.path_resolved'). - -%% An identifier for the messaging system being used. See below for a list of well-known identifiers --define(MESSAGING_SYSTEM, 'messaging.system'). - -%% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` --define(POOL_NAME, 'pool.name'). - -%% The state of a connection in the pool --define(STATE, 'state'). - -%% Rate-limiting result, shows whether the lease was acquired or contains a rejection reason --define(ASPNETCORE_RATE_LIMITING_RESULT, 'aspnetcore.rate_limiting.result'). - -%% Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) implementation that handled the exception --define(ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE, 'aspnetcore.diagnostics.handler.type'). - -%% Rate limiting policy name --define(ASPNETCORE_RATE_LIMITING_POLICY, 'aspnetcore.rate_limiting.policy'). - -%% Flag indicating if request was handled by the application pipeline --define(ASPNETCORE_REQUEST_IS_UNHANDLED, 'aspnetcore.request.is_unhandled'). - -%% A value that indicates whether the matched route is a fallback route --define(ASPNETCORE_ROUTING_IS_FALLBACK, 'aspnetcore.routing.is_fallback'). - -%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) -%% The value SHOULD be normalized to lowercase. -%% -%% Consider always setting the transport when setting a port number, since -%% a port number is ambiguous without knowing the transport. For example -%% different processes could be listening on TCP port 12345 and UDP port 12345 --define(NETWORK_TRANSPORT, 'network.transport'). - -%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent -%% The value SHOULD be normalized to lowercase --define(NETWORK_TYPE, 'network.type'). - -%% SignalR HTTP connection closure status --define(SIGNALR_CONNECTION_STATUS, 'signalr.connection.status'). - -%% [SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md) --define(SIGNALR_TRANSPORT, 'signalr.transport'). - -%% Name of the buffer pool -%% Pool names are generally obtained via [BufferPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName()) --define(JVM_BUFFER_POOL_NAME, 'jvm.buffer.pool.name'). - -%% Name of the memory pool -%% Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()) --define(JVM_MEMORY_POOL_NAME, 'jvm.memory.pool.name'). - -%% The type of memory --define(JVM_MEMORY_TYPE, 'jvm.memory.type'). - -%% The message destination name -%% Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If -%% the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker --define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). - -%% Low cardinality representation of the messaging destination name -%% Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation --define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). - -%% The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels --define(PROCESS_CPU_STATE, 'process.cpu.state'). - -%% A string identifying the remoting system. See below for a list of well-known identifiers --define(RPC_SYSTEM, 'rpc.system'). - -%% The name of the (logical) method being called, must be equal to the $method part in the span name -%% This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) --define(RPC_METHOD, 'rpc.method'). - -%% The full (logical) name of the service being called, including its package name, if applicable -%% This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) --define(RPC_SERVICE, 'rpc.service'). - -%% The device identifier --define(SYSTEM_DEVICE, 'system.device'). - -%% The logical CPU number [0..n-1] --define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). - -%% The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels --define(SYSTEM_CPU_STATE, 'system.cpu.state'). - -%% The memory state --define(SYSTEM_MEMORY_STATE, 'system.memory.state'). - -%% The paging access direction --define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). - -%% The memory paging state --define(SYSTEM_PAGING_STATE, 'system.paging.state'). - -%% The memory paging type --define(SYSTEM_PAGING_TYPE, 'system.paging.type'). - -%% The filesystem mode --define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). - -%% The filesystem mount path --define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). - -%% The filesystem state --define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). - -%% The filesystem type --define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). - -%% A stateless protocol MUST NOT set this attribute --define(SYSTEM_NETWORK_STATE, 'system.network.state'). - -%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) --define(SYSTEM_PROCESS_STATUS, 'system.process.status'). - -%% Local address of the network connection - IP address or Unix domain socket name --define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). - -%% Local port number of the network connection --define(NETWORK_LOCAL_PORT, 'network.local.port'). - -%% Peer address of the network connection - IP address or Unix domain socket name --define(NETWORK_PEER_ADDRESS, 'network.peer.address'). - -%% Peer port number of the network connection --define(NETWORK_PEER_PORT, 'network.peer.port'). - -%% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network --define(NETWORK_CARRIER_ICC, 'network.carrier.icc'). - -%% The mobile carrier country code --define(NETWORK_CARRIER_MCC, 'network.carrier.mcc'). - -%% The mobile carrier network code --define(NETWORK_CARRIER_MNC, 'network.carrier.mnc'). - -%% The name of the mobile carrier --define(NETWORK_CARRIER_NAME, 'network.carrier.name'). - -%% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection --define(NETWORK_CONNECTION_SUBTYPE, 'network.connection.subtype'). - -%% The internet connection type --define(NETWORK_CONNECTION_TYPE, 'network.connection.type'). - -%% 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) --define(ANDROID_OS_API_LEVEL, 'android.os.api_level'). - -%% The JSON-serialized value of each item in the `AttributeDefinitions` request field --define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). - -%% The value of the `AttributesToGet` request parameter --define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). - -%% The value of the `ConsistentRead` request parameter --define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). - -%% The JSON-serialized value of each item in the `ConsumedCapacity` response field --define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). - -%% The value of the `Count` response parameter --define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). - -%% The value of the `ExclusiveStartTableName` request parameter --define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). - -%% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). - -%% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). - -%% The value of the `IndexName` request parameter --define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). - -%% The JSON-serialized value of the `ItemCollectionMetrics` response field --define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). - -%% The value of the `Limit` request parameter --define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). - -%% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field --define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). - -%% The value of the `ProjectionExpression` request parameter --define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). - -%% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter --define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). - -%% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter --define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). - -%% The value of the `ScanIndexForward` request parameter --define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). - -%% The value of the `ScannedCount` response parameter --define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). - -%% The value of the `Segment` request parameter --define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). - -%% The value of the `Select` request parameter --define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). - -%% The number of items in the `TableNames` response parameter --define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). - -%% The keys in the `RequestItems` object field --define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). - -%% The value of the `TotalSegments` request parameter --define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). - -%% Array of brand name and version separated by a space -%% This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) --define(BROWSER_BRANDS, 'browser.brands'). - -%% Preferred language of the user using the browser -%% This value is intended to be taken from the Navigator API `navigator.language` --define(BROWSER_LANGUAGE, 'browser.language'). - -%% A boolean that is true if the browser is running on a mobile device -%% 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 --define(BROWSER_MOBILE, 'browser.mobile'). - -%% The platform on which the browser is running -%% 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 --define(BROWSER_PLATFORM, 'browser.platform'). - -%% The cloud account ID the resource is assigned to --define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). - -%% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running -%% Availability zones are called "zones" on Alibaba Cloud and Google Cloud --define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). - -%% The cloud platform in use -%% The prefix of the service SHOULD match the one specified in `cloud.provider` --define(CLOUD_PLATFORM, 'cloud.platform'). - -%% Name of the cloud provider --define(CLOUD_PROVIDER, 'cloud.provider'). - -%% The geographical region the resource is running -%% 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) --define(CLOUD_REGION, 'cloud.region'). - -%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) -%% 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 invokable 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://docs.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 --define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). - -%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event --define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). - -%% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened --define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). - -%% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses --define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). - -%% 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) --define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). - -%% 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 --define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). - -%% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` --define(CODE_COLUMN, 'code.column'). - -%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) --define(CODE_FILEPATH, 'code.filepath'). - -%% The method or function name, or equivalent (usually rightmost part of the code unit's name) --define(CODE_FUNCTION, 'code.function'). - -%% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` --define(CODE_LINENO, 'code.lineno'). - -%% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit --define(CODE_NAMESPACE, 'code.namespace'). - -%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG --define(CODE_STACKTRACE, 'code.stacktrace'). - -%% The command used to run the container (i.e. the command name) -%% If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage --define(CONTAINER_COMMAND, 'container.command'). - -%% All the command arguments (including the command/executable itself) run by the container. [2] --define(CONTAINER_COMMAND_ARGS, 'container.command_args'). - -%% The full command run by the container as a single string representing the full command. [2] --define(CONTAINER_COMMAND_LINE, 'container.command_line'). - -%% The CPU state for this data point --define(CONTAINER_CPU_STATE, 'container.cpu.state'). - -%% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated --define(CONTAINER_ID, 'container.id'). - -%% Runtime specific image identifier. Usually a hash algorithm followed by a UUID -%% 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 assinged 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 --define(CONTAINER_IMAGE_ID, 'container.image.id'). - -%% Name of the image the container was built on --define(CONTAINER_IMAGE_NAME, 'container.image.name'). - -%% Repo digests of the container image as provided by the container runtime -%% [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 --define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). - -%% 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:` --define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). - -%% Container name used by container runtime --define(CONTAINER_NAME, 'container.name'). - -%% The container runtime managing this container --define(CONTAINER_RUNTIME, 'container.runtime'). - -%% 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) --define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). - -%% The data center of the coordinating node for a query --define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). - -%% The ID of the coordinating node for a query --define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). - -%% Whether or not the query is idempotent --define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). - -%% The fetch size used for paging, i.e. how many rows will be returned at once --define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). - -%% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively --define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). - -%% The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) -%% This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set --define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). - -%% Unique Cosmos client instance id --define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). - -%% Cosmos client connection mode --define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). - -%% Cosmos DB container name --define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). - -%% CosmosDB Operation Type --define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). - -%% RU consumed for that operation --define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). - -%% Request payload size in bytes --define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). - -%% Cosmos DB status code --define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). - -%% Cosmos DB sub status code --define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). - -%% Represents the identifier of an Elasticsearch cluster --define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). - -%% An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like `select @@hostname` --define(DB_INSTANCE_ID, 'db.instance.id'). - -%% The MongoDB collection being accessed within the database stated in `db.name` --define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). - -%% The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance -%% If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) --define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). - -%% This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) -%% In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) --define(DB_NAME, 'db.name'). - -%% The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword -%% When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted --define(DB_OPERATION, 'db.operation'). - -%% The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute --define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). - -%% The name of the primary table that the operation is acting upon, including the database name (if applicable) -%% It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set --define(DB_SQL_TABLE, 'db.sql.table'). - -%% The database statement being executed --define(DB_STATEMENT, 'db.statement'). - -%% An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers --define(DB_SYSTEM, 'db.system'). - -%% Username for accessing the database --define(DB_USER, 'db.user'). - -%% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) -%% `deployment.environment` 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=production` -%% * `service.name=frontend`, `deployment.environment=staging` --define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). - -%% Deprecated, use `server.address`, `server.port` attributes instead -%% @deprecated "Replaced by `server.address` and `server.port`." --define(DB_CONNECTION_STRING, 'db.connection_string'). - -%% Deprecated, use `db.instance.id` instead -%% @deprecated Replaced by `db.instance.id` --define(DB_ELASTICSEARCH_NODE_NAME, 'db.elasticsearch.node.name'). - -%% Removed, no replacement at this time -%% @deprecated Removed as not used --define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). - -%% Deprecated, use `network.protocol.name` instead -%% @deprecated Replaced by `network.protocol.name` --define(HTTP_FLAVOR, 'http.flavor'). - -%% Deprecated, use `http.request.method` instead -%% @deprecated Replaced by `http.request.method` --define(HTTP_METHOD, 'http.method'). - -%% Deprecated, use `http.request.header.content-length` instead -%% @deprecated Replaced by `http.request.header.content-length` --define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). - -%% Deprecated, use `http.response.header.content-length` instead -%% @deprecated Replaced by `http.response.header.content-length` --define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). - -%% Deprecated, use `url.scheme` instead -%% @deprecated Replaced by `url.scheme` instead --define(HTTP_SCHEME, 'http.scheme'). - -%% Deprecated, use `http.response.status_code` instead -%% @deprecated Replaced by `http.response.status_code` --define(HTTP_STATUS_CODE, 'http.status_code'). - -%% Deprecated, use `url.path` and `url.query` instead -%% @deprecated Split to `url.path` and `url.query --define(HTTP_TARGET, 'http.target'). - -%% Deprecated, use `url.full` instead -%% @deprecated Replaced by `url.full` --define(HTTP_URL, 'http.url'). - -%% Deprecated, use `user_agent.original` instead -%% @deprecated Replaced by `user_agent.original` --define(HTTP_USER_AGENT, 'http.user_agent'). - -%% "Deprecated, use `messaging.destination.partition.id` instead." -%% @deprecated Replaced by `messaging.destination.partition.id` --define(MESSAGING_KAFKA_DESTINATION_PARTITION, 'messaging.kafka.destination.partition'). - -%% Deprecated, use `server.address` -%% @deprecated Replaced by `server.address` --define(NET_HOST_NAME, 'net.host.name'). - -%% Deprecated, use `server.port` -%% @deprecated Replaced by `server.port` --define(NET_HOST_PORT, 'net.host.port'). - -%% Deprecated, use `server.address` on client spans and `client.address` on server spans -%% @deprecated Replaced by `server.address` on client spans and `client.address` on server spans --define(NET_PEER_NAME, 'net.peer.name'). - -%% Deprecated, use `server.port` on client spans and `client.port` on server spans -%% @deprecated Replaced by `server.port` on client spans and `client.port` on server spans --define(NET_PEER_PORT, 'net.peer.port'). - -%% Deprecated, use `network.protocol.name` -%% @deprecated Replaced by `network.protocol.name` --define(NET_PROTOCOL_NAME, 'net.protocol.name'). - -%% Deprecated, use `network.protocol.version` -%% @deprecated Replaced by `network.protocol.version` --define(NET_PROTOCOL_VERSION, 'net.protocol.version'). - -%% Deprecated, use `network.transport` and `network.type` -%% @deprecated Split to `network.transport` and `network.type` --define(NET_SOCK_FAMILY, 'net.sock.family'). - -%% Deprecated, use `network.local.address` -%% @deprecated Replaced by `network.local.address` --define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). - -%% Deprecated, use `network.local.port` -%% @deprecated Replaced by `network.local.port` --define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). - -%% Deprecated, use `network.peer.address` -%% @deprecated Replaced by `network.peer.address` --define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). - -%% Deprecated, no replacement at this time -%% @deprecated Removed --define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). - -%% Deprecated, use `network.peer.port` -%% @deprecated Replaced by `network.peer.port` --define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). - -%% Deprecated, use `network.transport` -%% @deprecated Replaced by `network.transport` --define(NET_TRANSPORT, 'net.transport'). - -%% Deprecated, use `system.process.status` instead -%% @deprecated Replaced by `system.process.status` --define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). - -%% A unique identifier representing the device -%% The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 --define(DEVICE_ID, 'device.id'). - -%% The name of the device manufacturer -%% The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple` --define(DEVICE_MANUFACTURER, 'device.manufacturer'). - -%% The model identifier for the device -%% 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 --define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). - -%% The marketing name for the device model -%% It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative --define(DEVICE_MODEL_NAME, 'device.model.name'). - -%% The disk IO operation direction --define(DISK_IO_DIRECTION, 'disk.io.direction'). - -%% The name being queried -%% 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 --define(DNS_QUESTION_NAME, 'dns.question.name'). - -%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system --define(ENDUSER_ID, 'enduser.id'). - -%% Actual/assumed role the client is making the request under extracted from token or application security context --define(ENDUSER_ROLE, 'enduser.role'). - -%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) --define(ENDUSER_SCOPE, 'enduser.scope'). - -%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span -%% An exception is considered to have escaped (or left) the scope of a span, -%% if that span is ended while the exception is still logically "in flight". -%% This may be actually "in flight" in some languages (e.g. if the exception -%% is passed to a Context manager's `__exit__` method in Python) but will -%% usually be caught at the point of recording the exception in most languages. -%% -%% It is usually not possible to determine at the point where an exception is thrown -%% whether it will escape the scope of a span. -%% However, it is trivial to know that an exception -%% will escape, if one checks for an active exception just before ending the span, -%% as done in the [example for recording span exceptions](#recording-an-exception). -%% -%% It follows that an exception may still escape the scope of the span -%% even if the `exception.escaped` attribute was not set or set to false, -%% since the event might have been recorded at a time where it was not -%% clear whether the exception will escape --define(EXCEPTION_ESCAPED, 'exception.escaped'). - -%% A boolean that is true if the serverless function is executed for the first time (aka cold-start) --define(FAAS_COLDSTART, 'faas.coldstart'). - -%% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) --define(FAAS_CRON, 'faas.cron'). - -%% 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 --define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). - -%% 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 --define(FAAS_DOCUMENT_NAME, 'faas.document.name'). - -%% Describes the type of the operation that was performed on the data --define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). - -%% 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) --define(FAAS_DOCUMENT_TIME, 'faas.document.time'). - -%% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version -%% * **AWS Lambda:** Use the (full) log stream name --define(FAAS_INSTANCE, 'faas.instance'). - -%% The invocation ID of the current function invocation --define(FAAS_INVOCATION_ID, 'faas.invocation_id'). - -%% The amount of memory available to the serverless function converted to Bytes -%% 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) --define(FAAS_MAX_MEMORY, 'faas.max_memory'). - -%% The name of the single function that this runtime instance executes -%% 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`](/docs/general/attributes.md#source-code-attributes) -%% span attributes). -%% -%% 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) --define(FAAS_NAME, 'faas.name'). - -%% 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) --define(FAAS_TIME, 'faas.time'). - -%% The immutable version of the function being executed -%% Depending on the cloud provider and platform, use: -%% -%% * **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 --define(FAAS_VERSION, 'faas.version'). - -%% The unique identifier of the feature flag --define(FEATURE_FLAG_KEY, 'feature_flag.key'). - -%% The name of the service provider that performs the flag evaluation --define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). - -%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used -%% 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`. -%% -%% A stringified version of the value can be used in situations where a -%% semantic identifier is unavailable. String representation of the value -%% should be determined by the implementer --define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). - -%% Directory where the file is located. It should include the drive letter, when appropriate --define(FILE_DIRECTORY, 'file.directory'). - -%% File extension, excluding the leading dot -%% When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz") --define(FILE_EXTENSION, 'file.extension'). - -%% Name of the file including the extension, without the directory --define(FILE_NAME, 'file.name'). - -%% Full path to the file, including the file name. It should include the drive letter, when appropriate --define(FILE_PATH, 'file.path'). - -%% File size in bytes --define(FILE_SIZE, 'file.size'). - -%% 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 --define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). - -%% 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 --define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). - -%% 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) --define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). - -%% 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) --define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). - -%% The CPU architecture the host system is running on --define(HOST_ARCH, 'host.arch'). - -%% The amount of level 2 memory cache available to the processor (in Bytes) --define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). - -%% Family or generation of the CPU --define(HOST_CPU_FAMILY, 'host.cpu.family'). - -%% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family --define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). - -%% Model designation of the processor --define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). - -%% Stepping or core revisions --define(HOST_CPU_STEPPING, 'host.cpu.stepping'). - -%% Processor manufacturer identifier. A maximum 12-character string -%% [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 --define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). - -%% 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 --define(HOST_ID, 'host.id'). - -%% VM image ID or host OS image ID. For Cloud, this value is from the provider --define(HOST_IMAGE_ID, 'host.image.id'). - -%% Name of the VM image or OS install the host was instantiated from --define(HOST_IMAGE_NAME, 'host.image.name'). - -%% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) --define(HOST_IMAGE_VERSION, 'host.image.version'). - -%% Available IP addresses of the host, excluding loopback interfaces -%% 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 --define(HOST_IP, 'host.ip'). - -%% Available MAC addresses of the host, excluding loopback interfaces -%% 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 --define(HOST_MAC, 'host.mac'). - -%% 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 --define(HOST_NAME, 'host.name'). - -%% Type of host. For Cloud, this must be the machine type --define(HOST_TYPE, 'host.type'). - -%% State of the HTTP connection in the HTTP connection pool --define(HTTP_CONNECTION_STATE, 'http.connection.state'). - -%% 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 --define(HTTP_REQUEST_BODY_SIZE, 'http.request.body.size'). - -%% Original HTTP method sent by the client in the request line --define(HTTP_REQUEST_METHOD_ORIGINAL, 'http.request.method_original'). - -%% The ordinal number of request resending attempt (for any reason, including redirects) -%% The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) --define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). - -%% 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 --define(HTTP_REQUEST_SIZE, 'http.request.size'). - -%% 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 --define(HTTP_RESPONSE_BODY_SIZE, 'http.response.body.size'). - -%% 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 --define(HTTP_RESPONSE_SIZE, 'http.response.size'). - -%% The name of the cluster --define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). - -%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace -%% K8s doesn't have support for obtaining a cluster ID. If this is ever -%% added, we will recommend collecting the `k8s.cluster.uid` through the -%% official APIs. In the meantime, we are able to use the `uid` of the -%% `kube-system` namespace as a proxy for cluster ID. Read on for the -%% rationale. -%% -%% Every object created in a K8s cluster is assigned a distinct UID. The -%% `kube-system` namespace is used by Kubernetes itself and will exist -%% for the lifetime of the cluster. Using the `uid` of the `kube-system` -%% namespace is a reasonable proxy for the K8s ClusterID as it will only -%% change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are -%% UUIDs as standardized by -%% [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). -%% Which states: -%% -%% > If generated according to one of the mechanisms defined in Rec. -%% ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be -%% different from all other UUIDs generated before 3603 A.D., or is -%% extremely likely to be different (depending on the mechanism chosen). -%% -%% Therefore, UIDs between clusters should be extremely unlikely to -%% conflict --define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). - -%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) --define(K8S_CONTAINER_NAME, 'k8s.container.name'). - -%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec --define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). - -%% The name of the CronJob --define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). - -%% The UID of the CronJob --define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). - -%% The name of the DaemonSet --define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). - -%% The UID of the DaemonSet --define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). - -%% The name of the Deployment --define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). - -%% The UID of the Deployment --define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). - -%% The name of the Job --define(K8S_JOB_NAME, 'k8s.job.name'). - -%% The UID of the Job --define(K8S_JOB_UID, 'k8s.job.uid'). - -%% The name of the namespace that the pod is running in --define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). - -%% The name of the Node --define(K8S_NODE_NAME, 'k8s.node.name'). - -%% The UID of the Node --define(K8S_NODE_UID, 'k8s.node.uid'). - -%% The name of the Pod --define(K8S_POD_NAME, 'k8s.pod.name'). - -%% The UID of the Pod --define(K8S_POD_UID, 'k8s.pod.uid'). - -%% The name of the ReplicaSet --define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). - -%% The UID of the ReplicaSet --define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). - -%% The name of the StatefulSet --define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). - -%% The UID of the StatefulSet --define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). - -%% The number of messages sent, received, or processed in the scope of the batching operation -%% Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs --define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). - -%% A unique identifier for the client that consumes or produces a message --define(MESSAGING_CLIENT_ID, 'messaging.client_id'). - -%% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) --define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). - -%% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` --define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). - -%% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed --define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). - -%% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name) --define(MESSAGING_DESTINATION_PUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). - -%% The name of the original destination the message was published to -%% The name SHOULD uniquely identify a specific queue, topic, or other entity within the broker. If -%% the broker doesn't have such notion, the original destination name SHOULD uniquely identify the broker --define(MESSAGING_DESTINATION_PUBLISH_NAME, 'messaging.destination_publish.name'). - -%% The name of the consumer group the event consumer is associated with --define(MESSAGING_EVENTHUBS_CONSUMER_GROUP, 'messaging.eventhubs.consumer.group'). - -%% The UTC epoch seconds at which the message has been accepted and stored in the entity --define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME, 'messaging.eventhubs.message.enqueued_time'). - -%% The ordering key for a given message. If the attribute is not present, the message does not have an ordering key --define(MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY, 'messaging.gcp_pubsub.message.ordering_key'). - -%% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers --define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer.group'). - -%% Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set -%% If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value --define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message.key'). - -%% The offset of a record in the corresponding Kafka partition --define(MESSAGING_KAFKA_MESSAGE_OFFSET, 'messaging.kafka.message.offset'). - -%% A boolean that is true if the message is a tombstone --define(MESSAGING_KAFKA_MESSAGE_TOMBSTONE, 'messaging.kafka.message.tombstone'). - -%% The size of the message body in bytes -%% This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed -%% body size should be used --define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). - -%% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" --define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). - -%% The size of the message body and metadata in bytes -%% This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed -%% size should be used --define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). - -%% A value used by the messaging system as an identifier for the message, represented as a string --define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). - -%% A string identifying the kind of messaging operation -%% If a custom value is used, it MUST be of low cardinality --define(MESSAGING_OPERATION, 'messaging.operation'). - -%% RabbitMQ message routing key --define(MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY, 'messaging.rabbitmq.destination.routing_key'). - -%% RabbitMQ message delivery tag --define(MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG, 'messaging.rabbitmq.message.delivery_tag'). - -%% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind --define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). - -%% Model of message consumption. This only applies to consumer spans --define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). - -%% The delay time level for delay message, which determines the message delay time --define(MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL, 'messaging.rocketmq.message.delay_time_level'). - -%% The timestamp in milliseconds that the delay message is expected to be delivered to consumer --define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). - -%% It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group --define(MESSAGING_ROCKETMQ_MESSAGE_GROUP, 'messaging.rocketmq.message.group'). - -%% Key(s) of message, another way to mark message besides message id --define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message.keys'). - -%% The secondary classifier of message besides topic --define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message.tag'). - -%% Type of message --define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message.type'). - -%% Namespace of RocketMQ resources, resources in different namespaces are individual --define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). - -%% The name of the subscription in the topic messages are received from --define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME, 'messaging.servicebus.destination.subscription_name'). - -%% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) --define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS, 'messaging.servicebus.disposition_status'). - -%% Number of deliveries that have been attempted for this message --define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT, 'messaging.servicebus.message.delivery_count'). - -%% The UTC epoch seconds at which the message has been accepted and stored in the entity --define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME, 'messaging.servicebus.message.enqueued_time'). - -%% The network IO operation direction --define(NETWORK_IO_DIRECTION, 'network.io.direction'). - -%% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known -%% Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). -%% An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) --define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). - -%% Unique identifier for a particular build or compilation of the operating system --define(OS_BUILD_ID, 'os.build_id'). - -%% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands --define(OS_DESCRIPTION, 'os.description'). - -%% Human readable operating system name --define(OS_NAME, 'os.name'). - -%% The operating system type --define(OS_TYPE, 'os.type'). - -%% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes) --define(OS_VERSION, 'os.version'). - -%% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` --define(PROCESS_COMMAND, 'process.command'). - -%% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` --define(PROCESS_COMMAND_ARGS, 'process.command_args'). - -%% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead --define(PROCESS_COMMAND_LINE, 'process.command_line'). - -%% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` --define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). - -%% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` --define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). - -%% The username of the user that owns the process --define(PROCESS_OWNER, 'process.owner'). - -%% Parent Process identifier (PPID) --define(PROCESS_PARENT_PID, 'process.parent_pid'). - -%% Process identifier (PID) --define(PROCESS_PID, 'process.pid'). - -%% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment --define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). - -%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler --define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). - -%% The version of the runtime of this process, as returned by the runtime without modification --define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). - -%% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values --define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). - -%% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request --define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). - -%% `error.code` property of response if it is an error response --define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). - -%% `error.message` property of response if it is an error response --define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). - -%% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification --define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). - -%% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted --define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). - -%% The string ID of the service instance -%% MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words -%% `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to -%% distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled -%% service). -%% -%% Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC -%% 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of -%% this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and -%% SHOULD use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. -%% -%% UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is -%% needed. Similar to what can be seen in the man page for the -%% [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying -%% data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it -%% or not via another resource attribute. -%% -%% For applications running behind an application server (like unicorn), we do not recommend using one identifier -%% for all processes participating in the application. Instead, it's recommended each division (e.g. a worker -%% thread in unicorn) to have its own instance.id. -%% -%% It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the -%% service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will -%% likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. -%% However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance -%% for that telemetry. This is typically the case for scraping receivers, as they know the target address and -%% port --define(SERVICE_INSTANCE_ID, 'service.instance.id'). - -%% Logical name of the service -%% MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service` --define(SERVICE_NAME, 'service.name'). - -%% A namespace for `service.name` -%% A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace --define(SERVICE_NAMESPACE, 'service.namespace'). - -%% The version string of the service API or implementation. The format is not defined by these conventions --define(SERVICE_VERSION, 'service.version'). - -%% A unique id to identify a session --define(SESSION_ID, 'session.id'). - -%% The previous `session.id` for this user, when known --define(SESSION_PREVIOUS_ID, 'session.previous_id'). - -%% The language of the telemetry SDK --define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). - -%% The name of the telemetry SDK as defined above -%% The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`. -%% If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the -%% `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point -%% or another suitable identifier depending on the language. -%% The identifier `opentelemetry` is reserved and MUST NOT be used in this case. -%% All custom identifiers SHOULD be stable across different versions of an implementation --define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). - -%% The version string of the telemetry SDK --define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). - -%% The name of the auto instrumentation agent or distribution, if used -%% Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to -%% a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` --define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). - -%% The version string of the auto instrumentation agent or distribution, if used --define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). - -%% Current "managed" thread ID (as opposed to OS thread ID) --define(THREAD_ID, 'thread.id'). - -%% Current thread name --define(THREAD_NAME, 'thread.name'). - -%% String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection -%% The values allowed for `tls.cipher` MUST be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4) --define(TLS_CIPHER, 'tls.cipher'). - -%% PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list --define(TLS_CLIENT_CERTIFICATE, 'tls.client.certificate'). - -%% Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain --define(TLS_CLIENT_CERTIFICATE_CHAIN, 'tls.client.certificate_chain'). - -%% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash --define(TLS_CLIENT_HASH_MD5, 'tls.client.hash.md5'). - -%% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash --define(TLS_CLIENT_HASH_SHA1, 'tls.client.hash.sha1'). - -%% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash --define(TLS_CLIENT_HASH_SHA256, 'tls.client.hash.sha256'). - -%% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client --define(TLS_CLIENT_ISSUER, 'tls.client.issuer'). - -%% A hash that identifies clients based on how they perform an SSL/TLS handshake --define(TLS_CLIENT_JA3, 'tls.client.ja3'). - -%% Date/Time indicating when client certificate is no longer considered valid --define(TLS_CLIENT_NOT_AFTER, 'tls.client.not_after'). - -%% Date/Time indicating when client certificate is first considered valid --define(TLS_CLIENT_NOT_BEFORE, 'tls.client.not_before'). - -%% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to --define(TLS_CLIENT_SERVER_NAME, 'tls.client.server_name'). - -%% Distinguished name of subject of the x.509 certificate presented by the client --define(TLS_CLIENT_SUBJECT, 'tls.client.subject'). - -%% Array of ciphers offered by the client during the client hello --define(TLS_CLIENT_SUPPORTED_CIPHERS, 'tls.client.supported_ciphers'). - -%% String indicating the curve used for the given cipher, when applicable --define(TLS_CURVE, 'tls.curve'). - -%% Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel --define(TLS_ESTABLISHED, 'tls.established'). - -%% String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case --define(TLS_NEXT_PROTOCOL, 'tls.next_protocol'). - -%% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) --define(TLS_PROTOCOL_NAME, 'tls.protocol.name'). - -%% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) --define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). - -%% Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation --define(TLS_RESUMED, 'tls.resumed'). - -%% PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list --define(TLS_SERVER_CERTIFICATE, 'tls.server.certificate'). - -%% Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain --define(TLS_SERVER_CERTIFICATE_CHAIN, 'tls.server.certificate_chain'). - -%% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash --define(TLS_SERVER_HASH_MD5, 'tls.server.hash.md5'). - -%% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash --define(TLS_SERVER_HASH_SHA1, 'tls.server.hash.sha1'). - -%% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash --define(TLS_SERVER_HASH_SHA256, 'tls.server.hash.sha256'). - -%% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client --define(TLS_SERVER_ISSUER, 'tls.server.issuer'). - -%% A hash that identifies servers based on how they perform an SSL/TLS handshake --define(TLS_SERVER_JA3S, 'tls.server.ja3s'). - -%% Date/Time indicating when server certificate is no longer considered valid --define(TLS_SERVER_NOT_AFTER, 'tls.server.not_after'). - -%% Date/Time indicating when server certificate is first considered valid --define(TLS_SERVER_NOT_BEFORE, 'tls.server.not_before'). - -%% Distinguished name of subject of the x.509 certificate presented by the server --define(TLS_SERVER_SUBJECT, 'tls.server.subject'). - -%% Domain extracted from the `url.full`, such as "opentelemetry.io" -%% In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field --define(URL_DOMAIN, 'url.domain'). - -%% The file extension extracted from the `url.full`, excluding the leading dot -%% The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz` --define(URL_EXTENSION, 'url.extension'). - -%% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component --define(URL_FRAGMENT, 'url.fragment'). - -%% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) -%% For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. -%% `url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`. -%% `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it --define(URL_FULL, 'url.full'). - -%% Unmodified original URL as seen in the event source -%% In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. -%% `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username SHOULD NOT be redacted and attribute's value SHOULD remain the same --define(URL_ORIGINAL, 'url.original'). - -%% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component -%% Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it --define(URL_PATH, 'url.path'). - -%% Port extracted from the `url.full` --define(URL_PORT, 'url.port'). - -%% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component -%% Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it --define(URL_QUERY, 'url.query'). - -%% The highest registered url domain, stripped of the subdomain -%% This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk` --define(URL_REGISTERED_DOMAIN, 'url.registered_domain'). - -%% The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain -%% The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period --define(URL_SUBDOMAIN, 'url.subdomain'). - -%% The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com` -%% This value can be determined precisely with the [public suffix list](http://publicsuffix.org) --define(URL_TOP_LEVEL_DOMAIN, 'url.top_level_domain'). - -%% Name of the user-agent extracted from original. Usually refers to the browser's name -%% [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.version` --define(USER_AGENT_NAME, 'user_agent.name'). - -%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client --define(USER_AGENT_ORIGINAL, 'user_agent.original'). - -%% Version of the user-agent extracted from original. Usually refers to the browser's version -%% [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version SHOULD be selected. In such a scenario it should align with `user_agent.name` --define(USER_AGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/event.hrl b/apps/opentelemetry_semantic_conventions/include/event.hrl deleted file mode 100644 index e0f0f19a..00000000 --- a/apps/opentelemetry_semantic_conventions/include/event.hrl +++ /dev/null @@ -1,68 +0,0 @@ -%% The schema url for telemetry resources --define(EVENT_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). - -%% The unique identifier of the feature flag --define(FEATURE_FLAG_KEY, 'feature_flag.key'). - -%% The name of the service provider that performs the flag evaluation --define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). - -%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used -%% 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`. -%% -%% A stringified version of the value can be used in situations where a -%% semantic identifier is unavailable. String representation of the value -%% should be determined by the implementer --define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). - -%% This attribute represents the state the application has transitioned into at the occurrence of the event -%% The iOS lifecycle states are defined in the [UIApplicationDelegate documentation](https://developer.apple.com/documentation/uikit/uiapplicationdelegate#1656902), and from which the `OS terminology` column values are derived --define(IOS_STATE, 'ios.state'). - -%% This attribute represents the state the application has transitioned into at the occurrence of the event -%% The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), and from which the `OS identifiers` are derived --define(ANDROID_STATE, 'android.state'). - -%% Compressed size of the message in bytes --define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). - -%% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message -%% This way we guarantee that the values will be consistent between different implementations --define(MESSAGE_ID, 'message.id'). - -%% Whether this is a received or sent message --define(MESSAGE_TYPE, 'message.type'). - -%% Uncompressed size of the message in bytes --define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). - -%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span -%% An exception is considered to have escaped (or left) the scope of a span, -%% if that span is ended while the exception is still logically "in flight". -%% This may be actually "in flight" in some languages (e.g. if the exception -%% is passed to a Context manager's `__exit__` method in Python) but will -%% usually be caught at the point of recording the exception in most languages. -%% -%% It is usually not possible to determine at the point where an exception is thrown -%% whether it will escape the scope of a span. -%% However, it is trivial to know that an exception -%% will escape, if one checks for an active exception just before ending the span, -%% as done in the [example for recording span exceptions](#recording-an-exception). -%% -%% It follows that an exception may still escape the scope of the span -%% even if the `exception.escaped` attribute was not set or set to false, -%% since the event might have been recorded at a time where it was not -%% clear whether the exception will escape --define(EXCEPTION_ESCAPED, 'exception.escaped'). - -%% The exception message --define(EXCEPTION_MESSAGE, 'exception.message'). - -%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG --define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). - -%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it --define(EXCEPTION_TYPE, 'exception.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/metric.hrl b/apps/opentelemetry_semantic_conventions/include/metric.hrl deleted file mode 100644 index 2279908e..00000000 --- a/apps/opentelemetry_semantic_conventions/include/metric.hrl +++ /dev/null @@ -1,203 +0,0 @@ -%% The schema url for telemetry resources --define(METRIC_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). - -%% The CPU state for this data point. A container SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels --define(CONTAINER_CPU_STATE, 'container.cpu.state'). - -%% The disk IO operation direction --define(DISK_IO_DIRECTION, 'disk.io.direction'). - -%% The device identifier --define(SYSTEM_DEVICE, 'system.device'). - -%% The network IO operation direction --define(NETWORK_IO_DIRECTION, 'network.io.direction'). - -%% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port` --define(POOL_NAME, 'pool.name'). - -%% The state of a connection in the pool --define(STATE, 'state'). - -%% The name being queried -%% 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 --define(DNS_QUESTION_NAME, 'dns.question.name'). - -%% Describes the error the DNS lookup failed with -%% Instrumentations SHOULD use error code such as one of errors reported by `getaddrinfo`([Linux or other POSIX systems](https://man7.org/linux/man-pages/man3/getaddrinfo.3.html) / [Windows](https://learn.microsoft.com/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo)) or one reported by the runtime or client library. If error code is not available, the full name of exception type SHOULD be used --define(ERROR_TYPE, 'error.type'). - -%% Match result - success or failure --define(ASPNETCORE_ROUTING_MATCH_STATUS, 'aspnetcore.routing.match_status'). - -%% A value that indicates whether the matched route is a fallback route --define(ASPNETCORE_ROUTING_IS_FALLBACK, 'aspnetcore.routing.is_fallback'). - -%% The matched route, that is, the path template in the format used by the respective server framework -%% MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. -%% SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one --define(HTTP_ROUTE, 'http.route'). - -%% ASP.NET Core exception middleware handling result --define(ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT, 'aspnetcore.diagnostics.exception.result'). - -%% Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) implementation that handled the exception --define(ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE, 'aspnetcore.diagnostics.handler.type'). - -%% Rate limiting policy name --define(ASPNETCORE_RATE_LIMITING_POLICY, 'aspnetcore.rate_limiting.policy'). - -%% Rate-limiting result, shows whether the lease was acquired or contains a rejection reason --define(ASPNETCORE_RATE_LIMITING_RESULT, 'aspnetcore.rate_limiting.result'). - -%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) -%% The value SHOULD be normalized to lowercase. -%% -%% Consider always setting the transport when setting a port number, since -%% a port number is ambiguous without knowing the transport. For example -%% different processes could be listening on TCP port 12345 and UDP port 12345 --define(NETWORK_TRANSPORT, 'network.transport'). - -%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent -%% The value SHOULD be normalized to lowercase --define(NETWORK_TYPE, 'network.type'). - -%% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name -%% When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available --define(SERVER_ADDRESS, 'server.address'). - -%% Server port number -%% When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available --define(SERVER_PORT, 'server.port'). - -%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent -%% The value SHOULD be normalized to lowercase --define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). - -%% The actual version of the protocol used for network communication -%% If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set --define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). - -%% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) --define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). - -%% SignalR HTTP connection closure status --define(SIGNALR_CONNECTION_STATUS, 'signalr.connection.status'). - -%% [SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md) --define(SIGNALR_TRANSPORT, 'signalr.transport'). - -%% Type of the trigger which caused this function invocation --define(FAAS_TRIGGER, 'faas.trigger'). - -%% HTTP request method -%% HTTP request method value SHOULD be "known" to the instrumentation. -%% By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) -%% and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). -%% -%% If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. -%% -%% If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override -%% the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named -%% OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods -%% (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). -%% -%% HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. -%% Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. -%% Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value --define(HTTP_REQUEST_METHOD, 'http.request.method'). - -%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol -%% The scheme of the original client request, if known (e.g. from [Forwarded#proto](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded#proto), [X-Forwarded-Proto](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-Proto), or a similar header). Otherwise, the scheme of the immediate peer request --define(URL_SCHEME, 'url.scheme'). - -%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) --define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). - -%% State of the HTTP connection in the HTTP connection pool --define(HTTP_CONNECTION_STATE, 'http.connection.state'). - -%% Peer address of the network connection - IP address or Unix domain socket name --define(NETWORK_PEER_ADDRESS, 'network.peer.address'). - -%% Name of the memory pool -%% Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()) --define(JVM_MEMORY_POOL_NAME, 'jvm.memory.pool.name'). - -%% The type of memory --define(JVM_MEMORY_TYPE, 'jvm.memory.type'). - -%% Name of the buffer pool -%% Pool names are generally obtained via [BufferPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName()) --define(JVM_BUFFER_POOL_NAME, 'jvm.buffer.pool.name'). - -%% Name of the garbage collector action -%% Garbage collector action is generally obtained via [GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()) --define(JVM_GC_ACTION, 'jvm.gc.action'). - -%% Name of the garbage collector -%% Garbage collector name is generally obtained via [GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()) --define(JVM_GC_NAME, 'jvm.gc.name'). - -%% Whether the thread is daemon or not --define(JVM_THREAD_DAEMON, 'jvm.thread.daemon'). - -%% State of the thread --define(JVM_THREAD_STATE, 'jvm.thread.state'). - -%% An identifier for the messaging system being used. See below for a list of well-known identifiers --define(MESSAGING_SYSTEM, 'messaging.system'). - -%% The message destination name -%% Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If -%% the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker --define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). - -%% Low cardinality representation of the messaging destination name -%% Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation --define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). - -%% The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels --define(PROCESS_CPU_STATE, 'process.cpu.state'). - -%% Specifies whether the context switches for this data point were voluntary or involuntary --define(PROCESS_CONTEXT_SWITCH_TYPE, 'process.context_switch_type'). - -%% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults --define(PROCESS_PAGING_FAULT_TYPE, 'process.paging.fault_type'). - -%% The logical CPU number [0..n-1] --define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). - -%% The CPU state for this data point. A system's CPU SHOULD be characterized *either* by data points with no `state` labels, *or only* data points with `state` labels --define(SYSTEM_CPU_STATE, 'system.cpu.state'). - -%% The memory state --define(SYSTEM_MEMORY_STATE, 'system.memory.state'). - -%% The memory paging state --define(SYSTEM_PAGING_STATE, 'system.paging.state'). - -%% The memory paging type --define(SYSTEM_PAGING_TYPE, 'system.paging.type'). - -%% The paging access direction --define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). - -%% The filesystem mode --define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). - -%% The filesystem mount path --define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). - -%% The filesystem state --define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). - -%% The filesystem type --define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). - -%% A stateless protocol MUST NOT set this attribute --define(SYSTEM_NETWORK_STATE, 'system.network.state'). - -%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) --define(SYSTEM_PROCESS_STATUS, 'system.process.status'). diff --git a/apps/opentelemetry_semantic_conventions/include/resource.hrl b/apps/opentelemetry_semantic_conventions/include/resource.hrl deleted file mode 100644 index d1378ec4..00000000 --- a/apps/opentelemetry_semantic_conventions/include/resource.hrl +++ /dev/null @@ -1,496 +0,0 @@ -%% The schema url for telemetry resources --define(RESOURCE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). - -%% 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) --define(ANDROID_OS_API_LEVEL, 'android.os.api_level'). - -%% Array of brand name and version separated by a space -%% This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`) --define(BROWSER_BRANDS, 'browser.brands'). - -%% Preferred language of the user using the browser -%% This value is intended to be taken from the Navigator API `navigator.language` --define(BROWSER_LANGUAGE, 'browser.language'). - -%% A boolean that is true if the browser is running on a mobile device -%% 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 --define(BROWSER_MOBILE, 'browser.mobile'). - -%% The platform on which the browser is running -%% 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 --define(BROWSER_PLATFORM, 'browser.platform'). - -%% Full user-agent string provided by the browser -%% The user-agent value SHOULD be provided only from browsers that do not have a mechanism to retrieve brands and platform individually from the User-Agent Client Hints API. To retrieve the value, the legacy `navigator.userAgent` API can be used --define(USER_AGENT_ORIGINAL, 'user_agent.original'). - -%% The cloud account ID the resource is assigned to --define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). - -%% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running -%% Availability zones are called "zones" on Alibaba Cloud and Google Cloud --define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). - -%% The cloud platform in use -%% The prefix of the service SHOULD match the one specified in `cloud.provider` --define(CLOUD_PLATFORM, 'cloud.platform'). - -%% Name of the cloud provider --define(CLOUD_PROVIDER, 'cloud.provider'). - -%% The geographical region the resource is running -%% 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) --define(CLOUD_REGION, 'cloud.region'). - -%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) -%% 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 invokable 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://docs.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 --define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). - -%% The ID of a running ECS task. The ID MUST be extracted from `task.arn` --define(AWS_ECS_TASK_ID, 'aws.ecs.task.id'). - -%% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html) --define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). - -%% The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html) --define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). - -%% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task --define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). - -%% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids) --define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). - -%% 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 --define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). - -%% The revision for the task definition used to create the ECS task --define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). - -%% The ARN of an EKS cluster --define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). - -%% The Amazon Resource Name(s) (ARN) of the AWS log group(s) -%% See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format) --define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). - -%% The name(s) of the AWS log group(s) an application is writing to -%% 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 --define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). - -%% The ARN(s) of the AWS log stream(s) -%% 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 --define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). - -%% The name(s) of the AWS log stream(s) an application is writing to --define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). - -%% 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 --define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). - -%% 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 --define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). - -%% 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) --define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). - -%% 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) --define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). - -%% Unique identifier for the application --define(HEROKU_APP_ID, 'heroku.app.id'). - -%% Commit hash for the current release --define(HEROKU_RELEASE_COMMIT, 'heroku.release.commit'). - -%% Time and date the release was created --define(HEROKU_RELEASE_CREATION_TIMESTAMP, 'heroku.release.creation_timestamp'). - -%% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated --define(CONTAINER_ID, 'container.id'). - -%% Runtime specific image identifier. Usually a hash algorithm followed by a UUID -%% 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 assinged 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 --define(CONTAINER_IMAGE_ID, 'container.image.id'). - -%% Name of the image the container was built on --define(CONTAINER_IMAGE_NAME, 'container.image.name'). - -%% Repo digests of the container image as provided by the container runtime -%% [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 --define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). - -%% 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:` --define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). - -%% Container name used by container runtime --define(CONTAINER_NAME, 'container.name'). - -%% The container runtime managing this container --define(CONTAINER_RUNTIME, 'container.runtime'). - -%% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known -%% Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). -%% An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest) --define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). - -%% The command used to run the container (i.e. the command name) -%% If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage --define(CONTAINER_COMMAND, 'container.command'). - -%% All the command arguments (including the command/executable itself) run by the container. [2] --define(CONTAINER_COMMAND_ARGS, 'container.command_args'). - -%% The full command run by the container as a single string representing the full command. [2] --define(CONTAINER_COMMAND_LINE, 'container.command_line'). - -%% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier) -%% `deployment.environment` 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=production` -%% * `service.name=frontend`, `deployment.environment=staging` --define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). - -%% A unique identifier representing the device -%% The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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 --define(DEVICE_ID, 'device.id'). - -%% The name of the device manufacturer -%% The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple` --define(DEVICE_MANUFACTURER, 'device.manufacturer'). - -%% The model identifier for the device -%% 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 --define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). - -%% The marketing name for the device model -%% It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative --define(DEVICE_MODEL_NAME, 'device.model.name'). - -%% The name of the single function that this runtime instance executes -%% 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`](/docs/general/attributes.md#source-code-attributes) -%% span attributes). -%% -%% 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) --define(FAAS_NAME, 'faas.name'). - -%% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version -%% * **AWS Lambda:** Use the (full) log stream name --define(FAAS_INSTANCE, 'faas.instance'). - -%% The amount of memory available to the serverless function converted to Bytes -%% 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) --define(FAAS_MAX_MEMORY, 'faas.max_memory'). - -%% The immutable version of the function being executed -%% Depending on the cloud provider and platform, use: -%% -%% * **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 --define(FAAS_VERSION, 'faas.version'). - -%% The CPU architecture the host system is running on --define(HOST_ARCH, 'host.arch'). - -%% 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 --define(HOST_ID, 'host.id'). - -%% VM image ID or host OS image ID. For Cloud, this value is from the provider --define(HOST_IMAGE_ID, 'host.image.id'). - -%% Name of the VM image or OS install the host was instantiated from --define(HOST_IMAGE_NAME, 'host.image.name'). - -%% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes) --define(HOST_IMAGE_VERSION, 'host.image.version'). - -%% 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 --define(HOST_NAME, 'host.name'). - -%% Type of host. For Cloud, this must be the machine type --define(HOST_TYPE, 'host.type'). - -%% Available IP addresses of the host, excluding loopback interfaces -%% 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 --define(HOST_IP, 'host.ip'). - -%% Available MAC addresses of the host, excluding loopback interfaces -%% 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 --define(HOST_MAC, 'host.mac'). - -%% The amount of level 2 memory cache available to the processor (in Bytes) --define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). - -%% Family or generation of the CPU --define(HOST_CPU_FAMILY, 'host.cpu.family'). - -%% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family --define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). - -%% Model designation of the processor --define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). - -%% Stepping or core revisions --define(HOST_CPU_STEPPING, 'host.cpu.stepping'). - -%% Processor manufacturer identifier. A maximum 12-character string -%% [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 --define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). - -%% The name of the cluster --define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). - -%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace -%% K8s doesn't have support for obtaining a cluster ID. If this is ever -%% added, we will recommend collecting the `k8s.cluster.uid` through the -%% official APIs. In the meantime, we are able to use the `uid` of the -%% `kube-system` namespace as a proxy for cluster ID. Read on for the -%% rationale. -%% -%% Every object created in a K8s cluster is assigned a distinct UID. The -%% `kube-system` namespace is used by Kubernetes itself and will exist -%% for the lifetime of the cluster. Using the `uid` of the `kube-system` -%% namespace is a reasonable proxy for the K8s ClusterID as it will only -%% change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are -%% UUIDs as standardized by -%% [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). -%% Which states: -%% -%% > If generated according to one of the mechanisms defined in Rec. -%% ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be -%% different from all other UUIDs generated before 3603 A.D., or is -%% extremely likely to be different (depending on the mechanism chosen). -%% -%% Therefore, UIDs between clusters should be extremely unlikely to -%% conflict --define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). - -%% The name of the Node --define(K8S_NODE_NAME, 'k8s.node.name'). - -%% The UID of the Node --define(K8S_NODE_UID, 'k8s.node.uid'). - -%% The name of the namespace that the pod is running in --define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). - -%% The name of the Pod --define(K8S_POD_NAME, 'k8s.pod.name'). - -%% The UID of the Pod --define(K8S_POD_UID, 'k8s.pod.uid'). - -%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`) --define(K8S_CONTAINER_NAME, 'k8s.container.name'). - -%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec --define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). - -%% The name of the ReplicaSet --define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). - -%% The UID of the ReplicaSet --define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). - -%% The name of the Deployment --define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). - -%% The UID of the Deployment --define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). - -%% The name of the StatefulSet --define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). - -%% The UID of the StatefulSet --define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). - -%% The name of the DaemonSet --define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). - -%% The UID of the DaemonSet --define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). - -%% The name of the Job --define(K8S_JOB_NAME, 'k8s.job.name'). - -%% The UID of the Job --define(K8S_JOB_UID, 'k8s.job.uid'). - -%% The name of the CronJob --define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). - -%% The UID of the CronJob --define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). - -%% The operating system type --define(OS_TYPE, 'os.type'). - -%% Unique identifier for a particular build or compilation of the operating system --define(OS_BUILD_ID, 'os.build_id'). - -%% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands --define(OS_DESCRIPTION, 'os.description'). - -%% Human readable operating system name --define(OS_NAME, 'os.name'). - -%% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes) --define(OS_VERSION, 'os.version'). - -%% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW` --define(PROCESS_COMMAND, 'process.command'). - -%% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main` --define(PROCESS_COMMAND_ARGS, 'process.command_args'). - -%% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead --define(PROCESS_COMMAND_LINE, 'process.command_line'). - -%% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW` --define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). - -%% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW` --define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). - -%% The username of the user that owns the process --define(PROCESS_OWNER, 'process.owner'). - -%% Parent Process identifier (PPID) --define(PROCESS_PARENT_PID, 'process.parent_pid'). - -%% Process identifier (PID) --define(PROCESS_PID, 'process.pid'). - -%% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment --define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). - -%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler --define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). - -%% The version of the runtime of this process, as returned by the runtime without modification --define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). - -%% Logical name of the service -%% MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service` --define(SERVICE_NAME, 'service.name'). - -%% The version string of the service API or implementation. The format is not defined by these conventions --define(SERVICE_VERSION, 'service.version'). - -%% The string ID of the service instance -%% MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words -%% `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to -%% distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled -%% service). -%% -%% Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC -%% 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of -%% this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and -%% SHOULD use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. -%% -%% UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is -%% needed. Similar to what can be seen in the man page for the -%% [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying -%% data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it -%% or not via another resource attribute. -%% -%% For applications running behind an application server (like unicorn), we do not recommend using one identifier -%% for all processes participating in the application. Instead, it's recommended each division (e.g. a worker -%% thread in unicorn) to have its own instance.id. -%% -%% It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the -%% service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will -%% likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. -%% However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance -%% for that telemetry. This is typically the case for scraping receivers, as they know the target address and -%% port --define(SERVICE_INSTANCE_ID, 'service.instance.id'). - -%% A namespace for `service.name` -%% A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace --define(SERVICE_NAMESPACE, 'service.namespace'). - -%% The language of the telemetry SDK --define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). - -%% The name of the telemetry SDK as defined above -%% The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`. -%% If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the -%% `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point -%% or another suitable identifier depending on the language. -%% The identifier `opentelemetry` is reserved and MUST NOT be used in this case. -%% All custom identifiers SHOULD be stable across different versions of an implementation --define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). - -%% The version string of the telemetry SDK --define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). - -%% The name of the auto instrumentation agent or distribution, if used -%% Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to -%% a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation` --define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). - -%% The version string of the auto instrumentation agent or distribution, if used --define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). - -%% The name of the web engine --define(WEBENGINE_NAME, 'webengine.name'). - -%% Additional description of the web engine (e.g. detailed version and edition information) --define(WEBENGINE_DESCRIPTION, 'webengine.description'). - -%% The version of the web engine --define(WEBENGINE_VERSION, 'webengine.version'). - -%% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP) --define(OTEL_SCOPE_NAME, 'otel.scope.name'). - -%% The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP) --define(OTEL_SCOPE_VERSION, 'otel.scope.version'). - -%% None -%% @deprecated use the `otel.scope.name` attribute --define(OTEL_LIBRARY_NAME, 'otel.library.name'). - -%% None -%% @deprecated use the `otel.scope.version` attribute --define(OTEL_LIBRARY_VERSION, 'otel.library.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/span.hrl b/apps/opentelemetry_semantic_conventions/include/span.hrl deleted file mode 100644 index 3703672a..00000000 --- a/apps/opentelemetry_semantic_conventions/include/span.hrl +++ /dev/null @@ -1,553 +0,0 @@ -%% The schema url for telemetry resources --define(SPAN_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.25.0">>). - -%% The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any --define(PEER_SERVICE, 'peer.service'). - -%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system --define(ENDUSER_ID, 'enduser.id'). - -%% Actual/assumed role the client is making the request under extracted from token or application security context --define(ENDUSER_ROLE, 'enduser.role'). - -%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html) --define(ENDUSER_SCOPE, 'enduser.scope'). - -%% Current "managed" thread ID (as opposed to OS thread ID) --define(THREAD_ID, 'thread.id'). - -%% Current thread name --define(THREAD_NAME, 'thread.name'). - -%% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` --define(CODE_COLUMN, 'code.column'). - -%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path) --define(CODE_FILEPATH, 'code.filepath'). - -%% The method or function name, or equivalent (usually rightmost part of the code unit's name) --define(CODE_FUNCTION, 'code.function'). - -%% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` --define(CODE_LINENO, 'code.lineno'). - -%% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit --define(CODE_NAMESPACE, 'code.namespace'). - -%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG --define(CODE_STACKTRACE, 'code.stacktrace'). - -%% 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) -%% This may be different from `cloud.resource_id` if an alias is involved --define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). - -%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event --define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). - -%% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened --define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). - -%% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses --define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). - -%% 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) --define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). - -%% 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 --define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). - -%% Parent-child Reference type -%% The causal relationship between a child Span and a parent Span --define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). - -%% An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers --define(DB_SYSTEM, 'db.system'). - -%% This attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails) -%% In some SQL databases, the database name to be used is called "schema name". In case there are multiple layers that could be considered for database name (e.g. Oracle instance name and schema name), the database name to be used is the more specific layer (e.g. Oracle schema name) --define(DB_NAME, 'db.name'). - -%% The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword -%% When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted --define(DB_OPERATION, 'db.operation'). - -%% Server port number -%% When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available --define(SERVER_PORT, 'server.port'). - -%% An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like `select @@hostname` --define(DB_INSTANCE_ID, 'db.instance.id'). - -%% The database statement being executed --define(DB_STATEMENT, 'db.statement'). - -%% Username for accessing the database --define(DB_USER, 'db.user'). - -%% Peer address of the database node where the operation was performed -%% Semantic conventions for individual database systems SHOULD document whether `network.peer.*` attributes are applicable. Network peer address and port are useful when the application interacts with individual database nodes directly. -%% If a database operation involved multiple network calls (for example retries), the address of the last contacted node SHOULD be used --define(NETWORK_PEER_ADDRESS, 'network.peer.address'). - -%% Peer port number of the network connection --define(NETWORK_PEER_PORT, 'network.peer.port'). - -%% Name of the database host -%% When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available --define(SERVER_ADDRESS, 'server.address'). - -%% The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance -%% If setting a `db.mssql.instance_name`, `server.port` is no longer required (but still recommended if non-standard) --define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). - -%% The name of the primary table that the operation is acting upon, including the database name (if applicable) -%% It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set --define(DB_SQL_TABLE, 'db.sql.table'). - -%% 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) --define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). - -%% The data center of the coordinating node for a query --define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). - -%% The ID of the coordinating node for a query --define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). - -%% Whether or not the query is idempotent --define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). - -%% The fetch size used for paging, i.e. how many rows will be returned at once --define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). - -%% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively --define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). - -%% The name of the primary Cassandra table that the operation is acting upon, including the keyspace name (if applicable) -%% This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set --define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). - -%% The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute --define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). - -%% The MongoDB collection being accessed within the database stated in `db.name` --define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). - -%% HTTP request method -%% HTTP request method value SHOULD be "known" to the instrumentation. -%% By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) -%% and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). -%% -%% If the HTTP request method is not known to instrumentation, it MUST set the `http.request.method` attribute to `_OTHER`. -%% -%% If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override -%% the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named -%% OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods -%% (this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults). -%% -%% HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. -%% Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. -%% Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value --define(HTTP_REQUEST_METHOD, 'http.request.method'). - -%% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) -%% For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. -%% `url.full` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password SHOULD be redacted and attribute's value SHOULD be `https://REDACTED:REDACTED@www.example.com/`. -%% `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it --define(URL_FULL, 'url.full'). - -%% Represents the identifier of an Elasticsearch cluster --define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). - -%% Cosmos client connection mode --define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). - -%% Cosmos DB container name --define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). - -%% CosmosDB Operation Type --define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). - -%% RU consumed for that operation --define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). - -%% Cosmos DB status code --define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). - -%% Cosmos DB sub status code --define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). - -%% Unique Cosmos client instance id --define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). - -%% Request payload size in bytes --define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). - -%% Full user-agent string is generated by Cosmos DB SDK -%% The user-agent value is generated by SDK which is a combination of
`sdk_version` : Current version of SDK. e.g. 'cosmos-netstandard-sdk/3.23.0'
`direct_pkg_version` : Direct package version used by Cosmos DB SDK. e.g. '3.23.1'
`number_of_client_instances` : Number of cosmos client instances created by the application. e.g. '1'
`type_of_machine_architecture` : Machine architecture. e.g. 'X64'
`operating_system` : Operating System. e.g. 'Linux 5.4.0-1098-azure 104 18'
`runtime_framework` : Runtime Framework. e.g. '.NET Core 3.1.32'
`failover_information` : Generated key to determine if region failover enabled. -%% Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it). -%% Default value is "NS" --define(USER_AGENT_ORIGINAL, 'user_agent.original'). - -%% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET --define(OTEL_STATUS_CODE, 'otel.status_code'). - -%% Description of the Status if it has a value, otherwise not set --define(OTEL_STATUS_DESCRIPTION, 'otel.status_description'). - -%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) -%% 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 invokable 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://docs.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 --define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). - -%% The invocation ID of the current function invocation --define(FAAS_INVOCATION_ID, 'faas.invocation_id'). - -%% Type of the trigger which caused this function invocation -%% For the server/consumer span on the incoming side, -%% `faas.trigger` MUST be set. -%% -%% Clients invoking FaaS instances usually cannot set `faas.trigger`, -%% since they would typically need to look in the payload to determine -%% the event type. If clients set it, it should be the same as the -%% trigger that corresponding incoming would have (i.e., this has -%% nothing to do with the underlying transport used to make the API -%% call to invoke the lambda, which is often HTTP) --define(FAAS_TRIGGER, 'faas.trigger'). - -%% 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 --define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). - -%% Describes the type of the operation that was performed on the data --define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). - -%% 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 --define(FAAS_DOCUMENT_NAME, 'faas.document.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) --define(FAAS_DOCUMENT_TIME, 'faas.document.time'). - -%% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) --define(FAAS_CRON, 'faas.cron'). - -%% 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) --define(FAAS_TIME, 'faas.time'). - -%% A boolean that is true if the serverless function is executed for the first time (aka cold-start) --define(FAAS_COLDSTART, 'faas.coldstart'). - -%% The name of the invoked function -%% SHOULD be equal to the `faas.name` resource attribute of the invoked function --define(FAAS_INVOKED_NAME, 'faas.invoked_name'). - -%% The cloud provider of the invoked function -%% SHOULD be equal to the `cloud.provider` resource attribute of the invoked function --define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). - -%% The cloud region of the invoked function -%% SHOULD be equal to the `cloud.region` resource attribute of the invoked function --define(FAAS_INVOKED_REGION, 'faas.invoked_region'). - -%% Describes a class of error the operation ended with -%% If the request fails with an error before response status code was sent or received, -%% `error.type` SHOULD be set to exception type (its fully-qualified class name, if applicable) -%% or a component-specific low cardinality error identifier. -%% -%% If response status code was sent or received and status indicates an error according to [HTTP span status definition](/docs/http/http-spans.md), -%% `error.type` SHOULD be set to the status code number (represented as a string), an exception type (if thrown) or a component-specific error identifier. -%% -%% The `error.type` value SHOULD be predictable and SHOULD have low cardinality. -%% Instrumentations SHOULD document the list of errors they report. -%% -%% The cardinality of `error.type` within one instrumentation library SHOULD be low, but -%% telemetry consumers that aggregate data from multiple instrumentation libraries and applications -%% should be prepared for `error.type` to have high cardinality at query time, when no -%% additional filters are applied. -%% -%% If the request has completed successfully, instrumentations SHOULD NOT set `error.type` --define(ERROR_TYPE, 'error.type'). - -%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6) --define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). - -%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent -%% The value SHOULD be normalized to lowercase --define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). - -%% The ordinal number of request resending attempt (for any reason, including redirects) -%% The resend count SHOULD be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other) --define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). - -%% The actual version of the protocol used for network communication -%% If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD NOT be set --define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). - -%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol --define(URL_SCHEME, 'url.scheme'). - -%% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component -%% Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it --define(URL_PATH, 'url.path'). - -%% The matched route, that is, the path template in the format used by the respective server framework -%% MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. -%% SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one --define(HTTP_ROUTE, 'http.route'). - -%% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component -%% Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it --define(URL_QUERY, 'url.query'). - -%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name -%% The IP address of the original client behind all proxies, if known (e.g. from [Forwarded#for](https://developer.mozilla.org/docs/Web/HTTP/Headers/Forwarded#for), [X-Forwarded-For](https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Forwarded-For), or a similar header). Otherwise, the immediate client peer address --define(CLIENT_ADDRESS, 'client.address'). - -%% The port of whichever client was captured in `client.address` -%% When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available --define(CLIENT_PORT, 'client.port'). - -%% Local socket address. Useful in case of a multi-IP host --define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). - -%% Local socket port. Useful in case of a multi-port host --define(NETWORK_LOCAL_PORT, 'network.local.port'). - -%% The value `aws-api` --define(RPC_SYSTEM, 'rpc.system'). - -%% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid` --define(AWS_REQUEST_ID, 'aws.request_id'). - -%% The name of the operation corresponding to the request, as returned by the AWS SDK -%% This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side) --define(RPC_METHOD, 'rpc.method'). - -%% The name of the service to which a request is made, as returned by the AWS SDK -%% This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side) --define(RPC_SERVICE, 'rpc.service'). - -%% The value of the `AttributesToGet` request parameter --define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). - -%% The value of the `ConsistentRead` request parameter --define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). - -%% The JSON-serialized value of each item in the `ConsumedCapacity` response field --define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). - -%% The value of the `IndexName` request parameter --define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). - -%% The JSON-serialized value of the `ItemCollectionMetrics` response field --define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). - -%% The value of the `Limit` request parameter --define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). - -%% The value of the `ProjectionExpression` request parameter --define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). - -%% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter --define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). - -%% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter --define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). - -%% The value of the `Select` request parameter --define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). - -%% The keys in the `RequestItems` object field --define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). - -%% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). - -%% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field --define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). - -%% The value of the `ExclusiveStartTableName` request parameter --define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). - -%% The number of items in the `TableNames` response parameter --define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). - -%% The value of the `ScanIndexForward` request parameter --define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). - -%% The value of the `Count` response parameter --define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). - -%% The value of the `ScannedCount` response parameter --define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). - -%% The value of the `Segment` request parameter --define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). - -%% The value of the `TotalSegments` request parameter --define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). - -%% The JSON-serialized value of each item in the `AttributeDefinitions` request field --define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). - -%% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). - -%% 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 -%% 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` --define(AWS_S3_BUCKET, 'aws.s3.bucket'). - -%% The source object (in the form `bucket`/`key`) for the copy operation -%% 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) --define(AWS_S3_COPY_SOURCE, 'aws.s3.copy_source'). - -%% The delete request container that specifies the objects to be deleted -%% 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) --define(AWS_S3_DELETE, 'aws.s3.delete'). - -%% 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 -%% 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) --define(AWS_S3_KEY, 'aws.s3.key'). - -%% The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000 -%% 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) --define(AWS_S3_PART_NUMBER, 'aws.s3.part_number'). - -%% Upload ID that identifies the multipart upload -%% 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) --define(AWS_S3_UPLOAD_ID, 'aws.s3.upload_id'). - -%% The GraphQL document being executed -%% The value may be sanitized to exclude sensitive information --define(GRAPHQL_DOCUMENT, 'graphql.document'). - -%% The name of the operation being executed --define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). - -%% The type of the operation being executed --define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). - -%% A string identifying the kind of messaging operation -%% If a custom value is used, it MUST be of low cardinality --define(MESSAGING_OPERATION, 'messaging.operation'). - -%% An identifier for the messaging system being used. See below for a list of well-known identifiers --define(MESSAGING_SYSTEM, 'messaging.system'). - -%% The number of messages sent, received, or processed in the scope of the batching operation -%% Instrumentations SHOULD NOT set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs --define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). - -%% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name) --define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). - -%% The message destination name -%% Destination name SHOULD uniquely identify a specific queue, topic or other entity within the broker. If -%% the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker --define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). - -%% Low cardinality representation of the messaging destination name -%% Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation --define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). - -%% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed --define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). - -%% A unique identifier for the client that consumes or produces a message --define(MESSAGING_CLIENT_ID, 'messaging.client_id'). - -%% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name` --define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). - -%% The size of the message body in bytes -%% This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed -%% body size should be used --define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). - -%% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID" --define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). - -%% The size of the message body and metadata in bytes -%% This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed -%% size should be used --define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). - -%% A value used by the messaging system as an identifier for the message, represented as a string --define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). - -%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication) -%% The value SHOULD be normalized to lowercase. -%% -%% Consider always setting the transport when setting a port number, since -%% a port number is ambiguous without knowing the transport. For example -%% different processes could be listening on TCP port 12345 and UDP port 12345 --define(NETWORK_TRANSPORT, 'network.transport'). - -%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent -%% The value SHOULD be normalized to lowercase --define(NETWORK_TYPE, 'network.type'). - -%% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request --define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). - -%% `error.code` property of response if it is an error response --define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). - -%% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted --define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). - -%% `error.message` property of response if it is an error response --define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). - -%% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification --define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). - -%% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values --define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). diff --git a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex new file mode 100644 index 00000000..770690c4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex @@ -0,0 +1,648 @@ +defmodule OpenTelemetry.SemanticConventions.AwsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Aws attributes. + """ + + @doc """ + The JSON-serialized value of each item in the `AttributeDefinitions` request field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_attributedefinitions() + :"aws.dynamodb.attribute_definitions" + """ + @spec aws_dynamodb_attributedefinitions :: :"aws.dynamodb.attribute_definitions" + def aws_dynamodb_attributedefinitions do + :"aws.dynamodb.attribute_definitions" + end + + @doc """ + The value of the `AttributesToGet` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_attributestoget() + :"aws.dynamodb.attributes_to_get" + """ + @spec aws_dynamodb_attributestoget :: :"aws.dynamodb.attributes_to_get" + def aws_dynamodb_attributestoget do + :"aws.dynamodb.attributes_to_get" + end + + @doc """ + The value of the `ConsistentRead` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_consistentread() + :"aws.dynamodb.consistent_read" + """ + @spec aws_dynamodb_consistentread :: :"aws.dynamodb.consistent_read" + def aws_dynamodb_consistentread do + :"aws.dynamodb.consistent_read" + end + + @doc """ + The JSON-serialized value of each item in the `ConsumedCapacity` response field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_consumedcapacity() + :"aws.dynamodb.consumed_capacity" + """ + @spec aws_dynamodb_consumedcapacity :: :"aws.dynamodb.consumed_capacity" + def aws_dynamodb_consumedcapacity do + :"aws.dynamodb.consumed_capacity" + end + + @doc """ + The value of the `Count` response parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_count() + :"aws.dynamodb.count" + """ + @spec aws_dynamodb_count :: :"aws.dynamodb.count" + def aws_dynamodb_count do + :"aws.dynamodb.count" + end + + @doc """ + The value of the `ExclusiveStartTableName` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_exclusivestarttable() + :"aws.dynamodb.exclusive_start_table" + """ + @spec aws_dynamodb_exclusivestarttable :: :"aws.dynamodb.exclusive_start_table" + def aws_dynamodb_exclusivestarttable do + :"aws.dynamodb.exclusive_start_table" + end + + @doc """ + The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_globalsecondaryindexupdates() + :"aws.dynamodb.global_secondary_index_updates" + """ + @spec aws_dynamodb_globalsecondaryindexupdates :: :"aws.dynamodb.global_secondary_index_updates" + def aws_dynamodb_globalsecondaryindexupdates do + :"aws.dynamodb.global_secondary_index_updates" + end + + @doc """ + The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_globalsecondaryindexes() + :"aws.dynamodb.global_secondary_indexes" + """ + @spec aws_dynamodb_globalsecondaryindexes :: :"aws.dynamodb.global_secondary_indexes" + def aws_dynamodb_globalsecondaryindexes do + :"aws.dynamodb.global_secondary_indexes" + end + + @doc """ + The value of the `IndexName` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_indexname() + :"aws.dynamodb.index_name" + """ + @spec aws_dynamodb_indexname :: :"aws.dynamodb.index_name" + def aws_dynamodb_indexname do + :"aws.dynamodb.index_name" + end + + @doc """ + The JSON-serialized value of the `ItemCollectionMetrics` response field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_itemcollectionmetrics() + :"aws.dynamodb.item_collection_metrics" + """ + @spec aws_dynamodb_itemcollectionmetrics :: :"aws.dynamodb.item_collection_metrics" + def aws_dynamodb_itemcollectionmetrics do + :"aws.dynamodb.item_collection_metrics" + end + + @doc """ + The value of the `Limit` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_limit() + :"aws.dynamodb.limit" + """ + @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" + def aws_dynamodb_limit do + :"aws.dynamodb.limit" + end + + @doc """ + The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_localsecondaryindexes() + :"aws.dynamodb.local_secondary_indexes" + """ + @spec aws_dynamodb_localsecondaryindexes :: :"aws.dynamodb.local_secondary_indexes" + def aws_dynamodb_localsecondaryindexes do + :"aws.dynamodb.local_secondary_indexes" + end + + @doc """ + The value of the `ProjectionExpression` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_projection() + :"aws.dynamodb.projection" + """ + @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" + def aws_dynamodb_projection do + :"aws.dynamodb.projection" + end + + @doc """ + The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_provisionedreadcapacity() + :"aws.dynamodb.provisioned_read_capacity" + """ + @spec aws_dynamodb_provisionedreadcapacity :: :"aws.dynamodb.provisioned_read_capacity" + def aws_dynamodb_provisionedreadcapacity do + :"aws.dynamodb.provisioned_read_capacity" + end + + @doc """ + The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_provisionedwritecapacity() + :"aws.dynamodb.provisioned_write_capacity" + """ + @spec aws_dynamodb_provisionedwritecapacity :: :"aws.dynamodb.provisioned_write_capacity" + def aws_dynamodb_provisionedwritecapacity do + :"aws.dynamodb.provisioned_write_capacity" + end + + @doc """ + The value of the `ScanIndexForward` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_scanforward() + :"aws.dynamodb.scan_forward" + """ + @spec aws_dynamodb_scanforward :: :"aws.dynamodb.scan_forward" + def aws_dynamodb_scanforward do + :"aws.dynamodb.scan_forward" + end + + @doc """ + The value of the `ScannedCount` response parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_scannedcount() + :"aws.dynamodb.scanned_count" + """ + @spec aws_dynamodb_scannedcount :: :"aws.dynamodb.scanned_count" + def aws_dynamodb_scannedcount do + :"aws.dynamodb.scanned_count" + end + + @doc """ + The value of the `Segment` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_segment() + :"aws.dynamodb.segment" + """ + @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" + def aws_dynamodb_segment do + :"aws.dynamodb.segment" + end + + @doc """ + The value of the `Select` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_select() + :"aws.dynamodb.select" + """ + @spec aws_dynamodb_select :: :"aws.dynamodb.select" + def aws_dynamodb_select do + :"aws.dynamodb.select" + end + + @doc """ + The number of items in the `TableNames` response parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_tablecount() + :"aws.dynamodb.table_count" + """ + @spec aws_dynamodb_tablecount :: :"aws.dynamodb.table_count" + def aws_dynamodb_tablecount do + :"aws.dynamodb.table_count" + end + + @doc """ + The keys in the `RequestItems` object field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_tablenames() + :"aws.dynamodb.table_names" + """ + @spec aws_dynamodb_tablenames :: :"aws.dynamodb.table_names" + def aws_dynamodb_tablenames do + :"aws.dynamodb.table_names" + end + + @doc """ + The value of the `TotalSegments` request parameter. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_totalsegments() + :"aws.dynamodb.total_segments" + """ + @spec aws_dynamodb_totalsegments :: :"aws.dynamodb.total_segments" + def aws_dynamodb_totalsegments do + :"aws.dynamodb.total_segments" + end + + @doc """ + The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_cluster_arn() + :"aws.ecs.cluster.arn" + """ + @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" + def aws_ecs_cluster_arn do + :"aws.ecs.cluster.arn" + end + + @doc """ + The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_container_arn() + :"aws.ecs.container.arn" + """ + @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" + def aws_ecs_container_arn do + :"aws.ecs.container.arn" + end + + @typedoc """ + The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + + + ### Options + * `:ec2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:fargate` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type aws_ecs_launchtype() :: :ec2 | :fargate | atom() + + @doc """ + The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype(:ec2) + :ec2 + + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype(:custom_value) + :custom_value + """ + @spec aws_ecs_launchtype(aws_ecs_launchtype()) :: :ec2 | :fargate | atom() + def aws_ecs_launchtype(option) do + :"aws.ecs.launchtype" + + case option do + :ec2 -> :ec2 + :fargate -> :fargate + _ -> option + end + end + + @doc """ + The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_arn() + :"aws.ecs.task.arn" + """ + @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" + def aws_ecs_task_arn do + :"aws.ecs.task.arn" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_family() + :"aws.ecs.task.family" + """ + @spec aws_ecs_task_family :: :"aws.ecs.task.family" + def aws_ecs_task_family do + :"aws.ecs.task.family" + end + + @doc """ + The ID of a running ECS task. The ID **MUST** be extracted from `task.arn`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_id() + :"aws.ecs.task.id" + """ + @spec aws_ecs_task_id :: :"aws.ecs.task.id" + def aws_ecs_task_id do + :"aws.ecs.task.id" + end + + @doc """ + The revision for the task definition used to create the ECS task. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_revision() + :"aws.ecs.task.revision" + """ + @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" + def aws_ecs_task_revision do + :"aws.ecs.task.revision" + end + + @doc """ + The ARN of an EKS cluster. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_eks_cluster_arn() + :"aws.eks.cluster.arn" + """ + @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" + def aws_eks_cluster_arn do + :"aws.eks.cluster.arn" + end + + @doc """ + 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). + + ### Notes + + This may be different from `cloud.resource_id` if an alias is involved. + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_lambda_invokedarn() + :"aws.lambda.invoked_arn" + """ + @spec aws_lambda_invokedarn :: :"aws.lambda.invoked_arn" + def aws_lambda_invokedarn do + :"aws.lambda.invoked_arn" + end + + @doc """ + The Amazon Resource Name(s) (ARN) of the AWS log group(s). + + ### Notes + + See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_group_arns() + :"aws.log.group.arns" + """ + @spec aws_log_group_arns :: :"aws.log.group.arns" + def aws_log_group_arns do + :"aws.log.group.arns" + end + + @doc """ + The name(s) of the AWS log group(s) an application is writing to. + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_group_names() + :"aws.log.group.names" + """ + @spec aws_log_group_names :: :"aws.log.group.names" + def aws_log_group_names do + :"aws.log.group.names" + end + + @doc """ + The ARN(s) of the AWS log stream(s). + + ### Notes + + 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. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_stream_arns() + :"aws.log.stream.arns" + """ + @spec aws_log_stream_arns :: :"aws.log.stream.arns" + def aws_log_stream_arns do + :"aws.log.stream.arns" + end + + @doc """ + The name(s) of the AWS log stream(s) an application is writing to. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_stream_names() + :"aws.log.stream.names" + """ + @spec aws_log_stream_names :: :"aws.log.stream.names" + def aws_log_stream_names do + :"aws.log.stream.names" + end + + @doc """ + The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_requestid() + :"aws.request_id" + """ + @spec aws_requestid :: :"aws.request_id" + def aws_requestid do + :"aws.request_id" + end + + @doc """ + 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. + ### Notes + + 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`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_bucket() + :"aws.s3.bucket" + """ + @spec aws_s_3_bucket :: :"aws.s3.bucket" + def aws_s_3_bucket do + :"aws.s3.bucket" + end + + @doc """ + The source object (in the form `bucket`/`key`) for the copy operation. + ### Notes + + 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) + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_copysource() + :"aws.s3.copy_source" + """ + @spec aws_s_3_copysource :: :"aws.s3.copy_source" + def aws_s_3_copysource do + :"aws.s3.copy_source" + end + + @doc """ + The delete request container that specifies the objects to be deleted. + ### Notes + + 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). + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_delete() + :"aws.s3.delete" + """ + @spec aws_s_3_delete :: :"aws.s3.delete" + def aws_s_3_delete do + :"aws.s3.delete" + end + + @doc """ + 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. + ### Notes + + 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) + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_key() + :"aws.s3.key" + """ + @spec aws_s_3_key :: :"aws.s3.key" + def aws_s_3_key do + :"aws.s3.key" + end + + @doc """ + The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. + ### Notes + + 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). + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_partnumber() + :"aws.s3.part_number" + """ + @spec aws_s_3_partnumber :: :"aws.s3.part_number" + def aws_s_3_partnumber do + :"aws.s3.part_number" + end + + @doc """ + Upload ID that identifies the multipart upload. + ### Notes + + 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) + + + ### Example + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_uploadid() + :"aws.s3.upload_id" + """ + @spec aws_s_3_uploadid :: :"aws.s3.upload_id" + def aws_s_3_uploadid do + :"aws.s3.upload_id" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex new file mode 100644 index 00000000..0c5fdcaa --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex @@ -0,0 +1,71 @@ +defmodule OpenTelemetry.SemanticConventions.BrowserAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Browser attributes. + """ + + @doc """ + Array of brand name and version separated by a space + ### Notes + + This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`). + + + ### Example + iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_brands() + :"browser.brands" + """ + @spec browser_brands :: :"browser.brands" + def browser_brands do + :"browser.brands" + end + + @doc """ + Preferred language of the user using the browser + ### Notes + + This value is intended to be taken from the Navigator API `navigator.language`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_language() + :"browser.language" + """ + @spec browser_language :: :"browser.language" + def browser_language do + :"browser.language" + end + + @doc """ + A boolean that is true if the browser is running on a mobile device + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_mobile() + :"browser.mobile" + """ + @spec browser_mobile :: :"browser.mobile" + def browser_mobile do + :"browser.mobile" + end + + @doc """ + The platform on which the browser is running + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_platform() + :"browser.platform" + """ + @spec browser_platform :: :"browser.platform" + def browser_platform do + :"browser.platform" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex new file mode 100644 index 00000000..79d9c8b7 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex @@ -0,0 +1,38 @@ +defmodule OpenTelemetry.SemanticConventions.ClientAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Client attributes. + """ + + @doc """ + Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Notes + + When observed from the server side, and when communicating through an intermediary, `client.address` **SHOULD** represent the client address behind any intermediaries, for example proxies, if it's available. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ClientAttributes.client_address() + :"client.address" + """ + @spec client_address :: :"client.address" + def client_address do + :"client.address" + end + + @doc """ + Client port number. + ### Notes + + When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ClientAttributes.client_port() + :"client.port" + """ + @spec client_port :: :"client.port" + def client_port do + :"client.port" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex new file mode 100644 index 00000000..a907f040 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex @@ -0,0 +1,280 @@ +defmodule OpenTelemetry.SemanticConventions.CloudAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Cloud attributes. + """ + + @doc """ + The cloud account ID the resource is assigned to. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_account_id() + :"cloud.account.id" + """ + @spec cloud_account_id :: :"cloud.account.id" + def cloud_account_id do + :"cloud.account.id" + end + + @doc """ + Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. + + ### Notes + + Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + + + ### Example + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_availabilityzone() + :"cloud.availability_zone" + """ + @spec cloud_availabilityzone :: :"cloud.availability_zone" + def cloud_availabilityzone do + :"cloud.availability_zone" + end + + @typedoc """ + The cloud platform in use. + + + ### Options + * `:alibaba_cloud_ecs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud Elastic Compute Service + * `:alibaba_cloud_fc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud Function Compute + * `:alibaba_cloud_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on Alibaba Cloud + * `:aws_ec2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Compute Cloud + * `:aws_ecs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Container Service + * `:aws_eks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Kubernetes Service + * `:aws_lambda` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Lambda + * `:aws_elastic_beanstalk` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Beanstalk + * `:aws_app_runner` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS App Runner + * `:aws_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on AWS (ROSA) + * `:azure_vm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Virtual Machines + * `:azure_container_apps` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Container Apps + * `:azure_container_instances` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Container Instances + * `:azure_aks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Kubernetes Service + * `:azure_functions` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Functions + * `:azure_app_service` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure App Service + * `:azure_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Red Hat OpenShift + * `:gcp_bare_metal_solution` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Bare Metal Solution (BMS) + * `:gcp_compute_engine` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Compute Engine (GCE) + * `:gcp_cloud_run` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Run + * `:gcp_kubernetes_engine` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Kubernetes Engine (GKE) + * `:gcp_cloud_functions` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Functions (GCF) + * `:gcp_app_engine` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud App Engine (GAE) + * `:gcp_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on Google Cloud + * `:ibm_cloud_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on IBM Cloud + * `:tencent_cloud_cvm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Cloud Virtual Machine (CVM) + * `:tencent_cloud_eks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Elastic Kubernetes Service (EKS) + * `:tencent_cloud_scf` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Serverless Cloud Function (SCF) + + """ + @type cloud_platform() :: + :alibaba_cloud_ecs + | :alibaba_cloud_fc + | :alibaba_cloud_openshift + | :aws_ec2 + | :aws_ecs + | :aws_eks + | :aws_lambda + | :aws_elastic_beanstalk + | :aws_app_runner + | :aws_openshift + | :azure_vm + | :azure_container_apps + | :azure_container_instances + | :azure_aks + | :azure_functions + | :azure_app_service + | :azure_openshift + | :gcp_bare_metal_solution + | :gcp_compute_engine + | :gcp_cloud_run + | :gcp_kubernetes_engine + | :gcp_cloud_functions + | :gcp_app_engine + | :gcp_openshift + | :ibm_cloud_openshift + | :tencent_cloud_cvm + | :tencent_cloud_eks + | :tencent_cloud_scf + | atom() + + @doc """ + The cloud platform in use. + + ### Notes + + The prefix of the service **SHOULD** match the one specified in `cloud.provider`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform(:alibaba_cloud_ecs) + :alibaba_cloud_ecs + + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform(:custom_value) + :custom_value + """ + @spec cloud_platform(cloud_platform()) :: + :alibaba_cloud_ecs + | :alibaba_cloud_fc + | :alibaba_cloud_openshift + | :aws_ec2 + | :aws_ecs + | :aws_eks + | :aws_lambda + | :aws_elastic_beanstalk + | :aws_app_runner + | :aws_openshift + | :azure_vm + | :azure_container_apps + | :azure_container_instances + | :azure_aks + | :azure_functions + | :azure_app_service + | :azure_openshift + | :gcp_bare_metal_solution + | :gcp_compute_engine + | :gcp_cloud_run + | :gcp_kubernetes_engine + | :gcp_cloud_functions + | :gcp_app_engine + | :gcp_openshift + | :ibm_cloud_openshift + | :tencent_cloud_cvm + | :tencent_cloud_eks + | :tencent_cloud_scf + | atom() + def cloud_platform(option) do + :"cloud.platform" + + case option do + :alibaba_cloud_ecs -> :alibaba_cloud_ecs + :alibaba_cloud_fc -> :alibaba_cloud_fc + :alibaba_cloud_openshift -> :alibaba_cloud_openshift + :aws_ec2 -> :aws_ec2 + :aws_ecs -> :aws_ecs + :aws_eks -> :aws_eks + :aws_lambda -> :aws_lambda + :aws_elastic_beanstalk -> :aws_elastic_beanstalk + :aws_app_runner -> :aws_app_runner + :aws_openshift -> :aws_openshift + :azure_vm -> :azure_vm + :azure_container_apps -> :azure_container_apps + :azure_container_instances -> :azure_container_instances + :azure_aks -> :azure_aks + :azure_functions -> :azure_functions + :azure_app_service -> :azure_app_service + :azure_openshift -> :azure_openshift + :gcp_bare_metal_solution -> :gcp_bare_metal_solution + :gcp_compute_engine -> :gcp_compute_engine + :gcp_cloud_run -> :gcp_cloud_run + :gcp_kubernetes_engine -> :gcp_kubernetes_engine + :gcp_cloud_functions -> :gcp_cloud_functions + :gcp_app_engine -> :gcp_app_engine + :gcp_openshift -> :gcp_openshift + :ibm_cloud_openshift -> :ibm_cloud_openshift + :tencent_cloud_cvm -> :tencent_cloud_cvm + :tencent_cloud_eks -> :tencent_cloud_eks + :tencent_cloud_scf -> :tencent_cloud_scf + _ -> option + end + end + + @typedoc """ + Name of the cloud provider. + + + ### Options + * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud + * `:aws` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services + * `:azure` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure + * `:gcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform + * `:heroku` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Heroku Platform as a Service + * `:ibm_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Cloud + * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud + + """ + @type cloud_provider() :: + :alibaba_cloud | :aws | :azure | :gcp | :heroku | :ibm_cloud | :tencent_cloud | atom() + + @doc """ + Name of the cloud provider. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider(:alibaba_cloud) + :alibaba_cloud + + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider(:custom_value) + :custom_value + """ + @spec cloud_provider(cloud_provider()) :: + :alibaba_cloud | :aws | :azure | :gcp | :heroku | :ibm_cloud | :tencent_cloud | atom() + def cloud_provider(option) do + :"cloud.provider" + + case option do + :alibaba_cloud -> :alibaba_cloud + :aws -> :aws + :azure -> :azure + :gcp -> :gcp + :heroku -> :heroku + :ibm_cloud -> :ibm_cloud + :tencent_cloud -> :tencent_cloud + _ -> option + end + end + + @doc """ + The geographical region the resource is running. + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_region() + :"cloud.region" + """ + @spec cloud_region :: :"cloud.region" + def cloud_region do + :"cloud.region" + end + + @doc """ + 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) + + ### Notes + + 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 invokable 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://docs.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 + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_resourceid() + :"cloud.resource_id" + """ + @spec cloud_resourceid :: :"cloud.resource_id" + def cloud_resourceid do + :"cloud.resource_id" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex new file mode 100644 index 00000000..7e005f5a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex @@ -0,0 +1,76 @@ +defmodule OpenTelemetry.SemanticConventions.CloudeventsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Cloudevents attributes. + """ + + @doc """ + The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventid() + :"cloudevents.event_id" + """ + @spec cloudevents_eventid :: :"cloudevents.event_id" + def cloudevents_eventid do + :"cloudevents.event_id" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventsource() + :"cloudevents.event_source" + """ + @spec cloudevents_eventsource :: :"cloudevents.event_source" + def cloudevents_eventsource do + :"cloudevents.event_source" + end + + @doc """ + The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventspecversion() + :"cloudevents.event_spec_version" + """ + @spec cloudevents_eventspecversion :: :"cloudevents.event_spec_version" + def cloudevents_eventspecversion do + :"cloudevents.event_spec_version" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventsubject() + :"cloudevents.event_subject" + """ + @spec cloudevents_eventsubject :: :"cloudevents.event_subject" + def cloudevents_eventsubject do + :"cloudevents.event_subject" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventtype() + :"cloudevents.event_type" + """ + @spec cloudevents_eventtype :: :"cloudevents.event_type" + def cloudevents_eventtype do + :"cloudevents.event_type" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/code_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/code_attributes.ex new file mode 100644 index 00000000..aeeffef6 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/code_attributes.ex @@ -0,0 +1,90 @@ +defmodule OpenTelemetry.SemanticConventions.CodeAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Code attributes. + """ + + @doc """ + The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_column() + :"code.column" + """ + @spec code_column :: :"code.column" + def code_column do + :"code.column" + end + + @doc """ + The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_filepath() + :"code.filepath" + """ + @spec code_filepath :: :"code.filepath" + def code_filepath do + :"code.filepath" + end + + @doc """ + The method or function name, or equivalent (usually rightmost part of the code unit's name). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_function() + :"code.function" + """ + @spec code_function :: :"code.function" + def code_function do + :"code.function" + end + + @doc """ + The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_lineno() + :"code.lineno" + """ + @spec code_lineno :: :"code.lineno" + def code_lineno do + :"code.lineno" + end + + @doc """ + The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_namespace() + :"code.namespace" + """ + @spec code_namespace :: :"code.namespace" + def code_namespace do + :"code.namespace" + end + + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_stacktrace() + :"code.stacktrace" + """ + @spec code_stacktrace :: :"code.stacktrace" + def code_stacktrace do + :"code.stacktrace" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex new file mode 100644 index 00000000..29b79ef3 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex @@ -0,0 +1,214 @@ +defmodule OpenTelemetry.SemanticConventions.ContainerAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Container attributes. + """ + + @doc """ + The command used to run the container (i.e. the command name). + + ### Notes + + If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_command() + :"container.command" + """ + @spec container_command :: :"container.command" + def container_command do + :"container.command" + end + + @doc """ + All the command arguments (including the command/executable itself) run by the container. [2] + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_commandargs() + :"container.command_args" + """ + @spec container_commandargs :: :"container.command_args" + def container_commandargs do + :"container.command_args" + end + + @doc """ + The full command run by the container as a single string representing the full command. [2] + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_commandline() + :"container.command_line" + """ + @spec container_commandline :: :"container.command_line" + def container_commandline do + :"container.command_line" + end + + @typedoc """ + The CPU state for this data point. + + ### Options + * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). + * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) + * `:kernel` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). + + """ + @type container_cpu_state() :: :user | :system | :kernel | atom() + + @doc """ + The CPU state for this data point. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state(:user) + :user + + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state(:custom_value) + :custom_value + """ + @spec container_cpu_state(container_cpu_state()) :: :user | :system | :kernel | atom() + def container_cpu_state(option) do + :"container.cpu.state" + + case option do + :user -> :user + :system -> :system + :kernel -> :kernel + _ -> option + end + end + + @doc """ + Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_id() + :"container.id" + """ + @spec container_id :: :"container.id" + def container_id do + :"container.id" + end + + @doc """ + Runtime specific image identifier. Usually a hash algorithm followed by a UUID. + + ### Notes + + 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. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_id() + :"container.image.id" + """ + @spec container_image_id :: :"container.image.id" + def container_image_id do + :"container.image.id" + end + + @doc """ + Name of the image the container was built on. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_name() + :"container.image.name" + """ + @spec container_image_name :: :"container.image.name" + def container_image_name do + :"container.image.name" + end + + @doc """ + Repo digests of the container image as provided by the container runtime. + + ### Notes + + [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 + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_repodigests() + :"container.image.repo_digests" + """ + @spec container_image_repodigests :: :"container.image.repo_digests" + def container_image_repodigests do + :"container.image.repo_digests" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_tags() + :"container.image.tags" + """ + @spec container_image_tags :: :"container.image.tags" + def container_image_tags do + :"container.image.tags" + end + + @doc """ + Container labels, `` being the label name, the value being the label value. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_label() + :"container.label" + """ + @spec container_label :: :"container.label" + def container_label do + :"container.label" + end + + @deprecated """ + Replaced by `container.label`. + """ + + @spec container_labels :: :"container.labels" + def container_labels do + :"container.labels" + end + + @doc """ + Container name used by container runtime. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_name() + :"container.name" + """ + @spec container_name :: :"container.name" + def container_name do + :"container.name" + end + + @doc """ + The container runtime managing this container. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_runtime() + :"container.runtime" + """ + @spec container_runtime :: :"container.runtime" + def container_runtime do + :"container.runtime" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex new file mode 100644 index 00000000..3d99efeb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex @@ -0,0 +1,938 @@ +defmodule OpenTelemetry.SemanticConventions.DbAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Db attributes. + """ + + @typedoc """ + 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). + + + ### Options + * `:all` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:each_quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:local_quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:one` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:two` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:three` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:local_one` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:any` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:serial` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:local_serial` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type db_cassandra_consistencylevel() :: + :all + | :each_quorum + | :quorum + | :local_quorum + | :one + | :two + | :three + | :local_one + | :any + | :serial + | :local_serial + | atom() + + @doc """ + 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). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel(:all) + :all + + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel(:custom_value) + :custom_value + """ + @spec db_cassandra_consistencylevel(db_cassandra_consistencylevel()) :: + :all + | :each_quorum + | :quorum + | :local_quorum + | :one + | :two + | :three + | :local_one + | :any + | :serial + | :local_serial + | atom() + def db_cassandra_consistencylevel(option) do + :"db.cassandra.consistency_level" + + case option do + :all -> :all + :each_quorum -> :each_quorum + :quorum -> :quorum + :local_quorum -> :local_quorum + :one -> :one + :two -> :two + :three -> :three + :local_one -> :local_one + :any -> :any + :serial -> :serial + :local_serial -> :local_serial + _ -> option + end + end + + @doc """ + The data center of the coordinating node for a query. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_coordinator_dc() + :"db.cassandra.coordinator.dc" + """ + @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" + def db_cassandra_coordinator_dc do + :"db.cassandra.coordinator.dc" + end + + @doc """ + The ID of the coordinating node for a query. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_coordinator_id() + :"db.cassandra.coordinator.id" + """ + @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" + def db_cassandra_coordinator_id do + :"db.cassandra.coordinator.id" + end + + @doc """ + Whether or not the query is idempotent. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_idempotence() + :"db.cassandra.idempotence" + """ + @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" + def db_cassandra_idempotence do + :"db.cassandra.idempotence" + end + + @doc """ + The fetch size used for paging, i.e. how many rows will be returned at once. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_pagesize() + :"db.cassandra.page_size" + """ + @spec db_cassandra_pagesize :: :"db.cassandra.page_size" + def db_cassandra_pagesize do + :"db.cassandra.page_size" + end + + @doc """ + The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_speculativeexecutioncount() + :"db.cassandra.speculative_execution_count" + """ + @spec db_cassandra_speculativeexecutioncount :: :"db.cassandra.speculative_execution_count" + def db_cassandra_speculativeexecutioncount do + :"db.cassandra.speculative_execution_count" + end + + @deprecated """ + Replaced by `db.collection.name`. + """ + + @spec db_cassandra_table :: :"db.cassandra.table" + def db_cassandra_table do + :"db.cassandra.table" + end + + @doc """ + 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_pool_name() + :"db.client.connections.pool.name" + """ + @spec db_client_connections_pool_name :: :"db.client.connections.pool.name" + def db_client_connections_pool_name do + :"db.client.connections.pool.name" + end + + @typedoc """ + The state of a connection in the pool + + ### Options + * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type db_client_connections_state() :: :idle | :used | atom() + + @doc """ + The state of a connection in the pool + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state(:idle) + :idle + + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state(:custom_value) + :custom_value + """ + @spec db_client_connections_state(db_client_connections_state()) :: :idle | :used | atom() + def db_client_connections_state(option) do + :"db.client.connections.state" + + case option do + :idle -> :idle + :used -> :used + _ -> option + end + end + + @doc """ + The name of a collection (table, container) within the database. + ### Notes + + If the collection name is parsed from the query, it **SHOULD** match the value provided in the query and may be qualified with the schema and database name. + It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_collection_name() + :"db.collection.name" + """ + @spec db_collection_name :: :"db.collection.name" + def db_collection_name do + :"db.collection.name" + end + + @deprecated """ + "Replaced by `server.address` and `server.port`." + + """ + + @spec db_connectionstring :: :"db.connection_string" + def db_connectionstring do + :"db.connection_string" + end + + @doc """ + Unique Cosmos client instance id. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_clientid() + :"db.cosmosdb.client_id" + """ + @spec db_cosmosdb_clientid :: :"db.cosmosdb.client_id" + def db_cosmosdb_clientid do + :"db.cosmosdb.client_id" + end + + @typedoc """ + Cosmos client connection mode. + + ### Options + * `:gateway` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode + * `:direct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection. + + """ + @type db_cosmosdb_connectionmode() :: :gateway | :direct | atom() + + @doc """ + Cosmos client connection mode. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode(:gateway) + :gateway + + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode(:custom_value) + :custom_value + """ + @spec db_cosmosdb_connectionmode(db_cosmosdb_connectionmode()) :: :gateway | :direct | atom() + def db_cosmosdb_connectionmode(option) do + :"db.cosmosdb.connection_mode" + + case option do + :gateway -> :gateway + :direct -> :direct + _ -> option + end + end + + @deprecated """ + Replaced by `db.collection.name`. + """ + + @spec db_cosmosdb_container :: :"db.cosmosdb.container" + def db_cosmosdb_container do + :"db.cosmosdb.container" + end + + @type invalid() :: :Invalid + + @type create() :: :Create + + @type patch() :: :Patch + + @type read() :: :Read + + @type read_feed() :: :ReadFeed + + @type delete() :: :Delete + + @type replace() :: :Replace + + @type execute() :: :Execute + + @type query() :: :Query + + @type head() :: :Head + + @type head_feed() :: :HeadFeed + + @type upsert() :: :Upsert + + @type batch() :: :Batch + + @type query_plan() :: :QueryPlan + + @type execute_javascript() :: :ExecuteJavaScript + + @typedoc """ + CosmosDB Operation Type. + + ### Options + * `:invalid` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:create` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:patch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:read` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:read_feed` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:replace` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:execute` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:query` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:head` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:head_feed` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:upsert` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:batch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:query_plan` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:execute_javascript` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type db_cosmosdb_operationtype() :: + invalid() + | create() + | patch() + | read() + | read_feed() + | delete() + | replace() + | execute() + | query() + | head() + | head_feed() + | upsert() + | batch() + | query_plan() + | execute_javascript() + | atom() + + @doc """ + CosmosDB Operation Type. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype(:invalid) + :Invalid + + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype(:custom_value) + :custom_value + """ + @spec db_cosmosdb_operationtype(db_cosmosdb_operationtype()) :: + invalid() + | create() + | patch() + | read() + | read_feed() + | delete() + | replace() + | execute() + | query() + | head() + | head_feed() + | upsert() + | batch() + | query_plan() + | execute_javascript() + | atom() + def db_cosmosdb_operationtype(option) do + :"db.cosmosdb.operation_type" + + case option do + :invalid -> :Invalid + :create -> :Create + :patch -> :Patch + :read -> :Read + :read_feed -> :ReadFeed + :delete -> :Delete + :replace -> :Replace + :execute -> :Execute + :query -> :Query + :head -> :Head + :head_feed -> :HeadFeed + :upsert -> :Upsert + :batch -> :Batch + :query_plan -> :QueryPlan + :execute_javascript -> :ExecuteJavaScript + _ -> option + end + end + + @doc """ + RU consumed for that operation + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_requestcharge() + :"db.cosmosdb.request_charge" + """ + @spec db_cosmosdb_requestcharge :: :"db.cosmosdb.request_charge" + def db_cosmosdb_requestcharge do + :"db.cosmosdb.request_charge" + end + + @doc """ + Request payload size in bytes + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_requestcontentlength() + :"db.cosmosdb.request_content_length" + """ + @spec db_cosmosdb_requestcontentlength :: :"db.cosmosdb.request_content_length" + def db_cosmosdb_requestcontentlength do + :"db.cosmosdb.request_content_length" + end + + @doc """ + Cosmos DB status code. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_statuscode() + :"db.cosmosdb.status_code" + """ + @spec db_cosmosdb_statuscode :: :"db.cosmosdb.status_code" + def db_cosmosdb_statuscode do + :"db.cosmosdb.status_code" + end + + @doc """ + Cosmos DB sub status code. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_substatuscode() + :"db.cosmosdb.sub_status_code" + """ + @spec db_cosmosdb_substatuscode :: :"db.cosmosdb.sub_status_code" + def db_cosmosdb_substatuscode do + :"db.cosmosdb.sub_status_code" + end + + @doc """ + Represents the identifier of an Elasticsearch cluster. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_elasticsearch_cluster_name() + :"db.elasticsearch.cluster.name" + """ + @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" + def db_elasticsearch_cluster_name do + :"db.elasticsearch.cluster.name" + end + + @doc """ + Represents the human-readable identifier of the node/instance to which a request was routed. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_elasticsearch_node_name() + :"db.elasticsearch.node.name" + """ + @spec db_elasticsearch_node_name :: :"db.elasticsearch.node.name" + def db_elasticsearch_node_name do + :"db.elasticsearch.node.name" + end + + @doc """ + A dynamic value in the url path. + + ### Notes + + Many Elasticsearch url paths allow dynamic values. These **SHOULD** be recorded in span attributes in the format `db.elasticsearch.path_parts.`, where `` is the url path part name. The implementation **SHOULD** reference the [elasticsearch schema](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json) in order to map the path part values to their names. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_elasticsearch_pathparts() + :"db.elasticsearch.path_parts" + """ + @spec db_elasticsearch_pathparts :: :"db.elasticsearch.path_parts" + def db_elasticsearch_pathparts do + :"db.elasticsearch.path_parts" + end + + @deprecated """ + Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. + """ + + @spec db_instance_id :: :"db.instance.id" + def db_instance_id do + :"db.instance.id" + end + + @deprecated """ + Removed as not used. + """ + + @spec db_jdbc_driverclassname :: :"db.jdbc.driver_classname" + def db_jdbc_driverclassname do + :"db.jdbc.driver_classname" + end + + @deprecated """ + Replaced by `db.collection.name`. + """ + + @spec db_mongodb_collection :: :"db.mongodb.collection" + def db_mongodb_collection do + :"db.mongodb.collection" + end + + @deprecated """ + Deprecated, no replacement at this time. + """ + + @spec db_mssql_instancename :: :"db.mssql.instance_name" + def db_mssql_instancename do + :"db.mssql.instance_name" + end + + @deprecated """ + Replaced by `db.namespace`. + """ + + @spec db_name :: :"db.name" + def db_name do + :"db.name" + end + + @doc """ + The name of the database, fully qualified within the server address and port. + + ### Notes + + If a database system has multiple namespace components, they **SHOULD** be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces **SHOULD** **NOT** be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid. + Semantic conventions for individual database systems **SHOULD** document what `db.namespace` means in the context of that system. + It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_namespace() + :"db.namespace" + """ + @spec db_namespace :: :"db.namespace" + def db_namespace do + :"db.namespace" + end + + @deprecated """ + Replaced by `db.operation.name`. + """ + + @spec db_operation :: :"db.operation" + def db_operation do + :"db.operation" + end + + @doc """ + The name of the operation or command being executed. + + ### Notes + + It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_operation_name() + :"db.operation.name" + """ + @spec db_operation_name :: :"db.operation.name" + def db_operation_name do + :"db.operation.name" + end + + @doc """ + The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. + + ### Notes + + Query parameters should only be captured when `db.query.text` is parameterized with placeholders. + If a parameter has no name and instead is referenced only by index, then `` **SHOULD** be the 0-based index. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_query_parameter() + :"db.query.parameter" + """ + @spec db_query_parameter :: :"db.query.parameter" + def db_query_parameter do + :"db.query.parameter" + end + + @doc """ + The database query being executed. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_query_text() + :"db.query.text" + """ + @spec db_query_text :: :"db.query.text" + def db_query_text do + :"db.query.text" + end + + @deprecated """ + Replaced by `db.namespace`. + """ + + @spec db_redis_databaseindex :: :"db.redis.database_index" + def db_redis_databaseindex do + :"db.redis.database_index" + end + + @deprecated """ + Replaced by `db.collection.name`. + """ + + @spec db_sql_table :: :"db.sql.table" + def db_sql_table do + :"db.sql.table" + end + + @deprecated """ + Replaced by `db.query.text`. + """ + + @spec db_statement :: :"db.statement" + def db_statement do + :"db.statement" + end + + @typedoc """ + The database management system (DBMS) product as identified by the client instrumentation. + + ### Options + * `:other_sql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes. + * `:mssql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server + * `:mssqlcompact` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact + * `:mysql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL + * `:oracle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database + * `:db2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 + * `:postgresql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL + * `:redshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift + * `:hive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive + * `:cloudscape` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape + * `:hsqldb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase + * `:progress` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database + * `:maxdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB + * `:hanadb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA + * `:ingres` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres + * `:firstsql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL + * `:edb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB + * `:cache` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché + * `:adabas` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) + * `:firebird` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird + * `:derby` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby + * `:filemaker` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker + * `:informix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix + * `:instantdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB + * `:interbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase + * `:mariadb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB + * `:netezza` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza + * `:pervasive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL + * `:pointbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase + * `:sqlite` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite + * `:sybase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase + * `:teradata` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata + * `:vertica` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica + * `:h2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 + * `:coldfusion` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ + * `:cassandra` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra + * `:hbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase + * `:mongodb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB + * `:redis` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis + * `:couchbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase + * `:couchdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB + * `:cosmosdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB + * `:dynamodb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB + * `:neo4j` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j + * `:geode` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode + * `:elasticsearch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch + * `:memcached` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached + * `:cockroachdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB + * `:opensearch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch + * `:clickhouse` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse + * `:spanner` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner + * `:trino` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino + + """ + @type db_system() :: + :other_sql + | :mssql + | :mssqlcompact + | :mysql + | :oracle + | :db2 + | :postgresql + | :redshift + | :hive + | :cloudscape + | :hsqldb + | :progress + | :maxdb + | :hanadb + | :ingres + | :firstsql + | :edb + | :cache + | :adabas + | :firebird + | :derby + | :filemaker + | :informix + | :instantdb + | :interbase + | :mariadb + | :netezza + | :pervasive + | :pointbase + | :sqlite + | :sybase + | :teradata + | :vertica + | :h2 + | :coldfusion + | :cassandra + | :hbase + | :mongodb + | :redis + | :couchbase + | :couchdb + | :cosmosdb + | :dynamodb + | :neo4j + | :geode + | :elasticsearch + | :memcached + | :cockroachdb + | :opensearch + | :clickhouse + | :spanner + | :trino + | atom() + + @doc """ + The database management system (DBMS) product as identified by the client instrumentation. + ### Notes + + The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system` is set to `postgresql` based on the instrumentation's best knowledge. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system(:other_sql) + :other_sql + + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system(:custom_value) + :custom_value + """ + @spec db_system(db_system()) :: + :other_sql + | :mssql + | :mssqlcompact + | :mysql + | :oracle + | :db2 + | :postgresql + | :redshift + | :hive + | :cloudscape + | :hsqldb + | :progress + | :maxdb + | :hanadb + | :ingres + | :firstsql + | :edb + | :cache + | :adabas + | :firebird + | :derby + | :filemaker + | :informix + | :instantdb + | :interbase + | :mariadb + | :netezza + | :pervasive + | :pointbase + | :sqlite + | :sybase + | :teradata + | :vertica + | :h2 + | :coldfusion + | :cassandra + | :hbase + | :mongodb + | :redis + | :couchbase + | :couchdb + | :cosmosdb + | :dynamodb + | :neo4j + | :geode + | :elasticsearch + | :memcached + | :cockroachdb + | :opensearch + | :clickhouse + | :spanner + | :trino + | atom() + def db_system(option) do + :"db.system" + + case option do + :other_sql -> :other_sql + :mssql -> :mssql + :mssqlcompact -> :mssqlcompact + :mysql -> :mysql + :oracle -> :oracle + :db2 -> :db2 + :postgresql -> :postgresql + :redshift -> :redshift + :hive -> :hive + :cloudscape -> :cloudscape + :hsqldb -> :hsqldb + :progress -> :progress + :maxdb -> :maxdb + :hanadb -> :hanadb + :ingres -> :ingres + :firstsql -> :firstsql + :edb -> :edb + :cache -> :cache + :adabas -> :adabas + :firebird -> :firebird + :derby -> :derby + :filemaker -> :filemaker + :informix -> :informix + :instantdb -> :instantdb + :interbase -> :interbase + :mariadb -> :mariadb + :netezza -> :netezza + :pervasive -> :pervasive + :pointbase -> :pointbase + :sqlite -> :sqlite + :sybase -> :sybase + :teradata -> :teradata + :vertica -> :vertica + :h2 -> :h2 + :coldfusion -> :coldfusion + :cassandra -> :cassandra + :hbase -> :hbase + :mongodb -> :mongodb + :redis -> :redis + :couchbase -> :couchbase + :couchdb -> :couchdb + :cosmosdb -> :cosmosdb + :dynamodb -> :dynamodb + :neo4j -> :neo4j + :geode -> :geode + :elasticsearch -> :elasticsearch + :memcached -> :memcached + :cockroachdb -> :cockroachdb + :opensearch -> :opensearch + :clickhouse -> :clickhouse + :spanner -> :spanner + :trino -> :trino + _ -> option + end + end + + @deprecated """ + No replacement at this time. + """ + + @spec db_user :: :"db.user" + def db_user do + :"db.user" + end + + @deprecated """ + Replaced by `db.client.connections.pool.name`. + """ + + @spec pool_name :: :"pool.name" + def pool_name do + :"pool.name" + end + + @typedoc """ + Deprecated, use `db.client.connections.state` instead. + + ### Options + * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type state() :: :idle | :used | atom() + + @deprecated """ + Replaced by `db.client.connections.state`. + """ + + @spec state(state()) :: :idle | :used | atom() + def state(option) do + :state + + case option do + :idle -> :idle + :used -> :used + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex new file mode 100644 index 00000000..eff82505 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex @@ -0,0 +1,29 @@ +defmodule OpenTelemetry.SemanticConventions.DeploymentAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Deployment attributes. + """ + + @doc """ + Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). + + ### Notes + + `deployment.environment` 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=production` + * `service.name=frontend`, `deployment.environment=staging`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DeploymentAttributes.deployment_environment() + :"deployment.environment" + """ + @spec deployment_environment :: :"deployment.environment" + def deployment_environment do + :"deployment.environment" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex new file mode 100644 index 00000000..773a1331 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex @@ -0,0 +1,35 @@ +defmodule OpenTelemetry.SemanticConventions.DestinationAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Destination attributes. + """ + + @doc """ + Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Notes + + 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. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DestinationAttributes.destination_address() + :"destination.address" + """ + @spec destination_address :: :"destination.address" + def destination_address do + :"destination.address" + end + + @doc """ + Destination port number + + + ### Example + iex> OpenTelemetry.SemanticConventions.DestinationAttributes.destination_port() + :"destination.port" + """ + @spec destination_port :: :"destination.port" + def destination_port do + :"destination.port" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/device_attributes.ex new file mode 100644 index 00000000..31ceeb42 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/device_attributes.ex @@ -0,0 +1,74 @@ +defmodule OpenTelemetry.SemanticConventions.DeviceAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Device attributes. + """ + + @doc """ + A unique identifier representing the device + + ### Notes + + The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST** **NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_id() + :"device.id" + """ + @spec device_id :: :"device.id" + def device_id do + :"device.id" + end + + @doc """ + The name of the device manufacturer + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_manufacturer() + :"device.manufacturer" + """ + @spec device_manufacturer :: :"device.manufacturer" + def device_manufacturer do + :"device.manufacturer" + end + + @doc """ + The model identifier for the device + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_model_identifier() + :"device.model.identifier" + """ + @spec device_model_identifier :: :"device.model.identifier" + def device_model_identifier do + :"device.model.identifier" + end + + @doc """ + The marketing name for the device model + + ### Notes + + It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_model_name() + :"device.model.name" + """ + @spec device_model_name :: :"device.model.name" + def device_model_name do + :"device.model.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex new file mode 100644 index 00000000..5ccf1fd9 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex @@ -0,0 +1,38 @@ +defmodule OpenTelemetry.SemanticConventions.DiskAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Disk attributes. + """ + + @typedoc """ + The disk IO operation direction. + + ### Options + * `:read` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:write` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type disk_io_direction() :: :read | :write | atom() + + @doc """ + The disk IO operation direction. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction(:read) + :read + + iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction(:custom_value) + :custom_value + """ + @spec disk_io_direction(disk_io_direction()) :: :read | :write | atom() + def disk_io_direction(option) do + :"disk.io.direction" + + case option do + :read -> :read + :write -> :write + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex new file mode 100644 index 00000000..fd55aa50 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex @@ -0,0 +1,22 @@ +defmodule OpenTelemetry.SemanticConventions.DnsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Dns attributes. + """ + + @doc """ + The name being queried. + ### Notes + + 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. + + + ### Example + iex> OpenTelemetry.SemanticConventions.DnsAttributes.dns_question_name() + :"dns.question.name" + """ + @spec dns_question_name :: :"dns.question.name" + def dns_question_name do + :"dns.question.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex new file mode 100644 index 00000000..d363cff4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex @@ -0,0 +1,47 @@ +defmodule OpenTelemetry.SemanticConventions.EnduserAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Enduser attributes. + """ + + @doc """ + Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.EnduserAttributes.enduser_id() + :"enduser.id" + """ + @spec enduser_id :: :"enduser.id" + def enduser_id do + :"enduser.id" + end + + @doc """ + Actual/assumed role the client is making the request under extracted from token or application security context. + + + ### Example + iex> OpenTelemetry.SemanticConventions.EnduserAttributes.enduser_role() + :"enduser.role" + """ + @spec enduser_role :: :"enduser.role" + def enduser_role do + :"enduser.role" + end + + @doc """ + Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.EnduserAttributes.enduser_scope() + :"enduser.scope" + """ + @spec enduser_scope :: :"enduser.scope" + def enduser_scope do + :"enduser.scope" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex new file mode 100644 index 00000000..126a2505 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -0,0 +1,62 @@ +defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Error attributes. + """ + + @type other() :: :_OTHER + + @typedoc """ + Describes a class of error the operation ended with. + + + ### Options + * `:other` - A fallback error value to be used when the instrumentation doesn't define a custom value. + + + """ + @type error_type() :: other() | atom() + + @doc """ + Describes a class of error the operation ended with. + + ### Notes + + The `error.type` **SHOULD** be predictable, and **SHOULD** have low cardinality. + + When `error.type` is set to a type (e.g., an exception type), its + canonical class name identifying the type within the artifact **SHOULD** be used. + + Instrumentations **SHOULD** document the list of errors they report. + + The cardinality of `error.type` within one instrumentation library **SHOULD** be low. + Telemetry consumers that aggregate data from multiple instrumentation libraries and applications + should be prepared for `error.type` to have high cardinality at query time when no + additional filters are applied. + + If the operation has completed successfully, instrumentations **SHOULD** **NOT** set `error.type`. + + If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes), + it's RECOMMENDED to: + + * Use a domain-specific attribute + * Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type(:other) + :_OTHER + + iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type(:custom_value) + :custom_value + """ + @spec error_type(error_type()) :: other() | atom() + def error_type(option) do + :"error.type" + + case option do + :other -> :_OTHER + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/event_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/event_attributes.ex new file mode 100644 index 00000000..3b49a38f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/event_attributes.ex @@ -0,0 +1,23 @@ +defmodule OpenTelemetry.SemanticConventions.EventAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Event attributes. + """ + + @doc """ + Identifies the class / type of event. + + ### Notes + + Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.33.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes. + + + ### Example + iex> OpenTelemetry.SemanticConventions.EventAttributes.event_name() + :"event.name" + """ + @spec event_name :: :"event.name" + def event_name do + :"event.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex new file mode 100644 index 00000000..cf64d906 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex @@ -0,0 +1,78 @@ +defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Exception attributes. + """ + + @doc """ + SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. + + ### Notes + + An exception is considered to have escaped (or left) the scope of a span, + if that span is ended while the exception is still logically "in flight". + This may be actually "in flight" in some languages (e.g. if the exception + is passed to a Context manager's `__exit__` method in Python) but will + usually be caught at the point of recording the exception in most languages. + + It is usually not possible to determine at the point where an exception is thrown + whether it will escape the scope of a span. + However, it is trivial to know that an exception + will escape, if one checks for an active exception just before ending the span, + as done in the [example for recording span exceptions](https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#recording-an-exception). + + It follows that an exception may still escape the scope of the span + even if the `exception.escaped` attribute was not set or set to false, + since the event might have been recorded at a time where it was not + clear whether the exception will escape. + + ### Example + iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_escaped() + :"exception.escaped" + """ + @spec exception_escaped :: :"exception.escaped" + def exception_escaped do + :"exception.escaped" + end + + @doc """ + The exception message. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_message() + :"exception.message" + """ + @spec exception_message :: :"exception.message" + def exception_message do + :"exception.message" + end + + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_stacktrace() + :"exception.stacktrace" + """ + @spec exception_stacktrace :: :"exception.stacktrace" + def exception_stacktrace do + :"exception.stacktrace" + end + + @doc """ + The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_type() + :"exception.type" + """ + @spec exception_type :: :"exception.type" + def exception_type do + :"exception.type" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex new file mode 100644 index 00000000..6a7d508f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex @@ -0,0 +1,346 @@ +defmodule OpenTelemetry.SemanticConventions.FaasAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Faas attributes. + """ + + @doc """ + A boolean that is true if the serverless function is executed for the first time (aka cold-start). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_coldstart() + :"faas.coldstart" + """ + @spec faas_coldstart :: :"faas.coldstart" + def faas_coldstart do + :"faas.coldstart" + end + + @doc """ + A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_cron() + :"faas.cron" + """ + @spec faas_cron :: :"faas.cron" + def faas_cron do + :"faas.cron" + end + + @doc """ + 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. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_collection() + :"faas.document.collection" + """ + @spec faas_document_collection :: :"faas.document.collection" + def faas_document_collection do + :"faas.document.collection" + end + + @doc """ + 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. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_name() + :"faas.document.name" + """ + @spec faas_document_name :: :"faas.document.name" + def faas_document_name do + :"faas.document.name" + end + + @typedoc """ + Describes the type of the operation that was performed on the data. + + ### Options + * `:insert` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created. + * `:edit` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified. + * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted. + + """ + @type faas_document_operation() :: :insert | :edit | :delete | atom() + + @doc """ + Describes the type of the operation that was performed on the data. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation(:insert) + :insert + + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation(:custom_value) + :custom_value + """ + @spec faas_document_operation(faas_document_operation()) :: :insert | :edit | :delete | atom() + def faas_document_operation(option) do + :"faas.document.operation" + + case option do + :insert -> :insert + :edit -> :edit + :delete -> :delete + _ -> option + end + end + + @doc """ + 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). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_time() + :"faas.document.time" + """ + @spec faas_document_time :: :"faas.document.time" + def faas_document_time do + :"faas.document.time" + end + + @doc """ + The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. + + ### Notes + + * **AWS Lambda:** Use the (full) log stream name. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_instance() + :"faas.instance" + """ + @spec faas_instance :: :"faas.instance" + def faas_instance do + :"faas.instance" + end + + @doc """ + The invocation ID of the current function invocation. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invocationid() + :"faas.invocation_id" + """ + @spec faas_invocationid :: :"faas.invocation_id" + def faas_invocationid do + :"faas.invocation_id" + end + + @doc """ + The name of the invoked function. + + ### Notes + + SHOULD be equal to the `faas.name` resource attribute of the invoked function. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedname() + :"faas.invoked_name" + """ + @spec faas_invokedname :: :"faas.invoked_name" + def faas_invokedname do + :"faas.invoked_name" + end + + @typedoc """ + The cloud provider of the invoked function. + + + ### Options + * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud + * `:aws` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services + * `:azure` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure + * `:gcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform + * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud + + """ + @type faas_invokedprovider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() + + @doc """ + The cloud provider of the invoked function. + + ### Notes + + SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider(:alibaba_cloud) + :alibaba_cloud + + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider(:custom_value) + :custom_value + """ + @spec faas_invokedprovider(faas_invokedprovider()) :: + :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() + def faas_invokedprovider(option) do + :"faas.invoked_provider" + + case option do + :alibaba_cloud -> :alibaba_cloud + :aws -> :aws + :azure -> :azure + :gcp -> :gcp + :tencent_cloud -> :tencent_cloud + _ -> option + end + end + + @doc """ + The cloud region of the invoked function. + + ### Notes + + SHOULD be equal to the `cloud.region` resource attribute of the invoked function. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedregion() + :"faas.invoked_region" + """ + @spec faas_invokedregion :: :"faas.invoked_region" + def faas_invokedregion do + :"faas.invoked_region" + end + + @doc """ + The amount of memory available to the serverless function converted to Bytes. + + ### Notes + + 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). + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_maxmemory() + :"faas.max_memory" + """ + @spec faas_maxmemory :: :"faas.max_memory" + def faas_maxmemory do + :"faas.max_memory" + end + + @doc """ + The name of the single function that this runtime instance executes. + + ### Notes + + 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`](/docs/general/attributes.md#source-code-attributes) + span attributes). + + 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). + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_name() + :"faas.name" + """ + @spec faas_name :: :"faas.name" + def faas_name do + :"faas.name" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_time() + :"faas.time" + """ + @spec faas_time :: :"faas.time" + def faas_time do + :"faas.time" + end + + @typedoc """ + Type of the trigger which caused this function invocation. + + + ### Options + * `:datasource` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write + * `:http` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request + * `:pubsub` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system + * `:timer` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly + * `:other` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply + + """ + @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other | atom() + + @doc """ + Type of the trigger which caused this function invocation. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger(:datasource) + :datasource + + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger(:custom_value) + :custom_value + """ + @spec faas_trigger(faas_trigger()) :: :datasource | :http | :pubsub | :timer | :other | atom() + def faas_trigger(option) do + :"faas.trigger" + + case option do + :datasource -> :datasource + :http -> :http + :pubsub -> :pubsub + :timer -> :timer + :other -> :other + _ -> option + end + end + + @doc """ + The immutable version of the function being executed. + ### Notes + + Depending on the cloud provider and platform, use: + + * **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. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_version() + :"faas.version" + """ + @spec faas_version :: :"faas.version" + def faas_version do + :"faas.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex new file mode 100644 index 00000000..4cbd804b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex @@ -0,0 +1,55 @@ +defmodule OpenTelemetry.SemanticConventions.FeatureFlagAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Feature_Flag attributes. + """ + + @doc """ + The unique identifier of the feature flag. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FeatureFlagAttributes.featureflag_key() + :"feature_flag.key" + """ + @spec featureflag_key :: :"feature_flag.key" + def featureflag_key do + :"feature_flag.key" + end + + @doc """ + The name of the service provider that performs the flag evaluation. + + + ### Example + iex> OpenTelemetry.SemanticConventions.FeatureFlagAttributes.featureflag_providername() + :"feature_flag.provider_name" + """ + @spec featureflag_providername :: :"feature_flag.provider_name" + def featureflag_providername do + :"feature_flag.provider_name" + end + + @doc """ + SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. + + ### Notes + + 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`. + + A stringified version of the value can be used in situations where a + semantic identifier is unavailable. String representation of the value + should be determined by the implementer. + + ### Example + iex> OpenTelemetry.SemanticConventions.FeatureFlagAttributes.featureflag_variant() + :"feature_flag.variant" + """ + @spec featureflag_variant :: :"feature_flag.variant" + def featureflag_variant do + :"feature_flag.variant" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/file_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/file_attributes.ex new file mode 100644 index 00000000..84e9962c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/file_attributes.ex @@ -0,0 +1,79 @@ +defmodule OpenTelemetry.SemanticConventions.FileAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for File attributes. + """ + + @doc """ + Directory where the file is located. It should include the drive letter, when appropriate. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FileAttributes.file_directory() + :"file.directory" + """ + @spec file_directory :: :"file.directory" + def file_directory do + :"file.directory" + end + + @doc """ + File extension, excluding the leading dot. + + ### Notes + + When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). + + + ### Example + iex> OpenTelemetry.SemanticConventions.FileAttributes.file_extension() + :"file.extension" + """ + @spec file_extension :: :"file.extension" + def file_extension do + :"file.extension" + end + + @doc """ + Name of the file including the extension, without the directory. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FileAttributes.file_name() + :"file.name" + """ + @spec file_name :: :"file.name" + def file_name do + :"file.name" + end + + @doc """ + Full path to the file, including the file name. It should include the drive letter, when appropriate. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FileAttributes.file_path() + :"file.path" + """ + @spec file_path :: :"file.path" + def file_path do + :"file.path" + end + + @doc """ + File size in bytes. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.FileAttributes.file_size() + :"file.size" + """ + @spec file_size :: :"file.size" + def file_size do + :"file.size" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex new file mode 100644 index 00000000..080af736 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex @@ -0,0 +1,62 @@ +defmodule OpenTelemetry.SemanticConventions.GcpAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Gcp attributes. + """ + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_cloudrun_job_execution() + :"gcp.cloud_run.job.execution" + """ + @spec gcp_cloudrun_job_execution :: :"gcp.cloud_run.job.execution" + def gcp_cloudrun_job_execution do + :"gcp.cloud_run.job.execution" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_cloudrun_job_taskindex() + :"gcp.cloud_run.job.task_index" + """ + @spec gcp_cloudrun_job_taskindex :: :"gcp.cloud_run.job.task_index" + def gcp_cloudrun_job_taskindex do + :"gcp.cloud_run.job.task_index" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_gce_instance_hostname() + :"gcp.gce.instance.hostname" + """ + @spec gcp_gce_instance_hostname :: :"gcp.gce.instance.hostname" + def gcp_gce_instance_hostname do + :"gcp.gce.instance.hostname" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_gce_instance_name() + :"gcp.gce.instance.name" + """ + @spec gcp_gce_instance_name :: :"gcp.gce.instance.name" + def gcp_gce_instance_name do + :"gcp.gce.instance.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex new file mode 100644 index 00000000..0b174c5e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex @@ -0,0 +1,186 @@ +defmodule OpenTelemetry.SemanticConventions.GenAiAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Gen_Ai attributes. + """ + + @doc """ + The full response received from the LLM. + ### Notes + + It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_completion() + :"gen_ai.completion" + """ + @spec genai_completion :: :"gen_ai.completion" + def genai_completion do + :"gen_ai.completion" + end + + @doc """ + The full prompt sent to an LLM. + ### Notes + + It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_prompt() + :"gen_ai.prompt" + """ + @spec genai_prompt :: :"gen_ai.prompt" + def genai_prompt do + :"gen_ai.prompt" + end + + @doc """ + The maximum number of tokens the LLM generates for a request. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_maxtokens() + :"gen_ai.request.max_tokens" + """ + @spec genai_request_maxtokens :: :"gen_ai.request.max_tokens" + def genai_request_maxtokens do + :"gen_ai.request.max_tokens" + end + + @doc """ + The name of the LLM a request is being made to. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_model() + :"gen_ai.request.model" + """ + @spec genai_request_model :: :"gen_ai.request.model" + def genai_request_model do + :"gen_ai.request.model" + end + + @doc """ + The temperature setting for the LLM request. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_temperature() + :"gen_ai.request.temperature" + """ + @spec genai_request_temperature :: :"gen_ai.request.temperature" + def genai_request_temperature do + :"gen_ai.request.temperature" + end + + @doc """ + The top_p sampling setting for the LLM request. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_topp() + :"gen_ai.request.top_p" + """ + @spec genai_request_topp :: :"gen_ai.request.top_p" + def genai_request_topp do + :"gen_ai.request.top_p" + end + + @doc """ + Array of reasons the model stopped generating tokens, corresponding to each generation received. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_response_finishreasons() + :"gen_ai.response.finish_reasons" + """ + @spec genai_response_finishreasons :: :"gen_ai.response.finish_reasons" + def genai_response_finishreasons do + :"gen_ai.response.finish_reasons" + end + + @doc """ + The unique identifier for the completion. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_response_id() + :"gen_ai.response.id" + """ + @spec genai_response_id :: :"gen_ai.response.id" + def genai_response_id do + :"gen_ai.response.id" + end + + @doc """ + The name of the LLM a response was generated from. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_response_model() + :"gen_ai.response.model" + """ + @spec genai_response_model :: :"gen_ai.response.model" + def genai_response_model do + :"gen_ai.response.model" + end + + @typedoc """ + The Generative AI product as identified by the client instrumentation. + + ### Options + * `:openai` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenAI + + """ + @type genai_system() :: :openai | atom() + + @doc """ + The Generative AI product as identified by the client instrumentation. + ### Notes + + The actual GenAI product may differ from the one identified by the client. For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` is set to `openai` based on the instrumentation's best knowledge. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system(:openai) + :openai + + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system(:custom_value) + :custom_value + """ + @spec genai_system(genai_system()) :: :openai | atom() + def genai_system(option) do + :"gen_ai.system" + + case option do + :openai -> :openai + _ -> option + end + end + + @doc """ + The number of tokens used in the LLM response (completion). + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_usage_completiontokens() + :"gen_ai.usage.completion_tokens" + """ + @spec genai_usage_completiontokens :: :"gen_ai.usage.completion_tokens" + def genai_usage_completiontokens do + :"gen_ai.usage.completion_tokens" + end + + @doc """ + The number of tokens used in the LLM prompt. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_usage_prompttokens() + :"gen_ai.usage.prompt_tokens" + """ + @spec genai_usage_prompttokens :: :"gen_ai.usage.prompt_tokens" + def genai_usage_prompttokens do + :"gen_ai.usage.prompt_tokens" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex new file mode 100644 index 00000000..65d31cbb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex @@ -0,0 +1,69 @@ +defmodule OpenTelemetry.SemanticConventions.GraphqlAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Graphql attributes. + """ + + @doc """ + The GraphQL document being executed. + ### Notes + + The value may be sanitized to exclude sensitive information. + + ### Example + iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_document() + :"graphql.document" + """ + @spec graphql_document :: :"graphql.document" + def graphql_document do + :"graphql.document" + end + + @doc """ + The name of the operation being executed. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_name() + :"graphql.operation.name" + """ + @spec graphql_operation_name :: :"graphql.operation.name" + def graphql_operation_name do + :"graphql.operation.name" + end + + @typedoc """ + The type of the operation being executed. + + ### Options + * `:query` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL query + * `:mutation` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL mutation + * `:subscription` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL subscription + + """ + @type graphql_operation_type() :: :query | :mutation | :subscription | atom() + + @doc """ + The type of the operation being executed. + + + ### Example + iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type(:query) + :query + + iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type(:custom_value) + :custom_value + """ + @spec graphql_operation_type(graphql_operation_type()) :: + :query | :mutation | :subscription | atom() + def graphql_operation_type(option) do + :"graphql.operation.type" + + case option do + :query -> :query + :mutation -> :mutation + :subscription -> :subscription + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex new file mode 100644 index 00000000..1fee849c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex @@ -0,0 +1,48 @@ +defmodule OpenTelemetry.SemanticConventions.HerokuAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Heroku attributes. + """ + + @doc """ + Unique identifier for the application + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HerokuAttributes.heroku_app_id() + :"heroku.app.id" + """ + @spec heroku_app_id :: :"heroku.app.id" + def heroku_app_id do + :"heroku.app.id" + end + + @doc """ + Commit hash for the current release + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HerokuAttributes.heroku_release_commit() + :"heroku.release.commit" + """ + @spec heroku_release_commit :: :"heroku.release.commit" + def heroku_release_commit do + :"heroku.release.commit" + end + + @doc """ + Time and date the release was created + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HerokuAttributes.heroku_release_creationtimestamp() + :"heroku.release.creation_timestamp" + """ + @spec heroku_release_creationtimestamp :: :"heroku.release.creation_timestamp" + def heroku_release_creationtimestamp do + :"heroku.release.creation_timestamp" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex new file mode 100644 index 00000000..4ff48878 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex @@ -0,0 +1,258 @@ +defmodule OpenTelemetry.SemanticConventions.HostAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Host attributes. + """ + + @typedoc """ + The CPU architecture the host system is running on. + + + ### Options + * `:amd64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 + * `:arm32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 + * `:arm64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 + * `:ia64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium + * `:ppc32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC + * `:ppc64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC + * `:s390x` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture + * `:x86` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 + + """ + @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() + + @doc """ + The CPU architecture the host system is running on. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch(:amd64) + :amd64 + + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch(:custom_value) + :custom_value + """ + @spec host_arch(host_arch()) :: + :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() + def host_arch(option) do + :"host.arch" + + case option do + :amd64 -> :amd64 + :arm32 -> :arm32 + :arm64 -> :arm64 + :ia64 -> :ia64 + :ppc32 -> :ppc32 + :ppc64 -> :ppc64 + :s390x -> :s390x + :x86 -> :x86 + _ -> option + end + end + + @doc """ + The amount of level 2 memory cache available to the processor (in Bytes). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_cache_l_2_size() + :"host.cpu.cache.l2.size" + """ + @spec host_cpu_cache_l_2_size :: :"host.cpu.cache.l2.size" + def host_cpu_cache_l_2_size do + :"host.cpu.cache.l2.size" + end + + @doc """ + Family or generation of the CPU. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_family() + :"host.cpu.family" + """ + @spec host_cpu_family :: :"host.cpu.family" + def host_cpu_family do + :"host.cpu.family" + end + + @doc """ + Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_model_id() + :"host.cpu.model.id" + """ + @spec host_cpu_model_id :: :"host.cpu.model.id" + def host_cpu_model_id do + :"host.cpu.model.id" + end + + @doc """ + Model designation of the processor. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_model_name() + :"host.cpu.model.name" + """ + @spec host_cpu_model_name :: :"host.cpu.model.name" + def host_cpu_model_name do + :"host.cpu.model.name" + end + + @doc """ + Stepping or core revisions. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_stepping() + :"host.cpu.stepping" + """ + @spec host_cpu_stepping :: :"host.cpu.stepping" + def host_cpu_stepping do + :"host.cpu.stepping" + end + + @doc """ + Processor manufacturer identifier. A maximum 12-character string. + + ### Notes + + [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 + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_vendor_id() + :"host.cpu.vendor.id" + """ + @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" + def host_cpu_vendor_id do + :"host.cpu.vendor.id" + end + + @doc """ + 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. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_id() + :"host.id" + """ + @spec host_id :: :"host.id" + def host_id do + :"host.id" + end + + @doc """ + VM image ID or host OS image ID. For Cloud, this value is from the provider. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_image_id() + :"host.image.id" + """ + @spec host_image_id :: :"host.image.id" + def host_image_id do + :"host.image.id" + end + + @doc """ + Name of the VM image or OS install the host was instantiated from. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_image_name() + :"host.image.name" + """ + @spec host_image_name :: :"host.image.name" + def host_image_name do + :"host.image.name" + end + + @doc """ + The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_image_version() + :"host.image.version" + """ + @spec host_image_version :: :"host.image.version" + def host_image_version do + :"host.image.version" + end + + @doc """ + Available IP addresses of the host, excluding loopback interfaces. + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_ip() + :"host.ip" + """ + @spec host_ip :: :"host.ip" + def host_ip do + :"host.ip" + end + + @doc """ + Available MAC addresses of the host, excluding loopback interfaces. + + ### Notes + + 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 + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_mac() + :"host.mac" + """ + @spec host_mac :: :"host.mac" + def host_mac do + :"host.mac" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_name() + :"host.name" + """ + @spec host_name :: :"host.name" + def host_name do + :"host.name" + end + + @doc """ + Type of host. For Cloud, this must be the machine type. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_type() + :"host.type" + """ + @spec host_type :: :"host.type" + def host_type do + :"host.type" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex new file mode 100644 index 00000000..6934e43c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -0,0 +1,463 @@ +defmodule OpenTelemetry.SemanticConventions.HttpAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Http attributes. + """ + + @deprecated """ + Replaced by `client.address`. + """ + + @spec http_clientip :: :"http.client_ip" + def http_clientip do + :"http.client_ip" + end + + @typedoc """ + State of the HTTP connection in the HTTP connection pool. + + ### Options + * `:active` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state. + * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state. + + """ + @type http_connection_state() :: :active | :idle | atom() + + @doc """ + State of the HTTP connection in the HTTP connection pool. + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state(:active) + :active + + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state(:custom_value) + :custom_value + """ + @spec http_connection_state(http_connection_state()) :: :active | :idle | atom() + def http_connection_state(option) do + :"http.connection.state" + + case option do + :active -> :active + :idle -> :idle + _ -> option + end + end + + @type http_1_0() :: :"1.0" + + @type http_1_1() :: :"1.1" + + @type http_2_0() :: :"2.0" + + @type http_3_0() :: :"3.0" + + @type spdy() :: :SPDY + + @type quic() :: :QUIC + + @typedoc """ + Deprecated, use `network.protocol.name` instead. + + ### Options + * `:http_1_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.0 + * `:http_1_1` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.1 + * `:http_2_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/2 + * `:http_3_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/3 + * `:spdy` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SPDY protocol. + * `:quic` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - QUIC protocol. + + """ + @type http_flavor() :: + http_1_0() | http_1_1() | http_2_0() | http_3_0() | spdy() | quic() | atom() + + @deprecated """ + Replaced by `network.protocol.name`. + """ + + @spec http_flavor(http_flavor()) :: + http_1_0() | http_1_1() | http_2_0() | http_3_0() | spdy() | quic() | atom() + def http_flavor(option) do + :"http.flavor" + + case option do + :http_1_0 -> :"1.0" + :http_1_1 -> :"1.1" + :http_2_0 -> :"2.0" + :http_3_0 -> :"3.0" + :spdy -> :SPDY + :quic -> :QUIC + _ -> option + end + end + + @deprecated """ + Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. + """ + + @spec http_host :: :"http.host" + def http_host do + :"http.host" + end + + @deprecated """ + Replaced by `http.request.method`. + """ + + @spec http_method :: :"http.method" + def http_method do + :"http.method" + end + + @doc """ + 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 + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_body_size() + :"http.request.body.size" + """ + @spec http_request_body_size :: :"http.request.body.size" + def http_request_body_size do + :"http.request.body.size" + end + + @doc """ + HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. + + ### Notes + + Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information. + The `User-Agent` header is already captured in the `user_agent.original` attribute. Users{"replace": " **MAY** "}explicitly configure instrumentations to capture them even though it is not recommended. + The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_header() + :"http.request.header" + """ + @spec http_request_header :: :"http.request.header" + def http_request_header do + :"http.request.header" + end + + @type connect() :: :CONNECT + + @type delete() :: :DELETE + + @type get() :: :GET + + @type head() :: :HEAD + + @type options() :: :OPTIONS + + @type patch() :: :PATCH + + @type post() :: :POST + + @type put() :: :PUT + + @type trace() :: :TRACE + + @type other() :: :_OTHER + + @typedoc """ + HTTP request method. + + ### Options + * `:connect` - CONNECT method. + * `:delete` - DELETE method. + * `:get` - GET method. + * `:head` - HEAD method. + * `:options` - OPTIONS method. + * `:patch` - PATCH method. + * `:post` - POST method. + * `:put` - PUT method. + * `:trace` - TRACE method. + * `:other` - Any HTTP method that the instrumentation has no prior knowledge of. + + """ + @type http_request_method() :: + connect() + | delete() + | get() + | head() + | options() + | patch() + | post() + | put() + | trace() + | other() + | atom() + + @doc """ + HTTP request method. + ### Notes + + HTTP request method value **SHOULD** be "known" to the instrumentation. + By default, this convention defines "known" methods as the ones listed in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods) + and the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html). + + If the HTTP request method is not known to instrumentation, it **MUST** set the `http.request.method` attribute to `_OTHER`. + + If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it **MUST** provide a way to override + the list of known HTTP methods. If this override is done via environment variable, then the environment variable **MUST** be named + OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods + (this list **MUST** be a full override of the default known method, it is not a list of known methods in addition to the defaults). + + HTTP method names are case-sensitive and `http.request.method` attribute value **MUST** match a known HTTP method name exactly. + Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. + Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value. + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method(:connect) + :CONNECT + + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method(:custom_value) + :custom_value + """ + @spec http_request_method(http_request_method()) :: + connect() + | delete() + | get() + | head() + | options() + | patch() + | post() + | put() + | trace() + | other() + | atom() + def http_request_method(option) do + :"http.request.method" + + case option do + :connect -> :CONNECT + :delete -> :DELETE + :get -> :GET + :head -> :HEAD + :options -> :OPTIONS + :patch -> :PATCH + :post -> :POST + :put -> :PUT + :trace -> :TRACE + :other -> :_OTHER + _ -> option + end + end + + @doc """ + Original HTTP method sent by the client in the request line. + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_methodoriginal() + :"http.request.method_original" + """ + @spec http_request_methodoriginal :: :"http.request.method_original" + def http_request_methodoriginal do + :"http.request.method_original" + end + + @doc """ + The ordinal number of request resending attempt (for any reason, including redirects). + + ### Notes + + The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other). + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_resendcount() + :"http.request.resend_count" + """ + @spec http_request_resendcount :: :"http.request.resend_count" + def http_request_resendcount do + :"http.request.resend_count" + end + + @doc """ + 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. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_size() + :"http.request.size" + """ + @spec http_request_size :: :"http.request.size" + def http_request_size do + :"http.request.size" + end + + @deprecated """ + Replaced by `http.request.header.content-length`. + """ + + @spec http_requestcontentlength :: :"http.request_content_length" + def http_requestcontentlength do + :"http.request_content_length" + end + + @deprecated """ + Replaced by `http.request.body.size`. + """ + + @spec http_requestcontentlengthuncompressed :: :"http.request_content_length_uncompressed" + def http_requestcontentlengthuncompressed do + :"http.request_content_length_uncompressed" + end + + @doc """ + 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. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_body_size() + :"http.response.body.size" + """ + @spec http_response_body_size :: :"http.response.body.size" + def http_response_body_size do + :"http.response.body.size" + end + + @doc """ + HTTP response headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. + + ### Notes + + Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information. + Users{"replace": " **MAY** "}explicitly configure instrumentations to capture them even though it is not recommended. + The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_header() + :"http.response.header" + """ + @spec http_response_header :: :"http.response.header" + def http_response_header do + :"http.response.header" + end + + @doc """ + 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. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_size() + :"http.response.size" + """ + @spec http_response_size :: :"http.response.size" + def http_response_size do + :"http.response.size" + end + + @doc """ + [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_statuscode() + :"http.response.status_code" + """ + @spec http_response_statuscode :: :"http.response.status_code" + def http_response_statuscode do + :"http.response.status_code" + end + + @deprecated """ + Replaced by `http.response.header.content-length`. + """ + + @spec http_responsecontentlength :: :"http.response_content_length" + def http_responsecontentlength do + :"http.response_content_length" + end + + @deprecated """ + Replace by `http.response.body.size`. + """ + + @spec http_responsecontentlengthuncompressed :: :"http.response_content_length_uncompressed" + def http_responsecontentlengthuncompressed do + :"http.response_content_length_uncompressed" + end + + @doc """ + The matched route, that is, the path template in the format used by the respective server framework. + + ### Notes + + MUST **NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. + **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one. + + + ### Example + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_route() + :"http.route" + """ + @spec http_route :: :"http.route" + def http_route do + :"http.route" + end + + @deprecated """ + Replaced by `url.scheme` instead. + """ + + @spec http_scheme :: :"http.scheme" + def http_scheme do + :"http.scheme" + end + + @deprecated """ + Replaced by `server.address`. + """ + + @spec http_servername :: :"http.server_name" + def http_servername do + :"http.server_name" + end + + @deprecated """ + Replaced by `http.response.status_code`. + """ + + @spec http_statuscode :: :"http.status_code" + def http_statuscode do + :"http.status_code" + end + + @deprecated """ + Split to `url.path` and `url.query. + """ + + @spec http_target :: :"http.target" + def http_target do + :"http.target" + end + + @deprecated """ + Replaced by `url.full`. + """ + + @spec http_url :: :"http.url" + def http_url do + :"http.url" + end + + @deprecated """ + Replaced by `user_agent.original`. + """ + + @spec http_useragent :: :"http.user_agent" + def http_useragent do + :"http.user_agent" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex new file mode 100644 index 00000000..c6819dfc --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex @@ -0,0 +1,376 @@ +defmodule OpenTelemetry.SemanticConventions.K8SAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for K8s attributes. + """ + + @doc """ + The name of the cluster. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cluster_name() + :"k8s.cluster.name" + """ + @spec k_8_s_cluster_name :: :"k8s.cluster.name" + def k_8_s_cluster_name do + :"k8s.cluster.name" + end + + @doc """ + A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. + + ### Notes + + K8s doesn't have support for obtaining a cluster ID. If this is ever + added, we will recommend collecting the `k8s.cluster.uid` through the + official APIs. In the meantime, we are able to use the `uid` of the + `kube-system` namespace as a proxy for cluster ID. Read on for the + rationale. + + Every object created in a K8s cluster is assigned a distinct UID. The + `kube-system` namespace is used by Kubernetes itself and will exist + for the lifetime of the cluster. Using the `uid` of the `kube-system` + namespace is a reasonable proxy for the K8s ClusterID as it will only + change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are + UUIDs as standardized by + [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). + Which states: + + > If generated according to one of the mechanisms defined in Rec. + ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be + different from all other UUIDs generated before 3603 A.D., or is + extremely likely to be different (depending on the mechanism chosen). + + Therefore, UIDs between clusters should be extremely unlikely to + conflict. + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cluster_uid() + :"k8s.cluster.uid" + """ + @spec k_8_s_cluster_uid :: :"k8s.cluster.uid" + def k_8_s_cluster_uid do + :"k8s.cluster.uid" + end + + @doc """ + The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_container_name() + :"k8s.container.name" + """ + @spec k_8_s_container_name :: :"k8s.container.name" + def k_8_s_container_name do + :"k8s.container.name" + end + + @doc """ + Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_container_restartcount() + :"k8s.container.restart_count" + """ + @spec k_8_s_container_restartcount :: :"k8s.container.restart_count" + def k_8_s_container_restartcount do + :"k8s.container.restart_count" + end + + @doc """ + Last terminated reason of the Container. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_container_status_lastterminatedreason() + :"k8s.container.status.last_terminated_reason" + """ + @spec k_8_s_container_status_lastterminatedreason :: + :"k8s.container.status.last_terminated_reason" + def k_8_s_container_status_lastterminatedreason do + :"k8s.container.status.last_terminated_reason" + end + + @doc """ + The name of the CronJob. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cronjob_name() + :"k8s.cronjob.name" + """ + @spec k_8_s_cronjob_name :: :"k8s.cronjob.name" + def k_8_s_cronjob_name do + :"k8s.cronjob.name" + end + + @doc """ + The UID of the CronJob. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cronjob_uid() + :"k8s.cronjob.uid" + """ + @spec k_8_s_cronjob_uid :: :"k8s.cronjob.uid" + def k_8_s_cronjob_uid do + :"k8s.cronjob.uid" + end + + @doc """ + The name of the DaemonSet. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_daemonset_name() + :"k8s.daemonset.name" + """ + @spec k_8_s_daemonset_name :: :"k8s.daemonset.name" + def k_8_s_daemonset_name do + :"k8s.daemonset.name" + end + + @doc """ + The UID of the DaemonSet. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_daemonset_uid() + :"k8s.daemonset.uid" + """ + @spec k_8_s_daemonset_uid :: :"k8s.daemonset.uid" + def k_8_s_daemonset_uid do + :"k8s.daemonset.uid" + end + + @doc """ + The name of the Deployment. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_deployment_name() + :"k8s.deployment.name" + """ + @spec k_8_s_deployment_name :: :"k8s.deployment.name" + def k_8_s_deployment_name do + :"k8s.deployment.name" + end + + @doc """ + The UID of the Deployment. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_deployment_uid() + :"k8s.deployment.uid" + """ + @spec k_8_s_deployment_uid :: :"k8s.deployment.uid" + def k_8_s_deployment_uid do + :"k8s.deployment.uid" + end + + @doc """ + The name of the Job. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_job_name() + :"k8s.job.name" + """ + @spec k_8_s_job_name :: :"k8s.job.name" + def k_8_s_job_name do + :"k8s.job.name" + end + + @doc """ + The UID of the Job. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_job_uid() + :"k8s.job.uid" + """ + @spec k_8_s_job_uid :: :"k8s.job.uid" + def k_8_s_job_uid do + :"k8s.job.uid" + end + + @doc """ + The name of the namespace that the pod is running in. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_namespace_name() + :"k8s.namespace.name" + """ + @spec k_8_s_namespace_name :: :"k8s.namespace.name" + def k_8_s_namespace_name do + :"k8s.namespace.name" + end + + @doc """ + The name of the Node. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_node_name() + :"k8s.node.name" + """ + @spec k_8_s_node_name :: :"k8s.node.name" + def k_8_s_node_name do + :"k8s.node.name" + end + + @doc """ + The UID of the Node. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_node_uid() + :"k8s.node.uid" + """ + @spec k_8_s_node_uid :: :"k8s.node.uid" + def k_8_s_node_uid do + :"k8s.node.uid" + end + + @doc """ + The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_annotation() + :"k8s.pod.annotation" + """ + @spec k_8_s_pod_annotation :: :"k8s.pod.annotation" + def k_8_s_pod_annotation do + :"k8s.pod.annotation" + end + + @doc """ + The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_label() + :"k8s.pod.label" + """ + @spec k_8_s_pod_label :: :"k8s.pod.label" + def k_8_s_pod_label do + :"k8s.pod.label" + end + + @deprecated """ + Replaced by `k8s.pod.label`. + """ + + @spec k_8_s_pod_labels :: :"k8s.pod.labels" + def k_8_s_pod_labels do + :"k8s.pod.labels" + end + + @doc """ + The name of the Pod. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_name() + :"k8s.pod.name" + """ + @spec k_8_s_pod_name :: :"k8s.pod.name" + def k_8_s_pod_name do + :"k8s.pod.name" + end + + @doc """ + The UID of the Pod. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_uid() + :"k8s.pod.uid" + """ + @spec k_8_s_pod_uid :: :"k8s.pod.uid" + def k_8_s_pod_uid do + :"k8s.pod.uid" + end + + @doc """ + The name of the ReplicaSet. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_replicaset_name() + :"k8s.replicaset.name" + """ + @spec k_8_s_replicaset_name :: :"k8s.replicaset.name" + def k_8_s_replicaset_name do + :"k8s.replicaset.name" + end + + @doc """ + The UID of the ReplicaSet. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_replicaset_uid() + :"k8s.replicaset.uid" + """ + @spec k_8_s_replicaset_uid :: :"k8s.replicaset.uid" + def k_8_s_replicaset_uid do + :"k8s.replicaset.uid" + end + + @doc """ + The name of the StatefulSet. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_statefulset_name() + :"k8s.statefulset.name" + """ + @spec k_8_s_statefulset_name :: :"k8s.statefulset.name" + def k_8_s_statefulset_name do + :"k8s.statefulset.name" + end + + @doc """ + The UID of the StatefulSet. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_statefulset_uid() + :"k8s.statefulset.uid" + """ + @spec k_8_s_statefulset_uid :: :"k8s.statefulset.uid" + def k_8_s_statefulset_uid do + :"k8s.statefulset.uid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex new file mode 100644 index 00000000..dcec0340 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex @@ -0,0 +1,114 @@ +defmodule OpenTelemetry.SemanticConventions.LogAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Log attributes. + """ + + @doc """ + The basename of the file. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_name() + :"log.file.name" + """ + @spec log_file_name :: :"log.file.name" + def log_file_name do + :"log.file.name" + end + + @doc """ + The basename of the file, with symlinks resolved. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_nameresolved() + :"log.file.name_resolved" + """ + @spec log_file_nameresolved :: :"log.file.name_resolved" + def log_file_nameresolved do + :"log.file.name_resolved" + end + + @doc """ + The full path to the file. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_path() + :"log.file.path" + """ + @spec log_file_path :: :"log.file.path" + def log_file_path do + :"log.file.path" + end + + @doc """ + The full path to the file, with symlinks resolved. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_pathresolved() + :"log.file.path_resolved" + """ + @spec log_file_pathresolved :: :"log.file.path_resolved" + def log_file_pathresolved do + :"log.file.path_resolved" + end + + @typedoc """ + The stream associated with the log. See below for a list of well-known values. + + + ### Options + * `:stdout` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Logs from stdout stream + * `:stderr` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Events from stderr stream + + """ + @type log_iostream() :: :stdout | :stderr | atom() + + @doc """ + The stream associated with the log. See below for a list of well-known values. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream(:stdout) + :stdout + + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream(:custom_value) + :custom_value + """ + @spec log_iostream(log_iostream()) :: :stdout | :stderr | atom() + def log_iostream(option) do + :"log.iostream" + + case option do + :stdout -> :stdout + :stderr -> :stderr + _ -> option + end + end + + @doc """ + A unique identifier for the Log Record. + + ### Notes + + If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records **MUST** have different values. + The id{"replace": " **MAY** "}be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed. + + + ### Example + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_record_uid() + :"log.record.uid" + """ + @spec log_record_uid :: :"log.record.uid" + def log_record_uid do + :"log.record.uid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex new file mode 100644 index 00000000..16297026 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex @@ -0,0 +1,795 @@ +defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Messaging attributes. + """ + + @doc """ + The number of messages sent, received, or processed in the scope of the batching operation. + ### Notes + + Instrumentations **SHOULD** **NOT** set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations **SHOULD** use `messaging.batch.message_count` for batching APIs and **SHOULD** **NOT** use it for single-message APIs. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_batch_messagecount() + :"messaging.batch.message_count" + """ + @spec messaging_batch_messagecount :: :"messaging.batch.message_count" + def messaging_batch_messagecount do + :"messaging.batch.message_count" + end + + @doc """ + A unique identifier for the client that consumes or produces a message. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_client_id() + :"messaging.client.id" + """ + @spec messaging_client_id :: :"messaging.client.id" + def messaging_client_id do + :"messaging.client.id" + end + + @deprecated """ + Replaced by `messaging.client.id`. + """ + + @spec messaging_clientid :: :"messaging.client_id" + def messaging_clientid do + :"messaging.client_id" + end + + @doc """ + A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_anonymous() + :"messaging.destination.anonymous" + """ + @spec messaging_destination_anonymous :: :"messaging.destination.anonymous" + def messaging_destination_anonymous do + :"messaging.destination.anonymous" + end + + @doc """ + The message destination name + ### Notes + + Destination name **SHOULD** uniquely identify a specific queue, topic or other entity within the broker. If + the broker doesn't have such notion, the destination name **SHOULD** uniquely identify the broker. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_name() + :"messaging.destination.name" + """ + @spec messaging_destination_name :: :"messaging.destination.name" + def messaging_destination_name do + :"messaging.destination.name" + end + + @doc """ + The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_partition_id() + :"messaging.destination.partition.id" + """ + @spec messaging_destination_partition_id :: :"messaging.destination.partition.id" + def messaging_destination_partition_id do + :"messaging.destination.partition.id" + end + + @doc """ + Low cardinality representation of the messaging destination name + ### Notes + + Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_template() + :"messaging.destination.template" + """ + @spec messaging_destination_template :: :"messaging.destination.template" + def messaging_destination_template do + :"messaging.destination.template" + end + + @doc """ + A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_temporary() + :"messaging.destination.temporary" + """ + @spec messaging_destination_temporary :: :"messaging.destination.temporary" + def messaging_destination_temporary do + :"messaging.destination.temporary" + end + + @doc """ + A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destinationpublish_anonymous() + :"messaging.destination_publish.anonymous" + """ + @spec messaging_destinationpublish_anonymous :: :"messaging.destination_publish.anonymous" + def messaging_destinationpublish_anonymous do + :"messaging.destination_publish.anonymous" + end + + @doc """ + The name of the original destination the message was published to + ### Notes + + The name **SHOULD** uniquely identify a specific queue, topic, or other entity within the broker. If + the broker doesn't have such notion, the original destination name **SHOULD** uniquely identify the broker. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destinationpublish_name() + :"messaging.destination_publish.name" + """ + @spec messaging_destinationpublish_name :: :"messaging.destination_publish.name" + def messaging_destinationpublish_name do + :"messaging.destination_publish.name" + end + + @doc """ + The name of the consumer group the event consumer is associated with. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_eventhubs_consumer_group() + :"messaging.eventhubs.consumer.group" + """ + @spec messaging_eventhubs_consumer_group :: :"messaging.eventhubs.consumer.group" + def messaging_eventhubs_consumer_group do + :"messaging.eventhubs.consumer.group" + end + + @doc """ + The UTC epoch seconds at which the message has been accepted and stored in the entity. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_eventhubs_message_enqueuedtime() + :"messaging.eventhubs.message.enqueued_time" + """ + @spec messaging_eventhubs_message_enqueuedtime :: :"messaging.eventhubs.message.enqueued_time" + def messaging_eventhubs_message_enqueuedtime do + :"messaging.eventhubs.message.enqueued_time" + end + + @doc """ + The ack deadline in seconds set for the modify ack deadline request. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_ackdeadline() + :"messaging.gcp_pubsub.message.ack_deadline" + """ + @spec messaging_gcppubsub_message_ackdeadline :: :"messaging.gcp_pubsub.message.ack_deadline" + def messaging_gcppubsub_message_ackdeadline do + :"messaging.gcp_pubsub.message.ack_deadline" + end + + @doc """ + The ack id for a given message. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_ackid() + :"messaging.gcp_pubsub.message.ack_id" + """ + @spec messaging_gcppubsub_message_ackid :: :"messaging.gcp_pubsub.message.ack_id" + def messaging_gcppubsub_message_ackid do + :"messaging.gcp_pubsub.message.ack_id" + end + + @doc """ + The delivery attempt for a given message. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_deliveryattempt() + :"messaging.gcp_pubsub.message.delivery_attempt" + """ + @spec messaging_gcppubsub_message_deliveryattempt :: + :"messaging.gcp_pubsub.message.delivery_attempt" + def messaging_gcppubsub_message_deliveryattempt do + :"messaging.gcp_pubsub.message.delivery_attempt" + end + + @doc """ + The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_orderingkey() + :"messaging.gcp_pubsub.message.ordering_key" + """ + @spec messaging_gcppubsub_message_orderingkey :: :"messaging.gcp_pubsub.message.ordering_key" + def messaging_gcppubsub_message_orderingkey do + :"messaging.gcp_pubsub.message.ordering_key" + end + + @doc """ + Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_consumer_group() + :"messaging.kafka.consumer.group" + """ + @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer.group" + def messaging_kafka_consumer_group do + :"messaging.kafka.consumer.group" + end + + @deprecated """ + Replaced by `messaging.destination.partition.id`. + """ + + @spec messaging_kafka_destination_partition :: :"messaging.kafka.destination.partition" + def messaging_kafka_destination_partition do + :"messaging.kafka.destination.partition" + end + + @doc """ + Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute **MUST** **NOT** be set. + + ### Notes + + If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_message_key() + :"messaging.kafka.message.key" + """ + @spec messaging_kafka_message_key :: :"messaging.kafka.message.key" + def messaging_kafka_message_key do + :"messaging.kafka.message.key" + end + + @doc """ + The offset of a record in the corresponding Kafka partition. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_message_offset() + :"messaging.kafka.message.offset" + """ + @spec messaging_kafka_message_offset :: :"messaging.kafka.message.offset" + def messaging_kafka_message_offset do + :"messaging.kafka.message.offset" + end + + @doc """ + A boolean that is true if the message is a tombstone. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_message_tombstone() + :"messaging.kafka.message.tombstone" + """ + @spec messaging_kafka_message_tombstone :: :"messaging.kafka.message.tombstone" + def messaging_kafka_message_tombstone do + :"messaging.kafka.message.tombstone" + end + + @doc """ + The size of the message body in bytes. + + ### Notes + + This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed + body size should be used. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_body_size() + :"messaging.message.body.size" + """ + @spec messaging_message_body_size :: :"messaging.message.body.size" + def messaging_message_body_size do + :"messaging.message.body.size" + end + + @doc """ + The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_conversationid() + :"messaging.message.conversation_id" + """ + @spec messaging_message_conversationid :: :"messaging.message.conversation_id" + def messaging_message_conversationid do + :"messaging.message.conversation_id" + end + + @doc """ + The size of the message body and metadata in bytes. + + ### Notes + + This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed + size should be used. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_envelope_size() + :"messaging.message.envelope.size" + """ + @spec messaging_message_envelope_size :: :"messaging.message.envelope.size" + def messaging_message_envelope_size do + :"messaging.message.envelope.size" + end + + @doc """ + A value used by the messaging system as an identifier for the message, represented as a string. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_id() + :"messaging.message.id" + """ + @spec messaging_message_id :: :"messaging.message.id" + def messaging_message_id do + :"messaging.message.id" + end + + @deprecated """ + Replaced by `messaging.operation.type`. + """ + + @spec messaging_operation :: :"messaging.operation" + def messaging_operation do + :"messaging.operation" + end + + @doc """ + The system-specific name of the messaging operation. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_name() + :"messaging.operation.name" + """ + @spec messaging_operation_name :: :"messaging.operation.name" + def messaging_operation_name do + :"messaging.operation.name" + end + + @type deliver() :: :process + + @typedoc """ + A string identifying the type of the messaging operation. + + + ### Options + * `:publish` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created. + + * `:create` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios. + + * `:receive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. + + * `:deliver` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer. + + * `:settle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled. + + + """ + @type messaging_operation_type() :: :publish | :create | :receive | deliver() | :settle | atom() + + @doc """ + A string identifying the type of the messaging operation. + + ### Notes + + If a custom value is used, it **MUST** be of low cardinality. + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type(:publish) + :publish + + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type(:custom_value) + :custom_value + """ + @spec messaging_operation_type(messaging_operation_type()) :: + :publish | :create | :receive | deliver() | :settle | atom() + def messaging_operation_type(option) do + :"messaging.operation.type" + + case option do + :publish -> :publish + :create -> :create + :receive -> :receive + :deliver -> :process + :settle -> :settle + _ -> option + end + end + + @doc """ + RabbitMQ message routing key. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rabbitmq_destination_routingkey() + :"messaging.rabbitmq.destination.routing_key" + """ + @spec messaging_rabbitmq_destination_routingkey :: :"messaging.rabbitmq.destination.routing_key" + def messaging_rabbitmq_destination_routingkey do + :"messaging.rabbitmq.destination.routing_key" + end + + @doc """ + RabbitMQ message delivery tag + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rabbitmq_message_deliverytag() + :"messaging.rabbitmq.message.delivery_tag" + """ + @spec messaging_rabbitmq_message_deliverytag :: :"messaging.rabbitmq.message.delivery_tag" + def messaging_rabbitmq_message_deliverytag do + :"messaging.rabbitmq.message.delivery_tag" + end + + @doc """ + Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_clientgroup() + :"messaging.rocketmq.client_group" + """ + @spec messaging_rocketmq_clientgroup :: :"messaging.rocketmq.client_group" + def messaging_rocketmq_clientgroup do + :"messaging.rocketmq.client_group" + end + + @typedoc """ + Model of message consumption. This only applies to consumer spans. + + + ### Options + * `:clustering` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Clustering consumption model + * `:broadcasting` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Broadcasting consumption model + + """ + @type messaging_rocketmq_consumptionmodel() :: :clustering | :broadcasting | atom() + + @doc """ + Model of message consumption. This only applies to consumer spans. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel(:clustering) + :clustering + + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel(:custom_value) + :custom_value + """ + @spec messaging_rocketmq_consumptionmodel(messaging_rocketmq_consumptionmodel()) :: + :clustering | :broadcasting | atom() + def messaging_rocketmq_consumptionmodel(option) do + :"messaging.rocketmq.consumption_model" + + case option do + :clustering -> :clustering + :broadcasting -> :broadcasting + _ -> option + end + end + + @doc """ + The delay time level for delay message, which determines the message delay time. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_delaytimelevel() + :"messaging.rocketmq.message.delay_time_level" + """ + @spec messaging_rocketmq_message_delaytimelevel :: + :"messaging.rocketmq.message.delay_time_level" + def messaging_rocketmq_message_delaytimelevel do + :"messaging.rocketmq.message.delay_time_level" + end + + @doc """ + The timestamp in milliseconds that the delay message is expected to be delivered to consumer. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_deliverytimestamp() + :"messaging.rocketmq.message.delivery_timestamp" + """ + @spec messaging_rocketmq_message_deliverytimestamp :: + :"messaging.rocketmq.message.delivery_timestamp" + def messaging_rocketmq_message_deliverytimestamp do + :"messaging.rocketmq.message.delivery_timestamp" + end + + @doc """ + It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_group() + :"messaging.rocketmq.message.group" + """ + @spec messaging_rocketmq_message_group :: :"messaging.rocketmq.message.group" + def messaging_rocketmq_message_group do + :"messaging.rocketmq.message.group" + end + + @doc """ + Key(s) of message, another way to mark message besides message id. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_keys() + :"messaging.rocketmq.message.keys" + """ + @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message.keys" + def messaging_rocketmq_message_keys do + :"messaging.rocketmq.message.keys" + end + + @doc """ + The secondary classifier of message besides topic. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_tag() + :"messaging.rocketmq.message.tag" + """ + @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message.tag" + def messaging_rocketmq_message_tag do + :"messaging.rocketmq.message.tag" + end + + @typedoc """ + Type of message. + + + ### Options + * `:normal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Normal message + * `:fifo` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FIFO message + * `:delay` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Delay message + * `:transaction` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Transaction message + + """ + @type messaging_rocketmq_message_type() :: :normal | :fifo | :delay | :transaction | atom() + + @doc """ + Type of message. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type(:normal) + :normal + + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type(:custom_value) + :custom_value + """ + @spec messaging_rocketmq_message_type(messaging_rocketmq_message_type()) :: + :normal | :fifo | :delay | :transaction | atom() + def messaging_rocketmq_message_type(option) do + :"messaging.rocketmq.message.type" + + case option do + :normal -> :normal + :fifo -> :fifo + :delay -> :delay + :transaction -> :transaction + _ -> option + end + end + + @doc """ + Namespace of RocketMQ resources, resources in different namespaces are individual. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_namespace() + :"messaging.rocketmq.namespace" + """ + @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" + def messaging_rocketmq_namespace do + :"messaging.rocketmq.namespace" + end + + @doc """ + The name of the subscription in the topic messages are received from. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_destination_subscriptionname() + :"messaging.servicebus.destination.subscription_name" + """ + @spec messaging_servicebus_destination_subscriptionname :: + :"messaging.servicebus.destination.subscription_name" + def messaging_servicebus_destination_subscriptionname do + :"messaging.servicebus.destination.subscription_name" + end + + @typedoc """ + Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). + + + ### Options + * `:complete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is completed + * `:abandon` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is abandoned + * `:dead_letter` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is sent to dead letter queue + * `:defer` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is deferred + + """ + @type messaging_servicebus_dispositionstatus() :: + :complete | :abandon | :dead_letter | :defer | atom() + + @doc """ + Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus(:complete) + :complete + + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus(:custom_value) + :custom_value + """ + @spec messaging_servicebus_dispositionstatus(messaging_servicebus_dispositionstatus()) :: + :complete | :abandon | :dead_letter | :defer | atom() + def messaging_servicebus_dispositionstatus(option) do + :"messaging.servicebus.disposition_status" + + case option do + :complete -> :complete + :abandon -> :abandon + :dead_letter -> :dead_letter + :defer -> :defer + _ -> option + end + end + + @doc """ + Number of deliveries that have been attempted for this message. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_message_deliverycount() + :"messaging.servicebus.message.delivery_count" + """ + @spec messaging_servicebus_message_deliverycount :: + :"messaging.servicebus.message.delivery_count" + def messaging_servicebus_message_deliverycount do + :"messaging.servicebus.message.delivery_count" + end + + @doc """ + The UTC epoch seconds at which the message has been accepted and stored in the entity. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_message_enqueuedtime() + :"messaging.servicebus.message.enqueued_time" + """ + @spec messaging_servicebus_message_enqueuedtime :: :"messaging.servicebus.message.enqueued_time" + def messaging_servicebus_message_enqueuedtime do + :"messaging.servicebus.message.enqueued_time" + end + + @typedoc """ + The messaging system as identified by the client instrumentation. + + ### Options + * `:activemq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ + * `:aws_sqs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) + * `:eventgrid` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid + * `:eventhubs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs + * `:servicebus` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus + * `:gcp_pubsub` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub + * `:jms` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service + * `:kafka` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka + * `:rabbitmq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ + * `:rocketmq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ + + """ + @type messaging_system() :: + :activemq + | :aws_sqs + | :eventgrid + | :eventhubs + | :servicebus + | :gcp_pubsub + | :jms + | :kafka + | :rabbitmq + | :rocketmq + | atom() + + @doc """ + The messaging system as identified by the client instrumentation. + ### Notes + + The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge. + + + ### Example + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system(:activemq) + :activemq + + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system(:custom_value) + :custom_value + """ + @spec messaging_system(messaging_system()) :: + :activemq + | :aws_sqs + | :eventgrid + | :eventhubs + | :servicebus + | :gcp_pubsub + | :jms + | :kafka + | :rabbitmq + | :rocketmq + | atom() + def messaging_system(option) do + :"messaging.system" + + case option do + :activemq -> :activemq + :aws_sqs -> :aws_sqs + :eventgrid -> :eventgrid + :eventhubs -> :eventhubs + :servicebus -> :servicebus + :gcp_pubsub -> :gcp_pubsub + :jms -> :jms + :kafka -> :kafka + :rabbitmq -> :rabbitmq + :rocketmq -> :rocketmq + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex new file mode 100644 index 00000000..e8cbae05 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -0,0 +1,580 @@ +defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Network attributes. + """ + + @deprecated """ + Replaced by `network.local.address`. + """ + + @spec net_host_ip :: :"net.host.ip" + def net_host_ip do + :"net.host.ip" + end + + @deprecated """ + Replaced by `server.address`. + """ + + @spec net_host_name :: :"net.host.name" + def net_host_name do + :"net.host.name" + end + + @deprecated """ + Replaced by `server.port`. + """ + + @spec net_host_port :: :"net.host.port" + def net_host_port do + :"net.host.port" + end + + @deprecated """ + Replaced by `network.peer.address`. + """ + + @spec net_peer_ip :: :"net.peer.ip" + def net_peer_ip do + :"net.peer.ip" + end + + @deprecated """ + Replaced by `server.address` on client spans and `client.address` on server spans. + """ + + @spec net_peer_name :: :"net.peer.name" + def net_peer_name do + :"net.peer.name" + end + + @deprecated """ + Replaced by `server.port` on client spans and `client.port` on server spans. + """ + + @spec net_peer_port :: :"net.peer.port" + def net_peer_port do + :"net.peer.port" + end + + @deprecated """ + Replaced by `network.protocol.name`. + """ + + @spec net_protocol_name :: :"net.protocol.name" + def net_protocol_name do + :"net.protocol.name" + end + + @deprecated """ + Replaced by `network.protocol.version`. + """ + + @spec net_protocol_version :: :"net.protocol.version" + def net_protocol_version do + :"net.protocol.version" + end + + @typedoc """ + Deprecated, use `network.transport` and `network.type`. + + ### Options + * `:inet` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IPv4 address + * `:inet6` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IPv6 address + * `:unix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Unix domain socket path + + """ + @type net_sock_family() :: :inet | :inet6 | :unix | atom() + + @deprecated """ + Split to `network.transport` and `network.type`. + """ + + @spec net_sock_family(net_sock_family()) :: :inet | :inet6 | :unix | atom() + def net_sock_family(option) do + :"net.sock.family" + + case option do + :inet -> :inet + :inet6 -> :inet6 + :unix -> :unix + _ -> option + end + end + + @deprecated """ + Replaced by `network.local.address`. + """ + + @spec net_sock_host_addr :: :"net.sock.host.addr" + def net_sock_host_addr do + :"net.sock.host.addr" + end + + @deprecated """ + Replaced by `network.local.port`. + """ + + @spec net_sock_host_port :: :"net.sock.host.port" + def net_sock_host_port do + :"net.sock.host.port" + end + + @deprecated """ + Replaced by `network.peer.address`. + """ + + @spec net_sock_peer_addr :: :"net.sock.peer.addr" + def net_sock_peer_addr do + :"net.sock.peer.addr" + end + + @deprecated """ + Removed. + """ + + @spec net_sock_peer_name :: :"net.sock.peer.name" + def net_sock_peer_name do + :"net.sock.peer.name" + end + + @deprecated """ + Replaced by `network.peer.port`. + """ + + @spec net_sock_peer_port :: :"net.sock.peer.port" + def net_sock_peer_port do + :"net.sock.peer.port" + end + + @typedoc """ + Deprecated, use `network.transport`. + + ### Options + * `:ip_tcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:ip_udp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:pipe` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Named or anonymous pipe. + * `:inproc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - In-process communication. + * `:other` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Something else (non IP-based). + + """ + @type net_transport() :: :ip_tcp | :ip_udp | :pipe | :inproc | :other | atom() + + @deprecated """ + Replaced by `network.transport`. + """ + + @spec net_transport(net_transport()) :: :ip_tcp | :ip_udp | :pipe | :inproc | :other | atom() + def net_transport(option) do + :"net.transport" + + case option do + :ip_tcp -> :ip_tcp + :ip_udp -> :ip_udp + :pipe -> :pipe + :inproc -> :inproc + :other -> :other + _ -> option + end + end + + @doc """ + The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_icc() + :"network.carrier.icc" + """ + @spec network_carrier_icc :: :"network.carrier.icc" + def network_carrier_icc do + :"network.carrier.icc" + end + + @doc """ + The mobile carrier country code. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_mcc() + :"network.carrier.mcc" + """ + @spec network_carrier_mcc :: :"network.carrier.mcc" + def network_carrier_mcc do + :"network.carrier.mcc" + end + + @doc """ + The mobile carrier network code. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_mnc() + :"network.carrier.mnc" + """ + @spec network_carrier_mnc :: :"network.carrier.mnc" + def network_carrier_mnc do + :"network.carrier.mnc" + end + + @doc """ + The name of the mobile carrier. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_name() + :"network.carrier.name" + """ + @spec network_carrier_name :: :"network.carrier.name" + def network_carrier_name do + :"network.carrier.name" + end + + @typedoc """ + This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + + ### Options + * `:gprs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GPRS + * `:edge` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EDGE + * `:umts` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UMTS + * `:cdma` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA + * `:evdo_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rel. 0 + * `:evdo_a` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. A + * `:cdma2000_1xrtt` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA2000 1XRTT + * `:hsdpa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSDPA + * `:hsupa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSUPA + * `:hspa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPA + * `:iden` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IDEN + * `:evdo_b` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. B + * `:lte` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE + * `:ehrpd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EHRPD + * `:hspap` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPAP + * `:gsm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GSM + * `:td_scdma` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - TD-SCDMA + * `:iwlan` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IWLAN + * `:nr` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NR (New Radio) + * `:nrnsa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) + * `:lte_ca` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE CA + + """ + @type network_connection_subtype() :: + :gprs + | :edge + | :umts + | :cdma + | :evdo_0 + | :evdo_a + | :cdma2000_1xrtt + | :hsdpa + | :hsupa + | :hspa + | :iden + | :evdo_b + | :lte + | :ehrpd + | :hspap + | :gsm + | :td_scdma + | :iwlan + | :nr + | :nrnsa + | :lte_ca + | atom() + + @doc """ + This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype(:gprs) + :gprs + + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype(:custom_value) + :custom_value + """ + @spec network_connection_subtype(network_connection_subtype()) :: + :gprs + | :edge + | :umts + | :cdma + | :evdo_0 + | :evdo_a + | :cdma2000_1xrtt + | :hsdpa + | :hsupa + | :hspa + | :iden + | :evdo_b + | :lte + | :ehrpd + | :hspap + | :gsm + | :td_scdma + | :iwlan + | :nr + | :nrnsa + | :lte_ca + | atom() + def network_connection_subtype(option) do + :"network.connection.subtype" + + case option do + :gprs -> :gprs + :edge -> :edge + :umts -> :umts + :cdma -> :cdma + :evdo_0 -> :evdo_0 + :evdo_a -> :evdo_a + :cdma2000_1xrtt -> :cdma2000_1xrtt + :hsdpa -> :hsdpa + :hsupa -> :hsupa + :hspa -> :hspa + :iden -> :iden + :evdo_b -> :evdo_b + :lte -> :lte + :ehrpd -> :ehrpd + :hspap -> :hspap + :gsm -> :gsm + :td_scdma -> :td_scdma + :iwlan -> :iwlan + :nr -> :nr + :nrnsa -> :nrnsa + :lte_ca -> :lte_ca + _ -> option + end + end + + @typedoc """ + The internet connection type. + + ### Options + * `:wifi` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:wired` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:cell` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type network_connection_type() :: :wifi | :wired | :cell | :unavailable | :unknown | atom() + + @doc """ + The internet connection type. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type(:wifi) + :wifi + + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type(:custom_value) + :custom_value + """ + @spec network_connection_type(network_connection_type()) :: + :wifi | :wired | :cell | :unavailable | :unknown | atom() + def network_connection_type(option) do + :"network.connection.type" + + case option do + :wifi -> :wifi + :wired -> :wired + :cell -> :cell + :unavailable -> :unavailable + :unknown -> :unknown + _ -> option + end + end + + @typedoc """ + The network IO operation direction. + + ### Options + * `:transmit` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:receive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type network_io_direction() :: :transmit | :receive | atom() + + @doc """ + The network IO operation direction. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction(:transmit) + :transmit + + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction(:custom_value) + :custom_value + """ + @spec network_io_direction(network_io_direction()) :: :transmit | :receive | atom() + def network_io_direction(option) do + :"network.io.direction" + + case option do + :transmit -> :transmit + :receive -> :receive + _ -> option + end + end + + @doc """ + Local address of the network connection - IP address or Unix domain socket name. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_local_address() + :"network.local.address" + """ + @spec network_local_address :: :"network.local.address" + def network_local_address do + :"network.local.address" + end + + @doc """ + Local port number of the network connection. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_local_port() + :"network.local.port" + """ + @spec network_local_port :: :"network.local.port" + def network_local_port do + :"network.local.port" + end + + @doc """ + Peer address of the network connection - IP address or Unix domain socket name. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_peer_address() + :"network.peer.address" + """ + @spec network_peer_address :: :"network.peer.address" + def network_peer_address do + :"network.peer.address" + end + + @doc """ + Peer port number of the network connection. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_peer_port() + :"network.peer.port" + """ + @spec network_peer_port :: :"network.peer.port" + def network_peer_port do + :"network.peer.port" + end + + @doc """ + [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. + ### Notes + + The value **SHOULD** be normalized to lowercase. + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_protocol_name() + :"network.protocol.name" + """ + @spec network_protocol_name :: :"network.protocol.name" + def network_protocol_name do + :"network.protocol.name" + end + + @doc """ + The actual version of the protocol used for network communication. + ### Notes + + If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute **SHOULD** be set to the negotiated version. If the actual protocol version is not known, this attribute **SHOULD** **NOT** be set. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_protocol_version() + :"network.protocol.version" + """ + @spec network_protocol_version :: :"network.protocol.version" + def network_protocol_version do + :"network.protocol.version" + end + + @typedoc """ + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). + + + ### Options + * `:tcp` - TCP + * `:udp` - UDP + * `:pipe` - Named or anonymous pipe. + * `:unix` - Unix domain socket + + """ + @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() + + @doc """ + [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). + + ### Notes + + The value **SHOULD** be normalized to lowercase. + + Consider always setting the transport when setting a port number, since + a port number is ambiguous without knowing the transport. For example + different processes could be listening on TCP port 12345 and UDP port 12345. + + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport(:tcp) + :tcp + + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport(:custom_value) + :custom_value + """ + @spec network_transport(network_transport()) :: :tcp | :udp | :pipe | :unix | atom() + def network_transport(option) do + :"network.transport" + + case option do + :tcp -> :tcp + :udp -> :udp + :pipe -> :pipe + :unix -> :unix + _ -> option + end + end + + @typedoc """ + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. + + ### Options + * `:ipv4` - IPv4 + * `:ipv6` - IPv6 + + """ + @type network_type() :: :ipv4 | :ipv6 | atom() + + @doc """ + [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. + ### Notes + + The value **SHOULD** be normalized to lowercase. + + ### Example + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type(:ipv4) + :ipv4 + + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type(:custom_value) + :custom_value + """ + @spec network_type(network_type()) :: :ipv4 | :ipv6 | atom() + def network_type(option) do + :"network.type" + + case option do + :ipv4 -> :ipv4 + :ipv6 -> :ipv6 + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex new file mode 100644 index 00000000..1265a733 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex @@ -0,0 +1,24 @@ +defmodule OpenTelemetry.SemanticConventions.OciAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Oci attributes. + """ + + @doc """ + The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. + + ### Notes + + Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). + An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest). + + + ### Example + iex> OpenTelemetry.SemanticConventions.OciAttributes.oci_manifest_digest() + :"oci.manifest.digest" + """ + @spec oci_manifest_digest :: :"oci.manifest.digest" + def oci_manifest_digest do + :"oci.manifest.digest" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex new file mode 100644 index 00000000..0b07fb77 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex @@ -0,0 +1,41 @@ +defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Opentracing attributes. + """ + + @typedoc """ + Parent-child Reference type + + ### Options + * `:child_of` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span depends on the child Span in some capacity + * `:follows_from` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span + + """ + @type opentracing_reftype() :: :child_of | :follows_from | atom() + + @doc """ + Parent-child Reference type + ### Notes + + The causal relationship between a child Span and a parent Span. + + + ### Example + iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype(:child_of) + :child_of + + iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype(:custom_value) + :custom_value + """ + @spec opentracing_reftype(opentracing_reftype()) :: :child_of | :follows_from | atom() + def opentracing_reftype(option) do + :"opentracing.ref_type" + + case option do + :child_of -> :child_of + :follows_from -> :follows_from + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex new file mode 100644 index 00000000..52f80b9b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex @@ -0,0 +1,136 @@ +defmodule OpenTelemetry.SemanticConventions.OsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Os attributes. + """ + + @doc """ + Unique identifier for a particular build or compilation of the operating system. + + + ### Example + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_buildid() + :"os.build_id" + """ + @spec os_buildid :: :"os.build_id" + def os_buildid do + :"os.build_id" + end + + @doc """ + Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_description() + :"os.description" + """ + @spec os_description :: :"os.description" + def os_description do + :"os.description" + end + + @doc """ + Human readable operating system name. + + + ### Example + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_name() + :"os.name" + """ + @spec os_name :: :"os.name" + def os_name do + :"os.name" + end + + @typedoc """ + The operating system type. + + + ### Options + * `:windows` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Windows + * `:linux` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Linux + * `:darwin` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apple Darwin + * `:freebsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FreeBSD + * `:netbsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NetBSD + * `:openbsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenBSD + * `:dragonflybsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DragonFly BSD + * `:hpux` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HP-UX (Hewlett Packard Unix) + * `:aix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AIX (Advanced Interactive eXecutive) + * `:solaris` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SunOS, Oracle Solaris + * `:z_os` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/OS + + """ + @type os_type() :: + :windows + | :linux + | :darwin + | :freebsd + | :netbsd + | :openbsd + | :dragonflybsd + | :hpux + | :aix + | :solaris + | :z_os + | atom() + + @doc """ + The operating system type. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type(:windows) + :windows + + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type(:custom_value) + :custom_value + """ + @spec os_type(os_type()) :: + :windows + | :linux + | :darwin + | :freebsd + | :netbsd + | :openbsd + | :dragonflybsd + | :hpux + | :aix + | :solaris + | :z_os + | atom() + def os_type(option) do + :"os.type" + + case option do + :windows -> :windows + :linux -> :linux + :darwin -> :darwin + :freebsd -> :freebsd + :netbsd -> :netbsd + :openbsd -> :openbsd + :dragonflybsd -> :dragonflybsd + :hpux -> :hpux + :aix -> :aix + :solaris -> :solaris + :z_os -> :z_os + _ -> option + end + end + + @doc """ + The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_version() + :"os.version" + """ + @spec os_version :: :"os.version" + def os_version do + :"os.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex new file mode 100644 index 00000000..b5eac8d5 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -0,0 +1,99 @@ +defmodule OpenTelemetry.SemanticConventions.OtelAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Otel attributes. + """ + + @deprecated """ + use the `otel.scope.name` attribute. + """ + + @spec otel_library_name :: :"otel.library.name" + def otel_library_name do + :"otel.library.name" + end + + @deprecated """ + use the `otel.scope.version` attribute. + """ + + @spec otel_library_version :: :"otel.library.version" + def otel_library_version do + :"otel.library.version" + end + + @doc """ + The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). + + + ### Example + iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_scope_name() + :"otel.scope.name" + """ + @spec otel_scope_name :: :"otel.scope.name" + def otel_scope_name do + :"otel.scope.name" + end + + @doc """ + The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). + + + ### Example + iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_scope_version() + :"otel.scope.version" + """ + @spec otel_scope_version :: :"otel.scope.version" + def otel_scope_version do + :"otel.scope.version" + end + + @type ok() :: :OK + + @type error() :: :ERROR + + @typedoc """ + Name of the code, either "OK" or "ERROR". **MUST** **NOT** be set if the status code is UNSET. + + ### Options + * `:ok` - The operation has been validated by an Application developer or Operator to have completed successfully. + * `:error` - The operation contains an error. + + """ + @type otel_statuscode() :: ok() | error() | atom() + + @doc """ + Name of the code, either "OK" or "ERROR". **MUST** **NOT** be set if the status code is UNSET. + + + ### Example + iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode(:ok) + :OK + + iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode(:custom_value) + :custom_value + """ + @spec otel_statuscode(otel_statuscode()) :: ok() | error() | atom() + def otel_statuscode(option) do + :"otel.status_code" + + case option do + :ok -> :OK + :error -> :ERROR + _ -> option + end + end + + @doc """ + Description of the Status if it has a value, otherwise not set. + + + ### Example + iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statusdescription() + :"otel.status_description" + """ + @spec otel_statusdescription :: :"otel.status_description" + def otel_statusdescription do + :"otel.status_description" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex new file mode 100644 index 00000000..9c3173ce --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex @@ -0,0 +1,20 @@ +defmodule OpenTelemetry.SemanticConventions.PeerAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Peer attributes. + """ + + @doc """ + The [`service.name`](/docs/resource/README.md#service) of the remote service. **SHOULD** be equal to the actual `service.name` resource attribute of the remote service if any. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.PeerAttributes.peer_service() + :"peer.service" + """ + @spec peer_service :: :"peer.service" + def peer_service do + :"peer.service" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex new file mode 100644 index 00000000..8212a7f4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex @@ -0,0 +1,448 @@ +defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Process attributes. + """ + + @doc """ + The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_command() + :"process.command" + """ + @spec process_command :: :"process.command" + def process_command do + :"process.command" + end + + @doc """ + All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_commandargs() + :"process.command_args" + """ + @spec process_commandargs :: :"process.command_args" + def process_commandargs do + :"process.command_args" + end + + @doc """ + The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_commandline() + :"process.command_line" + """ + @spec process_commandline :: :"process.command_line" + def process_commandline do + :"process.command_line" + end + + @typedoc """ + Specifies whether the context switches for this data point were voluntary or involuntary. + + ### Options + * `:voluntary` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:involuntary` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type process_contextswitchtype() :: :voluntary | :involuntary | atom() + + @doc """ + Specifies whether the context switches for this data point were voluntary or involuntary. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype(:voluntary) + :voluntary + + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype(:custom_value) + :custom_value + """ + @spec process_contextswitchtype(process_contextswitchtype()) :: + :voluntary | :involuntary | atom() + def process_contextswitchtype(option) do + :"process.context_switch_type" + + case option do + :voluntary -> :voluntary + :involuntary -> :involuntary + _ -> option + end + end + + @typedoc """ + The CPU state of the process. + + + ### Options + * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type process_cpu_state() :: :system | :user | :wait | atom() + + @doc """ + The CPU state of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state(:system) + :system + + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state(:custom_value) + :custom_value + """ + @spec process_cpu_state(process_cpu_state()) :: :system | :user | :wait | atom() + def process_cpu_state(option) do + :"process.cpu.state" + + case option do + :system -> :system + :user -> :user + :wait -> :wait + _ -> option + end + end + + @doc """ + The date and time the process was created, in ISO 8601 format. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_creation_time() + :"process.creation.time" + """ + @spec process_creation_time :: :"process.creation.time" + def process_creation_time do + :"process.creation.time" + end + + @doc """ + The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_executable_name() + :"process.executable.name" + """ + @spec process_executable_name :: :"process.executable.name" + def process_executable_name do + :"process.executable.name" + end + + @doc """ + The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_executable_path() + :"process.executable.path" + """ + @spec process_executable_path :: :"process.executable.path" + def process_executable_path do + :"process.executable.path" + end + + @doc """ + The exit code of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_exit_code() + :"process.exit.code" + """ + @spec process_exit_code :: :"process.exit.code" + def process_exit_code do + :"process.exit.code" + end + + @doc """ + The date and time the process exited, in ISO 8601 format. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_exit_time() + :"process.exit.time" + """ + @spec process_exit_time :: :"process.exit.time" + def process_exit_time do + :"process.exit.time" + end + + @doc """ + The PID of the process's group leader. This is also the process group ID (PGID) of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_groupleader_pid() + :"process.group_leader.pid" + """ + @spec process_groupleader_pid :: :"process.group_leader.pid" + def process_groupleader_pid do + :"process.group_leader.pid" + end + + @doc """ + Whether the process is connected to an interactive shell. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_interactive() + :"process.interactive" + """ + @spec process_interactive :: :"process.interactive" + def process_interactive do + :"process.interactive" + end + + @doc """ + The username of the user that owns the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_owner() + :"process.owner" + """ + @spec process_owner :: :"process.owner" + def process_owner do + :"process.owner" + end + + @typedoc """ + The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. + + + ### Options + * `:major` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:minor` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type process_paging_faulttype() :: :major | :minor | atom() + + @doc """ + The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype(:major) + :major + + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype(:custom_value) + :custom_value + """ + @spec process_paging_faulttype(process_paging_faulttype()) :: :major | :minor | atom() + def process_paging_faulttype(option) do + :"process.paging.fault_type" + + case option do + :major -> :major + :minor -> :minor + _ -> option + end + end + + @doc """ + Parent Process identifier (PPID). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_parentpid() + :"process.parent_pid" + """ + @spec process_parentpid :: :"process.parent_pid" + def process_parentpid do + :"process.parent_pid" + end + + @doc """ + Process identifier (PID). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_pid() + :"process.pid" + """ + @spec process_pid :: :"process.pid" + def process_pid do + :"process.pid" + end + + @doc """ + The real user ID (RUID) of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_realuser_id() + :"process.real_user.id" + """ + @spec process_realuser_id :: :"process.real_user.id" + def process_realuser_id do + :"process.real_user.id" + end + + @doc """ + The username of the real user of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_realuser_name() + :"process.real_user.name" + """ + @spec process_realuser_name :: :"process.real_user.name" + def process_realuser_name do + :"process.real_user.name" + end + + @doc """ + An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_runtime_description() + :"process.runtime.description" + """ + @spec process_runtime_description :: :"process.runtime.description" + def process_runtime_description do + :"process.runtime.description" + end + + @doc """ + The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_runtime_name() + :"process.runtime.name" + """ + @spec process_runtime_name :: :"process.runtime.name" + def process_runtime_name do + :"process.runtime.name" + end + + @doc """ + The version of the runtime of this process, as returned by the runtime without modification. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_runtime_version() + :"process.runtime.version" + """ + @spec process_runtime_version :: :"process.runtime.version" + def process_runtime_version do + :"process.runtime.version" + end + + @doc """ + The saved user ID (SUID) of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_saveduser_id() + :"process.saved_user.id" + """ + @spec process_saveduser_id :: :"process.saved_user.id" + def process_saveduser_id do + :"process.saved_user.id" + end + + @doc """ + The username of the saved user. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_saveduser_name() + :"process.saved_user.name" + """ + @spec process_saveduser_name :: :"process.saved_user.name" + def process_saveduser_name do + :"process.saved_user.name" + end + + @doc """ + The PID of the process's session leader. This is also the session ID (SID) of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_sessionleader_pid() + :"process.session_leader.pid" + """ + @spec process_sessionleader_pid :: :"process.session_leader.pid" + def process_sessionleader_pid do + :"process.session_leader.pid" + end + + @doc """ + The effective user ID (EUID) of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_user_id() + :"process.user.id" + """ + @spec process_user_id :: :"process.user.id" + def process_user_id do + :"process.user.id" + end + + @doc """ + The username of the effective user of the process. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_user_name() + :"process.user.name" + """ + @spec process_user_name :: :"process.user.name" + def process_user_name do + :"process.user.name" + end + + @doc """ + Virtual process identifier. + + ### Notes + + The process ID within a PID namespace. This is not necessarily unique across all processes on the host but it is unique within the process namespace that the process exists within. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_vpid() + :"process.vpid" + """ + @spec process_vpid :: :"process.vpid" + def process_vpid do + :"process.vpid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex new file mode 100644 index 00000000..d9d9fc86 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex @@ -0,0 +1,553 @@ +defmodule OpenTelemetry.SemanticConventions.RpcAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Rpc attributes. + """ + + @deprecated """ + Replaced by `rpc.message.compressed_size`. + """ + + @spec message_compressedsize :: :"message.compressed_size" + def message_compressedsize do + :"message.compressed_size" + end + + @deprecated """ + Replaced by `rpc.message.id`. + """ + + @spec message_id :: :"message.id" + def message_id do + :"message.id" + end + + @type sent() :: :SENT + + @type received() :: :RECEIVED + + @typedoc """ + Deprecated, use `rpc.message.type` instead. + + ### Options + * `:sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:received` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type message_type() :: sent() | received() | atom() + + @deprecated """ + Replaced by `rpc.message.type`. + """ + + @spec message_type(message_type()) :: sent() | received() | atom() + def message_type(option) do + :"message.type" + + case option do + :sent -> :SENT + :received -> :RECEIVED + _ -> option + end + end + + @deprecated """ + Replaced by `rpc.message.uncompressed_size`. + """ + + @spec message_uncompressedsize :: :"message.uncompressed_size" + def message_uncompressedsize do + :"message.uncompressed_size" + end + + @typedoc """ + The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. + + ### Options + * `:cancelled` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:invalid_argument` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:deadline_exceeded` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:not_found` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:already_exists` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:permission_denied` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:resource_exhausted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:failed_precondition` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:aborted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:out_of_range` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:unimplemented` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:internal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:data_loss` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:unauthenticated` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type rpc_connectrpc_errorcode() :: + :cancelled + | :unknown + | :invalid_argument + | :deadline_exceeded + | :not_found + | :already_exists + | :permission_denied + | :resource_exhausted + | :failed_precondition + | :aborted + | :out_of_range + | :unimplemented + | :internal + | :unavailable + | :data_loss + | :unauthenticated + | atom() + + @doc """ + The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode(:cancelled) + :cancelled + + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode(:custom_value) + :custom_value + """ + @spec rpc_connectrpc_errorcode(rpc_connectrpc_errorcode()) :: + :cancelled + | :unknown + | :invalid_argument + | :deadline_exceeded + | :not_found + | :already_exists + | :permission_denied + | :resource_exhausted + | :failed_precondition + | :aborted + | :out_of_range + | :unimplemented + | :internal + | :unavailable + | :data_loss + | :unauthenticated + | atom() + def rpc_connectrpc_errorcode(option) do + :"rpc.connect_rpc.error_code" + + case option do + :cancelled -> :cancelled + :unknown -> :unknown + :invalid_argument -> :invalid_argument + :deadline_exceeded -> :deadline_exceeded + :not_found -> :not_found + :already_exists -> :already_exists + :permission_denied -> :permission_denied + :resource_exhausted -> :resource_exhausted + :failed_precondition -> :failed_precondition + :aborted -> :aborted + :out_of_range -> :out_of_range + :unimplemented -> :unimplemented + :internal -> :internal + :unavailable -> :unavailable + :data_loss -> :data_loss + :unauthenticated -> :unauthenticated + _ -> option + end + end + + @doc """ + Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. + + ### Notes + + Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_request_metadata() + :"rpc.connect_rpc.request.metadata" + """ + @spec rpc_connectrpc_request_metadata :: :"rpc.connect_rpc.request.metadata" + def rpc_connectrpc_request_metadata do + :"rpc.connect_rpc.request.metadata" + end + + @doc """ + Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. + + ### Notes + + Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_response_metadata() + :"rpc.connect_rpc.response.metadata" + """ + @spec rpc_connectrpc_response_metadata :: :"rpc.connect_rpc.response.metadata" + def rpc_connectrpc_response_metadata do + :"rpc.connect_rpc.response.metadata" + end + + @doc """ + gRPC request metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. + + ### Notes + + Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_request_metadata() + :"rpc.grpc.request.metadata" + """ + @spec rpc_grpc_request_metadata :: :"rpc.grpc.request.metadata" + def rpc_grpc_request_metadata do + :"rpc.grpc.request.metadata" + end + + @doc """ + gRPC response metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. + + ### Notes + + Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_response_metadata() + :"rpc.grpc.response.metadata" + """ + @spec rpc_grpc_response_metadata :: :"rpc.grpc.response.metadata" + def rpc_grpc_response_metadata do + :"rpc.grpc.response.metadata" + end + + @type ok() :: 0 + + @type cancelled() :: 1 + + @type unknown() :: 2 + + @type invalid_argument() :: 3 + + @type deadline_exceeded() :: 4 + + @type not_found() :: 5 + + @type already_exists() :: 6 + + @type permission_denied() :: 7 + + @type resource_exhausted() :: 8 + + @type failed_precondition() :: 9 + + @type aborted() :: 10 + + @type out_of_range() :: 11 + + @type unimplemented() :: 12 + + @type internal() :: 13 + + @type unavailable() :: 14 + + @type data_loss() :: 15 + + @type unauthenticated() :: 16 + + @typedoc """ + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + + ### Options + * `:ok` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK + * `:cancelled` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED + * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN + * `:invalid_argument` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT + * `:deadline_exceeded` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED + * `:not_found` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND + * `:already_exists` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS + * `:permission_denied` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED + * `:resource_exhausted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED + * `:failed_precondition` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION + * `:aborted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED + * `:out_of_range` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE + * `:unimplemented` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED + * `:internal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL + * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE + * `:data_loss` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS + * `:unauthenticated` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED + + """ + @type rpc_grpc_statuscode() :: + ok() + | cancelled() + | unknown() + | invalid_argument() + | deadline_exceeded() + | not_found() + | already_exists() + | permission_denied() + | resource_exhausted() + | failed_precondition() + | aborted() + | out_of_range() + | unimplemented() + | internal() + | unavailable() + | data_loss() + | unauthenticated() + | atom() + + @doc """ + The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode(:ok) + 0 + + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode(:custom_value) + :custom_value + """ + @spec rpc_grpc_statuscode(rpc_grpc_statuscode()) :: + ok() + | cancelled() + | unknown() + | invalid_argument() + | deadline_exceeded() + | not_found() + | already_exists() + | permission_denied() + | resource_exhausted() + | failed_precondition() + | aborted() + | out_of_range() + | unimplemented() + | internal() + | unavailable() + | data_loss() + | unauthenticated() + | atom() + def rpc_grpc_statuscode(option) do + :"rpc.grpc.status_code" + + case option do + :ok -> 0 + :cancelled -> 1 + :unknown -> 2 + :invalid_argument -> 3 + :deadline_exceeded -> 4 + :not_found -> 5 + :already_exists -> 6 + :permission_denied -> 7 + :resource_exhausted -> 8 + :failed_precondition -> 9 + :aborted -> 10 + :out_of_range -> 11 + :unimplemented -> 12 + :internal -> 13 + :unavailable -> 14 + :data_loss -> 15 + :unauthenticated -> 16 + _ -> option + end + end + + @doc """ + `error.code` property of response if it is an error response. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_errorcode() + :"rpc.jsonrpc.error_code" + """ + @spec rpc_jsonrpc_errorcode :: :"rpc.jsonrpc.error_code" + def rpc_jsonrpc_errorcode do + :"rpc.jsonrpc.error_code" + end + + @doc """ + `error.message` property of response if it is an error response. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_errormessage() + :"rpc.jsonrpc.error_message" + """ + @spec rpc_jsonrpc_errormessage :: :"rpc.jsonrpc.error_message" + def rpc_jsonrpc_errormessage do + :"rpc.jsonrpc.error_message" + end + + @doc """ + `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_requestid() + :"rpc.jsonrpc.request_id" + """ + @spec rpc_jsonrpc_requestid :: :"rpc.jsonrpc.request_id" + def rpc_jsonrpc_requestid do + :"rpc.jsonrpc.request_id" + end + + @doc """ + Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_version() + :"rpc.jsonrpc.version" + """ + @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" + def rpc_jsonrpc_version do + :"rpc.jsonrpc.version" + end + + @doc """ + Compressed size of the message in bytes. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_compressedsize() + :"rpc.message.compressed_size" + """ + @spec rpc_message_compressedsize :: :"rpc.message.compressed_size" + def rpc_message_compressedsize do + :"rpc.message.compressed_size" + end + + @doc """ + MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. + ### Notes + + This way we guarantee that the values will be consistent between different implementations. + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_id() + :"rpc.message.id" + """ + @spec rpc_message_id :: :"rpc.message.id" + def rpc_message_id do + :"rpc.message.id" + end + + @typedoc """ + Whether this is a received or sent message. + + ### Options + * `:sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:received` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type rpc_message_type() :: sent() | received() | atom() + + @doc """ + Whether this is a received or sent message. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type(:sent) + :SENT + + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type(:custom_value) + :custom_value + """ + @spec rpc_message_type(rpc_message_type()) :: sent() | received() | atom() + def rpc_message_type(option) do + :"rpc.message.type" + + case option do + :sent -> :SENT + :received -> :RECEIVED + _ -> option + end + end + + @doc """ + Uncompressed size of the message in bytes. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_uncompressedsize() + :"rpc.message.uncompressed_size" + """ + @spec rpc_message_uncompressedsize :: :"rpc.message.uncompressed_size" + def rpc_message_uncompressedsize do + :"rpc.message.uncompressed_size" + end + + @doc """ + The name of the (logical) method being called, must be equal to the $method part in the span name. + ### Notes + + This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_method() + :"rpc.method" + """ + @spec rpc_method :: :"rpc.method" + def rpc_method do + :"rpc.method" + end + + @doc """ + The full (logical) name of the service being called, including its package name, if applicable. + ### Notes + + This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_service() + :"rpc.service" + """ + @spec rpc_service :: :"rpc.service" + def rpc_service do + :"rpc.service" + end + + @typedoc """ + A string identifying the remoting system. See below for a list of well-known identifiers. + + ### Options + * `:grpc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC + * `:java_rmi` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI + * `:dotnet_wcf` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF + * `:apache_dubbo` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo + * `:connect_rpc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC + + """ + @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() + + @doc """ + A string identifying the remoting system. See below for a list of well-known identifiers. + + + ### Example + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system(:grpc) + :grpc + + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system(:custom_value) + :custom_value + """ + @spec rpc_system(rpc_system()) :: + :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() + def rpc_system(option) do + :"rpc.system" + + case option do + :grpc -> :grpc + :java_rmi -> :java_rmi + :dotnet_wcf -> :dotnet_wcf + :apache_dubbo -> :apache_dubbo + :connect_rpc -> :connect_rpc + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex new file mode 100644 index 00000000..1403cd0f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex @@ -0,0 +1,38 @@ +defmodule OpenTelemetry.SemanticConventions.ServerAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Server attributes. + """ + + @doc """ + Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Notes + + When observed from the client side, and when communicating through an intermediary, `server.address` **SHOULD** represent the server address behind any intermediaries, for example proxies, if it's available. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ServerAttributes.server_address() + :"server.address" + """ + @spec server_address :: :"server.address" + def server_address do + :"server.address" + end + + @doc """ + Server port number. + ### Notes + + When observed from the client side, and when communicating through an intermediary, `server.port` **SHOULD** represent the server port behind any intermediaries, for example proxies, if it's available. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ServerAttributes.server_port() + :"server.port" + """ + @spec server_port :: :"server.port" + def server_port do + :"server.port" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex new file mode 100644 index 00000000..b282c9ad --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex @@ -0,0 +1,96 @@ +defmodule OpenTelemetry.SemanticConventions.ServiceAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Service attributes. + """ + + @doc """ + The string ID of the service instance. + + ### Notes + + MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words + `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to + distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled + service). + + Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC + 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of + this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and + **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. + + UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is + needed. Similar to what can be seen in the man page for the + [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying + data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it + or not via another resource attribute. + + For applications running behind an application server (like unicorn), we do not recommend using one identifier + for all processes participating in the application. Instead, it's recommended each division (e.g. a worker + thread in unicorn) to have its own instance.id. + + It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the + service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will + likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. + However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance + for that telemetry. This is typically the case for scraping receivers, as they know the target address and + port. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_instance_id() + :"service.instance.id" + """ + @spec service_instance_id :: :"service.instance.id" + def service_instance_id do + :"service.instance.id" + end + + @doc """ + Logical name of the service. + + ### Notes + + MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_name() + :"service.name" + """ + @spec service_name :: :"service.name" + def service_name do + :"service.name" + end + + @doc """ + A namespace for `service.name`. + + ### Notes + + A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. + + + ### Example + iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_namespace() + :"service.namespace" + """ + @spec service_namespace :: :"service.namespace" + def service_namespace do + :"service.namespace" + end + + @doc """ + The version string of the service API or implementation. The format is not defined by these conventions. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_version() + :"service.version" + """ + @spec service_version :: :"service.version" + def service_version do + :"service.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/session_attributes.ex new file mode 100644 index 00000000..abbfcdf3 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/session_attributes.ex @@ -0,0 +1,32 @@ +defmodule OpenTelemetry.SemanticConventions.SessionAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Session attributes. + """ + + @doc """ + A unique id to identify a session. + + + ### Example + iex> OpenTelemetry.SemanticConventions.SessionAttributes.session_id() + :"session.id" + """ + @spec session_id :: :"session.id" + def session_id do + :"session.id" + end + + @doc """ + The previous `session.id` for this user, when known. + + + ### Example + iex> OpenTelemetry.SemanticConventions.SessionAttributes.session_previousid() + :"session.previous_id" + """ + @spec session_previousid :: :"session.previous_id" + def session_previousid do + :"session.previous_id" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/source_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/source_attributes.ex new file mode 100644 index 00000000..2ed3226a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/source_attributes.ex @@ -0,0 +1,35 @@ +defmodule OpenTelemetry.SemanticConventions.SourceAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Source attributes. + """ + + @doc """ + Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Notes + + When observed from the destination side, and when communicating through an intermediary, `source.address` **SHOULD** represent the source address behind any intermediaries, for example proxies, if it's available. + + + ### Example + iex> OpenTelemetry.SemanticConventions.SourceAttributes.source_address() + :"source.address" + """ + @spec source_address :: :"source.address" + def source_address do + :"source.address" + end + + @doc """ + Source port number + + + ### Example + iex> OpenTelemetry.SemanticConventions.SourceAttributes.source_port() + :"source.port" + """ + @spec source_port :: :"source.port" + def source_port do + :"source.port" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex new file mode 100644 index 00000000..b57a7f86 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex @@ -0,0 +1,459 @@ +defmodule OpenTelemetry.SemanticConventions.SystemAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for System attributes. + """ + + @doc """ + The logical CPU number [0..n-1] + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_logicalnumber() + :"system.cpu.logical_number" + """ + @spec system_cpu_logicalnumber :: :"system.cpu.logical_number" + def system_cpu_logicalnumber do + :"system.cpu.logical_number" + end + + @typedoc """ + The state of the CPU + + ### Options + * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:nice` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:iowait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:interrupt` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:steal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_cpu_state() :: + :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() + + @doc """ + The state of the CPU + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state(:user) + :user + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state(:custom_value) + :custom_value + """ + @spec system_cpu_state(system_cpu_state()) :: + :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() + def system_cpu_state(option) do + :"system.cpu.state" + + case option do + :user -> :user + :system -> :system + :nice -> :nice + :idle -> :idle + :iowait -> :iowait + :interrupt -> :interrupt + :steal -> :steal + _ -> option + end + end + + @doc """ + The device identifier + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_device() + :"system.device" + """ + @spec system_device :: :"system.device" + def system_device do + :"system.device" + end + + @doc """ + The filesystem mode + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_mode() + :"system.filesystem.mode" + """ + @spec system_filesystem_mode :: :"system.filesystem.mode" + def system_filesystem_mode do + :"system.filesystem.mode" + end + + @doc """ + The filesystem mount path + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_mountpoint() + :"system.filesystem.mountpoint" + """ + @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" + def system_filesystem_mountpoint do + :"system.filesystem.mountpoint" + end + + @typedoc """ + The filesystem state + + ### Options + * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:reserved` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_filesystem_state() :: :used | :free | :reserved | atom() + + @doc """ + The filesystem state + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state(:used) + :used + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state(:custom_value) + :custom_value + """ + @spec system_filesystem_state(system_filesystem_state()) :: :used | :free | :reserved | atom() + def system_filesystem_state(option) do + :"system.filesystem.state" + + case option do + :used -> :used + :free -> :free + :reserved -> :reserved + _ -> option + end + end + + @typedoc """ + The filesystem type + + ### Options + * `:fat32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:exfat` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:ntfs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:refs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:hfsplus` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:ext4` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() + + @doc """ + The filesystem type + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type(:fat32) + :fat32 + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type(:custom_value) + :custom_value + """ + @spec system_filesystem_type(system_filesystem_type()) :: + :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() + def system_filesystem_type(option) do + :"system.filesystem.type" + + case option do + :fat32 -> :fat32 + :exfat -> :exfat + :ntfs -> :ntfs + :refs -> :refs + :hfsplus -> :hfsplus + :ext4 -> :ext4 + _ -> option + end + end + + @typedoc """ + The memory state + + ### Options + * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:shared` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:buffers` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:cached` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() + + @doc """ + The memory state + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state(:used) + :used + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state(:custom_value) + :custom_value + """ + @spec system_memory_state(system_memory_state()) :: + :used | :free | :shared | :buffers | :cached | atom() + def system_memory_state(option) do + :"system.memory.state" + + case option do + :used -> :used + :free -> :free + :shared -> :shared + :buffers -> :buffers + :cached -> :cached + _ -> option + end + end + + @typedoc """ + A stateless protocol **MUST** **NOT** set this attribute + + ### Options + * `:close` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:close_wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:closing` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:established` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:fin_wait_1` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:fin_wait_2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:last_ack` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:listen` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:syn_recv` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:syn_sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:time_wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_network_state() :: + :close + | :close_wait + | :closing + | :delete + | :established + | :fin_wait_1 + | :fin_wait_2 + | :last_ack + | :listen + | :syn_recv + | :syn_sent + | :time_wait + | atom() + + @doc """ + A stateless protocol **MUST** **NOT** set this attribute + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state(:close) + :close + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state(:custom_value) + :custom_value + """ + @spec system_network_state(system_network_state()) :: + :close + | :close_wait + | :closing + | :delete + | :established + | :fin_wait_1 + | :fin_wait_2 + | :last_ack + | :listen + | :syn_recv + | :syn_sent + | :time_wait + | atom() + def system_network_state(option) do + :"system.network.state" + + case option do + :close -> :close + :close_wait -> :close_wait + :closing -> :closing + :delete -> :delete + :established -> :established + :fin_wait_1 -> :fin_wait_1 + :fin_wait_2 -> :fin_wait_2 + :last_ack -> :last_ack + :listen -> :listen + :syn_recv -> :syn_recv + :syn_sent -> :syn_sent + :time_wait -> :time_wait + _ -> option + end + end + + @typedoc """ + The paging access direction + + ### Options + * `:in` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:out` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_paging_direction() :: :in | :out | atom() + + @doc """ + The paging access direction + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction(:in) + :in + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction(:custom_value) + :custom_value + """ + @spec system_paging_direction(system_paging_direction()) :: :in | :out | atom() + def system_paging_direction(option) do + :"system.paging.direction" + + case option do + :in -> :in + :out -> :out + _ -> option + end + end + + @typedoc """ + The memory paging state + + ### Options + * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_paging_state() :: :used | :free | atom() + + @doc """ + The memory paging state + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state(:used) + :used + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state(:custom_value) + :custom_value + """ + @spec system_paging_state(system_paging_state()) :: :used | :free | atom() + def system_paging_state(option) do + :"system.paging.state" + + case option do + :used -> :used + :free -> :free + _ -> option + end + end + + @typedoc """ + The memory paging type + + ### Options + * `:major` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:minor` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_paging_type() :: :major | :minor | atom() + + @doc """ + The memory paging type + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type(:major) + :major + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type(:custom_value) + :custom_value + """ + @spec system_paging_type(system_paging_type()) :: :major | :minor | atom() + def system_paging_type(option) do + :"system.paging.type" + + case option do + :major -> :major + :minor -> :minor + _ -> option + end + end + + @typedoc """ + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + + ### Options + * `:running` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:sleeping` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:stopped` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:defunct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() + + @doc """ + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + + + ### Example + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status(:running) + :running + + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status(:custom_value) + :custom_value + """ + @spec system_process_status(system_process_status()) :: + :running | :sleeping | :stopped | :defunct | atom() + def system_process_status(option) do + :"system.process.status" + + case option do + :running -> :running + :sleeping -> :sleeping + :stopped -> :stopped + :defunct -> :defunct + _ -> option + end + end + + @typedoc """ + Deprecated, use `system.process.status` instead. + + ### Options + * `:running` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:sleeping` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:stopped` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:defunct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type system_processes_status() :: :running | :sleeping | :stopped | :defunct | atom() + + @deprecated """ + Replaced by `system.process.status`. + """ + + @spec system_processes_status(system_processes_status()) :: + :running | :sleeping | :stopped | :defunct | atom() + def system_processes_status(option) do + :"system.processes.status" + + case option do + :running -> :running + :sleeping -> :sleeping + :stopped -> :stopped + :defunct -> :defunct + _ -> option + end + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex new file mode 100644 index 00000000..766c0541 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -0,0 +1,154 @@ +defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Telemetry attributes. + """ + + @doc """ + The name of the auto instrumentation agent or distribution, if used. + + ### Notes + + Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to + a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_distro_name() + :"telemetry.distro.name" + """ + @spec telemetry_distro_name :: :"telemetry.distro.name" + def telemetry_distro_name do + :"telemetry.distro.name" + end + + @doc """ + The version string of the auto instrumentation agent or distribution, if used. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_distro_version() + :"telemetry.distro.version" + """ + @spec telemetry_distro_version :: :"telemetry.distro.version" + def telemetry_distro_version do + :"telemetry.distro.version" + end + + @typedoc """ + The language of the telemetry SDK. + + + ### Options + * `:cpp` + * `:dotnet` + * `:erlang` + * `:go` + * `:java` + * `:nodejs` + * `:php` + * `:python` + * `:ruby` + * `:rust` + * `:swift` + * `:webjs` + + """ + @type telemetry_sdk_language() :: + :cpp + | :dotnet + | :erlang + | :go + | :java + | :nodejs + | :php + | :python + | :ruby + | :rust + | :swift + | :webjs + | atom() + + @doc """ + The language of the telemetry SDK. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language(:cpp) + :cpp + + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language(:custom_value) + :custom_value + """ + @spec telemetry_sdk_language(telemetry_sdk_language()) :: + :cpp + | :dotnet + | :erlang + | :go + | :java + | :nodejs + | :php + | :python + | :ruby + | :rust + | :swift + | :webjs + | atom() + def telemetry_sdk_language(option) do + :"telemetry.sdk.language" + + case option do + :cpp -> :cpp + :dotnet -> :dotnet + :erlang -> :erlang + :go -> :go + :java -> :java + :nodejs -> :nodejs + :php -> :php + :python -> :python + :ruby -> :ruby + :rust -> :rust + :swift -> :swift + :webjs -> :webjs + _ -> option + end + end + + @doc """ + The name of the telemetry SDK as defined above. + + ### Notes + + The OpenTelemetry SDK **MUST** set the `telemetry.sdk.name` attribute to `opentelemetry`. + If another SDK, like a fork or a vendor-provided implementation, is used, this SDK **MUST** set the + `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point + or another suitable identifier depending on the language. + The identifier `opentelemetry` is reserved and **MUST** **NOT** be used in this case. + All custom identifiers **SHOULD** be stable across different versions of an implementation. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_name() + :"telemetry.sdk.name" + """ + @spec telemetry_sdk_name :: :"telemetry.sdk.name" + def telemetry_sdk_name do + :"telemetry.sdk.name" + end + + @doc """ + The version string of the telemetry SDK. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_version() + :"telemetry.sdk.version" + """ + @spec telemetry_sdk_version :: :"telemetry.sdk.version" + def telemetry_sdk_version do + :"telemetry.sdk.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex new file mode 100644 index 00000000..426ec93c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex @@ -0,0 +1,34 @@ +defmodule OpenTelemetry.SemanticConventions.ThreadAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Thread attributes. + """ + + @doc """ + Current "managed" thread ID (as opposed to OS thread ID). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ThreadAttributes.thread_id() + :"thread.id" + """ + @spec thread_id :: :"thread.id" + def thread_id do + :"thread.id" + end + + @doc """ + Current thread name. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.ThreadAttributes.thread_name() + :"thread.name" + """ + @spec thread_name :: :"thread.name" + def thread_name do + :"thread.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex new file mode 100644 index 00000000..eecf5663 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex @@ -0,0 +1,420 @@ +defmodule OpenTelemetry.SemanticConventions.TlsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Tls attributes. + """ + + @doc """ + String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. + + ### Notes + + The values allowed for `tls.cipher` **MUST** be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4). + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_cipher() + :"tls.cipher" + """ + @spec tls_cipher :: :"tls.cipher" + def tls_cipher do + :"tls.cipher" + end + + @doc """ + PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_certificate() + :"tls.client.certificate" + """ + @spec tls_client_certificate :: :"tls.client.certificate" + def tls_client_certificate do + :"tls.client.certificate" + end + + @doc """ + Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_certificatechain() + :"tls.client.certificate_chain" + """ + @spec tls_client_certificatechain :: :"tls.client.certificate_chain" + def tls_client_certificatechain do + :"tls.client.certificate_chain" + end + + @doc """ + Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_hash_md_5() + :"tls.client.hash.md5" + """ + @spec tls_client_hash_md_5 :: :"tls.client.hash.md5" + def tls_client_hash_md_5 do + :"tls.client.hash.md5" + end + + @doc """ + Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_hash_sha_1() + :"tls.client.hash.sha1" + """ + @spec tls_client_hash_sha_1 :: :"tls.client.hash.sha1" + def tls_client_hash_sha_1 do + :"tls.client.hash.sha1" + end + + @doc """ + Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_hash_sha_256() + :"tls.client.hash.sha256" + """ + @spec tls_client_hash_sha_256 :: :"tls.client.hash.sha256" + def tls_client_hash_sha_256 do + :"tls.client.hash.sha256" + end + + @doc """ + Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_issuer() + :"tls.client.issuer" + """ + @spec tls_client_issuer :: :"tls.client.issuer" + def tls_client_issuer do + :"tls.client.issuer" + end + + @doc """ + A hash that identifies clients based on how they perform an SSL/TLS handshake. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_ja_3() + :"tls.client.ja3" + """ + @spec tls_client_ja_3 :: :"tls.client.ja3" + def tls_client_ja_3 do + :"tls.client.ja3" + end + + @doc """ + Date/Time indicating when client certificate is no longer considered valid. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_notafter() + :"tls.client.not_after" + """ + @spec tls_client_notafter :: :"tls.client.not_after" + def tls_client_notafter do + :"tls.client.not_after" + end + + @doc """ + Date/Time indicating when client certificate is first considered valid. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_notbefore() + :"tls.client.not_before" + """ + @spec tls_client_notbefore :: :"tls.client.not_before" + def tls_client_notbefore do + :"tls.client.not_before" + end + + @doc """ + Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_servername() + :"tls.client.server_name" + """ + @spec tls_client_servername :: :"tls.client.server_name" + def tls_client_servername do + :"tls.client.server_name" + end + + @doc """ + Distinguished name of subject of the x.509 certificate presented by the client. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_subject() + :"tls.client.subject" + """ + @spec tls_client_subject :: :"tls.client.subject" + def tls_client_subject do + :"tls.client.subject" + end + + @doc """ + Array of ciphers offered by the client during the client hello. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_supportedciphers() + :"tls.client.supported_ciphers" + """ + @spec tls_client_supportedciphers :: :"tls.client.supported_ciphers" + def tls_client_supportedciphers do + :"tls.client.supported_ciphers" + end + + @doc """ + String indicating the curve used for the given cipher, when applicable + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_curve() + :"tls.curve" + """ + @spec tls_curve :: :"tls.curve" + def tls_curve do + :"tls.curve" + end + + @doc """ + Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_established() + :"tls.established" + """ + @spec tls_established :: :"tls.established" + def tls_established do + :"tls.established" + end + + @doc """ + String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_nextprotocol() + :"tls.next_protocol" + """ + @spec tls_nextprotocol :: :"tls.next_protocol" + def tls_nextprotocol do + :"tls.next_protocol" + end + + @typedoc """ + Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + + ### Options + * `:ssl` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:tls` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + + """ + @type tls_protocol_name() :: :ssl | :tls | atom() + + @doc """ + Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name(:ssl) + :ssl + + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name(:custom_value) + :custom_value + """ + @spec tls_protocol_name(tls_protocol_name()) :: :ssl | :tls | atom() + def tls_protocol_name(option) do + :"tls.protocol.name" + + case option do + :ssl -> :ssl + :tls -> :tls + _ -> option + end + end + + @doc """ + Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_version() + :"tls.protocol.version" + """ + @spec tls_protocol_version :: :"tls.protocol.version" + def tls_protocol_version do + :"tls.protocol.version" + end + + @doc """ + Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_resumed() + :"tls.resumed" + """ + @spec tls_resumed :: :"tls.resumed" + def tls_resumed do + :"tls.resumed" + end + + @doc """ + PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_certificate() + :"tls.server.certificate" + """ + @spec tls_server_certificate :: :"tls.server.certificate" + def tls_server_certificate do + :"tls.server.certificate" + end + + @doc """ + Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_certificatechain() + :"tls.server.certificate_chain" + """ + @spec tls_server_certificatechain :: :"tls.server.certificate_chain" + def tls_server_certificatechain do + :"tls.server.certificate_chain" + end + + @doc """ + Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_hash_md_5() + :"tls.server.hash.md5" + """ + @spec tls_server_hash_md_5 :: :"tls.server.hash.md5" + def tls_server_hash_md_5 do + :"tls.server.hash.md5" + end + + @doc """ + Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_hash_sha_1() + :"tls.server.hash.sha1" + """ + @spec tls_server_hash_sha_1 :: :"tls.server.hash.sha1" + def tls_server_hash_sha_1 do + :"tls.server.hash.sha1" + end + + @doc """ + Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_hash_sha_256() + :"tls.server.hash.sha256" + """ + @spec tls_server_hash_sha_256 :: :"tls.server.hash.sha256" + def tls_server_hash_sha_256 do + :"tls.server.hash.sha256" + end + + @doc """ + Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_issuer() + :"tls.server.issuer" + """ + @spec tls_server_issuer :: :"tls.server.issuer" + def tls_server_issuer do + :"tls.server.issuer" + end + + @doc """ + A hash that identifies servers based on how they perform an SSL/TLS handshake. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_ja_3_s() + :"tls.server.ja3s" + """ + @spec tls_server_ja_3_s :: :"tls.server.ja3s" + def tls_server_ja_3_s do + :"tls.server.ja3s" + end + + @doc """ + Date/Time indicating when server certificate is no longer considered valid. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_notafter() + :"tls.server.not_after" + """ + @spec tls_server_notafter :: :"tls.server.not_after" + def tls_server_notafter do + :"tls.server.not_after" + end + + @doc """ + Date/Time indicating when server certificate is first considered valid. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_notbefore() + :"tls.server.not_before" + """ + @spec tls_server_notbefore :: :"tls.server.not_before" + def tls_server_notbefore do + :"tls.server.not_before" + end + + @doc """ + Distinguished name of subject of the x.509 certificate presented by the server. + + + ### Example + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_subject() + :"tls.server.subject" + """ + @spec tls_server_subject :: :"tls.server.subject" + def tls_server_subject do + :"tls.server.subject" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex new file mode 100644 index 00000000..212265b8 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex @@ -0,0 +1,217 @@ +defmodule OpenTelemetry.SemanticConventions.UrlAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Url attributes. + """ + + @doc """ + Domain extracted from the `url.full`, such as "opentelemetry.io". + + ### Notes + + In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_domain() + :"url.domain" + """ + @spec url_domain :: :"url.domain" + def url_domain do + :"url.domain" + end + + @doc """ + The file extension extracted from the `url.full`, excluding the leading dot. + + ### Notes + + The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_extension() + :"url.extension" + """ + @spec url_extension :: :"url.extension" + def url_extension do + :"url.extension" + end + + @doc """ + The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component + + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_fragment() + :"url.fragment" + """ + @spec url_fragment :: :"url.fragment" + def url_fragment do + :"url.fragment" + end + + @doc """ + Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) + ### Notes + + For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it **SHOULD** be included nevertheless. + `url.full` **MUST** **NOT** contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password **SHOULD** be redacted and attribute's value **SHOULD** be `https://REDACTED:REDACTED@www.example.com/`. + `url.full` **SHOULD** capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` **SHOULD** be scrubbed when instrumentations can identify it. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_full() + :"url.full" + """ + @spec url_full :: :"url.full" + def url_full do + :"url.full" + end + + @doc """ + Unmodified original URL as seen in the event source. + + ### Notes + + In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. + `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username **SHOULD** **NOT** be redacted and attribute's value **SHOULD** remain the same. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_original() + :"url.original" + """ + @spec url_original :: :"url.original" + def url_original do + :"url.original" + end + + @doc """ + The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component + + ### Notes + + Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_path() + :"url.path" + """ + @spec url_path :: :"url.path" + def url_path do + :"url.path" + end + + @doc """ + Port extracted from the `url.full` + + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_port() + :"url.port" + """ + @spec url_port :: :"url.port" + def url_port do + :"url.port" + end + + @doc """ + The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component + + ### Notes + + Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_query() + :"url.query" + """ + @spec url_query :: :"url.query" + def url_query do + :"url.query" + end + + @doc """ + The highest registered url domain, stripped of the subdomain. + + ### Notes + + This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_registereddomain() + :"url.registered_domain" + """ + @spec url_registereddomain :: :"url.registered_domain" + def url_registereddomain do + :"url.registered_domain" + end + + @doc """ + The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_scheme() + :"url.scheme" + """ + @spec url_scheme :: :"url.scheme" + def url_scheme do + :"url.scheme" + end + + @doc """ + The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. + + ### Notes + + The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_subdomain() + :"url.subdomain" + """ + @spec url_subdomain :: :"url.subdomain" + def url_subdomain do + :"url.subdomain" + end + + @doc """ + The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_template() + :"url.template" + """ + @spec url_template :: :"url.template" + def url_template do + :"url.template" + end + + @doc """ + The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. + + ### Notes + + This value can be determined precisely with the [public suffix list](http://publicsuffix.org). + + + ### Example + iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_topleveldomain() + :"url.top_level_domain" + """ + @spec url_topleveldomain :: :"url.top_level_domain" + def url_topleveldomain do + :"url.top_level_domain" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex new file mode 100644 index 00000000..3b6d2ce6 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex @@ -0,0 +1,54 @@ +defmodule OpenTelemetry.SemanticConventions.UserAgentAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for User_Agent attributes. + """ + + @doc """ + Name of the user-agent extracted from original. Usually refers to the browser's name. + + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` + + + ### Example + iex> OpenTelemetry.SemanticConventions.UserAgentAttributes.useragent_name() + :"user_agent.name" + """ + @spec useragent_name :: :"user_agent.name" + def useragent_name do + :"user_agent.name" + end + + @doc """ + Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.UserAgentAttributes.useragent_original() + :"user_agent.original" + """ + @spec useragent_original :: :"user_agent.original" + def useragent_original do + :"user_agent.original" + end + + @doc """ + Version of the user-agent extracted from original. Usually refers to the browser's version + + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` + + + ### Example + iex> OpenTelemetry.SemanticConventions.UserAgentAttributes.useragent_version() + :"user_agent.version" + """ + @spec useragent_version :: :"user_agent.version" + def useragent_version do + :"user_agent.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex new file mode 100644 index 00000000..fb4939bb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex @@ -0,0 +1,48 @@ +defmodule OpenTelemetry.SemanticConventions.WebengineAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Webengine attributes. + """ + + @doc """ + Additional description of the web engine (e.g. detailed version and edition information). + + + + ### Example + iex> OpenTelemetry.SemanticConventions.WebengineAttributes.webengine_description() + :"webengine.description" + """ + @spec webengine_description :: :"webengine.description" + def webengine_description do + :"webengine.description" + end + + @doc """ + The name of the web engine. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.WebengineAttributes.webengine_name() + :"webengine.name" + """ + @spec webengine_name :: :"webengine.name" + def webengine_name do + :"webengine.name" + end + + @doc """ + The version of the web engine. + + + + ### Example + iex> OpenTelemetry.SemanticConventions.WebengineAttributes.webengine_version() + :"webengine.version" + """ + @spec webengine_version :: :"webengine.version" + def webengine_version do + :"webengine.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/mix.exs b/apps/opentelemetry_semantic_conventions/mix.exs index cdee01bf..43de72bc 100644 --- a/apps/opentelemetry_semantic_conventions/mix.exs +++ b/apps/opentelemetry_semantic_conventions/mix.exs @@ -13,7 +13,7 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do deps: [ {:dialyxir, "~> 1.0", only: [:dev], runtime: false}, {:covertool, ">= 0.0.0", only: :test}, - {:ex_doc, "~> 0.32", only: [:dev]} + {:ex_doc, "~> 0.34", only: [:dev]} ], name: "OpenTelemetry.SemanticConventions", source_url: @@ -21,44 +21,31 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do docs: [ markdown_processor: {ExDoc.Markdown.Earmark, [all: true]}, main: "OpenTelemetry.SemanticConventions", - extras: [], - groups_for_docs: [ - AWS: &(&1[:namespace] == :aws), - Browser: &(&1[:namespace] == :browser), - Cloud: &(&1[:namespace] in [:cloud, :cloudevents]), - Code: &(&1[:namespace] in [:code, :exception]), - Container: &(&1[:namespace] == :container), - Database: &(&1[:namespace] == :db), - DNS: &(&1[:namespace] in [:client, :destination, :dns]), - "End User": &(&1[:namespace] == :enduser), - FAAS: &(&1[:namespace] == :faas), - "Feature Flag": &(&1[:namespace] == :feature_flag), - File: &(&1[:namespace] == :file), - GCP: &(&1[:namespace] == :gcp), - GraphQL: &(&1[:namespace] == :graphql), - Host: &(&1[:namespace] == :host), - HTTP: &(&1[:namespace] == :http), - Kubernetes: &(&1[:namespace] == :k8s), - Log: &(&1[:namespace] == :log), - Messaging: &(&1[:namespace] == :messaging), - Network: &(&1[:namespace] == :network), - Process: &(&1[:namespace] == :process), - RPC: &(&1[:namespace] == :rpc), - Runtime: &(&1[:namespace] in [:thread]), - Service: &(&1[:namespace] == :service), - Session: &(&1[:namespace] == :session), - System: &(&1[:namespace] in [:device, :system]), - Telemetry: &(&1[:namespace] == :telemetry), - TLS: &(&1[:namespace] == :tls), - URL: &(&1[:namespace] == :url) + extra_section: "GUIDES", + extras: guides() ++ [], + groups_for_extras: [ + "Attributes Registry": Path.wildcard("guides/attributes-registry/*.md"), + "Cloud Providers": Path.wildcard("guides/cloud-providers/*.md"), + "Cloud Events": Path.wildcard("guides/cloudevents/*.md"), + Database: Path.wildcard("guides/database/*.md"), + DNS: Path.wildcard("guides/dns/*.md"), + Exceptions: Path.wildcard("guides/exceptions/*.md"), + FAAS: Path.wildcard("guides/faas/*.md"), + "Feature Flags": Path.wildcard("guides/feature-flags/*.md"), + General: Path.wildcard("guides/general/*.md"), + "Generative AI": Path.wildcard("guides/gen-ai/*.md"), + GraphQL: Path.wildcard("guides/graphql/*.md"), + HTTP: Path.wildcard("guides/http/*.md"), + Messaging: Path.wildcard("guides/messaging/*.md"), + "Object Stores": Path.wildcard("guides/object-stores/*.md"), + Resource: Path.wildcard("guides/resource/**/*.md"), + RPC: Path.wildcard("guides/rpc/*.md"), + Runtime: Path.wildcard("guides/runtime/*.md"), + System: Path.wildcard("guides/system/*.md"), + URL: Path.wildcard("guides/url/*.md") ], nest_modules_by_prefix: [ - OpenTelemetry.SemanticConventions, - Common, - Event, - Metric, - Resource, - Span + OpenTelemetry.SemanticConventions ] ], test_coverage: [tool: :covertool], @@ -87,4 +74,19 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do {name, desc} end + + defp guides do + Path.wildcard("guides/**/*.md") + |> Enum.reject(fn path -> + path in ([ + "guides/attributes-registry/android.md", + "guides/attributes-registry/aspnetcore.md", + "guides/attributes-registry/dotnet.md", + "guides/attributes-registry/ios.md", + "guides/attributes-registry/jvm.md", + "guides/attributes-registry/signalr.md" + ] ++ Path.wildcard("guides/dotnet/*") ++ Path.wildcard("guides/mobile/*")) + end) + |> IO.inspect() + end end diff --git a/apps/opentelemetry_semantic_conventions/mix.lock b/apps/opentelemetry_semantic_conventions/mix.lock index bbb37350..40ee58ee 100644 --- a/apps/opentelemetry_semantic_conventions/mix.lock +++ b/apps/opentelemetry_semantic_conventions/mix.lock @@ -3,9 +3,9 @@ "dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"}, "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, - "ex_doc": {:hex, :ex_doc, "0.32.1", "21e40f939515373bcdc9cffe65f3b3543f05015ac6c3d01d991874129d173420", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "5142c9db521f106d61ff33250f779807ed2a88620e472ac95dc7d59c380113da"}, - "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, + "ex_doc": {:hex, :ex_doc, "0.34.1", "9751a0419bc15bc7580c73fde506b17b07f6402a1e5243be9e0f05a68c723368", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "d441f1a86a235f59088978eff870de2e815e290e44a8bd976fe5d64470a4c9d2"}, + "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.5", "e0ff5a7c708dda34311f7522a8758e23bfcd7d8d8068dc312b5eb41c6fd76eba", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "94d2e986428585a21516d7d7149781480013c56e30c6a233534bedf38867a59a"}, + "makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"}, "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, } diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src index 097c38d2..8075b3f9 100644 --- a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src @@ -1,6 +1,6 @@ {application, opentelemetry_semantic_conventions, [{description, "Macros defining the keys of OpenTelemetry semantic conventions"}, - {vsn, "1.25.0"}, + {vsn, "1.26.0"}, {registered, []}, {applications, [kernel, diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 2e4f9e24..50c74e36 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -1,11 +1,13 @@ {%- macro to_elixir_module(text) -%} {{ text | pascal_case }} {%- endmacro -%} +{#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} + + {# {{ text | snake_case_const | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} {%- macro func_name(text) -%} {{ text | snake_case_const }} {%- endmacro -%} {%- macro to_atom(text) -%} -{#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} {% if text | split_id | length > 1 -%}:"{{ text }}"{%- else -%}:{{ text }}{%- endif %} {%- endmacro -%} {% macro to_elixir_type(member) -%} @@ -30,21 +32,13 @@ {{ template.set_file_name(file_name) }} {%- set module_name = ctx.id | pascal_case ~ "Attributes" -%} -{{ params }} - defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do + # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Attributes. - -``` -{%- for attribute in ctx.attributes | sort(attribute="name") %} - {{ attribute }} -{%- endfor %} -``` + OpenTelemetry Semantic Conventions for {{ ctx.id | title }} attributes. """ {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute.type is mapping %} - {%- set type_name = attribute.name | snake_case_const %} {# @doc namespace: {{ to_atom(ctx.id) }} #} {% for member in attribute.type.members %} @@ -65,49 +59,58 @@ defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do {%- for member in attribute.type.members -%} {% if loop.first %} {% endif %}{% if member.id ~ '' != member.value %}{{ member.id }}(){% else %}{{ enum_value_to_elixir_type(member.value) }}{% endif %}{% if not loop.last %} | {% endif %} {%- endfor -%} - {% if attribute.type.allow_custom_values == true %} | atom(){% endif %} + | atom() {%- endif %} -{%- endfor %} - - {# @doc """ - The URL of the OpenTelemetry schema for these keys and values. - - iex> OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.schema_url() - "{{ schema_uri }}" - """ - @spec schema_url :: String.t() - def schema_url do - "{{ schema_uri }}" - end #} - - -{%- for attribute in ctx.attributes | sort(attribute="name") %} -{% if not(attribute.type is mapping) %} - {# {%- if attribute|is_deprecated %} + {% if attribute is deprecated %} @deprecated """ - {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} + {{ attribute.deprecated | replace("\n", "\n ") }} """ - {%- else -%} + {% else %} @doc """ - {{ attribute }} - {{ strong_reqs(attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} - {%- if attribute.note %} + {{ strong_reqs(attribute.brief | replace("\n", "\n ")) }} + {% if attribute.note -%} ### Notes - {{ strong_reqs(attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} - {%- endif %} + {{ strong_reqs(attribute.note | replace("\n", "\n ")) }} - iex> OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.{{ funcName(attribute.fqn) }}() - :"{{ attribute.fqn }}" + {%- endif %} + ### Example + {%- if not(attribute.type is mapping) %} + iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}() + {{ to_atom(attribute.name) }} + {%- else %} + iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}({{ to_atom(attribute.type.members|first|attr('id'))}}) + {{ enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} + + iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}(:custom_value) + :custom_value + {%- endif %} """ - {%- endif %} #} + {%- endif %} + {%- if not(attribute.type is mapping) %} @spec {{ func_name(attribute.name) }} :: {{ to_atom(attribute.name) }} def {{ func_name(attribute.name) }} do {{ to_atom(attribute.name) }} end + {%- else %} + @spec {{ func_name(attribute.name) }}({{ attribute.name | snake_case_const }}()) :: + {%- for member in attribute.type.members -%} + {% if loop.first %} {% endif %}{% if member.id ~ '' != member.value %}{{ member.id }}(){% else %}{{ enum_value_to_elixir_type(member.value) }}{% endif %}{% if not loop.last %} | {% endif %} + {%- endfor -%} + | atom() + def {{ func_name(attribute.name) }}(option) do + {{ to_atom(attribute.name) }} + + case option do + {% for member in attribute.type.members %} + {{ to_atom(member.id) }} -> {{ enum_value_to_elixir_type(member.value) }} + {% endfor %} + _ -> option + end + end {%- endif %} -{%- endfor %} +{% endfor %} end diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs new file mode 100644 index 00000000..3653836e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs @@ -0,0 +1,22 @@ +contents = + quote do + use ExUnit.Case, async: true + + {:ok, modules} = :application.get_key(:opentelemetry_semantic_conventions, :modules) + + modules_to_test = + Enum.filter(modules, fn module -> + module = to_string(module) + String.starts_with?(module, "Elixir") && String.contains?(module, "SemanticConventions") + end) + + for module <- modules_to_test do + doctest(module) + end + end + +Module.create( + OpenTelemetry.SemanticConventions.RegistryTest, + contents, + Macro.Env.location(__ENV__) +) From d5135648e7be87f7330cbe392a0dda5fa1755a17 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 18:25:16 -0600 Subject: [PATCH 09/57] Fixup generate script --- apps/opentelemetry_semantic_conventions/generate.exs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs index 5b7a8360..c9dbefa9 100644 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -6,14 +6,18 @@ schema_uri = "https://opentelemetry.io/schemas/#{semconv_version}" build_dir = "#{File.cwd!()}/semtmp" # File.rm_rf!(build_dir) +cwd = File.cwd!() + +####### +# Uncomment the following two sections to setup your env +# ##### + # System.cmd("git", [ # "clone", # "https://github.com/open-telemetry/semantic-conventions.git", # build_dir # ]) -cwd = File.cwd!() - # File.cd!(build_dir, fn -> # System.cmd("git", ["pull"]) # System.cmd("git", ["checkout", "v#{semconv_version}"]) @@ -69,6 +73,8 @@ System.cmd("docker", [ # |> List.flatten() # |> Task.await_many(:timer.minutes(5)) +# rpc_attributes.ex will fail with duplicate types for +# sent/receive around the mid-400s lines. Delete +# and run these two commands again System.cmd("mix", ["format"]) System.cmd("mix", ["docs"]) -# From 2f018604bae069a8a22f600306b572849f2c3ca3 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 18:43:47 -0600 Subject: [PATCH 10/57] ignore copied guides --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d2317bb4..e62a0fa3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ _build rebar3.crashdump *~ doc -!_index.md \ No newline at end of file +!_index.md +guides From 212199c2b9f946be9dbf3acb1522ad430418dccf Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 18:43:59 -0600 Subject: [PATCH 11/57] Remove old tests --- .../test/open_telemetry/semantic_conventions/logs_test.exs | 4 ---- .../open_telemetry/semantic_conventions/resource_test.exs | 4 ---- .../test/open_telemetry/semantic_conventions/trace_test.exs | 4 ---- 3 files changed, 12 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/logs_test.exs delete mode 100644 apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/resource_test.exs delete mode 100644 apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/trace_test.exs diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/logs_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/logs_test.exs deleted file mode 100644 index 8fb3caa5..00000000 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/logs_test.exs +++ /dev/null @@ -1,4 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.LogsTest do - use ExUnit.Case, async: true - doctest OpenTelemetry.SemanticConventions.Logs -end diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/resource_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/resource_test.exs deleted file mode 100644 index ab5c11b0..00000000 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/resource_test.exs +++ /dev/null @@ -1,4 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.ResourceTest do - use ExUnit.Case, async: true - doctest OpenTelemetry.SemanticConventions.Resource -end diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/trace_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/trace_test.exs deleted file mode 100644 index bc8bf69d..00000000 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/trace_test.exs +++ /dev/null @@ -1,4 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.TraceTest do - use ExUnit.Case, async: true - doctest OpenTelemetry.SemanticConventions.Trace -end From 3edffcf506ff7552d604bb123849650c6404e720 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 18:47:40 -0600 Subject: [PATCH 12/57] typo --- .../templates/registry/elixir/semantic_attributes.ex.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 50c74e36..54926119 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -22,7 +22,7 @@ {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} {%- endmacro -%} {%- macro strong_reqs(string) -%} - {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", replace=" **MAY** ") | replace(" NOT ", " **NOT** ") }} + {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} {%- endmacro -%} {%- set file_name = ctx.id | snake_case ~ "_attributes.ex" -%} From 82b1319c8f76fa3330c242dd1ce0e08e8beed688 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sun, 23 Jun 2024 20:26:34 -0600 Subject: [PATCH 13/57] template typos --- .../lib/aws_attributes.ex | 2 -- .../lib/cloud_attributes.ex | 4 ---- .../lib/container_attributes.ex | 2 -- .../lib/db_attributes.ex | 12 ----------- .../lib/disk_attributes.ex | 2 -- .../lib/error_attributes.ex | 2 -- .../lib/faas_attributes.ex | 6 ------ .../lib/gen_ai_attributes.ex | 2 -- .../lib/graphql_attributes.ex | 2 -- .../lib/host_attributes.ex | 2 -- .../lib/http_attributes.ex | 10 ++-------- .../lib/log_attributes.ex | 4 +--- .../lib/messaging_attributes.ex | 10 ---------- .../lib/network_attributes.ex | 14 ------------- .../lib/opentracing_attributes.ex | 2 -- .../lib/os_attributes.ex | 2 -- .../lib/otel_attributes.ex | 2 -- .../lib/process_attributes.ex | 6 ------ .../lib/rpc_attributes.ex | 10 ---------- .../lib/system_attributes.ex | 20 ------------------- .../lib/telemetry_attributes.ex | 2 -- .../lib/tls_attributes.ex | 2 -- .../registry/elixir/semantic_attributes.ex.j2 | 2 -- 23 files changed, 3 insertions(+), 119 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex index 770690c4..d41cd6bf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex @@ -343,8 +343,6 @@ defmodule OpenTelemetry.SemanticConventions.AwsAttributes do """ @spec aws_ecs_launchtype(aws_ecs_launchtype()) :: :ec2 | :fargate | atom() def aws_ecs_launchtype(option) do - :"aws.ecs.launchtype" - case option do :ec2 -> :ec2 :fargate -> :fargate diff --git a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex index a907f040..99b4c981 100644 --- a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex @@ -147,8 +147,6 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do | :tencent_cloud_scf | atom() def cloud_platform(option) do - :"cloud.platform" - case option do :alibaba_cloud_ecs -> :alibaba_cloud_ecs :alibaba_cloud_fc -> :alibaba_cloud_fc @@ -214,8 +212,6 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do @spec cloud_provider(cloud_provider()) :: :alibaba_cloud | :aws | :azure | :gcp | :heroku | :ibm_cloud | :tencent_cloud | atom() def cloud_provider(option) do - :"cloud.provider" - case option do :alibaba_cloud -> :alibaba_cloud :aws -> :aws diff --git a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex index 29b79ef3..c4baec4f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex @@ -73,8 +73,6 @@ defmodule OpenTelemetry.SemanticConventions.ContainerAttributes do """ @spec container_cpu_state(container_cpu_state()) :: :user | :system | :kernel | atom() def container_cpu_state(option) do - :"container.cpu.state" - case option do :user -> :user :system -> :system diff --git a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex index 3d99efeb..6116c014 100644 --- a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex @@ -62,8 +62,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do | :local_serial | atom() def db_cassandra_consistencylevel(option) do - :"db.cassandra.consistency_level" - case option do :all -> :all :each_quorum -> :each_quorum @@ -196,8 +194,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do """ @spec db_client_connections_state(db_client_connections_state()) :: :idle | :used | atom() def db_client_connections_state(option) do - :"db.client.connections.state" - case option do :idle -> :idle :used -> :used @@ -268,8 +264,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do """ @spec db_cosmosdb_connectionmode(db_cosmosdb_connectionmode()) :: :gateway | :direct | atom() def db_cosmosdb_connectionmode(option) do - :"db.cosmosdb.connection_mode" - case option do :gateway -> :gateway :direct -> :direct @@ -384,8 +378,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do | execute_javascript() | atom() def db_cosmosdb_operationtype(option) do - :"db.cosmosdb.operation_type" - case option do :invalid -> :Invalid :create -> :Create @@ -834,8 +826,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do | :trino | atom() def db_system(option) do - :"db.system" - case option do :other_sql -> :other_sql :mssql -> :mssql @@ -927,8 +917,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @spec state(state()) :: :idle | :used | atom() def state(option) do - :state - case option do :idle -> :idle :used -> :used diff --git a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex index 5ccf1fd9..272364fe 100644 --- a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex @@ -27,8 +27,6 @@ defmodule OpenTelemetry.SemanticConventions.DiskAttributes do """ @spec disk_io_direction(disk_io_direction()) :: :read | :write | atom() def disk_io_direction(option) do - :"disk.io.direction" - case option do :read -> :read :write -> :write diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index 126a2505..bea7c76c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -52,8 +52,6 @@ defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do """ @spec error_type(error_type()) :: other() | atom() def error_type(option) do - :"error.type" - case option do :other -> :_OTHER _ -> option diff --git a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex index 6a7d508f..e188c247 100644 --- a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex @@ -84,8 +84,6 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do """ @spec faas_document_operation(faas_document_operation()) :: :insert | :edit | :delete | atom() def faas_document_operation(option) do - :"faas.document.operation" - case option do :insert -> :insert :edit -> :edit @@ -188,8 +186,6 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @spec faas_invokedprovider(faas_invokedprovider()) :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() def faas_invokedprovider(option) do - :"faas.invoked_provider" - case option do :alibaba_cloud -> :alibaba_cloud :aws -> :aws @@ -308,8 +304,6 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do """ @spec faas_trigger(faas_trigger()) :: :datasource | :http | :pubsub | :timer | :other | atom() def faas_trigger(option) do - :"faas.trigger" - case option do :datasource -> :datasource :http -> :http diff --git a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex index 0b174c5e..37d40800 100644 --- a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex @@ -150,8 +150,6 @@ defmodule OpenTelemetry.SemanticConventions.GenAiAttributes do """ @spec genai_system(genai_system()) :: :openai | atom() def genai_system(option) do - :"gen_ai.system" - case option do :openai -> :openai _ -> option diff --git a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex index 65d31cbb..596bf1fe 100644 --- a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex @@ -57,8 +57,6 @@ defmodule OpenTelemetry.SemanticConventions.GraphqlAttributes do @spec graphql_operation_type(graphql_operation_type()) :: :query | :mutation | :subscription | atom() def graphql_operation_type(option) do - :"graphql.operation.type" - case option do :query -> :query :mutation -> :mutation diff --git a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex index 4ff48878..f4889e33 100644 --- a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex @@ -36,8 +36,6 @@ defmodule OpenTelemetry.SemanticConventions.HostAttributes do @spec host_arch(host_arch()) :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() def host_arch(option) do - :"host.arch" - case option do :amd64 -> :amd64 :arm32 -> :arm32 diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 6934e43c..914f06e0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -36,8 +36,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do """ @spec http_connection_state(http_connection_state()) :: :active | :idle | atom() def http_connection_state(option) do - :"http.connection.state" - case option do :active -> :active :idle -> :idle @@ -79,8 +77,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @spec http_flavor(http_flavor()) :: http_1_0() | http_1_1() | http_2_0() | http_3_0() | spdy() | quic() | atom() def http_flavor(option) do - :"http.flavor" - case option do :http_1_0 -> :"1.0" :http_1_1 -> :"1.1" @@ -130,7 +126,7 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do ### Notes Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information. - The `User-Agent` header is already captured in the `user_agent.original` attribute. Users{"replace": " **MAY** "}explicitly configure instrumentations to capture them even though it is not recommended. + The `User-Agent` header is already captured in the `user_agent.original` attribute. Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. @@ -232,8 +228,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do | other() | atom() def http_request_method(option) do - :"http.request.method" - case option do :connect -> :CONNECT :delete -> :DELETE @@ -331,7 +325,7 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do ### Notes Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information. - Users{"replace": " **MAY** "}explicitly configure instrumentations to capture them even though it is not recommended. + Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. diff --git a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex index dcec0340..90b1f22a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex @@ -85,8 +85,6 @@ defmodule OpenTelemetry.SemanticConventions.LogAttributes do """ @spec log_iostream(log_iostream()) :: :stdout | :stderr | atom() def log_iostream(option) do - :"log.iostream" - case option do :stdout -> :stdout :stderr -> :stderr @@ -100,7 +98,7 @@ defmodule OpenTelemetry.SemanticConventions.LogAttributes do ### Notes If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records **MUST** have different values. - The id{"replace": " **MAY** "}be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed. + The id **MAY** be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed. ### Example diff --git a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex index 16297026..f1601d7a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex @@ -422,8 +422,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @spec messaging_operation_type(messaging_operation_type()) :: :publish | :create | :receive | deliver() | :settle | atom() def messaging_operation_type(option) do - :"messaging.operation.type" - case option do :publish -> :publish :create -> :create @@ -502,8 +500,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @spec messaging_rocketmq_consumptionmodel(messaging_rocketmq_consumptionmodel()) :: :clustering | :broadcasting | atom() def messaging_rocketmq_consumptionmodel(option) do - :"messaging.rocketmq.consumption_model" - case option do :clustering -> :clustering :broadcasting -> :broadcasting @@ -611,8 +607,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @spec messaging_rocketmq_message_type(messaging_rocketmq_message_type()) :: :normal | :fifo | :delay | :transaction | atom() def messaging_rocketmq_message_type(option) do - :"messaging.rocketmq.message.type" - case option do :normal -> :normal :fifo -> :fifo @@ -680,8 +674,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @spec messaging_servicebus_dispositionstatus(messaging_servicebus_dispositionstatus()) :: :complete | :abandon | :dead_letter | :defer | atom() def messaging_servicebus_dispositionstatus(option) do - :"messaging.servicebus.disposition_status" - case option do :complete -> :complete :abandon -> :abandon @@ -776,8 +768,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do | :rocketmq | atom() def messaging_system(option) do - :"messaging.system" - case option do :activemq -> :activemq :aws_sqs -> :aws_sqs diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index e8cbae05..de4ce524 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -93,8 +93,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @spec net_sock_family(net_sock_family()) :: :inet | :inet6 | :unix | atom() def net_sock_family(option) do - :"net.sock.family" - case option do :inet -> :inet :inet6 -> :inet6 @@ -167,8 +165,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @spec net_transport(net_transport()) :: :ip_tcp | :ip_udp | :pipe | :inproc | :other | atom() def net_transport(option) do - :"net.transport" - case option do :ip_tcp -> :ip_tcp :ip_udp -> :ip_udp @@ -317,8 +313,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do | :lte_ca | atom() def network_connection_subtype(option) do - :"network.connection.subtype" - case option do :gprs -> :gprs :edge -> :edge @@ -372,8 +366,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @spec network_connection_type(network_connection_type()) :: :wifi | :wired | :cell | :unavailable | :unknown | atom() def network_connection_type(option) do - :"network.connection.type" - case option do :wifi -> :wifi :wired -> :wired @@ -407,8 +399,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do """ @spec network_io_direction(network_io_direction()) :: :transmit | :receive | atom() def network_io_direction(option) do - :"network.io.direction" - case option do :transmit -> :transmit :receive -> :receive @@ -533,8 +523,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do """ @spec network_transport(network_transport()) :: :tcp | :udp | :pipe | :unix | atom() def network_transport(option) do - :"network.transport" - case option do :tcp -> :tcp :udp -> :udp @@ -569,8 +557,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do """ @spec network_type(network_type()) :: :ipv4 | :ipv6 | atom() def network_type(option) do - :"network.type" - case option do :ipv4 -> :ipv4 :ipv6 -> :ipv6 diff --git a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex index 0b07fb77..e6b882b0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex @@ -30,8 +30,6 @@ defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do """ @spec opentracing_reftype(opentracing_reftype()) :: :child_of | :follows_from | atom() def opentracing_reftype(option) do - :"opentracing.ref_type" - case option do :child_of -> :child_of :follows_from -> :follows_from diff --git a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex index 52f80b9b..38907ecf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex @@ -102,8 +102,6 @@ defmodule OpenTelemetry.SemanticConventions.OsAttributes do | :z_os | atom() def os_type(option) do - :"os.type" - case option do :windows -> :windows :linux -> :linux diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index b5eac8d5..c6b8d1b4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -75,8 +75,6 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do """ @spec otel_statuscode(otel_statuscode()) :: ok() | error() | atom() def otel_statuscode(option) do - :"otel.status_code" - case option do :ok -> :OK :error -> :ERROR diff --git a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex index 8212a7f4..b8136076 100644 --- a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex @@ -70,8 +70,6 @@ defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do @spec process_contextswitchtype(process_contextswitchtype()) :: :voluntary | :involuntary | atom() def process_contextswitchtype(option) do - :"process.context_switch_type" - case option do :voluntary -> :voluntary :involuntary -> :involuntary @@ -105,8 +103,6 @@ defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do """ @spec process_cpu_state(process_cpu_state()) :: :system | :user | :wait | atom() def process_cpu_state(option) do - :"process.cpu.state" - case option do :system -> :system :user -> :user @@ -252,8 +248,6 @@ defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do """ @spec process_paging_faulttype(process_paging_faulttype()) :: :major | :minor | atom() def process_paging_faulttype(option) do - :"process.paging.fault_type" - case option do :major -> :major :minor -> :minor diff --git a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex index d9d9fc86..4aa40b08 100644 --- a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex @@ -42,8 +42,6 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @spec message_type(message_type()) :: sent() | received() | atom() def message_type(option) do - :"message.type" - case option do :sent -> :SENT :received -> :RECEIVED @@ -131,8 +129,6 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do | :unauthenticated | atom() def rpc_connectrpc_errorcode(option) do - :"rpc.connect_rpc.error_code" - case option do :cancelled -> :cancelled :unknown -> :unknown @@ -330,8 +326,6 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do | unauthenticated() | atom() def rpc_grpc_statuscode(option) do - :"rpc.grpc.status_code" - case option do :ok -> 0 :cancelled -> 1 @@ -458,8 +452,6 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do """ @spec rpc_message_type(rpc_message_type()) :: sent() | received() | atom() def rpc_message_type(option) do - :"rpc.message.type" - case option do :sent -> :SENT :received -> :RECEIVED @@ -539,8 +531,6 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @spec rpc_system(rpc_system()) :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() def rpc_system(option) do - :"rpc.system" - case option do :grpc -> :grpc :java_rmi -> :java_rmi diff --git a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex index b57a7f86..70f7fb33 100644 --- a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex @@ -47,8 +47,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @spec system_cpu_state(system_cpu_state()) :: :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() def system_cpu_state(option) do - :"system.cpu.state" - case option do :user -> :user :system -> :system @@ -124,8 +122,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do """ @spec system_filesystem_state(system_filesystem_state()) :: :used | :free | :reserved | atom() def system_filesystem_state(option) do - :"system.filesystem.state" - case option do :used -> :used :free -> :free @@ -162,8 +158,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @spec system_filesystem_type(system_filesystem_type()) :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() def system_filesystem_type(option) do - :"system.filesystem.type" - case option do :fat32 -> :fat32 :exfat -> :exfat @@ -202,8 +196,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @spec system_memory_state(system_memory_state()) :: :used | :free | :shared | :buffers | :cached | atom() def system_memory_state(option) do - :"system.memory.state" - case option do :used -> :used :free -> :free @@ -273,8 +265,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do | :time_wait | atom() def system_network_state(option) do - :"system.network.state" - case option do :close -> :close :close_wait -> :close_wait @@ -315,8 +305,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do """ @spec system_paging_direction(system_paging_direction()) :: :in | :out | atom() def system_paging_direction(option) do - :"system.paging.direction" - case option do :in -> :in :out -> :out @@ -347,8 +335,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do """ @spec system_paging_state(system_paging_state()) :: :used | :free | atom() def system_paging_state(option) do - :"system.paging.state" - case option do :used -> :used :free -> :free @@ -379,8 +365,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do """ @spec system_paging_type(system_paging_type()) :: :major | :minor | atom() def system_paging_type(option) do - :"system.paging.type" - case option do :major -> :major :minor -> :minor @@ -416,8 +400,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @spec system_process_status(system_process_status()) :: :running | :sleeping | :stopped | :defunct | atom() def system_process_status(option) do - :"system.process.status" - case option do :running -> :running :sleeping -> :sleeping @@ -446,8 +428,6 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @spec system_processes_status(system_processes_status()) :: :running | :sleeping | :stopped | :defunct | atom() def system_processes_status(option) do - :"system.processes.status" - case option do :running -> :running :sleeping -> :sleeping diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index 766c0541..17f99f52 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -97,8 +97,6 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do | :webjs | atom() def telemetry_sdk_language(option) do - :"telemetry.sdk.language" - case option do :cpp -> :cpp :dotnet -> :dotnet diff --git a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex index eecf5663..7dacc2bd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex @@ -247,8 +247,6 @@ defmodule OpenTelemetry.SemanticConventions.TlsAttributes do """ @spec tls_protocol_name(tls_protocol_name()) :: :ssl | :tls | atom() def tls_protocol_name(option) do - :"tls.protocol.name" - case option do :ssl -> :ssl :tls -> :tls diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 54926119..3e9f3dd9 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -102,8 +102,6 @@ defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do {%- endfor -%} | atom() def {{ func_name(attribute.name) }}(option) do - {{ to_atom(attribute.name) }} - case option do {% for member in attribute.type.members %} {{ to_atom(member.id) }} -> {{ enum_value_to_elixir_type(member.value) }} From b921da48e82d63552c3b8ae81e001ff2746f0e85 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Mon, 24 Jun 2024 18:19:50 -0600 Subject: [PATCH 14/57] enum rework --- .../lib/aws_attributes.ex | 29 +- .../lib/cloud_attributes.ex | 211 +++---- .../lib/container_attributes.ex | 33 +- .../lib/db_attributes.ex | 593 +++++++----------- .../lib/disk_attributes.ex | 29 +- .../lib/error_attributes.ex | 28 +- .../lib/faas_attributes.ex | 109 ++-- .../lib/gen_ai_attributes.ex | 26 +- .../lib/graphql_attributes.ex | 33 +- .../lib/host_attributes.ex | 48 +- .../lib/http_attributes.ex | 187 +++--- .../lib/k_8_s_attributes.ex | 1 - .../lib/log_attributes.ex | 29 +- .../lib/messaging_attributes.ex | 222 +++---- .../lib/network_attributes.ex | 339 +++++----- .../lib/opentracing_attributes.ex | 29 +- .../lib/os_attributes.ex | 80 ++- .../lib/otel_attributes.ex | 35 +- .../lib/process_attributes.ex | 91 +-- .../lib/rpc_attributes.ex | 362 +++++------ .../lib/system_attributes.ex | 400 ++++++------ .../lib/telemetry_attributes.ex | 85 ++- .../lib/tls_attributes.ex | 29 +- .../registry/elixir/semantic_attributes.ex.j2 | 84 +-- 24 files changed, 1511 insertions(+), 1601 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex index d41cd6bf..327966f0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex @@ -322,32 +322,37 @@ defmodule OpenTelemetry.SemanticConventions.AwsAttributes do The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. - ### Options + ### Enum Values * `:ec2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:fargate` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type aws_ecs_launchtype() :: :ec2 | :fargate | atom() - + @type aws_ecs_launchtype() :: %{ + :ec2 => :ec2, + :fargate => :fargate + } @doc """ The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype(:ec2) + iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype().ec2 :ec2 iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype(:custom_value) :custom_value """ - @spec aws_ecs_launchtype(aws_ecs_launchtype()) :: :ec2 | :fargate | atom() - def aws_ecs_launchtype(option) do - case option do - :ec2 -> :ec2 - :fargate -> :fargate - _ -> option - end + @spec aws_ecs_launchtype() :: aws_ecs_launchtype() + def aws_ecs_launchtype() do + %{ + :ec2 => :ec2, + :fargate => :fargate + } + end + + @spec aws_ecs_launchtype(atom() | String.t()) :: atom() | String.t() + def aws_ecs_launchtype(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex index 99b4c981..b3265398 100644 --- a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do The cloud platform in use. - ### Options + ### Enum Values * `:alibaba_cloud_ecs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud Elastic Compute Service * `:alibaba_cloud_fc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud Function Compute * `:alibaba_cloud_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on Alibaba Cloud @@ -68,39 +68,37 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do * `:tencent_cloud_cvm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Cloud Virtual Machine (CVM) * `:tencent_cloud_eks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Elastic Kubernetes Service (EKS) * `:tencent_cloud_scf` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Serverless Cloud Function (SCF) - """ - @type cloud_platform() :: - :alibaba_cloud_ecs - | :alibaba_cloud_fc - | :alibaba_cloud_openshift - | :aws_ec2 - | :aws_ecs - | :aws_eks - | :aws_lambda - | :aws_elastic_beanstalk - | :aws_app_runner - | :aws_openshift - | :azure_vm - | :azure_container_apps - | :azure_container_instances - | :azure_aks - | :azure_functions - | :azure_app_service - | :azure_openshift - | :gcp_bare_metal_solution - | :gcp_compute_engine - | :gcp_cloud_run - | :gcp_kubernetes_engine - | :gcp_cloud_functions - | :gcp_app_engine - | :gcp_openshift - | :ibm_cloud_openshift - | :tencent_cloud_cvm - | :tencent_cloud_eks - | :tencent_cloud_scf - | atom() - + @type cloud_platform() :: %{ + :alibaba_cloud_ecs => :alibaba_cloud_ecs, + :alibaba_cloud_fc => :alibaba_cloud_fc, + :alibaba_cloud_openshift => :alibaba_cloud_openshift, + :aws_ec2 => :aws_ec2, + :aws_ecs => :aws_ecs, + :aws_eks => :aws_eks, + :aws_lambda => :aws_lambda, + :aws_elastic_beanstalk => :aws_elastic_beanstalk, + :aws_app_runner => :aws_app_runner, + :aws_openshift => :aws_openshift, + :azure_vm => :azure_vm, + :azure_container_apps => :azure_container_apps, + :azure_container_instances => :azure_container_instances, + :azure_aks => :azure_aks, + :azure_functions => :azure_functions, + :azure_app_service => :azure_app_service, + :azure_openshift => :azure_openshift, + :gcp_bare_metal_solution => :gcp_bare_metal_solution, + :gcp_compute_engine => :gcp_compute_engine, + :gcp_cloud_run => :gcp_cloud_run, + :gcp_kubernetes_engine => :gcp_kubernetes_engine, + :gcp_cloud_functions => :gcp_cloud_functions, + :gcp_app_engine => :gcp_app_engine, + :gcp_openshift => :gcp_openshift, + :ibm_cloud_openshift => :ibm_cloud_openshift, + :tencent_cloud_cvm => :tencent_cloud_cvm, + :tencent_cloud_eks => :tencent_cloud_eks, + :tencent_cloud_scf => :tencent_cloud_scf + } @doc """ The cloud platform in use. @@ -110,81 +108,56 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform(:alibaba_cloud_ecs) + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform().alibaba_cloud_ecs :alibaba_cloud_ecs iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform(:custom_value) :custom_value """ - @spec cloud_platform(cloud_platform()) :: - :alibaba_cloud_ecs - | :alibaba_cloud_fc - | :alibaba_cloud_openshift - | :aws_ec2 - | :aws_ecs - | :aws_eks - | :aws_lambda - | :aws_elastic_beanstalk - | :aws_app_runner - | :aws_openshift - | :azure_vm - | :azure_container_apps - | :azure_container_instances - | :azure_aks - | :azure_functions - | :azure_app_service - | :azure_openshift - | :gcp_bare_metal_solution - | :gcp_compute_engine - | :gcp_cloud_run - | :gcp_kubernetes_engine - | :gcp_cloud_functions - | :gcp_app_engine - | :gcp_openshift - | :ibm_cloud_openshift - | :tencent_cloud_cvm - | :tencent_cloud_eks - | :tencent_cloud_scf - | atom() - def cloud_platform(option) do - case option do - :alibaba_cloud_ecs -> :alibaba_cloud_ecs - :alibaba_cloud_fc -> :alibaba_cloud_fc - :alibaba_cloud_openshift -> :alibaba_cloud_openshift - :aws_ec2 -> :aws_ec2 - :aws_ecs -> :aws_ecs - :aws_eks -> :aws_eks - :aws_lambda -> :aws_lambda - :aws_elastic_beanstalk -> :aws_elastic_beanstalk - :aws_app_runner -> :aws_app_runner - :aws_openshift -> :aws_openshift - :azure_vm -> :azure_vm - :azure_container_apps -> :azure_container_apps - :azure_container_instances -> :azure_container_instances - :azure_aks -> :azure_aks - :azure_functions -> :azure_functions - :azure_app_service -> :azure_app_service - :azure_openshift -> :azure_openshift - :gcp_bare_metal_solution -> :gcp_bare_metal_solution - :gcp_compute_engine -> :gcp_compute_engine - :gcp_cloud_run -> :gcp_cloud_run - :gcp_kubernetes_engine -> :gcp_kubernetes_engine - :gcp_cloud_functions -> :gcp_cloud_functions - :gcp_app_engine -> :gcp_app_engine - :gcp_openshift -> :gcp_openshift - :ibm_cloud_openshift -> :ibm_cloud_openshift - :tencent_cloud_cvm -> :tencent_cloud_cvm - :tencent_cloud_eks -> :tencent_cloud_eks - :tencent_cloud_scf -> :tencent_cloud_scf - _ -> option - end + @spec cloud_platform() :: cloud_platform() + def cloud_platform() do + %{ + :alibaba_cloud_ecs => :alibaba_cloud_ecs, + :alibaba_cloud_fc => :alibaba_cloud_fc, + :alibaba_cloud_openshift => :alibaba_cloud_openshift, + :aws_ec2 => :aws_ec2, + :aws_ecs => :aws_ecs, + :aws_eks => :aws_eks, + :aws_lambda => :aws_lambda, + :aws_elastic_beanstalk => :aws_elastic_beanstalk, + :aws_app_runner => :aws_app_runner, + :aws_openshift => :aws_openshift, + :azure_vm => :azure_vm, + :azure_container_apps => :azure_container_apps, + :azure_container_instances => :azure_container_instances, + :azure_aks => :azure_aks, + :azure_functions => :azure_functions, + :azure_app_service => :azure_app_service, + :azure_openshift => :azure_openshift, + :gcp_bare_metal_solution => :gcp_bare_metal_solution, + :gcp_compute_engine => :gcp_compute_engine, + :gcp_cloud_run => :gcp_cloud_run, + :gcp_kubernetes_engine => :gcp_kubernetes_engine, + :gcp_cloud_functions => :gcp_cloud_functions, + :gcp_app_engine => :gcp_app_engine, + :gcp_openshift => :gcp_openshift, + :ibm_cloud_openshift => :ibm_cloud_openshift, + :tencent_cloud_cvm => :tencent_cloud_cvm, + :tencent_cloud_eks => :tencent_cloud_eks, + :tencent_cloud_scf => :tencent_cloud_scf + } + end + + @spec cloud_platform(atom() | String.t()) :: atom() | String.t() + def cloud_platform(custom_value) do + custom_value end @typedoc """ Name of the cloud provider. - ### Options + ### Enum Values * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud * `:aws` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services * `:azure` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure @@ -192,36 +165,44 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do * `:heroku` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Heroku Platform as a Service * `:ibm_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Cloud * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud - """ - @type cloud_provider() :: - :alibaba_cloud | :aws | :azure | :gcp | :heroku | :ibm_cloud | :tencent_cloud | atom() - + @type cloud_provider() :: %{ + :alibaba_cloud => :alibaba_cloud, + :aws => :aws, + :azure => :azure, + :gcp => :gcp, + :heroku => :heroku, + :ibm_cloud => :ibm_cloud, + :tencent_cloud => :tencent_cloud + } @doc """ Name of the cloud provider. ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider(:alibaba_cloud) + iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider().alibaba_cloud :alibaba_cloud iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider(:custom_value) :custom_value """ - @spec cloud_provider(cloud_provider()) :: - :alibaba_cloud | :aws | :azure | :gcp | :heroku | :ibm_cloud | :tencent_cloud | atom() - def cloud_provider(option) do - case option do - :alibaba_cloud -> :alibaba_cloud - :aws -> :aws - :azure -> :azure - :gcp -> :gcp - :heroku -> :heroku - :ibm_cloud -> :ibm_cloud - :tencent_cloud -> :tencent_cloud - _ -> option - end + @spec cloud_provider() :: cloud_provider() + def cloud_provider() do + %{ + :alibaba_cloud => :alibaba_cloud, + :aws => :aws, + :azure => :azure, + :gcp => :gcp, + :heroku => :heroku, + :ibm_cloud => :ibm_cloud, + :tencent_cloud => :tencent_cloud + } + end + + @spec cloud_provider(atom() | String.t()) :: atom() | String.t() + def cloud_provider(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex index c4baec4f..4300083f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex @@ -52,33 +52,39 @@ defmodule OpenTelemetry.SemanticConventions.ContainerAttributes do @typedoc """ The CPU state for this data point. - ### Options + ### Enum Values * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) * `:kernel` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). - """ - @type container_cpu_state() :: :user | :system | :kernel | atom() - + @type container_cpu_state() :: %{ + :user => :user, + :system => :system, + :kernel => :kernel + } @doc """ The CPU state for this data point. ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state(:user) + iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state().user :user iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state(:custom_value) :custom_value """ - @spec container_cpu_state(container_cpu_state()) :: :user | :system | :kernel | atom() - def container_cpu_state(option) do - case option do - :user -> :user - :system -> :system - :kernel -> :kernel - _ -> option - end + @spec container_cpu_state() :: container_cpu_state() + def container_cpu_state() do + %{ + :user => :user, + :system => :system, + :kernel => :kernel + } + end + + @spec container_cpu_state(atom() | String.t()) :: atom() | String.t() + def container_cpu_state(custom_value) do + custom_value end @doc """ @@ -176,7 +182,6 @@ defmodule OpenTelemetry.SemanticConventions.ContainerAttributes do @deprecated """ Replaced by `container.label`. """ - @spec container_labels :: :"container.labels" def container_labels do :"container.labels" diff --git a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex index 6116c014..88feebb2 100644 --- a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex @@ -8,7 +8,7 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do 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). - ### Options + ### Enum Values * `:all` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:each_quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ @@ -20,62 +20,52 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do * `:any` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:serial` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:local_serial` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type db_cassandra_consistencylevel() :: - :all - | :each_quorum - | :quorum - | :local_quorum - | :one - | :two - | :three - | :local_one - | :any - | :serial - | :local_serial - | atom() - + @type db_cassandra_consistencylevel() :: %{ + :all => :all, + :each_quorum => :each_quorum, + :quorum => :quorum, + :local_quorum => :local_quorum, + :one => :one, + :two => :two, + :three => :three, + :local_one => :local_one, + :any => :any, + :serial => :serial, + :local_serial => :local_serial + } @doc """ 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). ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel(:all) + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel().all :all iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel(:custom_value) :custom_value """ - @spec db_cassandra_consistencylevel(db_cassandra_consistencylevel()) :: - :all - | :each_quorum - | :quorum - | :local_quorum - | :one - | :two - | :three - | :local_one - | :any - | :serial - | :local_serial - | atom() - def db_cassandra_consistencylevel(option) do - case option do - :all -> :all - :each_quorum -> :each_quorum - :quorum -> :quorum - :local_quorum -> :local_quorum - :one -> :one - :two -> :two - :three -> :three - :local_one -> :local_one - :any -> :any - :serial -> :serial - :local_serial -> :local_serial - _ -> option - end + @spec db_cassandra_consistencylevel() :: db_cassandra_consistencylevel() + def db_cassandra_consistencylevel() do + %{ + :all => :all, + :each_quorum => :each_quorum, + :quorum => :quorum, + :local_quorum => :local_quorum, + :one => :one, + :two => :two, + :three => :three, + :local_one => :local_one, + :any => :any, + :serial => :serial, + :local_serial => :local_serial + } + end + + @spec db_cassandra_consistencylevel(atom() | String.t()) :: atom() | String.t() + def db_cassandra_consistencylevel(custom_value) do + custom_value end @doc """ @@ -151,7 +141,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.collection.name`. """ - @spec db_cassandra_table :: :"db.cassandra.table" def db_cassandra_table do :"db.cassandra.table" @@ -174,31 +163,36 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @typedoc """ The state of a connection in the pool - ### Options + ### Enum Values * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type db_client_connections_state() :: :idle | :used | atom() - + @type db_client_connections_state() :: %{ + :idle => :idle, + :used => :used + } @doc """ The state of a connection in the pool ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state(:idle) + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state().idle :idle iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state(:custom_value) :custom_value """ - @spec db_client_connections_state(db_client_connections_state()) :: :idle | :used | atom() - def db_client_connections_state(option) do - case option do - :idle -> :idle - :used -> :used - _ -> option - end + @spec db_client_connections_state() :: db_client_connections_state() + def db_client_connections_state() do + %{ + :idle => :idle, + :used => :used + } + end + + @spec db_client_connections_state(atom() | String.t()) :: atom() | String.t() + def db_client_connections_state(custom_value) do + custom_value end @doc """ @@ -222,7 +216,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do "Replaced by `server.address` and `server.port`." """ - @spec db_connectionstring :: :"db.connection_string" def db_connectionstring do :"db.connection_string" @@ -244,76 +237,50 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @typedoc """ Cosmos client connection mode. - ### Options + ### Enum Values * `:gateway` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode * `:direct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection. - """ - @type db_cosmosdb_connectionmode() :: :gateway | :direct | atom() - + @type db_cosmosdb_connectionmode() :: %{ + :gateway => :gateway, + :direct => :direct + } @doc """ Cosmos client connection mode. ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode(:gateway) + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode().gateway :gateway iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode(:custom_value) :custom_value """ - @spec db_cosmosdb_connectionmode(db_cosmosdb_connectionmode()) :: :gateway | :direct | atom() - def db_cosmosdb_connectionmode(option) do - case option do - :gateway -> :gateway - :direct -> :direct - _ -> option - end + @spec db_cosmosdb_connectionmode() :: db_cosmosdb_connectionmode() + def db_cosmosdb_connectionmode() do + %{ + :gateway => :gateway, + :direct => :direct + } + end + + @spec db_cosmosdb_connectionmode(atom() | String.t()) :: atom() | String.t() + def db_cosmosdb_connectionmode(custom_value) do + custom_value end @deprecated """ Replaced by `db.collection.name`. """ - @spec db_cosmosdb_container :: :"db.cosmosdb.container" def db_cosmosdb_container do :"db.cosmosdb.container" end - @type invalid() :: :Invalid - - @type create() :: :Create - - @type patch() :: :Patch - - @type read() :: :Read - - @type read_feed() :: :ReadFeed - - @type delete() :: :Delete - - @type replace() :: :Replace - - @type execute() :: :Execute - - @type query() :: :Query - - @type head() :: :Head - - @type head_feed() :: :HeadFeed - - @type upsert() :: :Upsert - - @type batch() :: :Batch - - @type query_plan() :: :QueryPlan - - @type execute_javascript() :: :ExecuteJavaScript - @typedoc """ CosmosDB Operation Type. - ### Options + ### Enum Values * `:invalid` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:create` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:patch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ @@ -329,73 +296,59 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do * `:batch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:query_plan` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:execute_javascript` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type db_cosmosdb_operationtype() :: - invalid() - | create() - | patch() - | read() - | read_feed() - | delete() - | replace() - | execute() - | query() - | head() - | head_feed() - | upsert() - | batch() - | query_plan() - | execute_javascript() - | atom() - + @type db_cosmosdb_operationtype() :: %{ + :invalid => :Invalid, + :create => :Create, + :patch => :Patch, + :read => :Read, + :read_feed => :ReadFeed, + :delete => :Delete, + :replace => :Replace, + :execute => :Execute, + :query => :Query, + :head => :Head, + :head_feed => :HeadFeed, + :upsert => :Upsert, + :batch => :Batch, + :query_plan => :QueryPlan, + :execute_javascript => :ExecuteJavaScript + } @doc """ CosmosDB Operation Type. ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype(:invalid) + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype().invalid :Invalid iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype(:custom_value) :custom_value """ - @spec db_cosmosdb_operationtype(db_cosmosdb_operationtype()) :: - invalid() - | create() - | patch() - | read() - | read_feed() - | delete() - | replace() - | execute() - | query() - | head() - | head_feed() - | upsert() - | batch() - | query_plan() - | execute_javascript() - | atom() - def db_cosmosdb_operationtype(option) do - case option do - :invalid -> :Invalid - :create -> :Create - :patch -> :Patch - :read -> :Read - :read_feed -> :ReadFeed - :delete -> :Delete - :replace -> :Replace - :execute -> :Execute - :query -> :Query - :head -> :Head - :head_feed -> :HeadFeed - :upsert -> :Upsert - :batch -> :Batch - :query_plan -> :QueryPlan - :execute_javascript -> :ExecuteJavaScript - _ -> option - end + @spec db_cosmosdb_operationtype() :: db_cosmosdb_operationtype() + def db_cosmosdb_operationtype() do + %{ + :invalid => :Invalid, + :create => :Create, + :patch => :Patch, + :read => :Read, + :read_feed => :ReadFeed, + :delete => :Delete, + :replace => :Replace, + :execute => :Execute, + :query => :Query, + :head => :Head, + :head_feed => :HeadFeed, + :upsert => :Upsert, + :batch => :Batch, + :query_plan => :QueryPlan, + :execute_javascript => :ExecuteJavaScript + } + end + + @spec db_cosmosdb_operationtype(atom() | String.t()) :: atom() | String.t() + def db_cosmosdb_operationtype(custom_value) do + custom_value end @doc """ @@ -498,7 +451,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. """ - @spec db_instance_id :: :"db.instance.id" def db_instance_id do :"db.instance.id" @@ -507,7 +459,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Removed as not used. """ - @spec db_jdbc_driverclassname :: :"db.jdbc.driver_classname" def db_jdbc_driverclassname do :"db.jdbc.driver_classname" @@ -516,7 +467,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.collection.name`. """ - @spec db_mongodb_collection :: :"db.mongodb.collection" def db_mongodb_collection do :"db.mongodb.collection" @@ -525,7 +475,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Deprecated, no replacement at this time. """ - @spec db_mssql_instancename :: :"db.mssql.instance_name" def db_mssql_instancename do :"db.mssql.instance_name" @@ -534,7 +483,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.namespace`. """ - @spec db_name :: :"db.name" def db_name do :"db.name" @@ -562,7 +510,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.operation.name`. """ - @spec db_operation :: :"db.operation" def db_operation do :"db.operation" @@ -620,7 +567,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.namespace`. """ - @spec db_redis_databaseindex :: :"db.redis.database_index" def db_redis_databaseindex do :"db.redis.database_index" @@ -629,7 +575,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.collection.name`. """ - @spec db_sql_table :: :"db.sql.table" def db_sql_table do :"db.sql.table" @@ -638,7 +583,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.query.text`. """ - @spec db_statement :: :"db.statement" def db_statement do :"db.statement" @@ -647,7 +591,7 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @typedoc """ The database management system (DBMS) product as identified by the client instrumentation. - ### Options + ### Enum Values * `:other_sql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes. * `:mssql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server * `:mssqlcompact` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact @@ -700,63 +644,61 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do * `:clickhouse` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse * `:spanner` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner * `:trino` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino - """ - @type db_system() :: - :other_sql - | :mssql - | :mssqlcompact - | :mysql - | :oracle - | :db2 - | :postgresql - | :redshift - | :hive - | :cloudscape - | :hsqldb - | :progress - | :maxdb - | :hanadb - | :ingres - | :firstsql - | :edb - | :cache - | :adabas - | :firebird - | :derby - | :filemaker - | :informix - | :instantdb - | :interbase - | :mariadb - | :netezza - | :pervasive - | :pointbase - | :sqlite - | :sybase - | :teradata - | :vertica - | :h2 - | :coldfusion - | :cassandra - | :hbase - | :mongodb - | :redis - | :couchbase - | :couchdb - | :cosmosdb - | :dynamodb - | :neo4j - | :geode - | :elasticsearch - | :memcached - | :cockroachdb - | :opensearch - | :clickhouse - | :spanner - | :trino - | atom() - + @type db_system() :: %{ + :other_sql => :other_sql, + :mssql => :mssql, + :mssqlcompact => :mssqlcompact, + :mysql => :mysql, + :oracle => :oracle, + :db2 => :db2, + :postgresql => :postgresql, + :redshift => :redshift, + :hive => :hive, + :cloudscape => :cloudscape, + :hsqldb => :hsqldb, + :progress => :progress, + :maxdb => :maxdb, + :hanadb => :hanadb, + :ingres => :ingres, + :firstsql => :firstsql, + :edb => :edb, + :cache => :cache, + :adabas => :adabas, + :firebird => :firebird, + :derby => :derby, + :filemaker => :filemaker, + :informix => :informix, + :instantdb => :instantdb, + :interbase => :interbase, + :mariadb => :mariadb, + :netezza => :netezza, + :pervasive => :pervasive, + :pointbase => :pointbase, + :sqlite => :sqlite, + :sybase => :sybase, + :teradata => :teradata, + :vertica => :vertica, + :h2 => :h2, + :coldfusion => :coldfusion, + :cassandra => :cassandra, + :hbase => :hbase, + :mongodb => :mongodb, + :redis => :redis, + :couchbase => :couchbase, + :couchdb => :couchdb, + :cosmosdb => :cosmosdb, + :dynamodb => :dynamodb, + :neo4j => :neo4j, + :geode => :geode, + :elasticsearch => :elasticsearch, + :memcached => :memcached, + :cockroachdb => :cockroachdb, + :opensearch => :opensearch, + :clickhouse => :clickhouse, + :spanner => :spanner, + :trino => :trino + } @doc """ The database management system (DBMS) product as identified by the client instrumentation. ### Notes @@ -765,128 +707,78 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system(:other_sql) + iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system().other_sql :other_sql iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system(:custom_value) :custom_value """ - @spec db_system(db_system()) :: - :other_sql - | :mssql - | :mssqlcompact - | :mysql - | :oracle - | :db2 - | :postgresql - | :redshift - | :hive - | :cloudscape - | :hsqldb - | :progress - | :maxdb - | :hanadb - | :ingres - | :firstsql - | :edb - | :cache - | :adabas - | :firebird - | :derby - | :filemaker - | :informix - | :instantdb - | :interbase - | :mariadb - | :netezza - | :pervasive - | :pointbase - | :sqlite - | :sybase - | :teradata - | :vertica - | :h2 - | :coldfusion - | :cassandra - | :hbase - | :mongodb - | :redis - | :couchbase - | :couchdb - | :cosmosdb - | :dynamodb - | :neo4j - | :geode - | :elasticsearch - | :memcached - | :cockroachdb - | :opensearch - | :clickhouse - | :spanner - | :trino - | atom() - def db_system(option) do - case option do - :other_sql -> :other_sql - :mssql -> :mssql - :mssqlcompact -> :mssqlcompact - :mysql -> :mysql - :oracle -> :oracle - :db2 -> :db2 - :postgresql -> :postgresql - :redshift -> :redshift - :hive -> :hive - :cloudscape -> :cloudscape - :hsqldb -> :hsqldb - :progress -> :progress - :maxdb -> :maxdb - :hanadb -> :hanadb - :ingres -> :ingres - :firstsql -> :firstsql - :edb -> :edb - :cache -> :cache - :adabas -> :adabas - :firebird -> :firebird - :derby -> :derby - :filemaker -> :filemaker - :informix -> :informix - :instantdb -> :instantdb - :interbase -> :interbase - :mariadb -> :mariadb - :netezza -> :netezza - :pervasive -> :pervasive - :pointbase -> :pointbase - :sqlite -> :sqlite - :sybase -> :sybase - :teradata -> :teradata - :vertica -> :vertica - :h2 -> :h2 - :coldfusion -> :coldfusion - :cassandra -> :cassandra - :hbase -> :hbase - :mongodb -> :mongodb - :redis -> :redis - :couchbase -> :couchbase - :couchdb -> :couchdb - :cosmosdb -> :cosmosdb - :dynamodb -> :dynamodb - :neo4j -> :neo4j - :geode -> :geode - :elasticsearch -> :elasticsearch - :memcached -> :memcached - :cockroachdb -> :cockroachdb - :opensearch -> :opensearch - :clickhouse -> :clickhouse - :spanner -> :spanner - :trino -> :trino - _ -> option - end + @spec db_system() :: db_system() + def db_system() do + %{ + :other_sql => :other_sql, + :mssql => :mssql, + :mssqlcompact => :mssqlcompact, + :mysql => :mysql, + :oracle => :oracle, + :db2 => :db2, + :postgresql => :postgresql, + :redshift => :redshift, + :hive => :hive, + :cloudscape => :cloudscape, + :hsqldb => :hsqldb, + :progress => :progress, + :maxdb => :maxdb, + :hanadb => :hanadb, + :ingres => :ingres, + :firstsql => :firstsql, + :edb => :edb, + :cache => :cache, + :adabas => :adabas, + :firebird => :firebird, + :derby => :derby, + :filemaker => :filemaker, + :informix => :informix, + :instantdb => :instantdb, + :interbase => :interbase, + :mariadb => :mariadb, + :netezza => :netezza, + :pervasive => :pervasive, + :pointbase => :pointbase, + :sqlite => :sqlite, + :sybase => :sybase, + :teradata => :teradata, + :vertica => :vertica, + :h2 => :h2, + :coldfusion => :coldfusion, + :cassandra => :cassandra, + :hbase => :hbase, + :mongodb => :mongodb, + :redis => :redis, + :couchbase => :couchbase, + :couchdb => :couchdb, + :cosmosdb => :cosmosdb, + :dynamodb => :dynamodb, + :neo4j => :neo4j, + :geode => :geode, + :elasticsearch => :elasticsearch, + :memcached => :memcached, + :cockroachdb => :cockroachdb, + :opensearch => :opensearch, + :clickhouse => :clickhouse, + :spanner => :spanner, + :trino => :trino + } + end + + @spec db_system(atom() | String.t()) :: atom() | String.t() + def db_system(custom_value) do + custom_value end @deprecated """ No replacement at this time. """ - @spec db_user :: :"db.user" def db_user do :"db.user" @@ -895,7 +787,6 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @deprecated """ Replaced by `db.client.connections.pool.name`. """ - @spec pool_name :: :"pool.name" def pool_name do :"pool.name" @@ -904,23 +795,27 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @typedoc """ Deprecated, use `db.client.connections.state` instead. - ### Options + ### Enum Values * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type state() :: :idle | :used | atom() - + @type state() :: %{ + :idle => :idle, + :used => :used + } @deprecated """ Replaced by `db.client.connections.state`. """ + @spec state() :: state() + def state() do + %{ + :idle => :idle, + :used => :used + } + end - @spec state(state()) :: :idle | :used | atom() - def state(option) do - case option do - :idle -> :idle - :used -> :used - _ -> option - end + @spec state(atom() | String.t()) :: atom() | String.t() + def state(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex index 272364fe..528516f0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex @@ -7,30 +7,35 @@ defmodule OpenTelemetry.SemanticConventions.DiskAttributes do @typedoc """ The disk IO operation direction. - ### Options + ### Enum Values * `:read` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:write` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type disk_io_direction() :: :read | :write | atom() - + @type disk_io_direction() :: %{ + :read => :read, + :write => :write + } @doc """ The disk IO operation direction. ### Example - iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction(:read) + iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction().read :read iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction(:custom_value) :custom_value """ - @spec disk_io_direction(disk_io_direction()) :: :read | :write | atom() - def disk_io_direction(option) do - case option do - :read -> :read - :write -> :write - _ -> option - end + @spec disk_io_direction() :: disk_io_direction() + def disk_io_direction() do + %{ + :read => :read, + :write => :write + } + end + + @spec disk_io_direction(atom() | String.t()) :: atom() | String.t() + def disk_io_direction(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index bea7c76c..ce7e9a19 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -4,19 +4,17 @@ defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do OpenTelemetry Semantic Conventions for Error attributes. """ - @type other() :: :_OTHER - @typedoc """ Describes a class of error the operation ended with. - ### Options + ### Enum Values * `:other` - A fallback error value to be used when the instrumentation doesn't define a custom value. - """ - @type error_type() :: other() | atom() - + @type error_type() :: %{ + :other => :_OTHER + } @doc """ Describes a class of error the operation ended with. @@ -44,17 +42,21 @@ defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type(:other) + iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type().other :_OTHER iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type(:custom_value) :custom_value """ - @spec error_type(error_type()) :: other() | atom() - def error_type(option) do - case option do - :other -> :_OTHER - _ -> option - end + @spec error_type() :: error_type() + def error_type() do + %{ + :other => :_OTHER + } + end + + @spec error_type(atom() | String.t()) :: atom() | String.t() + def error_type(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex index e188c247..49e91e17 100644 --- a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex @@ -63,33 +63,39 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @typedoc """ Describes the type of the operation that was performed on the data. - ### Options + ### Enum Values * `:insert` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created. * `:edit` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified. * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted. - """ - @type faas_document_operation() :: :insert | :edit | :delete | atom() - + @type faas_document_operation() :: %{ + :insert => :insert, + :edit => :edit, + :delete => :delete + } @doc """ Describes the type of the operation that was performed on the data. ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation(:insert) + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation().insert :insert iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation(:custom_value) :custom_value """ - @spec faas_document_operation(faas_document_operation()) :: :insert | :edit | :delete | atom() - def faas_document_operation(option) do - case option do - :insert -> :insert - :edit -> :edit - :delete -> :delete - _ -> option - end + @spec faas_document_operation() :: faas_document_operation() + def faas_document_operation() do + %{ + :insert => :insert, + :edit => :edit, + :delete => :delete + } + end + + @spec faas_document_operation(atom() | String.t()) :: atom() | String.t() + def faas_document_operation(custom_value) do + custom_value end @doc """ @@ -158,16 +164,20 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do The cloud provider of the invoked function. - ### Options + ### Enum Values * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud * `:aws` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services * `:azure` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure * `:gcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud - """ - @type faas_invokedprovider() :: :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() - + @type faas_invokedprovider() :: %{ + :alibaba_cloud => :alibaba_cloud, + :aws => :aws, + :azure => :azure, + :gcp => :gcp, + :tencent_cloud => :tencent_cloud + } @doc """ The cloud provider of the invoked function. @@ -177,23 +187,26 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider(:alibaba_cloud) + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider().alibaba_cloud :alibaba_cloud iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider(:custom_value) :custom_value """ - @spec faas_invokedprovider(faas_invokedprovider()) :: - :alibaba_cloud | :aws | :azure | :gcp | :tencent_cloud | atom() - def faas_invokedprovider(option) do - case option do - :alibaba_cloud -> :alibaba_cloud - :aws -> :aws - :azure -> :azure - :gcp -> :gcp - :tencent_cloud -> :tencent_cloud - _ -> option - end + @spec faas_invokedprovider() :: faas_invokedprovider() + def faas_invokedprovider() do + %{ + :alibaba_cloud => :alibaba_cloud, + :aws => :aws, + :azure => :azure, + :gcp => :gcp, + :tencent_cloud => :tencent_cloud + } + end + + @spec faas_invokedprovider(atom() | String.t()) :: atom() | String.t() + def faas_invokedprovider(custom_value) do + custom_value end @doc """ @@ -280,38 +293,46 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do Type of the trigger which caused this function invocation. - ### Options + ### Enum Values * `:datasource` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write * `:http` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request * `:pubsub` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system * `:timer` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly * `:other` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply - """ - @type faas_trigger() :: :datasource | :http | :pubsub | :timer | :other | atom() - + @type faas_trigger() :: %{ + :datasource => :datasource, + :http => :http, + :pubsub => :pubsub, + :timer => :timer, + :other => :other + } @doc """ Type of the trigger which caused this function invocation. ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger(:datasource) + iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger().datasource :datasource iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger(:custom_value) :custom_value """ - @spec faas_trigger(faas_trigger()) :: :datasource | :http | :pubsub | :timer | :other | atom() - def faas_trigger(option) do - case option do - :datasource -> :datasource - :http -> :http - :pubsub -> :pubsub - :timer -> :timer - :other -> :other - _ -> option - end + @spec faas_trigger() :: faas_trigger() + def faas_trigger() do + %{ + :datasource => :datasource, + :http => :http, + :pubsub => :pubsub, + :timer => :timer, + :other => :other + } + end + + @spec faas_trigger(atom() | String.t()) :: atom() | String.t() + def faas_trigger(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex index 37d40800..df0e7e7d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex @@ -128,12 +128,12 @@ defmodule OpenTelemetry.SemanticConventions.GenAiAttributes do @typedoc """ The Generative AI product as identified by the client instrumentation. - ### Options + ### Enum Values * `:openai` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenAI - """ - @type genai_system() :: :openai | atom() - + @type genai_system() :: %{ + :openai => :openai + } @doc """ The Generative AI product as identified by the client instrumentation. ### Notes @@ -142,18 +142,22 @@ defmodule OpenTelemetry.SemanticConventions.GenAiAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system(:openai) + iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system().openai :openai iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system(:custom_value) :custom_value """ - @spec genai_system(genai_system()) :: :openai | atom() - def genai_system(option) do - case option do - :openai -> :openai - _ -> option - end + @spec genai_system() :: genai_system() + def genai_system() do + %{ + :openai => :openai + } + end + + @spec genai_system(atom() | String.t()) :: atom() | String.t() + def genai_system(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex index 596bf1fe..33074d50 100644 --- a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex @@ -35,33 +35,38 @@ defmodule OpenTelemetry.SemanticConventions.GraphqlAttributes do @typedoc """ The type of the operation being executed. - ### Options + ### Enum Values * `:query` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL query * `:mutation` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL mutation * `:subscription` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL subscription - """ - @type graphql_operation_type() :: :query | :mutation | :subscription | atom() - + @type graphql_operation_type() :: %{ + :query => :query, + :mutation => :mutation, + :subscription => :subscription + } @doc """ The type of the operation being executed. ### Example - iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type(:query) + iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type().query :query iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type(:custom_value) :custom_value """ - @spec graphql_operation_type(graphql_operation_type()) :: - :query | :mutation | :subscription | atom() - def graphql_operation_type(option) do - case option do - :query -> :query - :mutation -> :mutation - :subscription -> :subscription - _ -> option - end + @spec graphql_operation_type() :: graphql_operation_type() + def graphql_operation_type() do + %{ + :query => :query, + :mutation => :mutation, + :subscription => :subscription + } + end + + @spec graphql_operation_type(atom() | String.t()) :: atom() | String.t() + def graphql_operation_type(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex index f4889e33..aef71d03 100644 --- a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex @@ -8,7 +8,7 @@ defmodule OpenTelemetry.SemanticConventions.HostAttributes do The CPU architecture the host system is running on. - ### Options + ### Enum Values * `:amd64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 * `:arm32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 * `:arm64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 @@ -17,36 +17,46 @@ defmodule OpenTelemetry.SemanticConventions.HostAttributes do * `:ppc64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC * `:s390x` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture * `:x86` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 - """ - @type host_arch() :: :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() - + @type host_arch() :: %{ + :amd64 => :amd64, + :arm32 => :arm32, + :arm64 => :arm64, + :ia64 => :ia64, + :ppc32 => :ppc32, + :ppc64 => :ppc64, + :s390x => :s390x, + :x86 => :x86 + } @doc """ The CPU architecture the host system is running on. ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch(:amd64) + iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch().amd64 :amd64 iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch(:custom_value) :custom_value """ - @spec host_arch(host_arch()) :: - :amd64 | :arm32 | :arm64 | :ia64 | :ppc32 | :ppc64 | :s390x | :x86 | atom() - def host_arch(option) do - case option do - :amd64 -> :amd64 - :arm32 -> :arm32 - :arm64 -> :arm64 - :ia64 -> :ia64 - :ppc32 -> :ppc32 - :ppc64 -> :ppc64 - :s390x -> :s390x - :x86 -> :x86 - _ -> option - end + @spec host_arch() :: host_arch() + def host_arch() do + %{ + :amd64 => :amd64, + :arm32 => :arm32, + :arm64 => :arm64, + :ia64 => :ia64, + :ppc32 => :ppc32, + :ppc64 => :ppc64, + :s390x => :s390x, + :x86 => :x86 + } + end + + @spec host_arch(atom() | String.t()) :: atom() | String.t() + def host_arch(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 914f06e0..efa5e44e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -7,7 +7,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `client.address`. """ - @spec http_clientip :: :"http.client_ip" def http_clientip do :"http.client_ip" @@ -16,82 +15,80 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @typedoc """ State of the HTTP connection in the HTTP connection pool. - ### Options + ### Enum Values * `:active` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state. * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state. - """ - @type http_connection_state() :: :active | :idle | atom() - + @type http_connection_state() :: %{ + :active => :active, + :idle => :idle + } @doc """ State of the HTTP connection in the HTTP connection pool. ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state(:active) + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state().active :active iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state(:custom_value) :custom_value """ - @spec http_connection_state(http_connection_state()) :: :active | :idle | atom() - def http_connection_state(option) do - case option do - :active -> :active - :idle -> :idle - _ -> option - end + @spec http_connection_state() :: http_connection_state() + def http_connection_state() do + %{ + :active => :active, + :idle => :idle + } end - @type http_1_0() :: :"1.0" - - @type http_1_1() :: :"1.1" - - @type http_2_0() :: :"2.0" - - @type http_3_0() :: :"3.0" - - @type spdy() :: :SPDY - - @type quic() :: :QUIC + @spec http_connection_state(atom() | String.t()) :: atom() | String.t() + def http_connection_state(custom_value) do + custom_value + end @typedoc """ Deprecated, use `network.protocol.name` instead. - ### Options + ### Enum Values * `:http_1_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.0 * `:http_1_1` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.1 * `:http_2_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/2 * `:http_3_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/3 * `:spdy` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SPDY protocol. * `:quic` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - QUIC protocol. - """ - @type http_flavor() :: - http_1_0() | http_1_1() | http_2_0() | http_3_0() | spdy() | quic() | atom() - + @type http_flavor() :: %{ + :http_1_0 => :"1.0", + :http_1_1 => :"1.1", + :http_2_0 => :"2.0", + :http_3_0 => :"3.0", + :spdy => :SPDY, + :quic => :QUIC + } @deprecated """ Replaced by `network.protocol.name`. """ + @spec http_flavor() :: http_flavor() + def http_flavor() do + %{ + :http_1_0 => :"1.0", + :http_1_1 => :"1.1", + :http_2_0 => :"2.0", + :http_3_0 => :"3.0", + :spdy => :SPDY, + :quic => :QUIC + } + end - @spec http_flavor(http_flavor()) :: - http_1_0() | http_1_1() | http_2_0() | http_3_0() | spdy() | quic() | atom() - def http_flavor(option) do - case option do - :http_1_0 -> :"1.0" - :http_1_1 -> :"1.1" - :http_2_0 -> :"2.0" - :http_3_0 -> :"3.0" - :spdy -> :SPDY - :quic -> :QUIC - _ -> option - end + @spec http_flavor(atom() | String.t()) :: atom() | String.t() + def http_flavor(custom_value) do + custom_value end @deprecated """ Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. """ - @spec http_host :: :"http.host" def http_host do :"http.host" @@ -100,7 +97,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `http.request.method`. """ - @spec http_method :: :"http.method" def http_method do :"http.method" @@ -139,30 +135,10 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do :"http.request.header" end - @type connect() :: :CONNECT - - @type delete() :: :DELETE - - @type get() :: :GET - - @type head() :: :HEAD - - @type options() :: :OPTIONS - - @type patch() :: :PATCH - - @type post() :: :POST - - @type put() :: :PUT - - @type trace() :: :TRACE - - @type other() :: :_OTHER - @typedoc """ HTTP request method. - ### Options + ### Enum Values * `:connect` - CONNECT method. * `:delete` - DELETE method. * `:get` - GET method. @@ -173,21 +149,19 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do * `:put` - PUT method. * `:trace` - TRACE method. * `:other` - Any HTTP method that the instrumentation has no prior knowledge of. - """ - @type http_request_method() :: - connect() - | delete() - | get() - | head() - | options() - | patch() - | post() - | put() - | trace() - | other() - | atom() - + @type http_request_method() :: %{ + :connect => :CONNECT, + :delete => :DELETE, + :get => :GET, + :head => :HEAD, + :options => :OPTIONS, + :patch => :PATCH, + :post => :POST, + :put => :PUT, + :trace => :TRACE, + :other => :_OTHER + } @doc """ HTTP request method. ### Notes @@ -209,38 +183,31 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method(:connect) + iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method().connect :CONNECT iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method(:custom_value) :custom_value """ - @spec http_request_method(http_request_method()) :: - connect() - | delete() - | get() - | head() - | options() - | patch() - | post() - | put() - | trace() - | other() - | atom() - def http_request_method(option) do - case option do - :connect -> :CONNECT - :delete -> :DELETE - :get -> :GET - :head -> :HEAD - :options -> :OPTIONS - :patch -> :PATCH - :post -> :POST - :put -> :PUT - :trace -> :TRACE - :other -> :_OTHER - _ -> option - end + @spec http_request_method() :: http_request_method() + def http_request_method() do + %{ + :connect => :CONNECT, + :delete => :DELETE, + :get => :GET, + :head => :HEAD, + :options => :OPTIONS, + :patch => :PATCH, + :post => :POST, + :put => :PUT, + :trace => :TRACE, + :other => :_OTHER + } + end + + @spec http_request_method(atom() | String.t()) :: atom() | String.t() + def http_request_method(custom_value) do + custom_value end @doc """ @@ -290,7 +257,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `http.request.header.content-length`. """ - @spec http_requestcontentlength :: :"http.request_content_length" def http_requestcontentlength do :"http.request_content_length" @@ -299,7 +265,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `http.request.body.size`. """ - @spec http_requestcontentlengthuncompressed :: :"http.request_content_length_uncompressed" def http_requestcontentlengthuncompressed do :"http.request_content_length_uncompressed" @@ -368,7 +333,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `http.response.header.content-length`. """ - @spec http_responsecontentlength :: :"http.response_content_length" def http_responsecontentlength do :"http.response_content_length" @@ -377,7 +341,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replace by `http.response.body.size`. """ - @spec http_responsecontentlengthuncompressed :: :"http.response_content_length_uncompressed" def http_responsecontentlengthuncompressed do :"http.response_content_length_uncompressed" @@ -404,7 +367,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `url.scheme` instead. """ - @spec http_scheme :: :"http.scheme" def http_scheme do :"http.scheme" @@ -413,7 +375,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `server.address`. """ - @spec http_servername :: :"http.server_name" def http_servername do :"http.server_name" @@ -422,7 +383,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `http.response.status_code`. """ - @spec http_statuscode :: :"http.status_code" def http_statuscode do :"http.status_code" @@ -431,7 +391,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Split to `url.path` and `url.query. """ - @spec http_target :: :"http.target" def http_target do :"http.target" @@ -440,7 +399,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `url.full`. """ - @spec http_url :: :"http.url" def http_url do :"http.url" @@ -449,7 +407,6 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @deprecated """ Replaced by `user_agent.original`. """ - @spec http_useragent :: :"http.user_agent" def http_useragent do :"http.user_agent" diff --git a/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex index c6819dfc..f86b3cd7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex @@ -284,7 +284,6 @@ defmodule OpenTelemetry.SemanticConventions.K8SAttributes do @deprecated """ Replaced by `k8s.pod.label`. """ - @spec k_8_s_pod_labels :: :"k8s.pod.labels" def k_8_s_pod_labels do :"k8s.pod.labels" diff --git a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex index 90b1f22a..819c6acf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex @@ -64,32 +64,37 @@ defmodule OpenTelemetry.SemanticConventions.LogAttributes do The stream associated with the log. See below for a list of well-known values. - ### Options + ### Enum Values * `:stdout` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Logs from stdout stream * `:stderr` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Events from stderr stream - """ - @type log_iostream() :: :stdout | :stderr | atom() - + @type log_iostream() :: %{ + :stdout => :stdout, + :stderr => :stderr + } @doc """ The stream associated with the log. See below for a list of well-known values. ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream(:stdout) + iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream().stdout :stdout iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream(:custom_value) :custom_value """ - @spec log_iostream(log_iostream()) :: :stdout | :stderr | atom() - def log_iostream(option) do - case option do - :stdout -> :stdout - :stderr -> :stderr - _ -> option - end + @spec log_iostream() :: log_iostream() + def log_iostream() do + %{ + :stdout => :stdout, + :stderr => :stderr + } + end + + @spec log_iostream(atom() | String.t()) :: atom() | String.t() + def log_iostream(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex index f1601d7a..748d36dd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex @@ -37,7 +37,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @deprecated """ Replaced by `messaging.client.id`. """ - @spec messaging_clientid :: :"messaging.client_id" def messaging_clientid do :"messaging.client_id" @@ -248,7 +247,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @deprecated """ Replaced by `messaging.destination.partition.id`. """ - @spec messaging_kafka_destination_partition :: :"messaging.kafka.destination.partition" def messaging_kafka_destination_partition do :"messaging.kafka.destination.partition" @@ -364,7 +362,6 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @deprecated """ Replaced by `messaging.operation.type`. """ - @spec messaging_operation :: :"messaging.operation" def messaging_operation do :"messaging.operation" @@ -384,13 +381,11 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do :"messaging.operation.name" end - @type deliver() :: :process - @typedoc """ A string identifying the type of the messaging operation. - ### Options + ### Enum Values * `:publish` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created. * `:create` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios. @@ -401,10 +396,14 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do * `:settle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled. - """ - @type messaging_operation_type() :: :publish | :create | :receive | deliver() | :settle | atom() - + @type messaging_operation_type() :: %{ + :publish => :publish, + :create => :create, + :receive => :receive, + :deliver => :process, + :settle => :settle + } @doc """ A string identifying the type of the messaging operation. @@ -413,23 +412,26 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do If a custom value is used, it **MUST** be of low cardinality. ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type(:publish) + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type().publish :publish iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type(:custom_value) :custom_value """ - @spec messaging_operation_type(messaging_operation_type()) :: - :publish | :create | :receive | deliver() | :settle | atom() - def messaging_operation_type(option) do - case option do - :publish -> :publish - :create -> :create - :receive -> :receive - :deliver -> :process - :settle -> :settle - _ -> option - end + @spec messaging_operation_type() :: messaging_operation_type() + def messaging_operation_type() do + %{ + :publish => :publish, + :create => :create, + :receive => :receive, + :deliver => :process, + :settle => :settle + } + end + + @spec messaging_operation_type(atom() | String.t()) :: atom() | String.t() + def messaging_operation_type(custom_value) do + custom_value end @doc """ @@ -478,33 +480,37 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do Model of message consumption. This only applies to consumer spans. - ### Options + ### Enum Values * `:clustering` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Clustering consumption model * `:broadcasting` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Broadcasting consumption model - """ - @type messaging_rocketmq_consumptionmodel() :: :clustering | :broadcasting | atom() - + @type messaging_rocketmq_consumptionmodel() :: %{ + :clustering => :clustering, + :broadcasting => :broadcasting + } @doc """ Model of message consumption. This only applies to consumer spans. ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel(:clustering) + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel().clustering :clustering iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel(:custom_value) :custom_value """ - @spec messaging_rocketmq_consumptionmodel(messaging_rocketmq_consumptionmodel()) :: - :clustering | :broadcasting | atom() - def messaging_rocketmq_consumptionmodel(option) do - case option do - :clustering -> :clustering - :broadcasting -> :broadcasting - _ -> option - end + @spec messaging_rocketmq_consumptionmodel() :: messaging_rocketmq_consumptionmodel() + def messaging_rocketmq_consumptionmodel() do + %{ + :clustering => :clustering, + :broadcasting => :broadcasting + } + end + + @spec messaging_rocketmq_consumptionmodel(atom() | String.t()) :: atom() | String.t() + def messaging_rocketmq_consumptionmodel(custom_value) do + custom_value end @doc """ @@ -583,37 +589,43 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do Type of message. - ### Options + ### Enum Values * `:normal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Normal message * `:fifo` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FIFO message * `:delay` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Delay message * `:transaction` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Transaction message - """ - @type messaging_rocketmq_message_type() :: :normal | :fifo | :delay | :transaction | atom() - + @type messaging_rocketmq_message_type() :: %{ + :normal => :normal, + :fifo => :fifo, + :delay => :delay, + :transaction => :transaction + } @doc """ Type of message. ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type(:normal) + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type().normal :normal iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type(:custom_value) :custom_value """ - @spec messaging_rocketmq_message_type(messaging_rocketmq_message_type()) :: - :normal | :fifo | :delay | :transaction | atom() - def messaging_rocketmq_message_type(option) do - case option do - :normal -> :normal - :fifo -> :fifo - :delay -> :delay - :transaction -> :transaction - _ -> option - end + @spec messaging_rocketmq_message_type() :: messaging_rocketmq_message_type() + def messaging_rocketmq_message_type() do + %{ + :normal => :normal, + :fifo => :fifo, + :delay => :delay, + :transaction => :transaction + } + end + + @spec messaging_rocketmq_message_type(atom() | String.t()) :: atom() | String.t() + def messaging_rocketmq_message_type(custom_value) do + custom_value end @doc """ @@ -649,38 +661,43 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). - ### Options + ### Enum Values * `:complete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is completed * `:abandon` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is abandoned * `:dead_letter` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is sent to dead letter queue * `:defer` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is deferred - """ - @type messaging_servicebus_dispositionstatus() :: - :complete | :abandon | :dead_letter | :defer | atom() - + @type messaging_servicebus_dispositionstatus() :: %{ + :complete => :complete, + :abandon => :abandon, + :dead_letter => :dead_letter, + :defer => :defer + } @doc """ Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus(:complete) + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus().complete :complete iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus(:custom_value) :custom_value """ - @spec messaging_servicebus_dispositionstatus(messaging_servicebus_dispositionstatus()) :: - :complete | :abandon | :dead_letter | :defer | atom() - def messaging_servicebus_dispositionstatus(option) do - case option do - :complete -> :complete - :abandon -> :abandon - :dead_letter -> :dead_letter - :defer -> :defer - _ -> option - end + @spec messaging_servicebus_dispositionstatus() :: messaging_servicebus_dispositionstatus() + def messaging_servicebus_dispositionstatus() do + %{ + :complete => :complete, + :abandon => :abandon, + :dead_letter => :dead_letter, + :defer => :defer + } + end + + @spec messaging_servicebus_dispositionstatus(atom() | String.t()) :: atom() | String.t() + def messaging_servicebus_dispositionstatus(custom_value) do + custom_value end @doc """ @@ -715,7 +732,7 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @typedoc """ The messaging system as identified by the client instrumentation. - ### Options + ### Enum Values * `:activemq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ * `:aws_sqs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) * `:eventgrid` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid @@ -726,21 +743,19 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do * `:kafka` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka * `:rabbitmq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ * `:rocketmq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ - """ - @type messaging_system() :: - :activemq - | :aws_sqs - | :eventgrid - | :eventhubs - | :servicebus - | :gcp_pubsub - | :jms - | :kafka - | :rabbitmq - | :rocketmq - | atom() - + @type messaging_system() :: %{ + :activemq => :activemq, + :aws_sqs => :aws_sqs, + :eventgrid => :eventgrid, + :eventhubs => :eventhubs, + :servicebus => :servicebus, + :gcp_pubsub => :gcp_pubsub, + :jms => :jms, + :kafka => :kafka, + :rabbitmq => :rabbitmq, + :rocketmq => :rocketmq + } @doc """ The messaging system as identified by the client instrumentation. ### Notes @@ -749,37 +764,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system(:activemq) + iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system().activemq :activemq iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system(:custom_value) :custom_value """ - @spec messaging_system(messaging_system()) :: - :activemq - | :aws_sqs - | :eventgrid - | :eventhubs - | :servicebus - | :gcp_pubsub - | :jms - | :kafka - | :rabbitmq - | :rocketmq - | atom() - def messaging_system(option) do - case option do - :activemq -> :activemq - :aws_sqs -> :aws_sqs - :eventgrid -> :eventgrid - :eventhubs -> :eventhubs - :servicebus -> :servicebus - :gcp_pubsub -> :gcp_pubsub - :jms -> :jms - :kafka -> :kafka - :rabbitmq -> :rabbitmq - :rocketmq -> :rocketmq - _ -> option - end + @spec messaging_system() :: messaging_system() + def messaging_system() do + %{ + :activemq => :activemq, + :aws_sqs => :aws_sqs, + :eventgrid => :eventgrid, + :eventhubs => :eventhubs, + :servicebus => :servicebus, + :gcp_pubsub => :gcp_pubsub, + :jms => :jms, + :kafka => :kafka, + :rabbitmq => :rabbitmq, + :rocketmq => :rocketmq + } + end + + @spec messaging_system(atom() | String.t()) :: atom() | String.t() + def messaging_system(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index de4ce524..64b23608 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -7,7 +7,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.local.address`. """ - @spec net_host_ip :: :"net.host.ip" def net_host_ip do :"net.host.ip" @@ -16,7 +15,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `server.address`. """ - @spec net_host_name :: :"net.host.name" def net_host_name do :"net.host.name" @@ -25,7 +23,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `server.port`. """ - @spec net_host_port :: :"net.host.port" def net_host_port do :"net.host.port" @@ -34,7 +31,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.peer.address`. """ - @spec net_peer_ip :: :"net.peer.ip" def net_peer_ip do :"net.peer.ip" @@ -43,7 +39,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `server.address` on client spans and `client.address` on server spans. """ - @spec net_peer_name :: :"net.peer.name" def net_peer_name do :"net.peer.name" @@ -52,7 +47,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `server.port` on client spans and `client.port` on server spans. """ - @spec net_peer_port :: :"net.peer.port" def net_peer_port do :"net.peer.port" @@ -61,7 +55,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.protocol.name`. """ - @spec net_protocol_name :: :"net.protocol.name" def net_protocol_name do :"net.protocol.name" @@ -70,7 +63,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.protocol.version`. """ - @spec net_protocol_version :: :"net.protocol.version" def net_protocol_version do :"net.protocol.version" @@ -79,32 +71,36 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @typedoc """ Deprecated, use `network.transport` and `network.type`. - ### Options + ### Enum Values * `:inet` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IPv4 address * `:inet6` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IPv6 address * `:unix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Unix domain socket path - """ - @type net_sock_family() :: :inet | :inet6 | :unix | atom() - + @type net_sock_family() :: %{ + :inet => :inet, + :inet6 => :inet6, + :unix => :unix + } @deprecated """ Split to `network.transport` and `network.type`. """ + @spec net_sock_family() :: net_sock_family() + def net_sock_family() do + %{ + :inet => :inet, + :inet6 => :inet6, + :unix => :unix + } + end - @spec net_sock_family(net_sock_family()) :: :inet | :inet6 | :unix | atom() - def net_sock_family(option) do - case option do - :inet -> :inet - :inet6 -> :inet6 - :unix -> :unix - _ -> option - end + @spec net_sock_family(atom() | String.t()) :: atom() | String.t() + def net_sock_family(custom_value) do + custom_value end @deprecated """ Replaced by `network.local.address`. """ - @spec net_sock_host_addr :: :"net.sock.host.addr" def net_sock_host_addr do :"net.sock.host.addr" @@ -113,7 +109,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.local.port`. """ - @spec net_sock_host_port :: :"net.sock.host.port" def net_sock_host_port do :"net.sock.host.port" @@ -122,7 +117,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.peer.address`. """ - @spec net_sock_peer_addr :: :"net.sock.peer.addr" def net_sock_peer_addr do :"net.sock.peer.addr" @@ -131,7 +125,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Removed. """ - @spec net_sock_peer_name :: :"net.sock.peer.name" def net_sock_peer_name do :"net.sock.peer.name" @@ -140,7 +133,6 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @deprecated """ Replaced by `network.peer.port`. """ - @spec net_sock_peer_port :: :"net.sock.peer.port" def net_sock_peer_port do :"net.sock.peer.port" @@ -149,30 +141,37 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @typedoc """ Deprecated, use `network.transport`. - ### Options + ### Enum Values * `:ip_tcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:ip_udp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:pipe` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Named or anonymous pipe. * `:inproc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - In-process communication. * `:other` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Something else (non IP-based). - """ - @type net_transport() :: :ip_tcp | :ip_udp | :pipe | :inproc | :other | atom() - + @type net_transport() :: %{ + :ip_tcp => :ip_tcp, + :ip_udp => :ip_udp, + :pipe => :pipe, + :inproc => :inproc, + :other => :other + } @deprecated """ Replaced by `network.transport`. """ + @spec net_transport() :: net_transport() + def net_transport() do + %{ + :ip_tcp => :ip_tcp, + :ip_udp => :ip_udp, + :pipe => :pipe, + :inproc => :inproc, + :other => :other + } + end - @spec net_transport(net_transport()) :: :ip_tcp | :ip_udp | :pipe | :inproc | :other | atom() - def net_transport(option) do - case option do - :ip_tcp -> :ip_tcp - :ip_udp -> :ip_udp - :pipe -> :pipe - :inproc -> :inproc - :other -> :other - _ -> option - end + @spec net_transport(atom() | String.t()) :: atom() | String.t() + def net_transport(custom_value) do + custom_value end @doc """ @@ -230,7 +229,7 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @typedoc """ This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. - ### Options + ### Enum Values * `:gprs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GPRS * `:edge` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EDGE * `:umts` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UMTS @@ -252,158 +251,150 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do * `:nr` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NR (New Radio) * `:nrnsa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) * `:lte_ca` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE CA - """ - @type network_connection_subtype() :: - :gprs - | :edge - | :umts - | :cdma - | :evdo_0 - | :evdo_a - | :cdma2000_1xrtt - | :hsdpa - | :hsupa - | :hspa - | :iden - | :evdo_b - | :lte - | :ehrpd - | :hspap - | :gsm - | :td_scdma - | :iwlan - | :nr - | :nrnsa - | :lte_ca - | atom() - + @type network_connection_subtype() :: %{ + :gprs => :gprs, + :edge => :edge, + :umts => :umts, + :cdma => :cdma, + :evdo_0 => :evdo_0, + :evdo_a => :evdo_a, + :cdma2000_1xrtt => :cdma2000_1xrtt, + :hsdpa => :hsdpa, + :hsupa => :hsupa, + :hspa => :hspa, + :iden => :iden, + :evdo_b => :evdo_b, + :lte => :lte, + :ehrpd => :ehrpd, + :hspap => :hspap, + :gsm => :gsm, + :td_scdma => :td_scdma, + :iwlan => :iwlan, + :nr => :nr, + :nrnsa => :nrnsa, + :lte_ca => :lte_ca + } @doc """ This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype(:gprs) + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype().gprs :gprs iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype(:custom_value) :custom_value """ - @spec network_connection_subtype(network_connection_subtype()) :: - :gprs - | :edge - | :umts - | :cdma - | :evdo_0 - | :evdo_a - | :cdma2000_1xrtt - | :hsdpa - | :hsupa - | :hspa - | :iden - | :evdo_b - | :lte - | :ehrpd - | :hspap - | :gsm - | :td_scdma - | :iwlan - | :nr - | :nrnsa - | :lte_ca - | atom() - def network_connection_subtype(option) do - case option do - :gprs -> :gprs - :edge -> :edge - :umts -> :umts - :cdma -> :cdma - :evdo_0 -> :evdo_0 - :evdo_a -> :evdo_a - :cdma2000_1xrtt -> :cdma2000_1xrtt - :hsdpa -> :hsdpa - :hsupa -> :hsupa - :hspa -> :hspa - :iden -> :iden - :evdo_b -> :evdo_b - :lte -> :lte - :ehrpd -> :ehrpd - :hspap -> :hspap - :gsm -> :gsm - :td_scdma -> :td_scdma - :iwlan -> :iwlan - :nr -> :nr - :nrnsa -> :nrnsa - :lte_ca -> :lte_ca - _ -> option - end + @spec network_connection_subtype() :: network_connection_subtype() + def network_connection_subtype() do + %{ + :gprs => :gprs, + :edge => :edge, + :umts => :umts, + :cdma => :cdma, + :evdo_0 => :evdo_0, + :evdo_a => :evdo_a, + :cdma2000_1xrtt => :cdma2000_1xrtt, + :hsdpa => :hsdpa, + :hsupa => :hsupa, + :hspa => :hspa, + :iden => :iden, + :evdo_b => :evdo_b, + :lte => :lte, + :ehrpd => :ehrpd, + :hspap => :hspap, + :gsm => :gsm, + :td_scdma => :td_scdma, + :iwlan => :iwlan, + :nr => :nr, + :nrnsa => :nrnsa, + :lte_ca => :lte_ca + } + end + + @spec network_connection_subtype(atom() | String.t()) :: atom() | String.t() + def network_connection_subtype(custom_value) do + custom_value end @typedoc """ The internet connection type. - ### Options + ### Enum Values * `:wifi` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:wired` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:cell` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type network_connection_type() :: :wifi | :wired | :cell | :unavailable | :unknown | atom() - + @type network_connection_type() :: %{ + :wifi => :wifi, + :wired => :wired, + :cell => :cell, + :unavailable => :unavailable, + :unknown => :unknown + } @doc """ The internet connection type. ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type(:wifi) + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type().wifi :wifi iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type(:custom_value) :custom_value """ - @spec network_connection_type(network_connection_type()) :: - :wifi | :wired | :cell | :unavailable | :unknown | atom() - def network_connection_type(option) do - case option do - :wifi -> :wifi - :wired -> :wired - :cell -> :cell - :unavailable -> :unavailable - :unknown -> :unknown - _ -> option - end + @spec network_connection_type() :: network_connection_type() + def network_connection_type() do + %{ + :wifi => :wifi, + :wired => :wired, + :cell => :cell, + :unavailable => :unavailable, + :unknown => :unknown + } + end + + @spec network_connection_type(atom() | String.t()) :: atom() | String.t() + def network_connection_type(custom_value) do + custom_value end @typedoc """ The network IO operation direction. - ### Options + ### Enum Values * `:transmit` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:receive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type network_io_direction() :: :transmit | :receive | atom() - + @type network_io_direction() :: %{ + :transmit => :transmit, + :receive => :receive + } @doc """ The network IO operation direction. ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction(:transmit) + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction().transmit :transmit iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction(:custom_value) :custom_value """ - @spec network_io_direction(network_io_direction()) :: :transmit | :receive | atom() - def network_io_direction(option) do - case option do - :transmit -> :transmit - :receive -> :receive - _ -> option - end + @spec network_io_direction() :: network_io_direction() + def network_io_direction() do + %{ + :transmit => :transmit, + :receive => :receive + } + end + + @spec network_io_direction(atom() | String.t()) :: atom() | String.t() + def network_io_direction(custom_value) do + custom_value end @doc """ @@ -493,15 +484,18 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). - ### Options + ### Enum Values * `:tcp` - TCP * `:udp` - UDP * `:pipe` - Named or anonymous pipe. * `:unix` - Unix domain socket - """ - @type network_transport() :: :tcp | :udp | :pipe | :unix | atom() - + @type network_transport() :: %{ + :tcp => :tcp, + :udp => :udp, + :pipe => :pipe, + :unix => :unix + } @doc """ [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). @@ -515,33 +509,38 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport(:tcp) + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport().tcp :tcp iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport(:custom_value) :custom_value """ - @spec network_transport(network_transport()) :: :tcp | :udp | :pipe | :unix | atom() - def network_transport(option) do - case option do - :tcp -> :tcp - :udp -> :udp - :pipe -> :pipe - :unix -> :unix - _ -> option - end + @spec network_transport() :: network_transport() + def network_transport() do + %{ + :tcp => :tcp, + :udp => :udp, + :pipe => :pipe, + :unix => :unix + } + end + + @spec network_transport(atom() | String.t()) :: atom() | String.t() + def network_transport(custom_value) do + custom_value end @typedoc """ [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. - ### Options + ### Enum Values * `:ipv4` - IPv4 * `:ipv6` - IPv6 - """ - @type network_type() :: :ipv4 | :ipv6 | atom() - + @type network_type() :: %{ + :ipv4 => :ipv4, + :ipv6 => :ipv6 + } @doc """ [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. ### Notes @@ -549,18 +548,22 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do The value **SHOULD** be normalized to lowercase. ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type(:ipv4) + iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type().ipv4 :ipv4 iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type(:custom_value) :custom_value """ - @spec network_type(network_type()) :: :ipv4 | :ipv6 | atom() - def network_type(option) do - case option do - :ipv4 -> :ipv4 - :ipv6 -> :ipv6 - _ -> option - end + @spec network_type() :: network_type() + def network_type() do + %{ + :ipv4 => :ipv4, + :ipv6 => :ipv6 + } + end + + @spec network_type(atom() | String.t()) :: atom() | String.t() + def network_type(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex index e6b882b0..8b84423e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex @@ -7,13 +7,14 @@ defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do @typedoc """ Parent-child Reference type - ### Options + ### Enum Values * `:child_of` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span depends on the child Span in some capacity * `:follows_from` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span - """ - @type opentracing_reftype() :: :child_of | :follows_from | atom() - + @type opentracing_reftype() :: %{ + :child_of => :child_of, + :follows_from => :follows_from + } @doc """ Parent-child Reference type ### Notes @@ -22,18 +23,22 @@ defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do ### Example - iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype(:child_of) + iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype().child_of :child_of iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype(:custom_value) :custom_value """ - @spec opentracing_reftype(opentracing_reftype()) :: :child_of | :follows_from | atom() - def opentracing_reftype(option) do - case option do - :child_of -> :child_of - :follows_from -> :follows_from - _ -> option - end + @spec opentracing_reftype() :: opentracing_reftype() + def opentracing_reftype() do + %{ + :child_of => :child_of, + :follows_from => :follows_from + } + end + + @spec opentracing_reftype(atom() | String.t()) :: atom() | String.t() + def opentracing_reftype(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex index 38907ecf..fb8500da 100644 --- a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex @@ -48,7 +48,7 @@ defmodule OpenTelemetry.SemanticConventions.OsAttributes do The operating system type. - ### Options + ### Enum Values * `:windows` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Windows * `:linux` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Linux * `:darwin` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apple Darwin @@ -60,62 +60,52 @@ defmodule OpenTelemetry.SemanticConventions.OsAttributes do * `:aix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AIX (Advanced Interactive eXecutive) * `:solaris` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SunOS, Oracle Solaris * `:z_os` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/OS - """ - @type os_type() :: - :windows - | :linux - | :darwin - | :freebsd - | :netbsd - | :openbsd - | :dragonflybsd - | :hpux - | :aix - | :solaris - | :z_os - | atom() - + @type os_type() :: %{ + :windows => :windows, + :linux => :linux, + :darwin => :darwin, + :freebsd => :freebsd, + :netbsd => :netbsd, + :openbsd => :openbsd, + :dragonflybsd => :dragonflybsd, + :hpux => :hpux, + :aix => :aix, + :solaris => :solaris, + :z_os => :z_os + } @doc """ The operating system type. ### Example - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type(:windows) + iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type().windows :windows iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type(:custom_value) :custom_value """ - @spec os_type(os_type()) :: - :windows - | :linux - | :darwin - | :freebsd - | :netbsd - | :openbsd - | :dragonflybsd - | :hpux - | :aix - | :solaris - | :z_os - | atom() - def os_type(option) do - case option do - :windows -> :windows - :linux -> :linux - :darwin -> :darwin - :freebsd -> :freebsd - :netbsd -> :netbsd - :openbsd -> :openbsd - :dragonflybsd -> :dragonflybsd - :hpux -> :hpux - :aix -> :aix - :solaris -> :solaris - :z_os -> :z_os - _ -> option - end + @spec os_type() :: os_type() + def os_type() do + %{ + :windows => :windows, + :linux => :linux, + :darwin => :darwin, + :freebsd => :freebsd, + :netbsd => :netbsd, + :openbsd => :openbsd, + :dragonflybsd => :dragonflybsd, + :hpux => :hpux, + :aix => :aix, + :solaris => :solaris, + :z_os => :z_os + } + end + + @spec os_type(atom() | String.t()) :: atom() | String.t() + def os_type(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index c6b8d1b4..1d2e3e7e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -7,7 +7,6 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do @deprecated """ use the `otel.scope.name` attribute. """ - @spec otel_library_name :: :"otel.library.name" def otel_library_name do :"otel.library.name" @@ -16,7 +15,6 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do @deprecated """ use the `otel.scope.version` attribute. """ - @spec otel_library_version :: :"otel.library.version" def otel_library_version do :"otel.library.version" @@ -48,38 +46,39 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do :"otel.scope.version" end - @type ok() :: :OK - - @type error() :: :ERROR - @typedoc """ Name of the code, either "OK" or "ERROR". **MUST** **NOT** be set if the status code is UNSET. - ### Options + ### Enum Values * `:ok` - The operation has been validated by an Application developer or Operator to have completed successfully. * `:error` - The operation contains an error. - """ - @type otel_statuscode() :: ok() | error() | atom() - + @type otel_statuscode() :: %{ + :ok => :OK, + :error => :ERROR + } @doc """ Name of the code, either "OK" or "ERROR". **MUST** **NOT** be set if the status code is UNSET. ### Example - iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode(:ok) + iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode().ok :OK iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode(:custom_value) :custom_value """ - @spec otel_statuscode(otel_statuscode()) :: ok() | error() | atom() - def otel_statuscode(option) do - case option do - :ok -> :OK - :error -> :ERROR - _ -> option - end + @spec otel_statuscode() :: otel_statuscode() + def otel_statuscode() do + %{ + :ok => :OK, + :error => :ERROR + } + end + + @spec otel_statuscode(atom() | String.t()) :: atom() | String.t() + def otel_statuscode(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex index b8136076..e15f82df 100644 --- a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex @@ -49,66 +49,76 @@ defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do @typedoc """ Specifies whether the context switches for this data point were voluntary or involuntary. - ### Options + ### Enum Values * `:voluntary` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:involuntary` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type process_contextswitchtype() :: :voluntary | :involuntary | atom() - + @type process_contextswitchtype() :: %{ + :voluntary => :voluntary, + :involuntary => :involuntary + } @doc """ Specifies whether the context switches for this data point were voluntary or involuntary. ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype(:voluntary) + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype().voluntary :voluntary iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype(:custom_value) :custom_value """ - @spec process_contextswitchtype(process_contextswitchtype()) :: - :voluntary | :involuntary | atom() - def process_contextswitchtype(option) do - case option do - :voluntary -> :voluntary - :involuntary -> :involuntary - _ -> option - end + @spec process_contextswitchtype() :: process_contextswitchtype() + def process_contextswitchtype() do + %{ + :voluntary => :voluntary, + :involuntary => :involuntary + } + end + + @spec process_contextswitchtype(atom() | String.t()) :: atom() | String.t() + def process_contextswitchtype(custom_value) do + custom_value end @typedoc """ The CPU state of the process. - ### Options + ### Enum Values * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type process_cpu_state() :: :system | :user | :wait | atom() - + @type process_cpu_state() :: %{ + :system => :system, + :user => :user, + :wait => :wait + } @doc """ The CPU state of the process. ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state(:system) + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state().system :system iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state(:custom_value) :custom_value """ - @spec process_cpu_state(process_cpu_state()) :: :system | :user | :wait | atom() - def process_cpu_state(option) do - case option do - :system -> :system - :user -> :user - :wait -> :wait - _ -> option - end + @spec process_cpu_state() :: process_cpu_state() + def process_cpu_state() do + %{ + :system => :system, + :user => :user, + :wait => :wait + } + end + + @spec process_cpu_state(atom() | String.t()) :: atom() | String.t() + def process_cpu_state(custom_value) do + custom_value end @doc """ @@ -227,32 +237,37 @@ defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. - ### Options + ### Enum Values * `:major` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:minor` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type process_paging_faulttype() :: :major | :minor | atom() - + @type process_paging_faulttype() :: %{ + :major => :major, + :minor => :minor + } @doc """ The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype(:major) + iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype().major :major iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype(:custom_value) :custom_value """ - @spec process_paging_faulttype(process_paging_faulttype()) :: :major | :minor | atom() - def process_paging_faulttype(option) do - case option do - :major -> :major - :minor -> :minor - _ -> option - end + @spec process_paging_faulttype() :: process_paging_faulttype() + def process_paging_faulttype() do + %{ + :major => :major, + :minor => :minor + } + end + + @spec process_paging_faulttype(atom() | String.t()) :: atom() | String.t() + def process_paging_faulttype(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex index 4aa40b08..962a3014 100644 --- a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex @@ -7,7 +7,6 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @deprecated """ Replaced by `rpc.message.compressed_size`. """ - @spec message_compressedsize :: :"message.compressed_size" def message_compressedsize do :"message.compressed_size" @@ -16,43 +15,41 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @deprecated """ Replaced by `rpc.message.id`. """ - @spec message_id :: :"message.id" def message_id do :"message.id" end - @type sent() :: :SENT - - @type received() :: :RECEIVED - @typedoc """ Deprecated, use `rpc.message.type` instead. - ### Options + ### Enum Values * `:sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:received` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type message_type() :: sent() | received() | atom() - + @type message_type() :: %{ + :sent => :SENT, + :received => :RECEIVED + } @deprecated """ Replaced by `rpc.message.type`. """ + @spec message_type() :: message_type() + def message_type() do + %{ + :sent => :SENT, + :received => :RECEIVED + } + end - @spec message_type(message_type()) :: sent() | received() | atom() - def message_type(option) do - case option do - :sent -> :SENT - :received -> :RECEIVED - _ -> option - end + @spec message_type(atom() | String.t()) :: atom() | String.t() + def message_type(custom_value) do + custom_value end @deprecated """ Replaced by `rpc.message.uncompressed_size`. """ - @spec message_uncompressedsize :: :"message.uncompressed_size" def message_uncompressedsize do :"message.uncompressed_size" @@ -61,7 +58,7 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @typedoc """ The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. - ### Options + ### Enum Values * `:cancelled` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:invalid_argument` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ @@ -78,76 +75,61 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:data_loss` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:unauthenticated` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type rpc_connectrpc_errorcode() :: - :cancelled - | :unknown - | :invalid_argument - | :deadline_exceeded - | :not_found - | :already_exists - | :permission_denied - | :resource_exhausted - | :failed_precondition - | :aborted - | :out_of_range - | :unimplemented - | :internal - | :unavailable - | :data_loss - | :unauthenticated - | atom() - + @type rpc_connectrpc_errorcode() :: %{ + :cancelled => :cancelled, + :unknown => :unknown, + :invalid_argument => :invalid_argument, + :deadline_exceeded => :deadline_exceeded, + :not_found => :not_found, + :already_exists => :already_exists, + :permission_denied => :permission_denied, + :resource_exhausted => :resource_exhausted, + :failed_precondition => :failed_precondition, + :aborted => :aborted, + :out_of_range => :out_of_range, + :unimplemented => :unimplemented, + :internal => :internal, + :unavailable => :unavailable, + :data_loss => :data_loss, + :unauthenticated => :unauthenticated + } @doc """ The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode(:cancelled) + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode().cancelled :cancelled - + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode(:custom_value) :custom_value """ - @spec rpc_connectrpc_errorcode(rpc_connectrpc_errorcode()) :: - :cancelled - | :unknown - | :invalid_argument - | :deadline_exceeded - | :not_found - | :already_exists - | :permission_denied - | :resource_exhausted - | :failed_precondition - | :aborted - | :out_of_range - | :unimplemented - | :internal - | :unavailable - | :data_loss - | :unauthenticated - | atom() - def rpc_connectrpc_errorcode(option) do - case option do - :cancelled -> :cancelled - :unknown -> :unknown - :invalid_argument -> :invalid_argument - :deadline_exceeded -> :deadline_exceeded - :not_found -> :not_found - :already_exists -> :already_exists - :permission_denied -> :permission_denied - :resource_exhausted -> :resource_exhausted - :failed_precondition -> :failed_precondition - :aborted -> :aborted - :out_of_range -> :out_of_range - :unimplemented -> :unimplemented - :internal -> :internal - :unavailable -> :unavailable - :data_loss -> :data_loss - :unauthenticated -> :unauthenticated - _ -> option - end + @spec rpc_connectrpc_errorcode() :: rpc_connectrpc_errorcode() + def rpc_connectrpc_errorcode() do + %{ + :cancelled => :cancelled, + :unknown => :unknown, + :invalid_argument => :invalid_argument, + :deadline_exceeded => :deadline_exceeded, + :not_found => :not_found, + :already_exists => :already_exists, + :permission_denied => :permission_denied, + :resource_exhausted => :resource_exhausted, + :failed_precondition => :failed_precondition, + :aborted => :aborted, + :out_of_range => :out_of_range, + :unimplemented => :unimplemented, + :internal => :internal, + :unavailable => :unavailable, + :data_loss => :data_loss, + :unauthenticated => :unauthenticated + } + end + + @spec rpc_connectrpc_errorcode(atom() | String.t()) :: atom() | String.t() + def rpc_connectrpc_errorcode(custom_value) do + custom_value end @doc """ @@ -218,44 +200,10 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do :"rpc.grpc.response.metadata" end - @type ok() :: 0 - - @type cancelled() :: 1 - - @type unknown() :: 2 - - @type invalid_argument() :: 3 - - @type deadline_exceeded() :: 4 - - @type not_found() :: 5 - - @type already_exists() :: 6 - - @type permission_denied() :: 7 - - @type resource_exhausted() :: 8 - - @type failed_precondition() :: 9 - - @type aborted() :: 10 - - @type out_of_range() :: 11 - - @type unimplemented() :: 12 - - @type internal() :: 13 - - @type unavailable() :: 14 - - @type data_loss() :: 15 - - @type unauthenticated() :: 16 - @typedoc """ The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. - ### Options + ### Enum Values * `:ok` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK * `:cancelled` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN @@ -273,79 +221,63 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE * `:data_loss` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS * `:unauthenticated` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED - """ - @type rpc_grpc_statuscode() :: - ok() - | cancelled() - | unknown() - | invalid_argument() - | deadline_exceeded() - | not_found() - | already_exists() - | permission_denied() - | resource_exhausted() - | failed_precondition() - | aborted() - | out_of_range() - | unimplemented() - | internal() - | unavailable() - | data_loss() - | unauthenticated() - | atom() - + @type rpc_grpc_statuscode() :: %{ + :ok => 0, + :cancelled => 1, + :unknown => 2, + :invalid_argument => 3, + :deadline_exceeded => 4, + :not_found => 5, + :already_exists => 6, + :permission_denied => 7, + :resource_exhausted => 8, + :failed_precondition => 9, + :aborted => 10, + :out_of_range => 11, + :unimplemented => 12, + :internal => 13, + :unavailable => 14, + :data_loss => 15, + :unauthenticated => 16 + } @doc """ The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode(:ok) + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode().ok 0 - - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode(:custom_value) - :custom_value + + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode(27) + 27 """ - @spec rpc_grpc_statuscode(rpc_grpc_statuscode()) :: - ok() - | cancelled() - | unknown() - | invalid_argument() - | deadline_exceeded() - | not_found() - | already_exists() - | permission_denied() - | resource_exhausted() - | failed_precondition() - | aborted() - | out_of_range() - | unimplemented() - | internal() - | unavailable() - | data_loss() - | unauthenticated() - | atom() - def rpc_grpc_statuscode(option) do - case option do - :ok -> 0 - :cancelled -> 1 - :unknown -> 2 - :invalid_argument -> 3 - :deadline_exceeded -> 4 - :not_found -> 5 - :already_exists -> 6 - :permission_denied -> 7 - :resource_exhausted -> 8 - :failed_precondition -> 9 - :aborted -> 10 - :out_of_range -> 11 - :unimplemented -> 12 - :internal -> 13 - :unavailable -> 14 - :data_loss -> 15 - :unauthenticated -> 16 - _ -> option - end + @spec rpc_grpc_statuscode() :: rpc_grpc_statuscode() + def rpc_grpc_statuscode() do + %{ + :ok => 0, + :cancelled => 1, + :unknown => 2, + :invalid_argument => 3, + :deadline_exceeded => 4, + :not_found => 5, + :already_exists => 6, + :permission_denied => 7, + :resource_exhausted => 8, + :failed_precondition => 9, + :aborted => 10, + :out_of_range => 11, + :unimplemented => 12, + :internal => 13, + :unavailable => 14, + :data_loss => 15, + :unauthenticated => 16 + } + end + + @spec rpc_grpc_statuscode(integer()) :: integer() + def rpc_grpc_statuscode(custom_value) do + custom_value end @doc """ @@ -432,31 +364,36 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @typedoc """ Whether this is a received or sent message. - ### Options + ### Enum Values * `:sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:received` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type rpc_message_type() :: sent() | received() | atom() - + @type rpc_message_type() :: %{ + :sent => :SENT, + :received => :RECEIVED + } @doc """ Whether this is a received or sent message. ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type(:sent) + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type().sent :SENT - + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type(:custom_value) :custom_value """ - @spec rpc_message_type(rpc_message_type()) :: sent() | received() | atom() - def rpc_message_type(option) do - case option do - :sent -> :SENT - :received -> :RECEIVED - _ -> option - end + @spec rpc_message_type() :: rpc_message_type() + def rpc_message_type() do + %{ + :sent => :SENT, + :received => :RECEIVED + } + end + + @spec rpc_message_type(atom() | String.t()) :: atom() | String.t() + def rpc_message_type(custom_value) do + custom_value end @doc """ @@ -507,37 +444,44 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @typedoc """ A string identifying the remoting system. See below for a list of well-known identifiers. - ### Options + ### Enum Values * `:grpc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC * `:java_rmi` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI * `:dotnet_wcf` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF * `:apache_dubbo` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo * `:connect_rpc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC - """ - @type rpc_system() :: :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() - + @type rpc_system() :: %{ + :grpc => :grpc, + :java_rmi => :java_rmi, + :dotnet_wcf => :dotnet_wcf, + :apache_dubbo => :apache_dubbo, + :connect_rpc => :connect_rpc + } @doc """ A string identifying the remoting system. See below for a list of well-known identifiers. ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system(:grpc) + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system().grpc :grpc - + iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system(:custom_value) :custom_value """ - @spec rpc_system(rpc_system()) :: - :grpc | :java_rmi | :dotnet_wcf | :apache_dubbo | :connect_rpc | atom() - def rpc_system(option) do - case option do - :grpc -> :grpc - :java_rmi -> :java_rmi - :dotnet_wcf -> :dotnet_wcf - :apache_dubbo -> :apache_dubbo - :connect_rpc -> :connect_rpc - _ -> option - end + @spec rpc_system() :: rpc_system() + def rpc_system() do + %{ + :grpc => :grpc, + :java_rmi => :java_rmi, + :dotnet_wcf => :dotnet_wcf, + :apache_dubbo => :apache_dubbo, + :connect_rpc => :connect_rpc + } + end + + @spec rpc_system(atom() | String.t()) :: atom() | String.t() + def rpc_system(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex index 70f7fb33..c6f729b3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex @@ -20,7 +20,7 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @typedoc """ The state of the CPU - ### Options + ### Enum Values * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:nice` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ @@ -28,35 +28,43 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do * `:iowait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:interrupt` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:steal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_cpu_state() :: - :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() - + @type system_cpu_state() :: %{ + :user => :user, + :system => :system, + :nice => :nice, + :idle => :idle, + :iowait => :iowait, + :interrupt => :interrupt, + :steal => :steal + } @doc """ The state of the CPU ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state(:user) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state().user :user iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state(:custom_value) :custom_value """ - @spec system_cpu_state(system_cpu_state()) :: - :user | :system | :nice | :idle | :iowait | :interrupt | :steal | atom() - def system_cpu_state(option) do - case option do - :user -> :user - :system -> :system - :nice -> :nice - :idle -> :idle - :iowait -> :iowait - :interrupt -> :interrupt - :steal -> :steal - _ -> option - end + @spec system_cpu_state() :: system_cpu_state() + def system_cpu_state() do + %{ + :user => :user, + :system => :system, + :nice => :nice, + :idle => :idle, + :iowait => :iowait, + :interrupt => :interrupt, + :steal => :steal + } + end + + @spec system_cpu_state(atom() | String.t()) :: atom() | String.t() + def system_cpu_state(custom_value) do + custom_value end @doc """ @@ -101,115 +109,136 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @typedoc """ The filesystem state - ### Options + ### Enum Values * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:reserved` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_filesystem_state() :: :used | :free | :reserved | atom() - + @type system_filesystem_state() :: %{ + :used => :used, + :free => :free, + :reserved => :reserved + } @doc """ The filesystem state ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state(:used) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state().used :used iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state(:custom_value) :custom_value """ - @spec system_filesystem_state(system_filesystem_state()) :: :used | :free | :reserved | atom() - def system_filesystem_state(option) do - case option do - :used -> :used - :free -> :free - :reserved -> :reserved - _ -> option - end + @spec system_filesystem_state() :: system_filesystem_state() + def system_filesystem_state() do + %{ + :used => :used, + :free => :free, + :reserved => :reserved + } + end + + @spec system_filesystem_state(atom() | String.t()) :: atom() | String.t() + def system_filesystem_state(custom_value) do + custom_value end @typedoc """ The filesystem type - ### Options + ### Enum Values * `:fat32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:exfat` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:ntfs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:refs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:hfsplus` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:ext4` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_filesystem_type() :: :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() - + @type system_filesystem_type() :: %{ + :fat32 => :fat32, + :exfat => :exfat, + :ntfs => :ntfs, + :refs => :refs, + :hfsplus => :hfsplus, + :ext4 => :ext4 + } @doc """ The filesystem type ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type(:fat32) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type().fat32 :fat32 iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type(:custom_value) :custom_value """ - @spec system_filesystem_type(system_filesystem_type()) :: - :fat32 | :exfat | :ntfs | :refs | :hfsplus | :ext4 | atom() - def system_filesystem_type(option) do - case option do - :fat32 -> :fat32 - :exfat -> :exfat - :ntfs -> :ntfs - :refs -> :refs - :hfsplus -> :hfsplus - :ext4 -> :ext4 - _ -> option - end + @spec system_filesystem_type() :: system_filesystem_type() + def system_filesystem_type() do + %{ + :fat32 => :fat32, + :exfat => :exfat, + :ntfs => :ntfs, + :refs => :refs, + :hfsplus => :hfsplus, + :ext4 => :ext4 + } + end + + @spec system_filesystem_type(atom() | String.t()) :: atom() | String.t() + def system_filesystem_type(custom_value) do + custom_value end @typedoc """ The memory state - ### Options + ### Enum Values * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:shared` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:buffers` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:cached` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_memory_state() :: :used | :free | :shared | :buffers | :cached | atom() - + @type system_memory_state() :: %{ + :used => :used, + :free => :free, + :shared => :shared, + :buffers => :buffers, + :cached => :cached + } @doc """ The memory state ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state(:used) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state().used :used iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state(:custom_value) :custom_value """ - @spec system_memory_state(system_memory_state()) :: - :used | :free | :shared | :buffers | :cached | atom() - def system_memory_state(option) do - case option do - :used -> :used - :free -> :free - :shared -> :shared - :buffers -> :buffers - :cached -> :cached - _ -> option - end + @spec system_memory_state() :: system_memory_state() + def system_memory_state() do + %{ + :used => :used, + :free => :free, + :shared => :shared, + :buffers => :buffers, + :cached => :cached + } + end + + @spec system_memory_state(atom() | String.t()) :: atom() | String.t() + def system_memory_state(custom_value) do + custom_value end @typedoc """ A stateless protocol **MUST** **NOT** set this attribute - ### Options + ### Enum Values * `:close` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:close_wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:closing` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ @@ -222,218 +251,233 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do * `:syn_recv` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:syn_sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:time_wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_network_state() :: - :close - | :close_wait - | :closing - | :delete - | :established - | :fin_wait_1 - | :fin_wait_2 - | :last_ack - | :listen - | :syn_recv - | :syn_sent - | :time_wait - | atom() - + @type system_network_state() :: %{ + :close => :close, + :close_wait => :close_wait, + :closing => :closing, + :delete => :delete, + :established => :established, + :fin_wait_1 => :fin_wait_1, + :fin_wait_2 => :fin_wait_2, + :last_ack => :last_ack, + :listen => :listen, + :syn_recv => :syn_recv, + :syn_sent => :syn_sent, + :time_wait => :time_wait + } @doc """ A stateless protocol **MUST** **NOT** set this attribute ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state(:close) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state().close :close iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state(:custom_value) :custom_value """ - @spec system_network_state(system_network_state()) :: - :close - | :close_wait - | :closing - | :delete - | :established - | :fin_wait_1 - | :fin_wait_2 - | :last_ack - | :listen - | :syn_recv - | :syn_sent - | :time_wait - | atom() - def system_network_state(option) do - case option do - :close -> :close - :close_wait -> :close_wait - :closing -> :closing - :delete -> :delete - :established -> :established - :fin_wait_1 -> :fin_wait_1 - :fin_wait_2 -> :fin_wait_2 - :last_ack -> :last_ack - :listen -> :listen - :syn_recv -> :syn_recv - :syn_sent -> :syn_sent - :time_wait -> :time_wait - _ -> option - end + @spec system_network_state() :: system_network_state() + def system_network_state() do + %{ + :close => :close, + :close_wait => :close_wait, + :closing => :closing, + :delete => :delete, + :established => :established, + :fin_wait_1 => :fin_wait_1, + :fin_wait_2 => :fin_wait_2, + :last_ack => :last_ack, + :listen => :listen, + :syn_recv => :syn_recv, + :syn_sent => :syn_sent, + :time_wait => :time_wait + } + end + + @spec system_network_state(atom() | String.t()) :: atom() | String.t() + def system_network_state(custom_value) do + custom_value end @typedoc """ The paging access direction - ### Options + ### Enum Values * `:in` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:out` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_paging_direction() :: :in | :out | atom() - + @type system_paging_direction() :: %{ + :in => :in, + :out => :out + } @doc """ The paging access direction ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction(:in) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction().in :in iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction(:custom_value) :custom_value """ - @spec system_paging_direction(system_paging_direction()) :: :in | :out | atom() - def system_paging_direction(option) do - case option do - :in -> :in - :out -> :out - _ -> option - end + @spec system_paging_direction() :: system_paging_direction() + def system_paging_direction() do + %{ + :in => :in, + :out => :out + } + end + + @spec system_paging_direction(atom() | String.t()) :: atom() | String.t() + def system_paging_direction(custom_value) do + custom_value end @typedoc """ The memory paging state - ### Options + ### Enum Values * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_paging_state() :: :used | :free | atom() - + @type system_paging_state() :: %{ + :used => :used, + :free => :free + } @doc """ The memory paging state ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state(:used) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state().used :used iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state(:custom_value) :custom_value """ - @spec system_paging_state(system_paging_state()) :: :used | :free | atom() - def system_paging_state(option) do - case option do - :used -> :used - :free -> :free - _ -> option - end + @spec system_paging_state() :: system_paging_state() + def system_paging_state() do + %{ + :used => :used, + :free => :free + } + end + + @spec system_paging_state(atom() | String.t()) :: atom() | String.t() + def system_paging_state(custom_value) do + custom_value end @typedoc """ The memory paging type - ### Options + ### Enum Values * `:major` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:minor` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_paging_type() :: :major | :minor | atom() - + @type system_paging_type() :: %{ + :major => :major, + :minor => :minor + } @doc """ The memory paging type ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type(:major) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type().major :major iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type(:custom_value) :custom_value """ - @spec system_paging_type(system_paging_type()) :: :major | :minor | atom() - def system_paging_type(option) do - case option do - :major -> :major - :minor -> :minor - _ -> option - end + @spec system_paging_type() :: system_paging_type() + def system_paging_type() do + %{ + :major => :major, + :minor => :minor + } + end + + @spec system_paging_type(atom() | String.t()) :: atom() | String.t() + def system_paging_type(custom_value) do + custom_value end @typedoc """ The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - ### Options + ### Enum Values * `:running` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:sleeping` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:stopped` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:defunct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_process_status() :: :running | :sleeping | :stopped | :defunct | atom() - + @type system_process_status() :: %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } @doc """ The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status(:running) + iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status().running :running iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status(:custom_value) :custom_value """ - @spec system_process_status(system_process_status()) :: - :running | :sleeping | :stopped | :defunct | atom() - def system_process_status(option) do - case option do - :running -> :running - :sleeping -> :sleeping - :stopped -> :stopped - :defunct -> :defunct - _ -> option - end + @spec system_process_status() :: system_process_status() + def system_process_status() do + %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } + end + + @spec system_process_status(atom() | String.t()) :: atom() | String.t() + def system_process_status(custom_value) do + custom_value end @typedoc """ Deprecated, use `system.process.status` instead. - ### Options + ### Enum Values * `:running` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:sleeping` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:stopped` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:defunct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type system_processes_status() :: :running | :sleeping | :stopped | :defunct | atom() - + @type system_processes_status() :: %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } @deprecated """ Replaced by `system.process.status`. """ + @spec system_processes_status() :: system_processes_status() + def system_processes_status() do + %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } + end - @spec system_processes_status(system_processes_status()) :: - :running | :sleeping | :stopped | :defunct | atom() - def system_processes_status(option) do - case option do - :running -> :running - :sleeping -> :sleeping - :stopped -> :stopped - :defunct -> :defunct - _ -> option - end + @spec system_processes_status(atom() | String.t()) :: atom() | String.t() + def system_processes_status(custom_value) do + custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index 17f99f52..aaa065fc 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -40,7 +40,7 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do The language of the telemetry SDK. - ### Options + ### Enum Values * `:cpp` * `:dotnet` * `:erlang` @@ -53,65 +53,54 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do * `:rust` * `:swift` * `:webjs` - """ - @type telemetry_sdk_language() :: - :cpp - | :dotnet - | :erlang - | :go - | :java - | :nodejs - | :php - | :python - | :ruby - | :rust - | :swift - | :webjs - | atom() - + @type telemetry_sdk_language() :: %{ + :cpp => :cpp, + :dotnet => :dotnet, + :erlang => :erlang, + :go => :go, + :java => :java, + :nodejs => :nodejs, + :php => :php, + :python => :python, + :ruby => :ruby, + :rust => :rust, + :swift => :swift, + :webjs => :webjs + } @doc """ The language of the telemetry SDK. ### Example - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language(:cpp) + iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language().cpp :cpp iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language(:custom_value) :custom_value """ - @spec telemetry_sdk_language(telemetry_sdk_language()) :: - :cpp - | :dotnet - | :erlang - | :go - | :java - | :nodejs - | :php - | :python - | :ruby - | :rust - | :swift - | :webjs - | atom() - def telemetry_sdk_language(option) do - case option do - :cpp -> :cpp - :dotnet -> :dotnet - :erlang -> :erlang - :go -> :go - :java -> :java - :nodejs -> :nodejs - :php -> :php - :python -> :python - :ruby -> :ruby - :rust -> :rust - :swift -> :swift - :webjs -> :webjs - _ -> option - end + @spec telemetry_sdk_language() :: telemetry_sdk_language() + def telemetry_sdk_language() do + %{ + :cpp => :cpp, + :dotnet => :dotnet, + :erlang => :erlang, + :go => :go, + :java => :java, + :nodejs => :nodejs, + :php => :php, + :python => :python, + :ruby => :ruby, + :rust => :rust, + :swift => :swift, + :webjs => :webjs + } + end + + @spec telemetry_sdk_language(atom() | String.t()) :: atom() | String.t() + def telemetry_sdk_language(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex index 7dacc2bd..01fd14ad 100644 --- a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex @@ -226,32 +226,37 @@ defmodule OpenTelemetry.SemanticConventions.TlsAttributes do Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - ### Options + ### Enum Values * `:ssl` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ * `:tls` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type tls_protocol_name() :: :ssl | :tls | atom() - + @type tls_protocol_name() :: %{ + :ssl => :ssl, + :tls => :tls + } @doc """ Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name(:ssl) + iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name().ssl :ssl iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name(:custom_value) :custom_value """ - @spec tls_protocol_name(tls_protocol_name()) :: :ssl | :tls | atom() - def tls_protocol_name(option) do - case option do - :ssl -> :ssl - :tls -> :tls - _ -> option - end + @spec tls_protocol_name() :: tls_protocol_name() + def tls_protocol_name() do + %{ + :ssl => :ssl, + :tls => :tls + } + end + + @spec tls_protocol_name(atom() | String.t()) :: atom() | String.t() + def tls_protocol_name(custom_value) do + custom_value end @doc """ diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 3e9f3dd9..6fa40f46 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -21,6 +21,31 @@ {%- macro enum_value_to_elixir_type(value) -%} {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} {%- endmacro -%} +{%- macro enum_value_return_type(value) -%} + {%- if value is string -%} + atom() | String.t() + {%- elif value is integer -%} + integer() + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} +{%- macro enum_value_return_type_example(value) -%} + {%- if value is string -%} + :custom_value + {%- elif value is integer -%} + 27 + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} +{%- macro enum_to_map(members) -%} + {% raw %}%{{% endraw %} + {% for member in members %} + {{ to_atom(member.id) }} => {{ enum_value_to_elixir_type(member.value) }}{% if not loop.last %},{% endif %} + {% endfor %} + {% raw %}}{% endraw %} +{%- endmacro -%} {%- macro strong_reqs(string) -%} {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} {%- endmacro -%} @@ -38,35 +63,27 @@ defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do OpenTelemetry Semantic Conventions for {{ ctx.id | title }} attributes. """ {%- for attribute in ctx.attributes | sort(attribute="name") %} -{% if attribute.type is mapping %} + {% if attribute.type is mapping %} {# @doc namespace: {{ to_atom(ctx.id) }} #} - - {% for member in attribute.type.members %} - {% if member.id ~ '' != member.value -%} - @type {{ member.id }}() :: {{ enum_value_to_elixir_type(member.value) }} - {%- endif %} - {% endfor %} + @typedoc """ {{ strong_reqs(attribute.brief) }} - ### Options + ### Enum Values {% for member in attribute.type.members -%} * `{{ to_atom(member.id) }}` {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} - {% endfor %} + {% endfor -%} """ - @type {{ attribute.name | snake_case_const }}() :: - {%- for member in attribute.type.members -%} - {% if loop.first %} {% endif %}{% if member.id ~ '' != member.value %}{{ member.id }}(){% else %}{{ enum_value_to_elixir_type(member.value) }}{% endif %}{% if not loop.last %} | {% endif %} - {%- endfor -%} - | atom() - {%- endif %} + @type {{ attribute.name | snake_case_const }}() :: {{ enum_to_map(attribute.type.members) }} + {%- endif -%} {% if attribute is deprecated %} @deprecated """ {{ attribute.deprecated | replace("\n", "\n ") }} """ - {% else %} + {%- endif -%} + {% if not(attribute is deprecated) %} @doc """ {{ strong_reqs(attribute.brief | replace("\n", "\n ")) }} {% if attribute.note -%} @@ -78,36 +95,33 @@ defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do {%- endif %} ### Example - {%- if not(attribute.type is mapping) %} - iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}() - {{ to_atom(attribute.name) }} - {%- else %} - iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}({{ to_atom(attribute.type.members|first|attr('id'))}}) + {%- if attribute.type is mapping %} + iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}().{{ attribute.type.members|first|attr('id') }} {{ enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} - iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}(:custom_value) - :custom_value + iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}({{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) + {{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }} + {%- else %} + iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}() + {{ to_atom(attribute.name) }} {%- endif %} """ {%- endif %} + {%- if not(attribute.type is mapping) %} @spec {{ func_name(attribute.name) }} :: {{ to_atom(attribute.name) }} def {{ func_name(attribute.name) }} do {{ to_atom(attribute.name) }} end {%- else %} - @spec {{ func_name(attribute.name) }}({{ attribute.name | snake_case_const }}()) :: - {%- for member in attribute.type.members -%} - {% if loop.first %} {% endif %}{% if member.id ~ '' != member.value %}{{ member.id }}(){% else %}{{ enum_value_to_elixir_type(member.value) }}{% endif %}{% if not loop.last %} | {% endif %} - {%- endfor -%} - | atom() - def {{ func_name(attribute.name) }}(option) do - case option do - {% for member in attribute.type.members %} - {{ to_atom(member.id) }} -> {{ enum_value_to_elixir_type(member.value) }} - {% endfor %} - _ -> option - end + @spec {{ func_name(attribute.name) }}() :: {{ attribute.name | snake_case_const }}() + def {{ func_name(attribute.name) }}() do + {{ enum_to_map(attribute.type.members) }} + end + + @spec {{ func_name(attribute.name) }}({{ enum_value_return_type(attribute.type.members|first|attr('value')) }}) :: {{ enum_value_return_type(attribute.type.members|first|attr('value')) }} + def {{ func_name(attribute.name) }}(custom_value) do + custom_value end {%- endif %} {% endfor %} From 186535ffe9890c3853743d754611941549d9f8d6 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 9 Jul 2024 22:13:47 -0600 Subject: [PATCH 15/57] Separate incubating attributes --- .../README.md | 96 +- .../generate.exs | 100 +- .../include/client_attributes.hrl | 8 + .../include/error_attributes.hrl | 8 + .../include/exception_attributes.hrl | 19 + .../include/http_attributes.hrl | 53 + .../include/incubating/aws_attributes.hrl | 186 +++ .../include/incubating/browser_attributes.hrl | 16 + .../include/incubating/cloud_attributes.hrl | 102 ++ .../incubating/cloudevents_attributes.hrl | 25 + .../include/incubating/code_attributes.hrl | 30 + .../incubating/container_attributes.hrl | 70 + .../include/incubating/db_attributes.hrl | 345 ++++ .../incubating/deployment_attributes.hrl | 5 + .../incubating/destination_attributes.hrl | 8 + .../include/incubating/device_attributes.hrl | 20 + .../include/incubating/disk_attributes.hrl | 9 + .../include/incubating/dns_attributes.hrl | 4 + .../include/incubating/enduser_attributes.hrl | 14 + .../include/incubating/event_attributes.hrl | 5 + .../include/incubating/faas_attributes.hrl | 107 ++ .../incubating/feature_flag_attributes.hrl | 13 + .../include/incubating/file_attributes.hrl | 25 + .../include/incubating/gcp_attributes.hrl | 20 + .../include/incubating/gen_ai_attributes.hrl | 51 + .../include/incubating/graphql_attributes.hrl | 19 + .../include/incubating/heroku_attributes.hrl | 15 + .../include/incubating/host_attributes.hrl | 92 ++ .../include/incubating/http_attributes.hrl | 98 ++ .../include/incubating/k_8_s_attributes.hrl | 124 ++ .../include/incubating/log_attributes.hrl | 35 + .../incubating/messaging_attributes.hrl | 265 +++ .../include/incubating/network_attributes.hrl | 165 ++ .../include/incubating/oci_attributes.hrl | 5 + .../incubating/opentracing_attributes.hrl | 9 + .../include/incubating/os_attributes.hrl | 46 + .../include/incubating/otel_attributes.hrl | 8 + .../include/incubating/peer_attributes.hrl | 5 + .../include/incubating/process_attributes.hrl | 151 ++ .../include/incubating/rpc_attributes.hrl | 178 ++ .../include/incubating/service_attributes.hrl | 10 + .../include/incubating/session_attributes.hrl | 8 + .../include/incubating/source_attributes.hrl | 8 + .../include/incubating/system_attributes.hrl | 161 ++ .../incubating/telemetry_attributes.hrl | 10 + .../include/incubating/thread_attributes.hrl | 10 + .../include/incubating/tls_attributes.hrl | 135 ++ .../include/incubating/url_attributes.hrl | 40 + .../incubating/user_agent_attributes.hrl | 10 + .../incubating/webengine_attributes.hrl | 15 + .../include/logs.hrl | 14 + .../include/network_attributes.hrl | 47 + .../include/otel_attributes.hrl | 21 + .../include/resource.hrl | 354 ++++ .../include/server_attributes.hrl | 8 + .../include/service_attributes.hrl | 10 + .../include/telemetry_attributes.hrl | 40 + .../include/trace.hrl | 586 +++++++ .../include/url_attributes.hrl | 24 + .../include/user_agent_attributes.hrl | 5 + .../lib/aws_attributes.ex | 651 -------- .../lib/client_attributes.ex | 50 +- .../lib/cloudevents_attributes.ex | 76 - .../lib/code_attributes.ex | 90 - .../lib/container_attributes.ex | 217 --- .../lib/error_attributes.ex | 29 +- .../lib/exception_attributes.ex | 90 +- .../lib/file_attributes.ex | 79 - .../lib/gen_ai_attributes.ex | 188 --- .../lib/graphql_attributes.ex | 72 - .../lib/heroku_attributes.ex | 48 - .../lib/host_attributes.ex | 266 --- .../lib/http_attributes.ex | 393 ++--- .../lib/incubating/aws_attributes.ex | 1445 +++++++++++++++++ .../{ => incubating}/browser_attributes.ex | 93 +- .../lib/{ => incubating}/cloud_attributes.ex | 210 ++- .../lib/incubating/cloudevents_attributes.ex | 171 ++ .../lib/incubating/code_attributes.ex | 204 +++ .../lib/incubating/container_attributes.ex | 449 +++++ .../lib/{ => incubating}/db_attributes.ex | 715 ++++++-- .../{ => incubating}/deployment_attributes.ex | 26 +- .../destination_attributes.ex | 49 +- .../lib/{ => incubating}/device_attributes.ex | 98 +- .../lib/{ => incubating}/disk_attributes.ex | 32 +- .../lib/{ => incubating}/dns_attributes.ex | 28 +- .../{ => incubating}/enduser_attributes.ex | 71 +- .../lib/{ => incubating}/event_attributes.ex | 26 +- .../lib/{ => incubating}/faas_attributes.ex | 394 ++++- .../feature_flag_attributes.ex | 72 +- .../lib/incubating/file_attributes.ex | 170 ++ .../lib/{ => incubating}/gcp_attributes.ex | 96 +- .../lib/incubating/gen_ai_attributes.ex | 420 +++++ .../lib/incubating/graphql_attributes.ex | 131 ++ .../lib/incubating/heroku_attributes.ex | 105 ++ .../lib/incubating/host_attributes.ex | 550 +++++++ .../lib/incubating/http_attributes.ex | 336 ++++ .../lib/incubating/k_8_s_attributes.ex | 827 ++++++++++ .../lib/incubating/log_attributes.ex | 228 +++ .../{ => incubating}/messaging_attributes.ex | 974 +++++++++-- .../lib/incubating/network_attributes.ex | 535 ++++++ .../lib/{ => incubating}/oci_attributes.ex | 28 +- .../opentracing_attributes.ex | 28 +- .../lib/incubating/os_attributes.ex | 215 +++ .../lib/incubating/otel_attributes.ex | 22 + .../lib/{ => incubating}/peer_attributes.ex | 25 +- .../lib/incubating/process_attributes.ex | 954 +++++++++++ .../lib/{ => incubating}/rpc_attributes.ex | 463 +++++- .../lib/incubating/service_attributes.ex | 105 ++ .../lib/incubating/session_attributes.ex | 70 + .../lib/{ => incubating}/source_attributes.ex | 49 +- .../lib/{ => incubating}/system_attributes.ex | 422 ++++- .../lib/incubating/telemetry_attributes.ex | 77 + .../lib/incubating/thread_attributes.ex | 72 + .../lib/incubating/tls_attributes.ex | 971 +++++++++++ .../lib/incubating/url_attributes.ex | 295 ++++ .../lib/incubating/user_agent_attributes.ex | 80 + .../lib/incubating/webengine_attributes.ex | 105 ++ .../lib/k_8_s_attributes.ex | 375 ----- .../lib/log_attributes.ex | 117 -- .../lib/logs.ex | 24 + .../lib/network_attributes.ex | 577 ++----- .../lib/os_attributes.ex | 124 -- .../lib/otel_attributes.ex | 108 +- .../lib/process_attributes.ex | 457 ------ .../lib/resource.ex | 534 ++++++ .../lib/sem_conv.ex | 118 ++ .../lib/semantic_conventions.ex | 17 - .../lib/server_attributes.ex | 50 +- .../lib/service_attributes.ex | 100 +- .../lib/session_attributes.ex | 32 - .../lib/telemetry_attributes.ex | 102 +- .../lib/thread_attributes.ex | 34 - .../lib/tls_attributes.ex | 423 ----- .../lib/trace.ex | 884 ++++++++++ .../lib/url_attributes.ex | 233 ++- .../lib/user_agent_attributes.ex | 53 +- .../lib/webengine_attributes.ex | 48 - .../mix.exs | 5 +- .../opentelemetry_semantic_conventions.erl | 9 - .../registry/elixir/semantic_attributes.ex.j2 | 85 +- .../templates/registry/elixir/weaver.yaml | 26 +- .../erlang/semantic_attributes.hrl.j2 | 26 +- .../templates/registry/erlang/weaver.yaml | 87 + .../single_semantic_attributes.ex.j2 | 132 ++ 144 files changed, 18566 insertions(+), 4969 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/include/client_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/error_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/http_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/logs.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/network_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/resource.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/server_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/service_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/trace.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/url_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/code_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/container_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/file_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/host_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/browser_attributes.ex (61%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/cloud_attributes.ex (55%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/db_attributes.ex (54%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/deployment_attributes.ex (67%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/destination_attributes.ex (52%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/device_attributes.ex (60%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/disk_attributes.ex (53%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/dns_attributes.ex (53%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/enduser_attributes.ex (54%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/event_attributes.ex (61%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/faas_attributes.ex (53%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/feature_flag_attributes.ex (55%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/gcp_attributes.ex (52%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/messaging_attributes.ex (51%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/oci_attributes.ex (59%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/opentracing_attributes.ex (52%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/otel_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/peer_attributes.ex (53%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/rpc_attributes.ex (56%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/source_attributes.ex (51%) rename apps/opentelemetry_semantic_conventions/lib/{ => incubating}/system_attributes.ex (51%) create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/log_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/logs.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/os_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/process_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/resource.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/sem_conv.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/session_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/trace.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml create mode 100644 apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 958851d2..35a33e7b 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -3,28 +3,108 @@ Auto-generated constants that represent the [OpenTelemetry Semantic Conventions](https://github.com/open-telemetry/semantic-conventions). -## How to Use +## Usage + +Comprehensive documentation is available on [hexdocs](https://hexdocs.pm/opentelemetry_semantic_conventions) for Elixir and Erlang. + +Check out the Guides tab on HexDocs for detailed attribute information +and usage. + +### Migration from v1.13.0 semantic conventions + +The structure of OpenTelemetry Semantic Conventions has evolved a great +deal since the last version we have published. All attributes now live +under a common attribute registry. In addition, attributes have been classified +as stable or experimental. + +Attributes are now organized by attribute group and stability. The prior code +has been kept in a deprecated status to allow backward compatability +during migration. + +### Erlang For Erlang include the semantic conventions header for the particular kind you -need (`trace`, `resource`, `logs`, `metrics`): +need: ``` --include_lib("opentelemetry_semantic_conventions/include/trace.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/url_attributes.hrl"). ``` You can then use the macros for the attribute keys: ``` -?DB_CONNECTION_STRING +?URL_PATH +``` + +#### Enums + +Enum Attribute types define each value in a macro with the attribute name prefixed. + +Enum Attributes allow for a user-supplied value when no pre-defined option exists. To +use a custom value, a function macro is provided. + +``` +-include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). + +?db_system.("custom"). +``` + +#### Incubating Attributes + +Incubating attribute header files are located in the `incubating` folder. + +Experimental attributes are considered to be incubating. Attribute groups can +contain attributes which are stable, experimental, or both. Experimental +attributes are contained in an incubating header. Attribute groups containing +attributes of both stability levels will have two header files in this case. + +``` +-include_lib("opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl"). +``` + +You can then use the macros for the experimental attribute keys: + +``` +?URL_DOMAIN ``` ### Elixir -You could also use `OpenTelemetry.SemanticConventions.Logs`, `OpenTelemetry.SemanticConventions.Resource` or -`OpenTelemetry.SemanticConventions.Trace` modules. +Attributes in Elixir are defined as functions. To use an attribute, simply call it +with that attribute's name. + +``` +iex> OpenTelemetry.SemConv.URLAttributes.url_path() +:"url.path" +``` + +#### Enums + +Enum Attribute types are defined by a function that returns a map of all defined values. +To get a particular value, you can use map dot or access patterns. Enum keys are always atoms. + +``` +iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().postgresql +:postgresql +``` + +Enum Attributes allow for a user-supplied value when no pre-defined option exists. To +use a custom value, a function macro is provided. + +``` +iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system(:custom) +:custom +``` + +#### Incubating Attributes + +Incubating attributes are located under the `OpenTelemetry.SemConv.Incubating` +namespace. - iex> OpenTelemetry.SemanticConventions.Logs.event_name() - :"event.name" +Experimental attributes are considered to be incubating. Attribute groups can +contain attributes which are stable, experimental, or both. Experimental +attributes are contained in an incubating module. Attribute groups containing +attributes of both stability levels will have two modules in this case. ## Contribution diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs index c9dbefa9..e588f053 100644 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -25,6 +25,11 @@ cwd = File.cwd!() # System.cmd("rm", ["-rf", "#{cwd}/guides/docs"]) # end) +######## +# Delete all generated files before generating new versions. +######## + +# elixir System.cmd("docker", [ "run", # "--rm", @@ -40,41 +45,76 @@ System.cmd("docker", [ "generate", "--registry=/source/model", "--templates=/weaver/templates", + "--param", + "stability=stable", + "elixir", + "/output/" +]) + +System.cmd("docker", [ + "run", + # "--rm", + "-v", + "#{build_dir}:/source", + "-v", + "#{cwd}/templates:/weaver/templates", + "-v", + "#{cwd}/lib/incubating:/output", + "local-weaver", + # "otel/weaver:#{docker_img_vsn}", + "registry", + "generate", + "--registry=/source/model", + "--templates=/weaver/templates", + "--param", + "stability=experimental", "elixir", "/output/" ]) # erlang -# Task.async(fn -> -# System.cmd("docker", [ -# "run", -# "--rm", -# "-v", -# "#{build_dir}/model:/source", -# "-v", -# "#{cwd}/templates:/templates", -# "-v", -# "#{cwd}/include:/output", -# "otel/semconvgen:#{docker_img_vsn}", -# "--only", -# kind, -# "--yaml-root", -# "/source", -# "code", -# "--template", -# "/templates/semantic_attributes.hrl.j2", -# "--output", -# "/output/#{module}.hrl", -# "-Dmodule=#{module}", -# "-Dschema_uri=#{schema_uri}" -# ]) -# end) -# end) -# |> List.flatten() -# |> Task.await_many(:timer.minutes(5)) -# rpc_attributes.ex will fail with duplicate types for -# sent/receive around the mid-400s lines. Delete -# and run these two commands again +System.cmd("docker", [ + "run", + # "--rm", + "-v", + "#{build_dir}:/source", + "-v", + "#{cwd}/templates:/weaver/templates", + "-v", + "#{cwd}/include:/output", + "local-weaver", + # "otel/weaver:#{docker_img_vsn}", + "registry", + "generate", + "--registry=/source/model", + "--templates=/weaver/templates", + "--param", + "stability=stable", + "erlang", + "/output/" +]) + +System.cmd("docker", [ + "run", + # "--rm", + "-v", + "#{build_dir}:/source", + "-v", + "#{cwd}/templates:/weaver/templates", + "-v", + "#{cwd}/include/incubating:/output", + "local-weaver", + # "otel/weaver:#{docker_img_vsn}", + "registry", + "generate", + "--registry=/source/model", + "--templates=/weaver/templates", + "--param", + "stability=experimental", + "erlang", + "/output/" +]) + System.cmd("mix", ["format"]) System.cmd("mix", ["docs"]) diff --git a/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl new file mode 100644 index 00000000..8c848ac8 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl @@ -0,0 +1,8 @@ + + +%% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +-define(CLIENT_ADDRESS, 'client.address'). + + +%% Client port number. +-define(CLIENT_PORT, 'client.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl new file mode 100644 index 00000000..ebcd756a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -0,0 +1,8 @@ + + +%% Describes a class of error the operation ended with. +%% + +-define('error_type.other', '_OTHER'). + +-define(error_type.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl new file mode 100644 index 00000000..41d7323b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl @@ -0,0 +1,19 @@ + + +%% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. +%% +-define(EXCEPTION_ESCAPED, 'exception.escaped'). + + +%% The exception message. +-define(EXCEPTION_MESSAGE, 'exception.message'). + + +%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. +%% +-define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). + + +%% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. +%% +-define(EXCEPTION_TYPE, 'exception.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl new file mode 100644 index 00000000..177388c7 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -0,0 +1,53 @@ + + +%% HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. +%% +-define(HTTP_REQUEST_HEADER, 'http.request.header'). + + +%% HTTP request method. + +-define('http_request_method.connect', 'CONNECT'). + +-define('http_request_method.delete', 'DELETE'). + +-define('http_request_method.get', 'GET'). + +-define('http_request_method.head', 'HEAD'). + +-define('http_request_method.options', 'OPTIONS'). + +-define('http_request_method.patch', 'PATCH'). + +-define('http_request_method.post', 'POST'). + +-define('http_request_method.put', 'PUT'). + +-define('http_request_method.trace', 'TRACE'). + +-define('http_request_method.other', '_OTHER'). + +-define(http_request_method.(Custom), Custom). + + +%% Original HTTP method sent by the client in the request line. +-define(HTTP_REQUEST_METHODORIGINAL, 'http.request.method_original'). + + +%% The ordinal number of request resending attempt (for any reason, including redirects). +%% +-define(HTTP_REQUEST_RESENDCOUNT, 'http.request.resend_count'). + + +%% HTTP response headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. +%% +-define(HTTP_RESPONSE_HEADER, 'http.response.header'). + + +%% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). +-define(HTTP_RESPONSE_STATUSCODE, 'http.response.status_code'). + + +%% The matched route, that is, the path template in the format used by the respective server framework. +%% +-define(HTTP_ROUTE, 'http.route'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl new file mode 100644 index 00000000..8e173cbd --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -0,0 +1,186 @@ + + +%% The JSON-serialized value of each item in the `AttributeDefinitions` request field. +-define(AWS_DYNAMODB_ATTRIBUTEDEFINITIONS, 'aws.dynamodb.attribute_definitions'). + + +%% The value of the `AttributesToGet` request parameter. +-define(AWS_DYNAMODB_ATTRIBUTESTOGET, 'aws.dynamodb.attributes_to_get'). + + +%% The value of the `ConsistentRead` request parameter. +-define(AWS_DYNAMODB_CONSISTENTREAD, 'aws.dynamodb.consistent_read'). + + +%% The JSON-serialized value of each item in the `ConsumedCapacity` response field. +-define(AWS_DYNAMODB_CONSUMEDCAPACITY, 'aws.dynamodb.consumed_capacity'). + + +%% The value of the `Count` response parameter. +-define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). + + +%% The value of the `ExclusiveStartTableName` request parameter. +-define(AWS_DYNAMODB_EXCLUSIVESTARTTABLE, 'aws.dynamodb.exclusive_start_table'). + + +%% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. +-define(AWS_DYNAMODB_GLOBALSECONDARYINDEXUPDATES, 'aws.dynamodb.global_secondary_index_updates'). + + +%% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field +-define(AWS_DYNAMODB_GLOBALSECONDARYINDEXES, 'aws.dynamodb.global_secondary_indexes'). + + +%% The value of the `IndexName` request parameter. +-define(AWS_DYNAMODB_INDEXNAME, 'aws.dynamodb.index_name'). + + +%% The JSON-serialized value of the `ItemCollectionMetrics` response field. +-define(AWS_DYNAMODB_ITEMCOLLECTIONMETRICS, 'aws.dynamodb.item_collection_metrics'). + + +%% The value of the `Limit` request parameter. +-define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). + + +%% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. +-define(AWS_DYNAMODB_LOCALSECONDARYINDEXES, 'aws.dynamodb.local_secondary_indexes'). + + +%% The value of the `ProjectionExpression` request parameter. +-define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). + + +%% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. +-define(AWS_DYNAMODB_PROVISIONEDREADCAPACITY, 'aws.dynamodb.provisioned_read_capacity'). + + +%% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. +-define(AWS_DYNAMODB_PROVISIONEDWRITECAPACITY, 'aws.dynamodb.provisioned_write_capacity'). + + +%% The value of the `ScanIndexForward` request parameter. +-define(AWS_DYNAMODB_SCANFORWARD, 'aws.dynamodb.scan_forward'). + + +%% The value of the `ScannedCount` response parameter. +-define(AWS_DYNAMODB_SCANNEDCOUNT, 'aws.dynamodb.scanned_count'). + + +%% The value of the `Segment` request parameter. +-define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). + + +%% The value of the `Select` request parameter. +-define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). + + +%% The number of items in the `TableNames` response parameter. +-define(AWS_DYNAMODB_TABLECOUNT, 'aws.dynamodb.table_count'). + + +%% The keys in the `RequestItems` object field. +-define(AWS_DYNAMODB_TABLENAMES, 'aws.dynamodb.table_names'). + + +%% The value of the `TotalSegments` request parameter. +-define(AWS_DYNAMODB_TOTALSEGMENTS, 'aws.dynamodb.total_segments'). + + +%% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). +%% +-define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). + + +%% The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). +%% +-define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). + + +%% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. +%% + +-define('aws_ecs_launchtype.ec2', 'ec2'). + +-define('aws_ecs_launchtype.fargate', 'fargate'). + +-define(aws_ecs_launchtype.(Custom), Custom). + + +%% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). +%% +-define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). + + +%% 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. +%% +-define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). + + +%% The ID of a running ECS task. The ID MUST be extracted from `task.arn`. +%% +-define(AWS_ECS_TASK_ID, 'aws.ecs.task.id'). + + +%% The revision for the task definition used to create the ECS task. +%% +-define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). + + +%% The ARN of an EKS cluster. +%% +-define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). + + +%% 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). +%% +-define(AWS_LAMBDA_INVOKEDARN, 'aws.lambda.invoked_arn'). + + +%% The Amazon Resource Name(s) (ARN) of the AWS log group(s). +%% +-define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). + + +%% The name(s) of the AWS log group(s) an application is writing to. +%% +-define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). + + +%% The ARN(s) of the AWS log stream(s). +%% +-define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). + + +%% The name(s) of the AWS log stream(s) an application is writing to. +%% +-define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). + + +%% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. +-define(AWS_REQUESTID, 'aws.request_id'). + + +%% 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. +-define(AWS_S_3_BUCKET, 'aws.s3.bucket'). + + +%% The source object (in the form `bucket`/`key`) for the copy operation. +-define(AWS_S_3_COPYSOURCE, 'aws.s3.copy_source'). + + +%% The delete request container that specifies the objects to be deleted. +-define(AWS_S_3_DELETE, 'aws.s3.delete'). + + +%% 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. +-define(AWS_S_3_KEY, 'aws.s3.key'). + + +%% The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. +-define(AWS_S_3_PARTNUMBER, 'aws.s3.part_number'). + + +%% Upload ID that identifies the multipart upload. +-define(AWS_S_3_UPLOADID, 'aws.s3.upload_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl new file mode 100644 index 00000000..8d66555e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl @@ -0,0 +1,16 @@ + + +%% Array of brand name and version separated by a space +-define(BROWSER_BRANDS, 'browser.brands'). + + +%% Preferred language of the user using the browser +-define(BROWSER_LANGUAGE, 'browser.language'). + + +%% A boolean that is true if the browser is running on a mobile device +-define(BROWSER_MOBILE, 'browser.mobile'). + + +%% The platform on which the browser is running +-define(BROWSER_PLATFORM, 'browser.platform'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl new file mode 100644 index 00000000..8ac3976f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -0,0 +1,102 @@ + + +%% The cloud account ID the resource is assigned to. +%% +-define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). + + +%% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. +%% +-define(CLOUD_AVAILABILITYZONE, 'cloud.availability_zone'). + + +%% The cloud platform in use. +%% + +-define('cloud_platform.alibaba_cloud_ecs', 'alibaba_cloud_ecs'). + +-define('cloud_platform.alibaba_cloud_fc', 'alibaba_cloud_fc'). + +-define('cloud_platform.alibaba_cloud_openshift', 'alibaba_cloud_openshift'). + +-define('cloud_platform.aws_ec2', 'aws_ec2'). + +-define('cloud_platform.aws_ecs', 'aws_ecs'). + +-define('cloud_platform.aws_eks', 'aws_eks'). + +-define('cloud_platform.aws_lambda', 'aws_lambda'). + +-define('cloud_platform.aws_elastic_beanstalk', 'aws_elastic_beanstalk'). + +-define('cloud_platform.aws_app_runner', 'aws_app_runner'). + +-define('cloud_platform.aws_openshift', 'aws_openshift'). + +-define('cloud_platform.azure_vm', 'azure_vm'). + +-define('cloud_platform.azure_container_apps', 'azure_container_apps'). + +-define('cloud_platform.azure_container_instances', 'azure_container_instances'). + +-define('cloud_platform.azure_aks', 'azure_aks'). + +-define('cloud_platform.azure_functions', 'azure_functions'). + +-define('cloud_platform.azure_app_service', 'azure_app_service'). + +-define('cloud_platform.azure_openshift', 'azure_openshift'). + +-define('cloud_platform.gcp_bare_metal_solution', 'gcp_bare_metal_solution'). + +-define('cloud_platform.gcp_compute_engine', 'gcp_compute_engine'). + +-define('cloud_platform.gcp_cloud_run', 'gcp_cloud_run'). + +-define('cloud_platform.gcp_kubernetes_engine', 'gcp_kubernetes_engine'). + +-define('cloud_platform.gcp_cloud_functions', 'gcp_cloud_functions'). + +-define('cloud_platform.gcp_app_engine', 'gcp_app_engine'). + +-define('cloud_platform.gcp_openshift', 'gcp_openshift'). + +-define('cloud_platform.ibm_cloud_openshift', 'ibm_cloud_openshift'). + +-define('cloud_platform.tencent_cloud_cvm', 'tencent_cloud_cvm'). + +-define('cloud_platform.tencent_cloud_eks', 'tencent_cloud_eks'). + +-define('cloud_platform.tencent_cloud_scf', 'tencent_cloud_scf'). + +-define(cloud_platform.(Custom), Custom). + + +%% Name of the cloud provider. +%% + +-define('cloud_provider.alibaba_cloud', 'alibaba_cloud'). + +-define('cloud_provider.aws', 'aws'). + +-define('cloud_provider.azure', 'azure'). + +-define('cloud_provider.gcp', 'gcp'). + +-define('cloud_provider.heroku', 'heroku'). + +-define('cloud_provider.ibm_cloud', 'ibm_cloud'). + +-define('cloud_provider.tencent_cloud', 'tencent_cloud'). + +-define(cloud_provider.(Custom), Custom). + + +%% The geographical region the resource is running. +%% +-define(CLOUD_REGION, 'cloud.region'). + + +%% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) +%% +-define(CLOUD_RESOURCEID, 'cloud.resource_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl new file mode 100644 index 00000000..8cd3c7c4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl @@ -0,0 +1,25 @@ + + +%% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. +%% +-define(CLOUDEVENTS_EVENTID, 'cloudevents.event_id'). + + +%% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. +%% +-define(CLOUDEVENTS_EVENTSOURCE, 'cloudevents.event_source'). + + +%% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. +%% +-define(CLOUDEVENTS_EVENTSPECVERSION, 'cloudevents.event_spec_version'). + + +%% 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). +%% +-define(CLOUDEVENTS_EVENTSUBJECT, 'cloudevents.event_subject'). + + +%% 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. +%% +-define(CLOUDEVENTS_EVENTTYPE, 'cloudevents.event_type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl new file mode 100644 index 00000000..e54514aa --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl @@ -0,0 +1,30 @@ + + +%% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. +%% +-define(CODE_COLUMN, 'code.column'). + + +%% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). +%% +-define(CODE_FILEPATH, 'code.filepath'). + + +%% The method or function name, or equivalent (usually rightmost part of the code unit's name). +%% +-define(CODE_FUNCTION, 'code.function'). + + +%% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. +%% +-define(CODE_LINENO, 'code.lineno'). + + +%% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. +%% +-define(CODE_NAMESPACE, 'code.namespace'). + + +%% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. +%% +-define(CODE_STACKTRACE, 'code.stacktrace'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl new file mode 100644 index 00000000..245fb46d --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -0,0 +1,70 @@ + + +%% The command used to run the container (i.e. the command name). +%% +-define(CONTAINER_COMMAND, 'container.command'). + + +%% All the command arguments (including the command/executable itself) run by the container. [2] +%% +-define(CONTAINER_COMMANDARGS, 'container.command_args'). + + +%% The full command run by the container as a single string representing the full command. [2] +%% +-define(CONTAINER_COMMANDLINE, 'container.command_line'). + + +%% The CPU state for this data point. + +-define('container_cpu_state.user', 'user'). + +-define('container_cpu_state.system', 'system'). + +-define('container_cpu_state.kernel', 'kernel'). + +-define(container_cpu_state.(Custom), Custom). + + +%% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. +%% +-define(CONTAINER_ID, 'container.id'). + + +%% Runtime specific image identifier. Usually a hash algorithm followed by a UUID. +%% +-define(CONTAINER_IMAGE_ID, 'container.image.id'). + + +%% Name of the image the container was built on. +%% +-define(CONTAINER_IMAGE_NAME, 'container.image.name'). + + +%% Repo digests of the container image as provided by the container runtime. +%% +-define(CONTAINER_IMAGE_REPODIGESTS, 'container.image.repo_digests'). + + +%% 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:`. +%% +-define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). + + +%% Container labels, `` being the label name, the value being the label value. +%% +-define(CONTAINER_LABEL, 'container.label'). + +%% @deprecated Replaced by `container.label`. +%% Deprecated, use `container.label` instead. +-define(CONTAINER_LABELS, 'container.labels'). + + +%% Container name used by container runtime. +%% +-define(CONTAINER_NAME, 'container.name'). + + +%% The container runtime managing this container. +%% +-define(CONTAINER_RUNTIME, 'container.runtime'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl new file mode 100644 index 00000000..c888cc5b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -0,0 +1,345 @@ + + +%% 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). +%% + +-define('db_cassandra_consistencylevel.all', 'all'). + +-define('db_cassandra_consistencylevel.each_quorum', 'each_quorum'). + +-define('db_cassandra_consistencylevel.quorum', 'quorum'). + +-define('db_cassandra_consistencylevel.local_quorum', 'local_quorum'). + +-define('db_cassandra_consistencylevel.one', 'one'). + +-define('db_cassandra_consistencylevel.two', 'two'). + +-define('db_cassandra_consistencylevel.three', 'three'). + +-define('db_cassandra_consistencylevel.local_one', 'local_one'). + +-define('db_cassandra_consistencylevel.any', 'any'). + +-define('db_cassandra_consistencylevel.serial', 'serial'). + +-define('db_cassandra_consistencylevel.local_serial', 'local_serial'). + +-define(db_cassandra_consistencylevel.(Custom), Custom). + + +%% The data center of the coordinating node for a query. +%% +-define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). + + +%% The ID of the coordinating node for a query. +%% +-define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). + + +%% Whether or not the query is idempotent. +%% +-define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). + + +%% The fetch size used for paging, i.e. how many rows will be returned at once. +%% +-define(DB_CASSANDRA_PAGESIZE, 'db.cassandra.page_size'). + + +%% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. +%% +-define(DB_CASSANDRA_SPECULATIVEEXECUTIONCOUNT, 'db.cassandra.speculative_execution_count'). + +%% @deprecated Replaced by `db.collection.name`. +%% Deprecated, use `db.collection.name` instead. +-define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). + + +%% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. +%% +-define(DB_CLIENT_CONNECTIONS_POOL_NAME, 'db.client.connections.pool.name'). + + +%% The state of a connection in the pool + +-define('db_client_connections_state.idle', 'idle'). + +-define('db_client_connections_state.used', 'used'). + +-define(db_client_connections_state.(Custom), Custom). + + +%% The name of a collection (table, container) within the database. +-define(DB_COLLECTION_NAME, 'db.collection.name'). + +%% @deprecated "Replaced by `server.address` and `server.port`." +%% +%% Deprecated, use `server.address`, `server.port` attributes instead. +-define(DB_CONNECTIONSTRING, 'db.connection_string'). + + +%% Unique Cosmos client instance id. +-define(DB_COSMOSDB_CLIENTID, 'db.cosmosdb.client_id'). + + +%% Cosmos client connection mode. + +-define('db_cosmosdb_connectionmode.gateway', 'gateway'). + +-define('db_cosmosdb_connectionmode.direct', 'direct'). + +-define(db_cosmosdb_connectionmode.(Custom), Custom). + +%% @deprecated Replaced by `db.collection.name`. +%% Deprecated, use `db.collection.name` instead. +-define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). + + +%% CosmosDB Operation Type. + +-define('db_cosmosdb_operationtype.invalid', 'Invalid'). + +-define('db_cosmosdb_operationtype.create', 'Create'). + +-define('db_cosmosdb_operationtype.patch', 'Patch'). + +-define('db_cosmosdb_operationtype.read', 'Read'). + +-define('db_cosmosdb_operationtype.read_feed', 'ReadFeed'). + +-define('db_cosmosdb_operationtype.delete', 'Delete'). + +-define('db_cosmosdb_operationtype.replace', 'Replace'). + +-define('db_cosmosdb_operationtype.execute', 'Execute'). + +-define('db_cosmosdb_operationtype.query', 'Query'). + +-define('db_cosmosdb_operationtype.head', 'Head'). + +-define('db_cosmosdb_operationtype.head_feed', 'HeadFeed'). + +-define('db_cosmosdb_operationtype.upsert', 'Upsert'). + +-define('db_cosmosdb_operationtype.batch', 'Batch'). + +-define('db_cosmosdb_operationtype.query_plan', 'QueryPlan'). + +-define('db_cosmosdb_operationtype.execute_javascript', 'ExecuteJavaScript'). + +-define(db_cosmosdb_operationtype.(Custom), Custom). + + +%% RU consumed for that operation +-define(DB_COSMOSDB_REQUESTCHARGE, 'db.cosmosdb.request_charge'). + + +%% Request payload size in bytes +-define(DB_COSMOSDB_REQUESTCONTENTLENGTH, 'db.cosmosdb.request_content_length'). + + +%% Cosmos DB status code. +-define(DB_COSMOSDB_STATUSCODE, 'db.cosmosdb.status_code'). + + +%% Cosmos DB sub status code. +-define(DB_COSMOSDB_SUBSTATUSCODE, 'db.cosmosdb.sub_status_code'). + + +%% Represents the identifier of an Elasticsearch cluster. +%% +-define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). + + +%% Represents the human-readable identifier of the node/instance to which a request was routed. +%% +-define(DB_ELASTICSEARCH_NODE_NAME, 'db.elasticsearch.node.name'). + + +%% A dynamic value in the url path. +%% +-define(DB_ELASTICSEARCH_PATHPARTS, 'db.elasticsearch.path_parts'). + +%% @deprecated Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. +%% Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. +-define(DB_INSTANCE_ID, 'db.instance.id'). + +%% @deprecated Removed as not used. +%% Removed, no replacement at this time. +-define(DB_JDBC_DRIVERCLASSNAME, 'db.jdbc.driver_classname'). + +%% @deprecated Replaced by `db.collection.name`. +%% Deprecated, use `db.collection.name` instead. +-define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). + +%% @deprecated Deprecated, no replacement at this time. +%% Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. +-define(DB_MSSQL_INSTANCENAME, 'db.mssql.instance_name'). + +%% @deprecated Replaced by `db.namespace`. +%% Deprecated, use `db.namespace` instead. +-define(DB_NAME, 'db.name'). + + +%% The name of the database, fully qualified within the server address and port. +%% +-define(DB_NAMESPACE, 'db.namespace'). + +%% @deprecated Replaced by `db.operation.name`. +%% Deprecated, use `db.operation.name` instead. +-define(DB_OPERATION, 'db.operation'). + + +%% The name of the operation or command being executed. +%% +-define(DB_OPERATION_NAME, 'db.operation.name'). + + +%% The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. +%% +-define(DB_QUERY_PARAMETER, 'db.query.parameter'). + + +%% The database query being executed. +%% +-define(DB_QUERY_TEXT, 'db.query.text'). + +%% @deprecated Replaced by `db.namespace`. +%% Deprecated, use `db.namespace` instead. +-define(DB_REDIS_DATABASEINDEX, 'db.redis.database_index'). + +%% @deprecated Replaced by `db.collection.name`. +%% Deprecated, use `db.collection.name` instead. +-define(DB_SQL_TABLE, 'db.sql.table'). + +%% @deprecated Replaced by `db.query.text`. +%% The database statement being executed. +-define(DB_STATEMENT, 'db.statement'). + + +%% The database management system (DBMS) product as identified by the client instrumentation. + +-define('db_system.other_sql', 'other_sql'). + +-define('db_system.mssql', 'mssql'). + +-define('db_system.mssqlcompact', 'mssqlcompact'). + +-define('db_system.mysql', 'mysql'). + +-define('db_system.oracle', 'oracle'). + +-define('db_system.db2', 'db2'). + +-define('db_system.postgresql', 'postgresql'). + +-define('db_system.redshift', 'redshift'). + +-define('db_system.hive', 'hive'). + +-define('db_system.cloudscape', 'cloudscape'). + +-define('db_system.hsqldb', 'hsqldb'). + +-define('db_system.progress', 'progress'). + +-define('db_system.maxdb', 'maxdb'). + +-define('db_system.hanadb', 'hanadb'). + +-define('db_system.ingres', 'ingres'). + +-define('db_system.firstsql', 'firstsql'). + +-define('db_system.edb', 'edb'). + +-define('db_system.cache', 'cache'). + +-define('db_system.adabas', 'adabas'). + +-define('db_system.firebird', 'firebird'). + +-define('db_system.derby', 'derby'). + +-define('db_system.filemaker', 'filemaker'). + +-define('db_system.informix', 'informix'). + +-define('db_system.instantdb', 'instantdb'). + +-define('db_system.interbase', 'interbase'). + +-define('db_system.mariadb', 'mariadb'). + +-define('db_system.netezza', 'netezza'). + +-define('db_system.pervasive', 'pervasive'). + +-define('db_system.pointbase', 'pointbase'). + +-define('db_system.sqlite', 'sqlite'). + +-define('db_system.sybase', 'sybase'). + +-define('db_system.teradata', 'teradata'). + +-define('db_system.vertica', 'vertica'). + +-define('db_system.h2', 'h2'). + +-define('db_system.coldfusion', 'coldfusion'). + +-define('db_system.cassandra', 'cassandra'). + +-define('db_system.hbase', 'hbase'). + +-define('db_system.mongodb', 'mongodb'). + +-define('db_system.redis', 'redis'). + +-define('db_system.couchbase', 'couchbase'). + +-define('db_system.couchdb', 'couchdb'). + +-define('db_system.cosmosdb', 'cosmosdb'). + +-define('db_system.dynamodb', 'dynamodb'). + +-define('db_system.neo4j', 'neo4j'). + +-define('db_system.geode', 'geode'). + +-define('db_system.elasticsearch', 'elasticsearch'). + +-define('db_system.memcached', 'memcached'). + +-define('db_system.cockroachdb', 'cockroachdb'). + +-define('db_system.opensearch', 'opensearch'). + +-define('db_system.clickhouse', 'clickhouse'). + +-define('db_system.spanner', 'spanner'). + +-define('db_system.trino', 'trino'). + +-define(db_system.(Custom), Custom). + +%% @deprecated No replacement at this time. +%% Deprecated, no replacement at this time. +-define(DB_USER, 'db.user'). + +%% @deprecated Replaced by `db.client.connections.pool.name`. +%% Deprecated, use `db.client.connections.pool.name` instead. +-define(POOL_NAME, 'pool.name'). + +%% @deprecated Replaced by `db.client.connections.state`. +%% Deprecated, use `db.client.connections.state` instead. + +-define('state.idle', 'idle'). + +-define('state.used', 'used'). + +-define(state.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl new file mode 100644 index 00000000..a87bea18 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl @@ -0,0 +1,5 @@ + + +%% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). +%% +-define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl new file mode 100644 index 00000000..8265517f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl @@ -0,0 +1,8 @@ + + +%% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +-define(DESTINATION_ADDRESS, 'destination.address'). + + +%% Destination port number +-define(DESTINATION_PORT, 'destination.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl new file mode 100644 index 00000000..c3870a9b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl @@ -0,0 +1,20 @@ + + +%% A unique identifier representing the device +%% +-define(DEVICE_ID, 'device.id'). + + +%% The name of the device manufacturer +%% +-define(DEVICE_MANUFACTURER, 'device.manufacturer'). + + +%% The model identifier for the device +%% +-define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). + + +%% The marketing name for the device model +%% +-define(DEVICE_MODEL_NAME, 'device.model.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl new file mode 100644 index 00000000..5bd98d24 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -0,0 +1,9 @@ + + +%% The disk IO operation direction. + +-define('disk_io_direction.read', 'read'). + +-define('disk_io_direction.write', 'write'). + +-define(disk_io_direction.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl new file mode 100644 index 00000000..75c62e30 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl @@ -0,0 +1,4 @@ + + +%% The name being queried. +-define(DNS_QUESTION_NAME, 'dns.question.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl new file mode 100644 index 00000000..59e8cb9e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl @@ -0,0 +1,14 @@ + + +%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. +%% +-define(ENDUSER_ID, 'enduser.id'). + + +%% Actual/assumed role the client is making the request under extracted from token or application security context. +-define(ENDUSER_ROLE, 'enduser.role'). + + +%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). +%% +-define(ENDUSER_SCOPE, 'enduser.scope'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl new file mode 100644 index 00000000..e1ffd76e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl @@ -0,0 +1,5 @@ + + +%% Identifies the class / type of event. +%% +-define(EVENT_NAME, 'event.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl new file mode 100644 index 00000000..a85213db --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -0,0 +1,107 @@ + + +%% A boolean that is true if the serverless function is executed for the first time (aka cold-start). +%% +-define(FAAS_COLDSTART, 'faas.coldstart'). + + +%% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). +%% +-define(FAAS_CRON, 'faas.cron'). + + +%% 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. +%% +-define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). + + +%% 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. +%% +-define(FAAS_DOCUMENT_NAME, 'faas.document.name'). + + +%% Describes the type of the operation that was performed on the data. + +-define('faas_document_operation.insert', 'insert'). + +-define('faas_document_operation.edit', 'edit'). + +-define('faas_document_operation.delete', 'delete'). + +-define(faas_document_operation.(Custom), Custom). + + +%% 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). +%% +-define(FAAS_DOCUMENT_TIME, 'faas.document.time'). + + +%% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. +%% +-define(FAAS_INSTANCE, 'faas.instance'). + + +%% The invocation ID of the current function invocation. +%% +-define(FAAS_INVOCATIONID, 'faas.invocation_id'). + + +%% The name of the invoked function. +%% +-define(FAAS_INVOKEDNAME, 'faas.invoked_name'). + + +%% The cloud provider of the invoked function. +%% + +-define('faas_invokedprovider.alibaba_cloud', 'alibaba_cloud'). + +-define('faas_invokedprovider.aws', 'aws'). + +-define('faas_invokedprovider.azure', 'azure'). + +-define('faas_invokedprovider.gcp', 'gcp'). + +-define('faas_invokedprovider.tencent_cloud', 'tencent_cloud'). + +-define(faas_invokedprovider.(Custom), Custom). + + +%% The cloud region of the invoked function. +%% +-define(FAAS_INVOKEDREGION, 'faas.invoked_region'). + + +%% The amount of memory available to the serverless function converted to Bytes. +%% +-define(FAAS_MAXMEMORY, 'faas.max_memory'). + + +%% The name of the single function that this runtime instance executes. +%% +-define(FAAS_NAME, 'faas.name'). + + +%% 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). +%% +-define(FAAS_TIME, 'faas.time'). + + +%% Type of the trigger which caused this function invocation. +%% + +-define('faas_trigger.datasource', 'datasource'). + +-define('faas_trigger.http', 'http'). + +-define('faas_trigger.pubsub', 'pubsub'). + +-define('faas_trigger.timer', 'timer'). + +-define('faas_trigger.other', 'other'). + +-define(faas_trigger.(Custom), Custom). + + +%% The immutable version of the function being executed. +-define(FAAS_VERSION, 'faas.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl new file mode 100644 index 00000000..0a79d661 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl @@ -0,0 +1,13 @@ + + +%% The unique identifier of the feature flag. +-define(FEATUREFLAG_KEY, 'feature_flag.key'). + + +%% The name of the service provider that performs the flag evaluation. +-define(FEATUREFLAG_PROVIDERNAME, 'feature_flag.provider_name'). + + +%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. +%% +-define(FEATUREFLAG_VARIANT, 'feature_flag.variant'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl new file mode 100644 index 00000000..2a7320d7 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl @@ -0,0 +1,25 @@ + + +%% Directory where the file is located. It should include the drive letter, when appropriate. +%% +-define(FILE_DIRECTORY, 'file.directory'). + + +%% File extension, excluding the leading dot. +%% +-define(FILE_EXTENSION, 'file.extension'). + + +%% Name of the file including the extension, without the directory. +%% +-define(FILE_NAME, 'file.name'). + + +%% Full path to the file, including the file name. It should include the drive letter, when appropriate. +%% +-define(FILE_PATH, 'file.path'). + + +%% File size in bytes. +%% +-define(FILE_SIZE, 'file.size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl new file mode 100644 index 00000000..64ea016c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl @@ -0,0 +1,20 @@ + + +%% 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. +%% +-define(GCP_CLOUDRUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). + + +%% 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. +%% +-define(GCP_CLOUDRUN_JOB_TASKINDEX, 'gcp.cloud_run.job.task_index'). + + +%% 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). +%% +-define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). + + +%% 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). +%% +-define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl new file mode 100644 index 00000000..7ce41932 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -0,0 +1,51 @@ + + +%% The full response received from the LLM. +-define(GENAI_COMPLETION, 'gen_ai.completion'). + + +%% The full prompt sent to an LLM. +-define(GENAI_PROMPT, 'gen_ai.prompt'). + + +%% The maximum number of tokens the LLM generates for a request. +-define(GENAI_REQUEST_MAXTOKENS, 'gen_ai.request.max_tokens'). + + +%% The name of the LLM a request is being made to. +-define(GENAI_REQUEST_MODEL, 'gen_ai.request.model'). + + +%% The temperature setting for the LLM request. +-define(GENAI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). + + +%% The top_p sampling setting for the LLM request. +-define(GENAI_REQUEST_TOPP, 'gen_ai.request.top_p'). + + +%% Array of reasons the model stopped generating tokens, corresponding to each generation received. +-define(GENAI_RESPONSE_FINISHREASONS, 'gen_ai.response.finish_reasons'). + + +%% The unique identifier for the completion. +-define(GENAI_RESPONSE_ID, 'gen_ai.response.id'). + + +%% The name of the LLM a response was generated from. +-define(GENAI_RESPONSE_MODEL, 'gen_ai.response.model'). + + +%% The Generative AI product as identified by the client instrumentation. + +-define('genai_system.openai', 'openai'). + +-define(genai_system.(Custom), Custom). + + +%% The number of tokens used in the LLM response (completion). +-define(GENAI_USAGE_COMPLETIONTOKENS, 'gen_ai.usage.completion_tokens'). + + +%% The number of tokens used in the LLM prompt. +-define(GENAI_USAGE_PROMPTTOKENS, 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl new file mode 100644 index 00000000..4289c25a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -0,0 +1,19 @@ + + +%% The GraphQL document being executed. +-define(GRAPHQL_DOCUMENT, 'graphql.document'). + + +%% The name of the operation being executed. +-define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). + + +%% The type of the operation being executed. + +-define('graphql_operation_type.query', 'query'). + +-define('graphql_operation_type.mutation', 'mutation'). + +-define('graphql_operation_type.subscription', 'subscription'). + +-define(graphql_operation_type.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl new file mode 100644 index 00000000..3f0be564 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl @@ -0,0 +1,15 @@ + + +%% Unique identifier for the application +%% +-define(HEROKU_APP_ID, 'heroku.app.id'). + + +%% Commit hash for the current release +%% +-define(HEROKU_RELEASE_COMMIT, 'heroku.release.commit'). + + +%% Time and date the release was created +%% +-define(HEROKU_RELEASE_CREATIONTIMESTAMP, 'heroku.release.creation_timestamp'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl new file mode 100644 index 00000000..1f698f94 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -0,0 +1,92 @@ + + +%% The CPU architecture the host system is running on. +%% + +-define('host_arch.amd64', 'amd64'). + +-define('host_arch.arm32', 'arm32'). + +-define('host_arch.arm64', 'arm64'). + +-define('host_arch.ia64', 'ia64'). + +-define('host_arch.ppc32', 'ppc32'). + +-define('host_arch.ppc64', 'ppc64'). + +-define('host_arch.s390x', 's390x'). + +-define('host_arch.x86', 'x86'). + +-define(host_arch.(Custom), Custom). + + +%% The amount of level 2 memory cache available to the processor (in Bytes). +%% +-define(HOST_CPU_CACHE_L_2_SIZE, 'host.cpu.cache.l2.size'). + + +%% Family or generation of the CPU. +%% +-define(HOST_CPU_FAMILY, 'host.cpu.family'). + + +%% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. +%% +-define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). + + +%% Model designation of the processor. +%% +-define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). + + +%% Stepping or core revisions. +%% +-define(HOST_CPU_STEPPING, 'host.cpu.stepping'). + + +%% Processor manufacturer identifier. A maximum 12-character string. +%% +-define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). + + +%% 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. +%% +-define(HOST_ID, 'host.id'). + + +%% VM image ID or host OS image ID. For Cloud, this value is from the provider. +%% +-define(HOST_IMAGE_ID, 'host.image.id'). + + +%% Name of the VM image or OS install the host was instantiated from. +%% +-define(HOST_IMAGE_NAME, 'host.image.name'). + + +%% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). +%% +-define(HOST_IMAGE_VERSION, 'host.image.version'). + + +%% Available IP addresses of the host, excluding loopback interfaces. +%% +-define(HOST_IP, 'host.ip'). + + +%% Available MAC addresses of the host, excluding loopback interfaces. +%% +-define(HOST_MAC, 'host.mac'). + + +%% 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. +%% +-define(HOST_NAME, 'host.name'). + + +%% Type of host. For Cloud, this must be the machine type. +%% +-define(HOST_TYPE, 'host.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl new file mode 100644 index 00000000..5857c504 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -0,0 +1,98 @@ + +%% @deprecated Replaced by `client.address`. +%% Deprecated, use `client.address` instead. +-define(HTTP_CLIENTIP, 'http.client_ip'). + + +%% State of the HTTP connection in the HTTP connection pool. + +-define('http_connection_state.active', 'active'). + +-define('http_connection_state.idle', 'idle'). + +-define(http_connection_state.(Custom), Custom). + +%% @deprecated Replaced by `network.protocol.name`. +%% Deprecated, use `network.protocol.name` instead. + +-define('http_flavor.http_1_0', '1.0'). + +-define('http_flavor.http_1_1', '1.1'). + +-define('http_flavor.http_2_0', '2.0'). + +-define('http_flavor.http_3_0', '3.0'). + +-define('http_flavor.spdy', 'SPDY'). + +-define('http_flavor.quic', 'QUIC'). + +-define(http_flavor.(Custom), Custom). + +%% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. +%% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. +-define(HTTP_HOST, 'http.host'). + +%% @deprecated Replaced by `http.request.method`. +%% Deprecated, use `http.request.method` instead. +-define(HTTP_METHOD, 'http.method'). + + +%% 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. +%% +-define(HTTP_REQUEST_BODY_SIZE, 'http.request.body.size'). + + +%% 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. +%% +-define(HTTP_REQUEST_SIZE, 'http.request.size'). + +%% @deprecated Replaced by `http.request.header.content-length`. +%% Deprecated, use `http.request.header.content-length` instead. +-define(HTTP_REQUESTCONTENTLENGTH, 'http.request_content_length'). + +%% @deprecated Replaced by `http.request.body.size`. +%% Deprecated, use `http.request.body.size` instead. +-define(HTTP_REQUESTCONTENTLENGTHUNCOMPRESSED, 'http.request_content_length_uncompressed'). + + +%% 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. +%% +-define(HTTP_RESPONSE_BODY_SIZE, 'http.response.body.size'). + + +%% 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. +%% +-define(HTTP_RESPONSE_SIZE, 'http.response.size'). + +%% @deprecated Replaced by `http.response.header.content-length`. +%% Deprecated, use `http.response.header.content-length` instead. +-define(HTTP_RESPONSECONTENTLENGTH, 'http.response_content_length'). + +%% @deprecated Replace by `http.response.body.size`. +%% Deprecated, use `http.response.body.size` instead. +-define(HTTP_RESPONSECONTENTLENGTHUNCOMPRESSED, 'http.response_content_length_uncompressed'). + +%% @deprecated Replaced by `url.scheme` instead. +%% Deprecated, use `url.scheme` instead. +-define(HTTP_SCHEME, 'http.scheme'). + +%% @deprecated Replaced by `server.address`. +%% Deprecated, use `server.address` instead. +-define(HTTP_SERVERNAME, 'http.server_name'). + +%% @deprecated Replaced by `http.response.status_code`. +%% Deprecated, use `http.response.status_code` instead. +-define(HTTP_STATUSCODE, 'http.status_code'). + +%% @deprecated Split to `url.path` and `url.query. +%% Deprecated, use `url.path` and `url.query` instead. +-define(HTTP_TARGET, 'http.target'). + +%% @deprecated Replaced by `url.full`. +%% Deprecated, use `url.full` instead. +-define(HTTP_URL, 'http.url'). + +%% @deprecated Replaced by `user_agent.original`. +%% Deprecated, use `user_agent.original` instead. +-define(HTTP_USERAGENT, 'http.user_agent'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl new file mode 100644 index 00000000..96f17741 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl @@ -0,0 +1,124 @@ + + +%% The name of the cluster. +%% +-define(K_8_S_CLUSTER_NAME, 'k8s.cluster.name'). + + +%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. +%% +-define(K_8_S_CLUSTER_UID, 'k8s.cluster.uid'). + + +%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). +%% +-define(K_8_S_CONTAINER_NAME, 'k8s.container.name'). + + +%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. +%% +-define(K_8_S_CONTAINER_RESTARTCOUNT, 'k8s.container.restart_count'). + + +%% Last terminated reason of the Container. +%% +-define(K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON, 'k8s.container.status.last_terminated_reason'). + + +%% The name of the CronJob. +%% +-define(K_8_S_CRONJOB_NAME, 'k8s.cronjob.name'). + + +%% The UID of the CronJob. +%% +-define(K_8_S_CRONJOB_UID, 'k8s.cronjob.uid'). + + +%% The name of the DaemonSet. +%% +-define(K_8_S_DAEMONSET_NAME, 'k8s.daemonset.name'). + + +%% The UID of the DaemonSet. +%% +-define(K_8_S_DAEMONSET_UID, 'k8s.daemonset.uid'). + + +%% The name of the Deployment. +%% +-define(K_8_S_DEPLOYMENT_NAME, 'k8s.deployment.name'). + + +%% The UID of the Deployment. +%% +-define(K_8_S_DEPLOYMENT_UID, 'k8s.deployment.uid'). + + +%% The name of the Job. +%% +-define(K_8_S_JOB_NAME, 'k8s.job.name'). + + +%% The UID of the Job. +%% +-define(K_8_S_JOB_UID, 'k8s.job.uid'). + + +%% The name of the namespace that the pod is running in. +%% +-define(K_8_S_NAMESPACE_NAME, 'k8s.namespace.name'). + + +%% The name of the Node. +%% +-define(K_8_S_NODE_NAME, 'k8s.node.name'). + + +%% The UID of the Node. +%% +-define(K_8_S_NODE_UID, 'k8s.node.uid'). + + +%% The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. +%% +-define(K_8_S_POD_ANNOTATION, 'k8s.pod.annotation'). + + +%% The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. +%% +-define(K_8_S_POD_LABEL, 'k8s.pod.label'). + +%% @deprecated Replaced by `k8s.pod.label`. +%% Deprecated, use `k8s.pod.label` instead. +-define(K_8_S_POD_LABELS, 'k8s.pod.labels'). + + +%% The name of the Pod. +%% +-define(K_8_S_POD_NAME, 'k8s.pod.name'). + + +%% The UID of the Pod. +%% +-define(K_8_S_POD_UID, 'k8s.pod.uid'). + + +%% The name of the ReplicaSet. +%% +-define(K_8_S_REPLICASET_NAME, 'k8s.replicaset.name'). + + +%% The UID of the ReplicaSet. +%% +-define(K_8_S_REPLICASET_UID, 'k8s.replicaset.uid'). + + +%% The name of the StatefulSet. +%% +-define(K_8_S_STATEFULSET_NAME, 'k8s.statefulset.name'). + + +%% The UID of the StatefulSet. +%% +-define(K_8_S_STATEFULSET_UID, 'k8s.statefulset.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl new file mode 100644 index 00000000..e4caf9ba --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -0,0 +1,35 @@ + + +%% The basename of the file. +%% +-define(LOG_FILE_NAME, 'log.file.name'). + + +%% The basename of the file, with symlinks resolved. +%% +-define(LOG_FILE_NAMERESOLVED, 'log.file.name_resolved'). + + +%% The full path to the file. +%% +-define(LOG_FILE_PATH, 'log.file.path'). + + +%% The full path to the file, with symlinks resolved. +%% +-define(LOG_FILE_PATHRESOLVED, 'log.file.path_resolved'). + + +%% The stream associated with the log. See below for a list of well-known values. +%% + +-define('log_iostream.stdout', 'stdout'). + +-define('log_iostream.stderr', 'stderr'). + +-define(log_iostream.(Custom), Custom). + + +%% A unique identifier for the Log Record. +%% +-define(LOG_RECORD_UID, 'log.record.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl new file mode 100644 index 00000000..7fa0071e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -0,0 +1,265 @@ + + +%% The number of messages sent, received, or processed in the scope of the batching operation. +-define(MESSAGING_BATCH_MESSAGECOUNT, 'messaging.batch.message_count'). + + +%% A unique identifier for the client that consumes or produces a message. +%% +-define(MESSAGING_CLIENT_ID, 'messaging.client.id'). + +%% @deprecated Replaced by `messaging.client.id`. +%% Deprecated, use `messaging.client.id` instead. +%% +-define(MESSAGING_CLIENTID, 'messaging.client_id'). + + +%% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). +-define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). + + +%% The message destination name +-define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). + + +%% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. +%% +-define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). + + +%% Low cardinality representation of the messaging destination name +-define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). + + +%% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. +-define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). + + +%% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). +-define(MESSAGING_DESTINATIONPUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). + + +%% The name of the original destination the message was published to +-define(MESSAGING_DESTINATIONPUBLISH_NAME, 'messaging.destination_publish.name'). + + +%% The name of the consumer group the event consumer is associated with. +%% +-define(MESSAGING_EVENTHUBS_CONSUMER_GROUP, 'messaging.eventhubs.consumer.group'). + + +%% The UTC epoch seconds at which the message has been accepted and stored in the entity. +%% +-define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUEDTIME, 'messaging.eventhubs.message.enqueued_time'). + + +%% The ack deadline in seconds set for the modify ack deadline request. +%% +-define(MESSAGING_GCPPUBSUB_MESSAGE_ACKDEADLINE, 'messaging.gcp_pubsub.message.ack_deadline'). + + +%% The ack id for a given message. +%% +-define(MESSAGING_GCPPUBSUB_MESSAGE_ACKID, 'messaging.gcp_pubsub.message.ack_id'). + + +%% The delivery attempt for a given message. +%% +-define(MESSAGING_GCPPUBSUB_MESSAGE_DELIVERYATTEMPT, 'messaging.gcp_pubsub.message.delivery_attempt'). + + +%% The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. +%% +-define(MESSAGING_GCPPUBSUB_MESSAGE_ORDERINGKEY, 'messaging.gcp_pubsub.message.ordering_key'). + + +%% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. +%% +-define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer.group'). + +%% @deprecated Replaced by `messaging.destination.partition.id`. +%% Deprecated, use `messaging.destination.partition.id` instead. +%% +-define(MESSAGING_KAFKA_DESTINATION_PARTITION, 'messaging.kafka.destination.partition'). + + +%% Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. +%% +-define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message.key'). + + +%% The offset of a record in the corresponding Kafka partition. +%% +-define(MESSAGING_KAFKA_MESSAGE_OFFSET, 'messaging.kafka.message.offset'). + + +%% A boolean that is true if the message is a tombstone. +-define(MESSAGING_KAFKA_MESSAGE_TOMBSTONE, 'messaging.kafka.message.tombstone'). + + +%% The size of the message body in bytes. +%% +-define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). + + +%% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". +%% +-define(MESSAGING_MESSAGE_CONVERSATIONID, 'messaging.message.conversation_id'). + + +%% The size of the message body and metadata in bytes. +%% +-define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). + + +%% A value used by the messaging system as an identifier for the message, represented as a string. +-define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). + +%% @deprecated Replaced by `messaging.operation.type`. +%% Deprecated, use `messaging.operation.type` instead. +%% +-define(MESSAGING_OPERATION, 'messaging.operation'). + + +%% The system-specific name of the messaging operation. +%% +-define(MESSAGING_OPERATION_NAME, 'messaging.operation.name'). + + +%% A string identifying the type of the messaging operation. +%% + +-define('messaging_operation_type.publish', 'publish'). + +-define('messaging_operation_type.create', 'create'). + +-define('messaging_operation_type.receive', 'receive'). + +-define('messaging_operation_type.deliver', 'process'). + +-define('messaging_operation_type.settle', 'settle'). + +-define(messaging_operation_type.(Custom), Custom). + + +%% RabbitMQ message routing key. +%% +-define(MESSAGING_RABBITMQ_DESTINATION_ROUTINGKEY, 'messaging.rabbitmq.destination.routing_key'). + + +%% RabbitMQ message delivery tag +%% +-define(MESSAGING_RABBITMQ_MESSAGE_DELIVERYTAG, 'messaging.rabbitmq.message.delivery_tag'). + + +%% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. +%% +-define(MESSAGING_ROCKETMQ_CLIENTGROUP, 'messaging.rocketmq.client_group'). + + +%% Model of message consumption. This only applies to consumer spans. +%% + +-define('messaging_rocketmq_consumptionmodel.clustering', 'clustering'). + +-define('messaging_rocketmq_consumptionmodel.broadcasting', 'broadcasting'). + +-define(messaging_rocketmq_consumptionmodel.(Custom), Custom). + + +%% The delay time level for delay message, which determines the message delay time. +%% +-define(MESSAGING_ROCKETMQ_MESSAGE_DELAYTIMELEVEL, 'messaging.rocketmq.message.delay_time_level'). + + +%% The timestamp in milliseconds that the delay message is expected to be delivered to consumer. +%% +-define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERYTIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). + + +%% It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. +%% +-define(MESSAGING_ROCKETMQ_MESSAGE_GROUP, 'messaging.rocketmq.message.group'). + + +%% Key(s) of message, another way to mark message besides message id. +%% +-define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message.keys'). + + +%% The secondary classifier of message besides topic. +%% +-define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message.tag'). + + +%% Type of message. +%% + +-define('messaging_rocketmq_message_type.normal', 'normal'). + +-define('messaging_rocketmq_message_type.fifo', 'fifo'). + +-define('messaging_rocketmq_message_type.delay', 'delay'). + +-define('messaging_rocketmq_message_type.transaction', 'transaction'). + +-define(messaging_rocketmq_message_type.(Custom), Custom). + + +%% Namespace of RocketMQ resources, resources in different namespaces are individual. +%% +-define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). + + +%% The name of the subscription in the topic messages are received from. +%% +-define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTIONNAME, 'messaging.servicebus.destination.subscription_name'). + + +%% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). +%% + +-define('messaging_servicebus_dispositionstatus.complete', 'complete'). + +-define('messaging_servicebus_dispositionstatus.abandon', 'abandon'). + +-define('messaging_servicebus_dispositionstatus.dead_letter', 'dead_letter'). + +-define('messaging_servicebus_dispositionstatus.defer', 'defer'). + +-define(messaging_servicebus_dispositionstatus.(Custom), Custom). + + +%% Number of deliveries that have been attempted for this message. +%% +-define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERYCOUNT, 'messaging.servicebus.message.delivery_count'). + + +%% The UTC epoch seconds at which the message has been accepted and stored in the entity. +%% +-define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUEDTIME, 'messaging.servicebus.message.enqueued_time'). + + +%% The messaging system as identified by the client instrumentation. + +-define('messaging_system.activemq', 'activemq'). + +-define('messaging_system.aws_sqs', 'aws_sqs'). + +-define('messaging_system.eventgrid', 'eventgrid'). + +-define('messaging_system.eventhubs', 'eventhubs'). + +-define('messaging_system.servicebus', 'servicebus'). + +-define('messaging_system.gcp_pubsub', 'gcp_pubsub'). + +-define('messaging_system.jms', 'jms'). + +-define('messaging_system.kafka', 'kafka'). + +-define('messaging_system.rabbitmq', 'rabbitmq'). + +-define('messaging_system.rocketmq', 'rocketmq'). + +-define(messaging_system.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl new file mode 100644 index 00000000..e3a3f864 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -0,0 +1,165 @@ + +%% @deprecated Replaced by `network.local.address`. +%% Deprecated, use `network.local.address`. +-define(NET_HOST_IP, 'net.host.ip'). + +%% @deprecated Replaced by `server.address`. +%% Deprecated, use `server.address`. +-define(NET_HOST_NAME, 'net.host.name'). + +%% @deprecated Replaced by `server.port`. +%% Deprecated, use `server.port`. +-define(NET_HOST_PORT, 'net.host.port'). + +%% @deprecated Replaced by `network.peer.address`. +%% Deprecated, use `network.peer.address`. +-define(NET_PEER_IP, 'net.peer.ip'). + +%% @deprecated Replaced by `server.address` on client spans and `client.address` on server spans. +%% Deprecated, use `server.address` on client spans and `client.address` on server spans. +-define(NET_PEER_NAME, 'net.peer.name'). + +%% @deprecated Replaced by `server.port` on client spans and `client.port` on server spans. +%% Deprecated, use `server.port` on client spans and `client.port` on server spans. +-define(NET_PEER_PORT, 'net.peer.port'). + +%% @deprecated Replaced by `network.protocol.name`. +%% Deprecated, use `network.protocol.name`. +-define(NET_PROTOCOL_NAME, 'net.protocol.name'). + +%% @deprecated Replaced by `network.protocol.version`. +%% Deprecated, use `network.protocol.version`. +-define(NET_PROTOCOL_VERSION, 'net.protocol.version'). + +%% @deprecated Split to `network.transport` and `network.type`. +%% Deprecated, use `network.transport` and `network.type`. + +-define('net_sock_family.inet', 'inet'). + +-define('net_sock_family.inet6', 'inet6'). + +-define('net_sock_family.unix', 'unix'). + +-define(net_sock_family.(Custom), Custom). + +%% @deprecated Replaced by `network.local.address`. +%% Deprecated, use `network.local.address`. +-define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). + +%% @deprecated Replaced by `network.local.port`. +%% Deprecated, use `network.local.port`. +-define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). + +%% @deprecated Replaced by `network.peer.address`. +%% Deprecated, use `network.peer.address`. +-define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). + +%% @deprecated Removed. +%% Deprecated, no replacement at this time. +-define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). + +%% @deprecated Replaced by `network.peer.port`. +%% Deprecated, use `network.peer.port`. +-define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). + +%% @deprecated Replaced by `network.transport`. +%% Deprecated, use `network.transport`. + +-define('net_transport.ip_tcp', 'ip_tcp'). + +-define('net_transport.ip_udp', 'ip_udp'). + +-define('net_transport.pipe', 'pipe'). + +-define('net_transport.inproc', 'inproc'). + +-define('net_transport.other', 'other'). + +-define(net_transport.(Custom), Custom). + + +%% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. +-define(NETWORK_CARRIER_ICC, 'network.carrier.icc'). + + +%% The mobile carrier country code. +-define(NETWORK_CARRIER_MCC, 'network.carrier.mcc'). + + +%% The mobile carrier network code. +-define(NETWORK_CARRIER_MNC, 'network.carrier.mnc'). + + +%% The name of the mobile carrier. +-define(NETWORK_CARRIER_NAME, 'network.carrier.name'). + + +%% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + +-define('network_connection_subtype.gprs', 'gprs'). + +-define('network_connection_subtype.edge', 'edge'). + +-define('network_connection_subtype.umts', 'umts'). + +-define('network_connection_subtype.cdma', 'cdma'). + +-define('network_connection_subtype.evdo_0', 'evdo_0'). + +-define('network_connection_subtype.evdo_a', 'evdo_a'). + +-define('network_connection_subtype.cdma2000_1xrtt', 'cdma2000_1xrtt'). + +-define('network_connection_subtype.hsdpa', 'hsdpa'). + +-define('network_connection_subtype.hsupa', 'hsupa'). + +-define('network_connection_subtype.hspa', 'hspa'). + +-define('network_connection_subtype.iden', 'iden'). + +-define('network_connection_subtype.evdo_b', 'evdo_b'). + +-define('network_connection_subtype.lte', 'lte'). + +-define('network_connection_subtype.ehrpd', 'ehrpd'). + +-define('network_connection_subtype.hspap', 'hspap'). + +-define('network_connection_subtype.gsm', 'gsm'). + +-define('network_connection_subtype.td_scdma', 'td_scdma'). + +-define('network_connection_subtype.iwlan', 'iwlan'). + +-define('network_connection_subtype.nr', 'nr'). + +-define('network_connection_subtype.nrnsa', 'nrnsa'). + +-define('network_connection_subtype.lte_ca', 'lte_ca'). + +-define(network_connection_subtype.(Custom), Custom). + + +%% The internet connection type. + +-define('network_connection_type.wifi', 'wifi'). + +-define('network_connection_type.wired', 'wired'). + +-define('network_connection_type.cell', 'cell'). + +-define('network_connection_type.unavailable', 'unavailable'). + +-define('network_connection_type.unknown', 'unknown'). + +-define(network_connection_type.(Custom), Custom). + + +%% The network IO operation direction. + +-define('network_io_direction.transmit', 'transmit'). + +-define('network_io_direction.receive', 'receive'). + +-define(network_io_direction.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl new file mode 100644 index 00000000..b5dde941 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl @@ -0,0 +1,5 @@ + + +%% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. +%% +-define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl new file mode 100644 index 00000000..7d71545e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -0,0 +1,9 @@ + + +%% Parent-child Reference type + +-define('opentracing_reftype.child_of', 'child_of'). + +-define('opentracing_reftype.follows_from', 'follows_from'). + +-define(opentracing_reftype.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl new file mode 100644 index 00000000..412be08e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -0,0 +1,46 @@ + + +%% Unique identifier for a particular build or compilation of the operating system. +-define(OS_BUILDID, 'os.build_id'). + + +%% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. +%% +-define(OS_DESCRIPTION, 'os.description'). + + +%% Human readable operating system name. +-define(OS_NAME, 'os.name'). + + +%% The operating system type. +%% + +-define('os_type.windows', 'windows'). + +-define('os_type.linux', 'linux'). + +-define('os_type.darwin', 'darwin'). + +-define('os_type.freebsd', 'freebsd'). + +-define('os_type.netbsd', 'netbsd'). + +-define('os_type.openbsd', 'openbsd'). + +-define('os_type.dragonflybsd', 'dragonflybsd'). + +-define('os_type.hpux', 'hpux'). + +-define('os_type.aix', 'aix'). + +-define('os_type.solaris', 'solaris'). + +-define('os_type.z_os', 'z_os'). + +-define(os_type.(Custom), Custom). + + +%% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). +%% +-define(OS_VERSION, 'os.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl new file mode 100644 index 00000000..531f5859 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl @@ -0,0 +1,8 @@ + +%% @deprecated use the `otel.scope.name` attribute. +%% +-define(OTEL_LIBRARY_NAME, 'otel.library.name'). + +%% @deprecated use the `otel.scope.version` attribute. +%% +-define(OTEL_LIBRARY_VERSION, 'otel.library.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl new file mode 100644 index 00000000..397d5486 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl @@ -0,0 +1,5 @@ + + +%% The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. +%% +-define(PEER_SERVICE, 'peer.service'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl new file mode 100644 index 00000000..4497c612 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -0,0 +1,151 @@ + + +%% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. +%% +-define(PROCESS_COMMAND, 'process.command'). + + +%% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. +%% +-define(PROCESS_COMMANDARGS, 'process.command_args'). + + +%% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. +%% +-define(PROCESS_COMMANDLINE, 'process.command_line'). + + +%% Specifies whether the context switches for this data point were voluntary or involuntary. + +-define('process_contextswitchtype.voluntary', 'voluntary'). + +-define('process_contextswitchtype.involuntary', 'involuntary'). + +-define(process_contextswitchtype.(Custom), Custom). + + +%% The CPU state of the process. +%% + +-define('process_cpu_state.system', 'system'). + +-define('process_cpu_state.user', 'user'). + +-define('process_cpu_state.wait', 'wait'). + +-define(process_cpu_state.(Custom), Custom). + + +%% The date and time the process was created, in ISO 8601 format. +%% +-define(PROCESS_CREATION_TIME, 'process.creation.time'). + + +%% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. +%% +-define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). + + +%% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. +%% +-define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). + + +%% The exit code of the process. +%% +-define(PROCESS_EXIT_CODE, 'process.exit.code'). + + +%% The date and time the process exited, in ISO 8601 format. +%% +-define(PROCESS_EXIT_TIME, 'process.exit.time'). + + +%% The PID of the process's group leader. This is also the process group ID (PGID) of the process. +%% +-define(PROCESS_GROUPLEADER_PID, 'process.group_leader.pid'). + + +%% Whether the process is connected to an interactive shell. +%% +-define(PROCESS_INTERACTIVE, 'process.interactive'). + + +%% The username of the user that owns the process. +%% +-define(PROCESS_OWNER, 'process.owner'). + + +%% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. +%% + +-define('process_paging_faulttype.major', 'major'). + +-define('process_paging_faulttype.minor', 'minor'). + +-define(process_paging_faulttype.(Custom), Custom). + + +%% Parent Process identifier (PPID). +%% +-define(PROCESS_PARENTPID, 'process.parent_pid'). + + +%% Process identifier (PID). +%% +-define(PROCESS_PID, 'process.pid'). + + +%% The real user ID (RUID) of the process. +%% +-define(PROCESS_REALUSER_ID, 'process.real_user.id'). + + +%% The username of the real user of the process. +%% +-define(PROCESS_REALUSER_NAME, 'process.real_user.name'). + + +%% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. +%% +-define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). + + +%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. +%% +-define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). + + +%% The version of the runtime of this process, as returned by the runtime without modification. +%% +-define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). + + +%% The saved user ID (SUID) of the process. +%% +-define(PROCESS_SAVEDUSER_ID, 'process.saved_user.id'). + + +%% The username of the saved user. +%% +-define(PROCESS_SAVEDUSER_NAME, 'process.saved_user.name'). + + +%% The PID of the process's session leader. This is also the session ID (SID) of the process. +%% +-define(PROCESS_SESSIONLEADER_PID, 'process.session_leader.pid'). + + +%% The effective user ID (EUID) of the process. +%% +-define(PROCESS_USER_ID, 'process.user.id'). + + +%% The username of the effective user of the process. +%% +-define(PROCESS_USER_NAME, 'process.user.name'). + + +%% Virtual process identifier. +%% +-define(PROCESS_VPID, 'process.vpid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl new file mode 100644 index 00000000..f8de11a2 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -0,0 +1,178 @@ + +%% @deprecated Replaced by `rpc.message.compressed_size`. +%% Deprecated, use `rpc.message.compressed_size` instead. +-define(MESSAGE_COMPRESSEDSIZE, 'message.compressed_size'). + +%% @deprecated Replaced by `rpc.message.id`. +%% Deprecated, use `rpc.message.id` instead. +-define(MESSAGE_ID, 'message.id'). + +%% @deprecated Replaced by `rpc.message.type`. +%% Deprecated, use `rpc.message.type` instead. + +-define('message_type.sent', 'SENT'). + +-define('message_type.received', 'RECEIVED'). + +-define(message_type.(Custom), Custom). + +%% @deprecated Replaced by `rpc.message.uncompressed_size`. +%% Deprecated, use `rpc.message.uncompressed_size` instead. +-define(MESSAGE_UNCOMPRESSEDSIZE, 'message.uncompressed_size'). + + +%% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. + +-define('rpc_connectrpc_errorcode.cancelled', 'cancelled'). + +-define('rpc_connectrpc_errorcode.unknown', 'unknown'). + +-define('rpc_connectrpc_errorcode.invalid_argument', 'invalid_argument'). + +-define('rpc_connectrpc_errorcode.deadline_exceeded', 'deadline_exceeded'). + +-define('rpc_connectrpc_errorcode.not_found', 'not_found'). + +-define('rpc_connectrpc_errorcode.already_exists', 'already_exists'). + +-define('rpc_connectrpc_errorcode.permission_denied', 'permission_denied'). + +-define('rpc_connectrpc_errorcode.resource_exhausted', 'resource_exhausted'). + +-define('rpc_connectrpc_errorcode.failed_precondition', 'failed_precondition'). + +-define('rpc_connectrpc_errorcode.aborted', 'aborted'). + +-define('rpc_connectrpc_errorcode.out_of_range', 'out_of_range'). + +-define('rpc_connectrpc_errorcode.unimplemented', 'unimplemented'). + +-define('rpc_connectrpc_errorcode.internal', 'internal'). + +-define('rpc_connectrpc_errorcode.unavailable', 'unavailable'). + +-define('rpc_connectrpc_errorcode.data_loss', 'data_loss'). + +-define('rpc_connectrpc_errorcode.unauthenticated', 'unauthenticated'). + +-define(rpc_connectrpc_errorcode.(Custom), Custom). + + +%% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. +%% +-define(RPC_CONNECTRPC_REQUEST_METADATA, 'rpc.connect_rpc.request.metadata'). + + +%% Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. +%% +-define(RPC_CONNECTRPC_RESPONSE_METADATA, 'rpc.connect_rpc.response.metadata'). + + +%% gRPC request metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. +%% +-define(RPC_GRPC_REQUEST_METADATA, 'rpc.grpc.request.metadata'). + + +%% gRPC response metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. +%% +-define(RPC_GRPC_RESPONSE_METADATA, 'rpc.grpc.response.metadata'). + + +%% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + +-define('rpc_grpc_statuscode.ok', '0'). + +-define('rpc_grpc_statuscode.cancelled', '1'). + +-define('rpc_grpc_statuscode.unknown', '2'). + +-define('rpc_grpc_statuscode.invalid_argument', '3'). + +-define('rpc_grpc_statuscode.deadline_exceeded', '4'). + +-define('rpc_grpc_statuscode.not_found', '5'). + +-define('rpc_grpc_statuscode.already_exists', '6'). + +-define('rpc_grpc_statuscode.permission_denied', '7'). + +-define('rpc_grpc_statuscode.resource_exhausted', '8'). + +-define('rpc_grpc_statuscode.failed_precondition', '9'). + +-define('rpc_grpc_statuscode.aborted', '10'). + +-define('rpc_grpc_statuscode.out_of_range', '11'). + +-define('rpc_grpc_statuscode.unimplemented', '12'). + +-define('rpc_grpc_statuscode.internal', '13'). + +-define('rpc_grpc_statuscode.unavailable', '14'). + +-define('rpc_grpc_statuscode.data_loss', '15'). + +-define('rpc_grpc_statuscode.unauthenticated', '16'). + +-define(rpc_grpc_statuscode.(Custom), Custom). + + +%% `error.code` property of response if it is an error response. +-define(RPC_JSONRPC_ERRORCODE, 'rpc.jsonrpc.error_code'). + + +%% `error.message` property of response if it is an error response. +-define(RPC_JSONRPC_ERRORMESSAGE, 'rpc.jsonrpc.error_message'). + + +%% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. +%% +-define(RPC_JSONRPC_REQUESTID, 'rpc.jsonrpc.request_id'). + + +%% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. +-define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). + + +%% Compressed size of the message in bytes. +-define(RPC_MESSAGE_COMPRESSEDSIZE, 'rpc.message.compressed_size'). + + +%% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. +-define(RPC_MESSAGE_ID, 'rpc.message.id'). + + +%% Whether this is a received or sent message. + +-define('rpc_message_type.sent', 'SENT'). + +-define('rpc_message_type.received', 'RECEIVED'). + +-define(rpc_message_type.(Custom), Custom). + + +%% Uncompressed size of the message in bytes. +-define(RPC_MESSAGE_UNCOMPRESSEDSIZE, 'rpc.message.uncompressed_size'). + + +%% The name of the (logical) method being called, must be equal to the $method part in the span name. +-define(RPC_METHOD, 'rpc.method'). + + +%% The full (logical) name of the service being called, including its package name, if applicable. +-define(RPC_SERVICE, 'rpc.service'). + + +%% A string identifying the remoting system. See below for a list of well-known identifiers. + +-define('rpc_system.grpc', 'grpc'). + +-define('rpc_system.java_rmi', 'java_rmi'). + +-define('rpc_system.dotnet_wcf', 'dotnet_wcf'). + +-define('rpc_system.apache_dubbo', 'apache_dubbo'). + +-define('rpc_system.connect_rpc', 'connect_rpc'). + +-define(rpc_system.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl new file mode 100644 index 00000000..3c7da21e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl @@ -0,0 +1,10 @@ + + +%% The string ID of the service instance. +%% +-define(SERVICE_INSTANCE_ID, 'service.instance.id'). + + +%% A namespace for `service.name`. +%% +-define(SERVICE_NAMESPACE, 'service.namespace'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl new file mode 100644 index 00000000..2c54971b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl @@ -0,0 +1,8 @@ + + +%% A unique id to identify a session. +-define(SESSION_ID, 'session.id'). + + +%% The previous `session.id` for this user, when known. +-define(SESSION_PREVIOUSID, 'session.previous_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl new file mode 100644 index 00000000..183305cb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl @@ -0,0 +1,8 @@ + + +%% Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +-define(SOURCE_ADDRESS, 'source.address'). + + +%% Source port number +-define(SOURCE_PORT, 'source.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl new file mode 100644 index 00000000..8b02457a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -0,0 +1,161 @@ + + +%% The logical CPU number [0..n-1] +-define(SYSTEM_CPU_LOGICALNUMBER, 'system.cpu.logical_number'). + + +%% The state of the CPU + +-define('system_cpu_state.user', 'user'). + +-define('system_cpu_state.system', 'system'). + +-define('system_cpu_state.nice', 'nice'). + +-define('system_cpu_state.idle', 'idle'). + +-define('system_cpu_state.iowait', 'iowait'). + +-define('system_cpu_state.interrupt', 'interrupt'). + +-define('system_cpu_state.steal', 'steal'). + +-define(system_cpu_state.(Custom), Custom). + + +%% The device identifier +-define(SYSTEM_DEVICE, 'system.device'). + + +%% The filesystem mode +-define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). + + +%% The filesystem mount path +-define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). + + +%% The filesystem state + +-define('system_filesystem_state.used', 'used'). + +-define('system_filesystem_state.free', 'free'). + +-define('system_filesystem_state.reserved', 'reserved'). + +-define(system_filesystem_state.(Custom), Custom). + + +%% The filesystem type + +-define('system_filesystem_type.fat32', 'fat32'). + +-define('system_filesystem_type.exfat', 'exfat'). + +-define('system_filesystem_type.ntfs', 'ntfs'). + +-define('system_filesystem_type.refs', 'refs'). + +-define('system_filesystem_type.hfsplus', 'hfsplus'). + +-define('system_filesystem_type.ext4', 'ext4'). + +-define(system_filesystem_type.(Custom), Custom). + + +%% The memory state + +-define('system_memory_state.used', 'used'). + +-define('system_memory_state.free', 'free'). + +-define('system_memory_state.shared', 'shared'). + +-define('system_memory_state.buffers', 'buffers'). + +-define('system_memory_state.cached', 'cached'). + +-define(system_memory_state.(Custom), Custom). + + +%% A stateless protocol MUST NOT set this attribute + +-define('system_network_state.close', 'close'). + +-define('system_network_state.close_wait', 'close_wait'). + +-define('system_network_state.closing', 'closing'). + +-define('system_network_state.delete', 'delete'). + +-define('system_network_state.established', 'established'). + +-define('system_network_state.fin_wait_1', 'fin_wait_1'). + +-define('system_network_state.fin_wait_2', 'fin_wait_2'). + +-define('system_network_state.last_ack', 'last_ack'). + +-define('system_network_state.listen', 'listen'). + +-define('system_network_state.syn_recv', 'syn_recv'). + +-define('system_network_state.syn_sent', 'syn_sent'). + +-define('system_network_state.time_wait', 'time_wait'). + +-define(system_network_state.(Custom), Custom). + + +%% The paging access direction + +-define('system_paging_direction.in', 'in'). + +-define('system_paging_direction.out', 'out'). + +-define(system_paging_direction.(Custom), Custom). + + +%% The memory paging state + +-define('system_paging_state.used', 'used'). + +-define('system_paging_state.free', 'free'). + +-define(system_paging_state.(Custom), Custom). + + +%% The memory paging type + +-define('system_paging_type.major', 'major'). + +-define('system_paging_type.minor', 'minor'). + +-define(system_paging_type.(Custom), Custom). + + +%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) +%% + +-define('system_process_status.running', 'running'). + +-define('system_process_status.sleeping', 'sleeping'). + +-define('system_process_status.stopped', 'stopped'). + +-define('system_process_status.defunct', 'defunct'). + +-define(system_process_status.(Custom), Custom). + +%% @deprecated Replaced by `system.process.status`. +%% Deprecated, use `system.process.status` instead. + +-define('system_processes_status.running', 'running'). + +-define('system_processes_status.sleeping', 'sleeping'). + +-define('system_processes_status.stopped', 'stopped'). + +-define('system_processes_status.defunct', 'defunct'). + +-define(system_processes_status.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl new file mode 100644 index 00000000..ec99328e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl @@ -0,0 +1,10 @@ + + +%% The name of the auto instrumentation agent or distribution, if used. +%% +-define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). + + +%% The version string of the auto instrumentation agent or distribution, if used. +%% +-define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl new file mode 100644 index 00000000..b5741b9c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl @@ -0,0 +1,10 @@ + + +%% Current "managed" thread ID (as opposed to OS thread ID). +%% +-define(THREAD_ID, 'thread.id'). + + +%% Current thread name. +%% +-define(THREAD_NAME, 'thread.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl new file mode 100644 index 00000000..bb2d3412 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -0,0 +1,135 @@ + + +%% String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. +%% +-define(TLS_CIPHER, 'tls.cipher'). + + +%% PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. +%% +-define(TLS_CLIENT_CERTIFICATE, 'tls.client.certificate'). + + +%% Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. +%% +-define(TLS_CLIENT_CERTIFICATECHAIN, 'tls.client.certificate_chain'). + + +%% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +%% +-define(TLS_CLIENT_HASH_MD_5, 'tls.client.hash.md5'). + + +%% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +%% +-define(TLS_CLIENT_HASH_SHA_1, 'tls.client.hash.sha1'). + + +%% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. +%% +-define(TLS_CLIENT_HASH_SHA_256, 'tls.client.hash.sha256'). + + +%% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. +-define(TLS_CLIENT_ISSUER, 'tls.client.issuer'). + + +%% A hash that identifies clients based on how they perform an SSL/TLS handshake. +-define(TLS_CLIENT_JA_3, 'tls.client.ja3'). + + +%% Date/Time indicating when client certificate is no longer considered valid. +-define(TLS_CLIENT_NOTAFTER, 'tls.client.not_after'). + + +%% Date/Time indicating when client certificate is first considered valid. +-define(TLS_CLIENT_NOTBEFORE, 'tls.client.not_before'). + + +%% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. +-define(TLS_CLIENT_SERVERNAME, 'tls.client.server_name'). + + +%% Distinguished name of subject of the x.509 certificate presented by the client. +-define(TLS_CLIENT_SUBJECT, 'tls.client.subject'). + + +%% Array of ciphers offered by the client during the client hello. +-define(TLS_CLIENT_SUPPORTEDCIPHERS, 'tls.client.supported_ciphers'). + + +%% String indicating the curve used for the given cipher, when applicable +-define(TLS_CURVE, 'tls.curve'). + + +%% Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. +-define(TLS_ESTABLISHED, 'tls.established'). + + +%% String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. +%% +-define(TLS_NEXTPROTOCOL, 'tls.next_protocol'). + + +%% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) +%% + +-define('tls_protocol_name.ssl', 'ssl'). + +-define('tls_protocol_name.tls', 'tls'). + +-define(tls_protocol_name.(Custom), Custom). + + +%% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) +%% +-define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). + + +%% Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. +-define(TLS_RESUMED, 'tls.resumed'). + + +%% PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. +%% +-define(TLS_SERVER_CERTIFICATE, 'tls.server.certificate'). + + +%% Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. +%% +-define(TLS_SERVER_CERTIFICATECHAIN, 'tls.server.certificate_chain'). + + +%% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +%% +-define(TLS_SERVER_HASH_MD_5, 'tls.server.hash.md5'). + + +%% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +%% +-define(TLS_SERVER_HASH_SHA_1, 'tls.server.hash.sha1'). + + +%% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. +%% +-define(TLS_SERVER_HASH_SHA_256, 'tls.server.hash.sha256'). + + +%% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. +-define(TLS_SERVER_ISSUER, 'tls.server.issuer'). + + +%% A hash that identifies servers based on how they perform an SSL/TLS handshake. +-define(TLS_SERVER_JA_3_S, 'tls.server.ja3s'). + + +%% Date/Time indicating when server certificate is no longer considered valid. +-define(TLS_SERVER_NOTAFTER, 'tls.server.not_after'). + + +%% Date/Time indicating when server certificate is first considered valid. +-define(TLS_SERVER_NOTBEFORE, 'tls.server.not_before'). + + +%% Distinguished name of subject of the x.509 certificate presented by the server. +-define(TLS_SERVER_SUBJECT, 'tls.server.subject'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl new file mode 100644 index 00000000..162ac320 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl @@ -0,0 +1,40 @@ + + +%% Domain extracted from the `url.full`, such as "opentelemetry.io". +%% +-define(URL_DOMAIN, 'url.domain'). + + +%% The file extension extracted from the `url.full`, excluding the leading dot. +%% +-define(URL_EXTENSION, 'url.extension'). + + +%% Unmodified original URL as seen in the event source. +%% +-define(URL_ORIGINAL, 'url.original'). + + +%% Port extracted from the `url.full` +%% +-define(URL_PORT, 'url.port'). + + +%% The highest registered url domain, stripped of the subdomain. +%% +-define(URL_REGISTEREDDOMAIN, 'url.registered_domain'). + + +%% The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. +%% +-define(URL_SUBDOMAIN, 'url.subdomain'). + + +%% The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). +%% +-define(URL_TEMPLATE, 'url.template'). + + +%% The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. +%% +-define(URL_TOPLEVELDOMAIN, 'url.top_level_domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl new file mode 100644 index 00000000..2fabfe14 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl @@ -0,0 +1,10 @@ + + +%% Name of the user-agent extracted from original. Usually refers to the browser's name. +%% +-define(USERAGENT_NAME, 'user_agent.name'). + + +%% Version of the user-agent extracted from original. Usually refers to the browser's version +%% +-define(USERAGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl new file mode 100644 index 00000000..3423838c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl @@ -0,0 +1,15 @@ + + +%% Additional description of the web engine (e.g. detailed version and edition information). +%% +-define(WEBENGINE_DESCRIPTION, 'webengine.description'). + + +%% The name of the web engine. +%% +-define(WEBENGINE_NAME, 'webengine.name'). + + +%% The version of the web engine. +%% +-define(WEBENGINE_VERSION, 'webengine.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/logs.hrl b/apps/opentelemetry_semantic_conventions/include/logs.hrl new file mode 100644 index 00000000..34c6176a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/logs.hrl @@ -0,0 +1,14 @@ +%% WARNING: These macros are deprecated and will be removed in a future release. +%% Migrate to >= v1.26.0 semantic conventions + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(LOGS_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(EVENT_NAME, 'event.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(EVENT_DOMAIN, 'event.domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl new file mode 100644 index 00000000..0a9e7e0f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -0,0 +1,47 @@ + + +%% Local address of the network connection - IP address or Unix domain socket name. +-define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). + + +%% Local port number of the network connection. +-define(NETWORK_LOCAL_PORT, 'network.local.port'). + + +%% Peer address of the network connection - IP address or Unix domain socket name. +-define(NETWORK_PEER_ADDRESS, 'network.peer.address'). + + +%% Peer port number of the network connection. +-define(NETWORK_PEER_PORT, 'network.peer.port'). + + +%% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. +-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). + + +%% The actual version of the protocol used for network communication. +-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). + + +%% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). +%% + +-define('network_transport.tcp', 'tcp'). + +-define('network_transport.udp', 'udp'). + +-define('network_transport.pipe', 'pipe'). + +-define('network_transport.unix', 'unix'). + +-define(network_transport.(Custom), Custom). + + +%% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. + +-define('network_type.ipv4', 'ipv4'). + +-define('network_type.ipv6', 'ipv6'). + +-define(network_type.(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl new file mode 100644 index 00000000..66c9492a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -0,0 +1,21 @@ + + +%% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). +-define(OTEL_SCOPE_NAME, 'otel.scope.name'). + + +%% The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). +-define(OTEL_SCOPE_VERSION, 'otel.scope.version'). + + +%% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. + +-define('otel_statuscode.ok', 'OK'). + +-define('otel_statuscode.error', 'ERROR'). + +-define(otel_statuscode.(Custom), Custom). + + +%% Description of the Status if it has a value, otherwise not set. +-define(OTEL_STATUSDESCRIPTION, 'otel.status_description'). diff --git a/apps/opentelemetry_semantic_conventions/include/resource.hrl b/apps/opentelemetry_semantic_conventions/include/resource.hrl new file mode 100644 index 00000000..88754a4c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/resource.hrl @@ -0,0 +1,354 @@ +%% WARNING: These macros are deprecated and will be removed in a future release. +%% Migrate to >= v1.26.0 semantic conventions + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RESOURCE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(BROWSER_BRANDS, 'browser.brands'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(BROWSER_PLATFORM, 'browser.platform'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(BROWSER_USER_AGENT, 'browser.user_agent'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUD_PROVIDER, 'cloud.provider'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUD_REGION, 'cloud.region'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUD_PLATFORM, 'cloud.platform'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CONTAINER_NAME, 'container.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CONTAINER_ID, 'container.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CONTAINER_RUNTIME, 'container.runtime'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CONTAINER_IMAGE_NAME, 'container.image.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CONTAINER_IMAGE_TAG, 'container.image.tag'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DEVICE_ID, 'device.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DEVICE_MODEL_NAME, 'device.model.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DEVICE_MANUFACTURER, 'device.manufacturer'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_NAME, 'faas.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_ID, 'faas.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_VERSION, 'faas.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_INSTANCE, 'faas.instance'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_MAX_MEMORY, 'faas.max_memory'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_ID, 'host.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_NAME, 'host.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_TYPE, 'host.type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_ARCH, 'host.arch'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_IMAGE_NAME, 'host.image.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_IMAGE_ID, 'host.image.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HOST_IMAGE_VERSION, 'host.image.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_NODE_NAME, 'k8s.node.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_NODE_UID, 'k8s.node.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_POD_UID, 'k8s.pod.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_POD_NAME, 'k8s.pod.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_CONTAINER_NAME, 'k8s.container.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_JOB_UID, 'k8s.job.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_JOB_NAME, 'k8s.job.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(OS_TYPE, 'os.type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(OS_DESCRIPTION, 'os.description'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(OS_NAME, 'os.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(OS_VERSION, 'os.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_PID, 'process.pid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_PARENT_PID, 'process.parent_pid'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_COMMAND, 'process.command'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_COMMAND_LINE, 'process.command_line'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_COMMAND_ARGS, 'process.command_args'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_OWNER, 'process.owner'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(SERVICE_NAME, 'service.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(SERVICE_NAMESPACE, 'service.namespace'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(SERVICE_INSTANCE_ID, 'service.instance.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(SERVICE_VERSION, 'service.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(TELEMETRY_AUTO_VERSION, 'telemetry.auto.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(WEBENGINE_NAME, 'webengine.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(WEBENGINE_VERSION, 'webengine.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(WEBENGINE_DESCRIPTION, 'webengine.description'). diff --git a/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl new file mode 100644 index 00000000..5fd016fd --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl @@ -0,0 +1,8 @@ + + +%% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. +-define(SERVER_ADDRESS, 'server.address'). + + +%% Server port number. +-define(SERVER_PORT, 'server.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl new file mode 100644 index 00000000..ae4802aa --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl @@ -0,0 +1,10 @@ + + +%% Logical name of the service. +%% +-define(SERVICE_NAME, 'service.name'). + + +%% The version string of the service API or implementation. The format is not defined by these conventions. +%% +-define(SERVICE_VERSION, 'service.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl new file mode 100644 index 00000000..097304ff --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -0,0 +1,40 @@ + + +%% The language of the telemetry SDK. +%% + +-define('telemetry_sdk_language.cpp', 'cpp'). + +-define('telemetry_sdk_language.dotnet', 'dotnet'). + +-define('telemetry_sdk_language.erlang', 'erlang'). + +-define('telemetry_sdk_language.go', 'go'). + +-define('telemetry_sdk_language.java', 'java'). + +-define('telemetry_sdk_language.nodejs', 'nodejs'). + +-define('telemetry_sdk_language.php', 'php'). + +-define('telemetry_sdk_language.python', 'python'). + +-define('telemetry_sdk_language.ruby', 'ruby'). + +-define('telemetry_sdk_language.rust', 'rust'). + +-define('telemetry_sdk_language.swift', 'swift'). + +-define('telemetry_sdk_language.webjs', 'webjs'). + +-define(telemetry_sdk_language.(Custom), Custom). + + +%% The name of the telemetry SDK as defined above. +%% +-define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). + + +%% The version string of the telemetry SDK. +%% +-define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/trace.hrl b/apps/opentelemetry_semantic_conventions/include/trace.hrl new file mode 100644 index 00000000..77f0400c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/trace.hrl @@ -0,0 +1,586 @@ +%% WARNING: These macros are deprecated and will be removed in a future release. +%% Migrate to >= v1.26.0 semantic conventions + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(TRACE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_SYSTEM, 'db.system'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CONNECTION_STRING, 'db.connection_string'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_USER, 'db.user'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_NAME, 'db.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_STATEMENT, 'db.statement'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_OPERATION, 'db.operation'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_PEER_NAME, 'net.peer.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_PEER_PORT, 'net.peer.port'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_SOCK_FAMILY, 'net.sock.family'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_TRANSPORT, 'net.transport'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(DB_SQL_TABLE, 'db.sql.table'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(EXCEPTION_TYPE, 'exception.type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(EXCEPTION_MESSAGE, 'exception.message'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(EXCEPTION_ESCAPED, 'exception.escaped'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_TRIGGER, 'faas.trigger'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_EXECUTION, 'faas.execution'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_DOCUMENT_TIME, 'faas.document.time'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_DOCUMENT_NAME, 'faas.document.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_METHOD, 'http.method'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_STATUS_CODE, 'http.status_code'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_FLAVOR, 'http.flavor'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_USER_AGENT, 'http.user_agent'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_SCHEME, 'http.scheme'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_TARGET, 'http.target'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_ROUTE, 'http.route'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_CLIENT_IP, 'http.client_ip'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_NAME, 'net.host.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_PORT, 'net.host.port'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_APP_PROTOCOL_NAME, 'net.app.protocol.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_APP_PROTOCOL_VERSION, 'net.app.protocol.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_CONNECTION_TYPE, 'net.host.connection.type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_CONNECTION_SUBTYPE, 'net.host.connection.subtype'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_CARRIER_NAME, 'net.host.carrier.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_CARRIER_MCC, 'net.host.carrier.mcc'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_CARRIER_MNC, 'net.host.carrier.mnc'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(NET_HOST_CARRIER_ICC, 'net.host.carrier.icc'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_SYSTEM, 'messaging.system'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_DESTINATION, 'messaging.destination'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_DESTINATION_KIND, 'messaging.destination_kind'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_TEMP_DESTINATION, 'messaging.temp_destination'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_PROTOCOL, 'messaging.protocol'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_PROTOCOL_VERSION, 'messaging.protocol_version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_URL, 'messaging.url'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_MESSAGE_ID, 'messaging.message_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_CONVERSATION_ID, 'messaging.conversation_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES, 'messaging.message_payload_size_bytes'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES, 'messaging.message_payload_compressed_size_bytes'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_TIME, 'faas.time'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_CRON, 'faas.cron'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_COLDSTART, 'faas.coldstart'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_INVOKED_NAME, 'faas.invoked_name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(FAAS_INVOKED_REGION, 'faas.invoked_region'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(PEER_SERVICE, 'peer.service'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(ENDUSER_ID, 'enduser.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(ENDUSER_ROLE, 'enduser.role'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(ENDUSER_SCOPE, 'enduser.scope'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(THREAD_ID, 'thread.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(THREAD_NAME, 'thread.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CODE_FUNCTION, 'code.function'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CODE_NAMESPACE, 'code.namespace'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CODE_FILEPATH, 'code.filepath'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(CODE_LINENO, 'code.lineno'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_URL, 'http.url'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(HTTP_RETRY_COUNT, 'http.retry_count'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_SYSTEM, 'rpc.system'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_SERVICE, 'rpc.service'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_METHOD, 'rpc.method'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(GRAPHQL_DOCUMENT, 'graphql.document'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_OPERATION, 'messaging.operation'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_CONSUMER_ID, 'messaging.consumer_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_RABBITMQ_ROUTING_KEY, 'messaging.rabbitmq.routing_key'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message_key'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer_group'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_KAFKA_CLIENT_ID, 'messaging.kafka.client_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_KAFKA_PARTITION, 'messaging.kafka.partition'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_KAFKA_TOMBSTONE, 'messaging.kafka.tombstone'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_CLIENT_ID, 'messaging.rocketmq.client_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message_type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message_tag'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message_keys'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGE_TYPE, 'message.type'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGE_ID, 'message.id'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). + +%% @deprecated Migrate to >= v1.26.0 semantic conventions +%% Deprecated Migrate to >= v1.26.0 semantic conventions +-define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). diff --git a/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl new file mode 100644 index 00000000..aba14826 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl @@ -0,0 +1,24 @@ + + +%% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component +%% +-define(URL_FRAGMENT, 'url.fragment'). + + +%% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) +-define(URL_FULL, 'url.full'). + + +%% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component +%% +-define(URL_PATH, 'url.path'). + + +%% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component +%% +-define(URL_QUERY, 'url.query'). + + +%% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. +%% +-define(URL_SCHEME, 'url.scheme'). diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl new file mode 100644 index 00000000..e95e7a2a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl @@ -0,0 +1,5 @@ + + +%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. +%% +-define(USERAGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex deleted file mode 100644 index 327966f0..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/aws_attributes.ex +++ /dev/null @@ -1,651 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.AwsAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Aws attributes. - """ - - @doc """ - The JSON-serialized value of each item in the `AttributeDefinitions` request field. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_attributedefinitions() - :"aws.dynamodb.attribute_definitions" - """ - @spec aws_dynamodb_attributedefinitions :: :"aws.dynamodb.attribute_definitions" - def aws_dynamodb_attributedefinitions do - :"aws.dynamodb.attribute_definitions" - end - - @doc """ - The value of the `AttributesToGet` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_attributestoget() - :"aws.dynamodb.attributes_to_get" - """ - @spec aws_dynamodb_attributestoget :: :"aws.dynamodb.attributes_to_get" - def aws_dynamodb_attributestoget do - :"aws.dynamodb.attributes_to_get" - end - - @doc """ - The value of the `ConsistentRead` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_consistentread() - :"aws.dynamodb.consistent_read" - """ - @spec aws_dynamodb_consistentread :: :"aws.dynamodb.consistent_read" - def aws_dynamodb_consistentread do - :"aws.dynamodb.consistent_read" - end - - @doc """ - The JSON-serialized value of each item in the `ConsumedCapacity` response field. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_consumedcapacity() - :"aws.dynamodb.consumed_capacity" - """ - @spec aws_dynamodb_consumedcapacity :: :"aws.dynamodb.consumed_capacity" - def aws_dynamodb_consumedcapacity do - :"aws.dynamodb.consumed_capacity" - end - - @doc """ - The value of the `Count` response parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_count() - :"aws.dynamodb.count" - """ - @spec aws_dynamodb_count :: :"aws.dynamodb.count" - def aws_dynamodb_count do - :"aws.dynamodb.count" - end - - @doc """ - The value of the `ExclusiveStartTableName` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_exclusivestarttable() - :"aws.dynamodb.exclusive_start_table" - """ - @spec aws_dynamodb_exclusivestarttable :: :"aws.dynamodb.exclusive_start_table" - def aws_dynamodb_exclusivestarttable do - :"aws.dynamodb.exclusive_start_table" - end - - @doc """ - The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_globalsecondaryindexupdates() - :"aws.dynamodb.global_secondary_index_updates" - """ - @spec aws_dynamodb_globalsecondaryindexupdates :: :"aws.dynamodb.global_secondary_index_updates" - def aws_dynamodb_globalsecondaryindexupdates do - :"aws.dynamodb.global_secondary_index_updates" - end - - @doc """ - The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_globalsecondaryindexes() - :"aws.dynamodb.global_secondary_indexes" - """ - @spec aws_dynamodb_globalsecondaryindexes :: :"aws.dynamodb.global_secondary_indexes" - def aws_dynamodb_globalsecondaryindexes do - :"aws.dynamodb.global_secondary_indexes" - end - - @doc """ - The value of the `IndexName` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_indexname() - :"aws.dynamodb.index_name" - """ - @spec aws_dynamodb_indexname :: :"aws.dynamodb.index_name" - def aws_dynamodb_indexname do - :"aws.dynamodb.index_name" - end - - @doc """ - The JSON-serialized value of the `ItemCollectionMetrics` response field. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_itemcollectionmetrics() - :"aws.dynamodb.item_collection_metrics" - """ - @spec aws_dynamodb_itemcollectionmetrics :: :"aws.dynamodb.item_collection_metrics" - def aws_dynamodb_itemcollectionmetrics do - :"aws.dynamodb.item_collection_metrics" - end - - @doc """ - The value of the `Limit` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_limit() - :"aws.dynamodb.limit" - """ - @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" - def aws_dynamodb_limit do - :"aws.dynamodb.limit" - end - - @doc """ - The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_localsecondaryindexes() - :"aws.dynamodb.local_secondary_indexes" - """ - @spec aws_dynamodb_localsecondaryindexes :: :"aws.dynamodb.local_secondary_indexes" - def aws_dynamodb_localsecondaryindexes do - :"aws.dynamodb.local_secondary_indexes" - end - - @doc """ - The value of the `ProjectionExpression` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_projection() - :"aws.dynamodb.projection" - """ - @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" - def aws_dynamodb_projection do - :"aws.dynamodb.projection" - end - - @doc """ - The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_provisionedreadcapacity() - :"aws.dynamodb.provisioned_read_capacity" - """ - @spec aws_dynamodb_provisionedreadcapacity :: :"aws.dynamodb.provisioned_read_capacity" - def aws_dynamodb_provisionedreadcapacity do - :"aws.dynamodb.provisioned_read_capacity" - end - - @doc """ - The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_provisionedwritecapacity() - :"aws.dynamodb.provisioned_write_capacity" - """ - @spec aws_dynamodb_provisionedwritecapacity :: :"aws.dynamodb.provisioned_write_capacity" - def aws_dynamodb_provisionedwritecapacity do - :"aws.dynamodb.provisioned_write_capacity" - end - - @doc """ - The value of the `ScanIndexForward` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_scanforward() - :"aws.dynamodb.scan_forward" - """ - @spec aws_dynamodb_scanforward :: :"aws.dynamodb.scan_forward" - def aws_dynamodb_scanforward do - :"aws.dynamodb.scan_forward" - end - - @doc """ - The value of the `ScannedCount` response parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_scannedcount() - :"aws.dynamodb.scanned_count" - """ - @spec aws_dynamodb_scannedcount :: :"aws.dynamodb.scanned_count" - def aws_dynamodb_scannedcount do - :"aws.dynamodb.scanned_count" - end - - @doc """ - The value of the `Segment` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_segment() - :"aws.dynamodb.segment" - """ - @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" - def aws_dynamodb_segment do - :"aws.dynamodb.segment" - end - - @doc """ - The value of the `Select` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_select() - :"aws.dynamodb.select" - """ - @spec aws_dynamodb_select :: :"aws.dynamodb.select" - def aws_dynamodb_select do - :"aws.dynamodb.select" - end - - @doc """ - The number of items in the `TableNames` response parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_tablecount() - :"aws.dynamodb.table_count" - """ - @spec aws_dynamodb_tablecount :: :"aws.dynamodb.table_count" - def aws_dynamodb_tablecount do - :"aws.dynamodb.table_count" - end - - @doc """ - The keys in the `RequestItems` object field. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_tablenames() - :"aws.dynamodb.table_names" - """ - @spec aws_dynamodb_tablenames :: :"aws.dynamodb.table_names" - def aws_dynamodb_tablenames do - :"aws.dynamodb.table_names" - end - - @doc """ - The value of the `TotalSegments` request parameter. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_dynamodb_totalsegments() - :"aws.dynamodb.total_segments" - """ - @spec aws_dynamodb_totalsegments :: :"aws.dynamodb.total_segments" - def aws_dynamodb_totalsegments do - :"aws.dynamodb.total_segments" - end - - @doc """ - The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_cluster_arn() - :"aws.ecs.cluster.arn" - """ - @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" - def aws_ecs_cluster_arn do - :"aws.ecs.cluster.arn" - end - - @doc """ - The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_container_arn() - :"aws.ecs.container.arn" - """ - @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" - def aws_ecs_container_arn do - :"aws.ecs.container.arn" - end - - @typedoc """ - The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. - - - ### Enum Values - * `:ec2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:fargate` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type aws_ecs_launchtype() :: %{ - :ec2 => :ec2, - :fargate => :fargate - } - @doc """ - The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype().ec2 - :ec2 - - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_launchtype(:custom_value) - :custom_value - """ - @spec aws_ecs_launchtype() :: aws_ecs_launchtype() - def aws_ecs_launchtype() do - %{ - :ec2 => :ec2, - :fargate => :fargate - } - end - - @spec aws_ecs_launchtype(atom() | String.t()) :: atom() | String.t() - def aws_ecs_launchtype(custom_value) do - custom_value - end - - @doc """ - The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_arn() - :"aws.ecs.task.arn" - """ - @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" - def aws_ecs_task_arn do - :"aws.ecs.task.arn" - end - - @doc """ - 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 - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_family() - :"aws.ecs.task.family" - """ - @spec aws_ecs_task_family :: :"aws.ecs.task.family" - def aws_ecs_task_family do - :"aws.ecs.task.family" - end - - @doc """ - The ID of a running ECS task. The ID **MUST** be extracted from `task.arn`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_id() - :"aws.ecs.task.id" - """ - @spec aws_ecs_task_id :: :"aws.ecs.task.id" - def aws_ecs_task_id do - :"aws.ecs.task.id" - end - - @doc """ - The revision for the task definition used to create the ECS task. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_ecs_task_revision() - :"aws.ecs.task.revision" - """ - @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" - def aws_ecs_task_revision do - :"aws.ecs.task.revision" - end - - @doc """ - The ARN of an EKS cluster. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_eks_cluster_arn() - :"aws.eks.cluster.arn" - """ - @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" - def aws_eks_cluster_arn do - :"aws.eks.cluster.arn" - end - - @doc """ - 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). - - ### Notes - - This may be different from `cloud.resource_id` if an alias is involved. - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_lambda_invokedarn() - :"aws.lambda.invoked_arn" - """ - @spec aws_lambda_invokedarn :: :"aws.lambda.invoked_arn" - def aws_lambda_invokedarn do - :"aws.lambda.invoked_arn" - end - - @doc """ - The Amazon Resource Name(s) (ARN) of the AWS log group(s). - - ### Notes - - See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_group_arns() - :"aws.log.group.arns" - """ - @spec aws_log_group_arns :: :"aws.log.group.arns" - def aws_log_group_arns do - :"aws.log.group.arns" - end - - @doc """ - The name(s) of the AWS log group(s) an application is writing to. - - ### Notes - - 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 - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_group_names() - :"aws.log.group.names" - """ - @spec aws_log_group_names :: :"aws.log.group.names" - def aws_log_group_names do - :"aws.log.group.names" - end - - @doc """ - The ARN(s) of the AWS log stream(s). - - ### Notes - - 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. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_stream_arns() - :"aws.log.stream.arns" - """ - @spec aws_log_stream_arns :: :"aws.log.stream.arns" - def aws_log_stream_arns do - :"aws.log.stream.arns" - end - - @doc """ - The name(s) of the AWS log stream(s) an application is writing to. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_log_stream_names() - :"aws.log.stream.names" - """ - @spec aws_log_stream_names :: :"aws.log.stream.names" - def aws_log_stream_names do - :"aws.log.stream.names" - end - - @doc """ - The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_requestid() - :"aws.request_id" - """ - @spec aws_requestid :: :"aws.request_id" - def aws_requestid do - :"aws.request_id" - end - - @doc """ - 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. - ### Notes - - 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`. - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_bucket() - :"aws.s3.bucket" - """ - @spec aws_s_3_bucket :: :"aws.s3.bucket" - def aws_s_3_bucket do - :"aws.s3.bucket" - end - - @doc """ - The source object (in the form `bucket`/`key`) for the copy operation. - ### Notes - - 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) - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_copysource() - :"aws.s3.copy_source" - """ - @spec aws_s_3_copysource :: :"aws.s3.copy_source" - def aws_s_3_copysource do - :"aws.s3.copy_source" - end - - @doc """ - The delete request container that specifies the objects to be deleted. - ### Notes - - 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). - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_delete() - :"aws.s3.delete" - """ - @spec aws_s_3_delete :: :"aws.s3.delete" - def aws_s_3_delete do - :"aws.s3.delete" - end - - @doc """ - 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. - ### Notes - - 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) - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_key() - :"aws.s3.key" - """ - @spec aws_s_3_key :: :"aws.s3.key" - def aws_s_3_key do - :"aws.s3.key" - end - - @doc """ - The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. - ### Notes - - 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). - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_partnumber() - :"aws.s3.part_number" - """ - @spec aws_s_3_partnumber :: :"aws.s3.part_number" - def aws_s_3_partnumber do - :"aws.s3.part_number" - end - - @doc """ - Upload ID that identifies the multipart upload. - ### Notes - - 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) - - - ### Example - iex> OpenTelemetry.SemanticConventions.AwsAttributes.aws_s_3_uploadid() - :"aws.s3.upload_id" - """ - @spec aws_s_3_uploadid :: :"aws.s3.upload_id" - def aws_s_3_uploadid do - :"aws.s3.upload_id" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex index 79d9c8b7..bcedc924 100644 --- a/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.ClientAttributes do +defmodule OpenTelemetry.SemConv.ClientAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Client attributes. @@ -6,14 +6,34 @@ defmodule OpenTelemetry.SemanticConventions.ClientAttributes do @doc """ Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes When observed from the server side, and when communicating through an intermediary, `client.address` **SHOULD** represent the client address behind any intermediaries, for example proxies, if it's available. + ### Examples + + ``` + ["client.example.com", "10.1.2.80", "/tmp/my.sock"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.ClientAttributes.client_address() + iex> OpenTelemetry.SemConv.ClientAttributes.client_address() :"client.address" + + ### Erlang + + ```erlang + ?CLIENT_ADDRESS. + 'client.address' + ``` + + """ @spec client_address :: :"client.address" def client_address do @@ -22,14 +42,34 @@ defmodule OpenTelemetry.SemanticConventions.ClientAttributes do @doc """ Client port number. + ### Value type + + Value must be of type `integer()`. ### Notes When observed from the server side, and when communicating through an intermediary, `client.port` **SHOULD** represent the client port behind any intermediaries, for example proxies, if it's available. + ### Examples + + ``` + [65123] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.ClientAttributes.client_port() + iex> OpenTelemetry.SemConv.ClientAttributes.client_port() :"client.port" + + ### Erlang + + ```erlang + ?CLIENT_PORT. + 'client.port' + ``` + + """ @spec client_port :: :"client.port" def client_port do diff --git a/apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex deleted file mode 100644 index 7e005f5a..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/cloudevents_attributes.ex +++ /dev/null @@ -1,76 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.CloudeventsAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Cloudevents attributes. - """ - - @doc """ - The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventid() - :"cloudevents.event_id" - """ - @spec cloudevents_eventid :: :"cloudevents.event_id" - def cloudevents_eventid do - :"cloudevents.event_id" - end - - @doc """ - 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 - iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventsource() - :"cloudevents.event_source" - """ - @spec cloudevents_eventsource :: :"cloudevents.event_source" - def cloudevents_eventsource do - :"cloudevents.event_source" - end - - @doc """ - The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventspecversion() - :"cloudevents.event_spec_version" - """ - @spec cloudevents_eventspecversion :: :"cloudevents.event_spec_version" - def cloudevents_eventspecversion do - :"cloudevents.event_spec_version" - end - - @doc """ - 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 - iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventsubject() - :"cloudevents.event_subject" - """ - @spec cloudevents_eventsubject :: :"cloudevents.event_subject" - def cloudevents_eventsubject do - :"cloudevents.event_subject" - end - - @doc """ - 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 - iex> OpenTelemetry.SemanticConventions.CloudeventsAttributes.cloudevents_eventtype() - :"cloudevents.event_type" - """ - @spec cloudevents_eventtype :: :"cloudevents.event_type" - def cloudevents_eventtype do - :"cloudevents.event_type" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/code_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/code_attributes.ex deleted file mode 100644 index aeeffef6..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/code_attributes.ex +++ /dev/null @@ -1,90 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.CodeAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Code attributes. - """ - - @doc """ - The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_column() - :"code.column" - """ - @spec code_column :: :"code.column" - def code_column do - :"code.column" - end - - @doc """ - The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_filepath() - :"code.filepath" - """ - @spec code_filepath :: :"code.filepath" - def code_filepath do - :"code.filepath" - end - - @doc """ - The method or function name, or equivalent (usually rightmost part of the code unit's name). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_function() - :"code.function" - """ - @spec code_function :: :"code.function" - def code_function do - :"code.function" - end - - @doc """ - The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_lineno() - :"code.lineno" - """ - @spec code_lineno :: :"code.lineno" - def code_lineno do - :"code.lineno" - end - - @doc """ - The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_namespace() - :"code.namespace" - """ - @spec code_namespace :: :"code.namespace" - def code_namespace do - :"code.namespace" - end - - @doc """ - A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.CodeAttributes.code_stacktrace() - :"code.stacktrace" - """ - @spec code_stacktrace :: :"code.stacktrace" - def code_stacktrace do - :"code.stacktrace" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex deleted file mode 100644 index 4300083f..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/container_attributes.ex +++ /dev/null @@ -1,217 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.ContainerAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Container attributes. - """ - - @doc """ - The command used to run the container (i.e. the command name). - - ### Notes - - If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_command() - :"container.command" - """ - @spec container_command :: :"container.command" - def container_command do - :"container.command" - end - - @doc """ - All the command arguments (including the command/executable itself) run by the container. [2] - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_commandargs() - :"container.command_args" - """ - @spec container_commandargs :: :"container.command_args" - def container_commandargs do - :"container.command_args" - end - - @doc """ - The full command run by the container as a single string representing the full command. [2] - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_commandline() - :"container.command_line" - """ - @spec container_commandline :: :"container.command_line" - def container_commandline do - :"container.command_line" - end - - @typedoc """ - The CPU state for this data point. - - ### Enum Values - * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). - * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When CPU is used by the system (host OS) - * `:kernel` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). - """ - @type container_cpu_state() :: %{ - :user => :user, - :system => :system, - :kernel => :kernel - } - @doc """ - The CPU state for this data point. - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state().user - :user - - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_cpu_state(:custom_value) - :custom_value - """ - @spec container_cpu_state() :: container_cpu_state() - def container_cpu_state() do - %{ - :user => :user, - :system => :system, - :kernel => :kernel - } - end - - @spec container_cpu_state(atom() | String.t()) :: atom() | String.t() - def container_cpu_state(custom_value) do - custom_value - end - - @doc """ - Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_id() - :"container.id" - """ - @spec container_id :: :"container.id" - def container_id do - :"container.id" - end - - @doc """ - Runtime specific image identifier. Usually a hash algorithm followed by a UUID. - - ### Notes - - 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. - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_id() - :"container.image.id" - """ - @spec container_image_id :: :"container.image.id" - def container_image_id do - :"container.image.id" - end - - @doc """ - Name of the image the container was built on. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_name() - :"container.image.name" - """ - @spec container_image_name :: :"container.image.name" - def container_image_name do - :"container.image.name" - end - - @doc """ - Repo digests of the container image as provided by the container runtime. - - ### Notes - - [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 - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_repodigests() - :"container.image.repo_digests" - """ - @spec container_image_repodigests :: :"container.image.repo_digests" - def container_image_repodigests do - :"container.image.repo_digests" - end - - @doc """ - 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 - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_image_tags() - :"container.image.tags" - """ - @spec container_image_tags :: :"container.image.tags" - def container_image_tags do - :"container.image.tags" - end - - @doc """ - Container labels, `` being the label name, the value being the label value. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_label() - :"container.label" - """ - @spec container_label :: :"container.label" - def container_label do - :"container.label" - end - - @deprecated """ - Replaced by `container.label`. - """ - @spec container_labels :: :"container.labels" - def container_labels do - :"container.labels" - end - - @doc """ - Container name used by container runtime. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_name() - :"container.name" - """ - @spec container_name :: :"container.name" - def container_name do - :"container.name" - end - - @doc """ - The container runtime managing this container. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ContainerAttributes.container_runtime() - :"container.runtime" - """ - @spec container_runtime :: :"container.runtime" - def container_runtime do - :"container.runtime" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index ce7e9a19..fc28cecb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do +defmodule OpenTelemetry.SemConv.ErrorAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Error attributes. @@ -18,6 +18,7 @@ defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do @doc """ Describes a class of error the operation ended with. + ### Notes The `error.type` **SHOULD** be predictable, and **SHOULD** have low cardinality. @@ -40,13 +41,33 @@ defmodule OpenTelemetry.SemanticConventions.ErrorAttributes do * Use a domain-specific attribute * Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not. + ### Examples + + ``` + ["timeout", "java.net.UnknownHostException", "server_certificate_invalid", "500"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type().other + iex> OpenTelemetry.SemConv.ErrorAttributes.error_type().other :_OTHER - iex> OpenTelemetry.SemanticConventions.ErrorAttributes.error_type(:custom_value) + iex> OpenTelemetry.SemConv.ErrorAttributes.error_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'error_type.other'. + _OTHER + + ?error_type.(custom_value). + custom_value + ``` + + """ @spec error_type() :: error_type() def error_type() do diff --git a/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex index cf64d906..7bb01402 100644 --- a/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do +defmodule OpenTelemetry.SemConv.ExceptionAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Exception attributes. @@ -7,6 +7,9 @@ defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do @doc """ SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. + ### Value type + + Value must be of type `boolean()`. ### Notes An exception is considered to have escaped (or left) the scope of a span, @@ -26,9 +29,21 @@ defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do since the event might have been recorded at a time where it was not clear whether the exception will escape. - ### Example - iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_escaped() + + + ### Elixir + + iex> OpenTelemetry.SemConv.ExceptionAttributes.exception_escaped() :"exception.escaped" + + ### Erlang + + ```erlang + ?EXCEPTION_ESCAPED. + 'exception.escaped' + ``` + + """ @spec exception_escaped :: :"exception.escaped" def exception_escaped do @@ -37,11 +52,30 @@ defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do @doc """ The exception message. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_message() + ``` + ["Division by zero", "Can't convert 'int' object to str implicitly"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.ExceptionAttributes.exception_message() :"exception.message" + + ### Erlang + + ```erlang + ?EXCEPTION_MESSAGE. + 'exception.message' + ``` + + """ @spec exception_message :: :"exception.message" def exception_message do @@ -51,11 +85,30 @@ defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do @doc """ A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_stacktrace() + ``` + Exception in thread "main" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.ExceptionAttributes.exception_stacktrace() :"exception.stacktrace" + + ### Erlang + + ```erlang + ?EXCEPTION_STACKTRACE. + 'exception.stacktrace' + ``` + + """ @spec exception_stacktrace :: :"exception.stacktrace" def exception_stacktrace do @@ -65,11 +118,30 @@ defmodule OpenTelemetry.SemanticConventions.ExceptionAttributes do @doc """ The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.ExceptionAttributes.exception_type() + ``` + ["java.net.ConnectException", "OSError"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.ExceptionAttributes.exception_type() :"exception.type" + + ### Erlang + + ```erlang + ?EXCEPTION_TYPE. + 'exception.type' + ``` + + """ @spec exception_type :: :"exception.type" def exception_type do diff --git a/apps/opentelemetry_semantic_conventions/lib/file_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/file_attributes.ex deleted file mode 100644 index 84e9962c..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/file_attributes.ex +++ /dev/null @@ -1,79 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.FileAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for File attributes. - """ - - @doc """ - Directory where the file is located. It should include the drive letter, when appropriate. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.FileAttributes.file_directory() - :"file.directory" - """ - @spec file_directory :: :"file.directory" - def file_directory do - :"file.directory" - end - - @doc """ - File extension, excluding the leading dot. - - ### Notes - - When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). - - - ### Example - iex> OpenTelemetry.SemanticConventions.FileAttributes.file_extension() - :"file.extension" - """ - @spec file_extension :: :"file.extension" - def file_extension do - :"file.extension" - end - - @doc """ - Name of the file including the extension, without the directory. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.FileAttributes.file_name() - :"file.name" - """ - @spec file_name :: :"file.name" - def file_name do - :"file.name" - end - - @doc """ - Full path to the file, including the file name. It should include the drive letter, when appropriate. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.FileAttributes.file_path() - :"file.path" - """ - @spec file_path :: :"file.path" - def file_path do - :"file.path" - end - - @doc """ - File size in bytes. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.FileAttributes.file_size() - :"file.size" - """ - @spec file_size :: :"file.size" - def file_size do - :"file.size" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex deleted file mode 100644 index df0e7e7d..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/gen_ai_attributes.ex +++ /dev/null @@ -1,188 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.GenAiAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Gen_Ai attributes. - """ - - @doc """ - The full response received from the LLM. - ### Notes - - It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_completion() - :"gen_ai.completion" - """ - @spec genai_completion :: :"gen_ai.completion" - def genai_completion do - :"gen_ai.completion" - end - - @doc """ - The full prompt sent to an LLM. - ### Notes - - It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_prompt() - :"gen_ai.prompt" - """ - @spec genai_prompt :: :"gen_ai.prompt" - def genai_prompt do - :"gen_ai.prompt" - end - - @doc """ - The maximum number of tokens the LLM generates for a request. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_maxtokens() - :"gen_ai.request.max_tokens" - """ - @spec genai_request_maxtokens :: :"gen_ai.request.max_tokens" - def genai_request_maxtokens do - :"gen_ai.request.max_tokens" - end - - @doc """ - The name of the LLM a request is being made to. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_model() - :"gen_ai.request.model" - """ - @spec genai_request_model :: :"gen_ai.request.model" - def genai_request_model do - :"gen_ai.request.model" - end - - @doc """ - The temperature setting for the LLM request. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_temperature() - :"gen_ai.request.temperature" - """ - @spec genai_request_temperature :: :"gen_ai.request.temperature" - def genai_request_temperature do - :"gen_ai.request.temperature" - end - - @doc """ - The top_p sampling setting for the LLM request. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_request_topp() - :"gen_ai.request.top_p" - """ - @spec genai_request_topp :: :"gen_ai.request.top_p" - def genai_request_topp do - :"gen_ai.request.top_p" - end - - @doc """ - Array of reasons the model stopped generating tokens, corresponding to each generation received. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_response_finishreasons() - :"gen_ai.response.finish_reasons" - """ - @spec genai_response_finishreasons :: :"gen_ai.response.finish_reasons" - def genai_response_finishreasons do - :"gen_ai.response.finish_reasons" - end - - @doc """ - The unique identifier for the completion. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_response_id() - :"gen_ai.response.id" - """ - @spec genai_response_id :: :"gen_ai.response.id" - def genai_response_id do - :"gen_ai.response.id" - end - - @doc """ - The name of the LLM a response was generated from. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_response_model() - :"gen_ai.response.model" - """ - @spec genai_response_model :: :"gen_ai.response.model" - def genai_response_model do - :"gen_ai.response.model" - end - - @typedoc """ - The Generative AI product as identified by the client instrumentation. - - ### Enum Values - * `:openai` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenAI - """ - @type genai_system() :: %{ - :openai => :openai - } - @doc """ - The Generative AI product as identified by the client instrumentation. - ### Notes - - The actual GenAI product may differ from the one identified by the client. For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` is set to `openai` based on the instrumentation's best knowledge. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system().openai - :openai - - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_system(:custom_value) - :custom_value - """ - @spec genai_system() :: genai_system() - def genai_system() do - %{ - :openai => :openai - } - end - - @spec genai_system(atom() | String.t()) :: atom() | String.t() - def genai_system(custom_value) do - custom_value - end - - @doc """ - The number of tokens used in the LLM response (completion). - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_usage_completiontokens() - :"gen_ai.usage.completion_tokens" - """ - @spec genai_usage_completiontokens :: :"gen_ai.usage.completion_tokens" - def genai_usage_completiontokens do - :"gen_ai.usage.completion_tokens" - end - - @doc """ - The number of tokens used in the LLM prompt. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GenAiAttributes.genai_usage_prompttokens() - :"gen_ai.usage.prompt_tokens" - """ - @spec genai_usage_prompttokens :: :"gen_ai.usage.prompt_tokens" - def genai_usage_prompttokens do - :"gen_ai.usage.prompt_tokens" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex deleted file mode 100644 index 33074d50..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/graphql_attributes.ex +++ /dev/null @@ -1,72 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.GraphqlAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Graphql attributes. - """ - - @doc """ - The GraphQL document being executed. - ### Notes - - The value may be sanitized to exclude sensitive information. - - ### Example - iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_document() - :"graphql.document" - """ - @spec graphql_document :: :"graphql.document" - def graphql_document do - :"graphql.document" - end - - @doc """ - The name of the operation being executed. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_name() - :"graphql.operation.name" - """ - @spec graphql_operation_name :: :"graphql.operation.name" - def graphql_operation_name do - :"graphql.operation.name" - end - - @typedoc """ - The type of the operation being executed. - - ### Enum Values - * `:query` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL query - * `:mutation` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL mutation - * `:subscription` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GraphQL subscription - """ - @type graphql_operation_type() :: %{ - :query => :query, - :mutation => :mutation, - :subscription => :subscription - } - @doc """ - The type of the operation being executed. - - - ### Example - iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type().query - :query - - iex> OpenTelemetry.SemanticConventions.GraphqlAttributes.graphql_operation_type(:custom_value) - :custom_value - """ - @spec graphql_operation_type() :: graphql_operation_type() - def graphql_operation_type() do - %{ - :query => :query, - :mutation => :mutation, - :subscription => :subscription - } - end - - @spec graphql_operation_type(atom() | String.t()) :: atom() | String.t() - def graphql_operation_type(custom_value) do - custom_value - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex deleted file mode 100644 index 1fee849c..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/heroku_attributes.ex +++ /dev/null @@ -1,48 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.HerokuAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Heroku attributes. - """ - - @doc """ - Unique identifier for the application - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HerokuAttributes.heroku_app_id() - :"heroku.app.id" - """ - @spec heroku_app_id :: :"heroku.app.id" - def heroku_app_id do - :"heroku.app.id" - end - - @doc """ - Commit hash for the current release - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HerokuAttributes.heroku_release_commit() - :"heroku.release.commit" - """ - @spec heroku_release_commit :: :"heroku.release.commit" - def heroku_release_commit do - :"heroku.release.commit" - end - - @doc """ - Time and date the release was created - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HerokuAttributes.heroku_release_creationtimestamp() - :"heroku.release.creation_timestamp" - """ - @spec heroku_release_creationtimestamp :: :"heroku.release.creation_timestamp" - def heroku_release_creationtimestamp do - :"heroku.release.creation_timestamp" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex deleted file mode 100644 index aef71d03..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/host_attributes.ex +++ /dev/null @@ -1,266 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.HostAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Host attributes. - """ - - @typedoc """ - The CPU architecture the host system is running on. - - - ### Enum Values - * `:amd64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AMD64 - * `:arm32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM32 - * `:arm64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ARM64 - * `:ia64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Itanium - * `:ppc32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit PowerPC - * `:ppc64` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 64-bit PowerPC - * `:s390x` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/Architecture - * `:x86` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 32-bit x86 - """ - @type host_arch() :: %{ - :amd64 => :amd64, - :arm32 => :arm32, - :arm64 => :arm64, - :ia64 => :ia64, - :ppc32 => :ppc32, - :ppc64 => :ppc64, - :s390x => :s390x, - :x86 => :x86 - } - @doc """ - The CPU architecture the host system is running on. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch().amd64 - :amd64 - - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_arch(:custom_value) - :custom_value - """ - @spec host_arch() :: host_arch() - def host_arch() do - %{ - :amd64 => :amd64, - :arm32 => :arm32, - :arm64 => :arm64, - :ia64 => :ia64, - :ppc32 => :ppc32, - :ppc64 => :ppc64, - :s390x => :s390x, - :x86 => :x86 - } - end - - @spec host_arch(atom() | String.t()) :: atom() | String.t() - def host_arch(custom_value) do - custom_value - end - - @doc """ - The amount of level 2 memory cache available to the processor (in Bytes). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_cache_l_2_size() - :"host.cpu.cache.l2.size" - """ - @spec host_cpu_cache_l_2_size :: :"host.cpu.cache.l2.size" - def host_cpu_cache_l_2_size do - :"host.cpu.cache.l2.size" - end - - @doc """ - Family or generation of the CPU. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_family() - :"host.cpu.family" - """ - @spec host_cpu_family :: :"host.cpu.family" - def host_cpu_family do - :"host.cpu.family" - end - - @doc """ - Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_model_id() - :"host.cpu.model.id" - """ - @spec host_cpu_model_id :: :"host.cpu.model.id" - def host_cpu_model_id do - :"host.cpu.model.id" - end - - @doc """ - Model designation of the processor. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_model_name() - :"host.cpu.model.name" - """ - @spec host_cpu_model_name :: :"host.cpu.model.name" - def host_cpu_model_name do - :"host.cpu.model.name" - end - - @doc """ - Stepping or core revisions. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_stepping() - :"host.cpu.stepping" - """ - @spec host_cpu_stepping :: :"host.cpu.stepping" - def host_cpu_stepping do - :"host.cpu.stepping" - end - - @doc """ - Processor manufacturer identifier. A maximum 12-character string. - - ### Notes - - [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 - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_cpu_vendor_id() - :"host.cpu.vendor.id" - """ - @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" - def host_cpu_vendor_id do - :"host.cpu.vendor.id" - end - - @doc """ - 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. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_id() - :"host.id" - """ - @spec host_id :: :"host.id" - def host_id do - :"host.id" - end - - @doc """ - VM image ID or host OS image ID. For Cloud, this value is from the provider. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_image_id() - :"host.image.id" - """ - @spec host_image_id :: :"host.image.id" - def host_image_id do - :"host.image.id" - end - - @doc """ - Name of the VM image or OS install the host was instantiated from. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_image_name() - :"host.image.name" - """ - @spec host_image_name :: :"host.image.name" - def host_image_name do - :"host.image.name" - end - - @doc """ - The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_image_version() - :"host.image.version" - """ - @spec host_image_version :: :"host.image.version" - def host_image_version do - :"host.image.version" - end - - @doc """ - Available IP addresses of the host, excluding loopback interfaces. - - ### Notes - - 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 - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_ip() - :"host.ip" - """ - @spec host_ip :: :"host.ip" - def host_ip do - :"host.ip" - end - - @doc """ - Available MAC addresses of the host, excluding loopback interfaces. - - ### Notes - - 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 - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_mac() - :"host.mac" - """ - @spec host_mac :: :"host.mac" - def host_mac do - :"host.mac" - end - - @doc """ - 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 - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_name() - :"host.name" - """ - @spec host_name :: :"host.name" - def host_name do - :"host.name" - end - - @doc """ - Type of host. For Cloud, this must be the machine type. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.HostAttributes.host_type() - :"host.type" - """ - @spec host_type :: :"host.type" - def host_type do - :"host.type" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index efa5e44e..299cdef7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -1,134 +1,42 @@ -defmodule OpenTelemetry.SemanticConventions.HttpAttributes do +defmodule OpenTelemetry.SemConv.HTTPAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Http attributes. + OpenTelemetry Semantic Conventions for HTTP attributes. """ - @deprecated """ - Replaced by `client.address`. - """ - @spec http_clientip :: :"http.client_ip" - def http_clientip do - :"http.client_ip" - end - - @typedoc """ - State of the HTTP connection in the HTTP connection pool. - - ### Enum Values - * `:active` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - active state. - * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - idle state. - """ - @type http_connection_state() :: %{ - :active => :active, - :idle => :idle - } @doc """ - State of the HTTP connection in the HTTP connection pool. - - - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state().active - :active - - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_connection_state(:custom_value) - :custom_value - """ - @spec http_connection_state() :: http_connection_state() - def http_connection_state() do - %{ - :active => :active, - :idle => :idle - } - end - - @spec http_connection_state(atom() | String.t()) :: atom() | String.t() - def http_connection_state(custom_value) do - custom_value - end - - @typedoc """ - Deprecated, use `network.protocol.name` instead. - - ### Enum Values - * `:http_1_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.0 - * `:http_1_1` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/1.1 - * `:http_2_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/2 - * `:http_3_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HTTP/3 - * `:spdy` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SPDY protocol. - * `:quic` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - QUIC protocol. - """ - @type http_flavor() :: %{ - :http_1_0 => :"1.0", - :http_1_1 => :"1.1", - :http_2_0 => :"2.0", - :http_3_0 => :"3.0", - :spdy => :SPDY, - :quic => :QUIC - } - @deprecated """ - Replaced by `network.protocol.name`. - """ - @spec http_flavor() :: http_flavor() - def http_flavor() do - %{ - :http_1_0 => :"1.0", - :http_1_1 => :"1.1", - :http_2_0 => :"2.0", - :http_3_0 => :"3.0", - :spdy => :SPDY, - :quic => :QUIC - } - end - - @spec http_flavor(atom() | String.t()) :: atom() | String.t() - def http_flavor(custom_value) do - custom_value - end + HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. - @deprecated """ - Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. - """ - @spec http_host :: :"http.host" - def http_host do - :"http.host" - end + ### Value type - @deprecated """ - Replaced by `http.request.method`. - """ - @spec http_method :: :"http.method" - def http_method do - :"http.method" - end + Value must be of type `[atom() | String.t()]`. + ### Notes - @doc """ - 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. + Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information. + The `User-Agent` header is already captured in the `user_agent.original` attribute. Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. + The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. + ### Examples + ``` + ["http.request.header.content-type=[\"application/json\"]", "http.request.header.x-forwarded-for=[\"1.2.3.4\", \"1.2.3.5\"]"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_body_size() - :"http.request.body.size" - """ - @spec http_request_body_size :: :"http.request.body.size" - def http_request_body_size do - :"http.request.body.size" - end + - @doc """ - HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. + ### Elixir - ### Notes + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_header() + :"http.request.header" - Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all request headers can be a security risk - explicit configuration helps avoid leaking sensitive information. - The `User-Agent` header is already captured in the `user_agent.original` attribute. Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. - The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. + ### Erlang + ```erlang + ?HTTP_REQUEST_HEADER. + 'http.request.header' + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_header() - :"http.request.header" + """ @spec http_request_header :: :"http.request.header" def http_request_header do @@ -164,6 +72,7 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do } @doc """ HTTP request method. + ### Notes HTTP request method value **SHOULD** be "known" to the instrumentation. @@ -181,13 +90,33 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, **SHOULD** populate a canonical equivalent. Tracing instrumentations that do so, **MUST** also set `http.request.method_original` to the original value. + ### Examples + + ``` + ["GET", "POST", "HEAD"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method().connect + + + ### Elixir + + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method().connect :CONNECT - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_method(:custom_value) + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'http_request_method.connect'. + CONNECT + + ?http_request_method.(custom_value). + custom_value + ``` + + """ @spec http_request_method() :: http_request_method() def http_request_method() do @@ -212,11 +141,30 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @doc """ Original HTTP method sent by the client in the request line. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["GeT", "ACL", "foo"] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_methodoriginal() + ### Elixir + + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_methodoriginal() :"http.request.method_original" + + ### Erlang + + ```erlang + ?HTTP_REQUEST_METHODORIGINAL. + 'http.request.method_original' + ``` + + """ @spec http_request_methodoriginal :: :"http.request.method_original" def http_request_methodoriginal do @@ -226,77 +174,73 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do @doc """ The ordinal number of request resending attempt (for any reason, including redirects). + ### Value type + + Value must be of type `integer()`. ### Notes The resend count **SHOULD** be updated each time an HTTP request gets resent by the client, regardless of what was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, or any other). + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_resendcount() - :"http.request.resend_count" - """ - @spec http_request_resendcount :: :"http.request.resend_count" - def http_request_resendcount do - :"http.request.resend_count" - end - - @doc """ - 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. + ``` + 3 + ``` + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_request_size() - :"http.request.size" - """ - @spec http_request_size :: :"http.request.size" - def http_request_size do - :"http.request.size" - end - - @deprecated """ - Replaced by `http.request.header.content-length`. - """ - @spec http_requestcontentlength :: :"http.request_content_length" - def http_requestcontentlength do - :"http.request_content_length" - end - - @deprecated """ - Replaced by `http.request.body.size`. - """ - @spec http_requestcontentlengthuncompressed :: :"http.request_content_length_uncompressed" - def http_requestcontentlengthuncompressed do - :"http.request_content_length_uncompressed" - end - - @doc """ - 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. + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_resendcount() + :"http.request.resend_count" + ### Erlang + ```erlang + ?HTTP_REQUEST_RESENDCOUNT. + 'http.request.resend_count' + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_body_size() - :"http.response.body.size" + """ - @spec http_response_body_size :: :"http.response.body.size" - def http_response_body_size do - :"http.response.body.size" + @spec http_request_resendcount :: :"http.request.resend_count" + def http_request_resendcount do + :"http.request.resend_count" end @doc """ HTTP response headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. + ### Value type + + Value must be of type `[atom() | String.t()]`. ### Notes Instrumentations **SHOULD** require an explicit configuration of which headers are to be captured. Including all response headers can be a security risk - explicit configuration helps avoid leaking sensitive information. Users **MAY** explicitly configure instrumentations to capture them even though it is not recommended. The attribute value **MUST** consist of either multiple header values as an array of strings or a single-item array containing a possibly comma-concatenated string, depending on the way the HTTP library provides access to headers. + ### Examples + + ``` + ["http.response.header.content-type=[\"application/json\"]", "http.response.header.my-custom-header=[\"abc\", \"def\"]"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_header() + + + ### Elixir + + iex> OpenTelemetry.SemConv.HTTPAttributes.http_response_header() :"http.response.header" + + ### Erlang + + ```erlang + ?HTTP_RESPONSE_HEADER. + 'http.response.header' + ``` + + """ @spec http_response_header :: :"http.response.header" def http_response_header do @@ -304,111 +248,72 @@ defmodule OpenTelemetry.SemanticConventions.HttpAttributes do end @doc """ - 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. - + [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_size() - :"http.response.size" - """ - @spec http_response_size :: :"http.response.size" - def http_response_size do - :"http.response.size" - end + ``` + [200] + ``` - @doc """ - [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_response_statuscode() + iex> OpenTelemetry.SemConv.HTTPAttributes.http_response_statuscode() :"http.response.status_code" + + ### Erlang + + ```erlang + ?HTTP_RESPONSE_STATUSCODE. + 'http.response.status_code' + ``` + + """ @spec http_response_statuscode :: :"http.response.status_code" def http_response_statuscode do :"http.response.status_code" end - @deprecated """ - Replaced by `http.response.header.content-length`. - """ - @spec http_responsecontentlength :: :"http.response_content_length" - def http_responsecontentlength do - :"http.response_content_length" - end - - @deprecated """ - Replace by `http.response.body.size`. - """ - @spec http_responsecontentlengthuncompressed :: :"http.response_content_length_uncompressed" - def http_responsecontentlengthuncompressed do - :"http.response_content_length_uncompressed" - end - @doc """ The matched route, that is, the path template in the format used by the respective server framework. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes MUST **NOT** be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can **NOT** substitute it. **SHOULD** include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.HttpAttributes.http_route() - :"http.route" - """ - @spec http_route :: :"http.route" - def http_route do - :"http.route" - end + ``` + ["/users/:userID?", "{controller}/{action}/{id?}"] + ``` - @deprecated """ - Replaced by `url.scheme` instead. - """ - @spec http_scheme :: :"http.scheme" - def http_scheme do - :"http.scheme" - end + - @deprecated """ - Replaced by `server.address`. - """ - @spec http_servername :: :"http.server_name" - def http_servername do - :"http.server_name" - end + ### Elixir - @deprecated """ - Replaced by `http.response.status_code`. - """ - @spec http_statuscode :: :"http.status_code" - def http_statuscode do - :"http.status_code" - end + iex> OpenTelemetry.SemConv.HTTPAttributes.http_route() + :"http.route" - @deprecated """ - Split to `url.path` and `url.query. - """ - @spec http_target :: :"http.target" - def http_target do - :"http.target" - end + ### Erlang - @deprecated """ - Replaced by `url.full`. - """ - @spec http_url :: :"http.url" - def http_url do - :"http.url" - end + ```erlang + ?HTTP_ROUTE. + 'http.route' + ``` - @deprecated """ - Replaced by `user_agent.original`. + """ - @spec http_useragent :: :"http.user_agent" - def http_useragent do - :"http.user_agent" + @spec http_route :: :"http.route" + def http_route do + :"http.route" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex new file mode 100644 index 00000000..4704f756 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -0,0 +1,1445 @@ +defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for AWS attributes. + """ + + @doc """ + The JSON-serialized value of each item in the `AttributeDefinitions` request field. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["{ \"AttributeName\": \"string\", \"AttributeType\": \"string\" }"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_attributedefinitions() + :"aws.dynamodb.attribute_definitions" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_ATTRIBUTEDEFINITIONS. + 'aws.dynamodb.attribute_definitions' + ``` + + + """ + @spec aws_dynamodb_attributedefinitions :: :"aws.dynamodb.attribute_definitions" + def aws_dynamodb_attributedefinitions do + :"aws.dynamodb.attribute_definitions" + end + + @doc """ + The value of the `AttributesToGet` request parameter. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["lives", "id"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_attributestoget() + :"aws.dynamodb.attributes_to_get" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_ATTRIBUTESTOGET. + 'aws.dynamodb.attributes_to_get' + ``` + + + """ + @spec aws_dynamodb_attributestoget :: :"aws.dynamodb.attributes_to_get" + def aws_dynamodb_attributestoget do + :"aws.dynamodb.attributes_to_get" + end + + @doc """ + The value of the `ConsistentRead` request parameter. + ### Value type + + Value must be of type `boolean()`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_consistentread() + :"aws.dynamodb.consistent_read" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_CONSISTENTREAD. + 'aws.dynamodb.consistent_read' + ``` + + + """ + @spec aws_dynamodb_consistentread :: :"aws.dynamodb.consistent_read" + def aws_dynamodb_consistentread do + :"aws.dynamodb.consistent_read" + end + + @doc """ + The JSON-serialized value of each item in the `ConsumedCapacity` response field. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["{ \"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 }"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_consumedcapacity() + :"aws.dynamodb.consumed_capacity" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_CONSUMEDCAPACITY. + 'aws.dynamodb.consumed_capacity' + ``` + + + """ + @spec aws_dynamodb_consumedcapacity :: :"aws.dynamodb.consumed_capacity" + def aws_dynamodb_consumedcapacity do + :"aws.dynamodb.consumed_capacity" + end + + @doc """ + The value of the `Count` response parameter. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [10] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_count() + :"aws.dynamodb.count" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_COUNT. + 'aws.dynamodb.count' + ``` + + + """ + @spec aws_dynamodb_count :: :"aws.dynamodb.count" + def aws_dynamodb_count do + :"aws.dynamodb.count" + end + + @doc """ + The value of the `ExclusiveStartTableName` request parameter. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Users", "CatsTable"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_exclusivestarttable() + :"aws.dynamodb.exclusive_start_table" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_EXCLUSIVESTARTTABLE. + 'aws.dynamodb.exclusive_start_table' + ``` + + + """ + @spec aws_dynamodb_exclusivestarttable :: :"aws.dynamodb.exclusive_start_table" + def aws_dynamodb_exclusivestarttable do + :"aws.dynamodb.exclusive_start_table" + end + + @doc """ + The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["{ \"Create\": { \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_globalsecondaryindexupdates() + :"aws.dynamodb.global_secondary_index_updates" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_GLOBALSECONDARYINDEXUPDATES. + 'aws.dynamodb.global_secondary_index_updates' + ``` + + + """ + @spec aws_dynamodb_globalsecondaryindexupdates :: :"aws.dynamodb.global_secondary_index_updates" + def aws_dynamodb_globalsecondaryindexupdates do + :"aws.dynamodb.global_secondary_index_updates" + end + + @doc """ + The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["{ \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_globalsecondaryindexes() + :"aws.dynamodb.global_secondary_indexes" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_GLOBALSECONDARYINDEXES. + 'aws.dynamodb.global_secondary_indexes' + ``` + + + """ + @spec aws_dynamodb_globalsecondaryindexes :: :"aws.dynamodb.global_secondary_indexes" + def aws_dynamodb_globalsecondaryindexes do + :"aws.dynamodb.global_secondary_indexes" + end + + @doc """ + The value of the `IndexName` request parameter. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["name_to_group"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_indexname() + :"aws.dynamodb.index_name" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_INDEXNAME. + 'aws.dynamodb.index_name' + ``` + + + """ + @spec aws_dynamodb_indexname :: :"aws.dynamodb.index_name" + def aws_dynamodb_indexname do + :"aws.dynamodb.index_name" + end + + @doc """ + The JSON-serialized value of the `ItemCollectionMetrics` response field. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["{ \"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 ] } ] }"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_itemcollectionmetrics() + :"aws.dynamodb.item_collection_metrics" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_ITEMCOLLECTIONMETRICS. + 'aws.dynamodb.item_collection_metrics' + ``` + + + """ + @spec aws_dynamodb_itemcollectionmetrics :: :"aws.dynamodb.item_collection_metrics" + def aws_dynamodb_itemcollectionmetrics do + :"aws.dynamodb.item_collection_metrics" + end + + @doc """ + The value of the `Limit` request parameter. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [10] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_limit() + :"aws.dynamodb.limit" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_LIMIT. + 'aws.dynamodb.limit' + ``` + + + """ + @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" + def aws_dynamodb_limit do + :"aws.dynamodb.limit" + end + + @doc """ + The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["{ \"IndexArn\": \"string\", \"IndexName\": \"string\", \"IndexSizeBytes\": number, \"ItemCount\": number, \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" } }"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_localsecondaryindexes() + :"aws.dynamodb.local_secondary_indexes" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_LOCALSECONDARYINDEXES. + 'aws.dynamodb.local_secondary_indexes' + ``` + + + """ + @spec aws_dynamodb_localsecondaryindexes :: :"aws.dynamodb.local_secondary_indexes" + def aws_dynamodb_localsecondaryindexes do + :"aws.dynamodb.local_secondary_indexes" + end + + @doc """ + The value of the `ProjectionExpression` request parameter. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Title", "Title, Price, Color", "Title, Description, RelatedItems, ProductReviews"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_projection() + :"aws.dynamodb.projection" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_PROJECTION. + 'aws.dynamodb.projection' + ``` + + + """ + @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" + def aws_dynamodb_projection do + :"aws.dynamodb.projection" + end + + @doc """ + The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [1.0, 2.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_provisionedreadcapacity() + :"aws.dynamodb.provisioned_read_capacity" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_PROVISIONEDREADCAPACITY. + 'aws.dynamodb.provisioned_read_capacity' + ``` + + + """ + @spec aws_dynamodb_provisionedreadcapacity :: :"aws.dynamodb.provisioned_read_capacity" + def aws_dynamodb_provisionedreadcapacity do + :"aws.dynamodb.provisioned_read_capacity" + end + + @doc """ + The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [1.0, 2.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_provisionedwritecapacity() + :"aws.dynamodb.provisioned_write_capacity" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_PROVISIONEDWRITECAPACITY. + 'aws.dynamodb.provisioned_write_capacity' + ``` + + + """ + @spec aws_dynamodb_provisionedwritecapacity :: :"aws.dynamodb.provisioned_write_capacity" + def aws_dynamodb_provisionedwritecapacity do + :"aws.dynamodb.provisioned_write_capacity" + end + + @doc """ + The value of the `ScanIndexForward` request parameter. + ### Value type + + Value must be of type `boolean()`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_scanforward() + :"aws.dynamodb.scan_forward" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_SCANFORWARD. + 'aws.dynamodb.scan_forward' + ``` + + + """ + @spec aws_dynamodb_scanforward :: :"aws.dynamodb.scan_forward" + def aws_dynamodb_scanforward do + :"aws.dynamodb.scan_forward" + end + + @doc """ + The value of the `ScannedCount` response parameter. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [50] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_scannedcount() + :"aws.dynamodb.scanned_count" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_SCANNEDCOUNT. + 'aws.dynamodb.scanned_count' + ``` + + + """ + @spec aws_dynamodb_scannedcount :: :"aws.dynamodb.scanned_count" + def aws_dynamodb_scannedcount do + :"aws.dynamodb.scanned_count" + end + + @doc """ + The value of the `Segment` request parameter. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [10] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_segment() + :"aws.dynamodb.segment" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_SEGMENT. + 'aws.dynamodb.segment' + ``` + + + """ + @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" + def aws_dynamodb_segment do + :"aws.dynamodb.segment" + end + + @doc """ + The value of the `Select` request parameter. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["ALL_ATTRIBUTES", "COUNT"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_select() + :"aws.dynamodb.select" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_SELECT. + 'aws.dynamodb.select' + ``` + + + """ + @spec aws_dynamodb_select :: :"aws.dynamodb.select" + def aws_dynamodb_select do + :"aws.dynamodb.select" + end + + @doc """ + The number of items in the `TableNames` response parameter. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [20] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_tablecount() + :"aws.dynamodb.table_count" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_TABLECOUNT. + 'aws.dynamodb.table_count' + ``` + + + """ + @spec aws_dynamodb_tablecount :: :"aws.dynamodb.table_count" + def aws_dynamodb_tablecount do + :"aws.dynamodb.table_count" + end + + @doc """ + The keys in the `RequestItems` object field. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["Users", "Cats"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_tablenames() + :"aws.dynamodb.table_names" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_TABLENAMES. + 'aws.dynamodb.table_names' + ``` + + + """ + @spec aws_dynamodb_tablenames :: :"aws.dynamodb.table_names" + def aws_dynamodb_tablenames do + :"aws.dynamodb.table_names" + end + + @doc """ + The value of the `TotalSegments` request parameter. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [100] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_totalsegments() + :"aws.dynamodb.total_segments" + + ### Erlang + + ```erlang + ?AWS_DYNAMODB_TOTALSEGMENTS. + 'aws.dynamodb.total_segments' + ``` + + + """ + @spec aws_dynamodb_totalsegments :: :"aws.dynamodb.total_segments" + def aws_dynamodb_totalsegments do + :"aws.dynamodb.total_segments" + end + + @doc """ + The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_cluster_arn() + :"aws.ecs.cluster.arn" + + ### Erlang + + ```erlang + ?AWS_ECS_CLUSTER_ARN. + 'aws.ecs.cluster.arn' + ``` + + + """ + @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" + def aws_ecs_cluster_arn do + :"aws.ecs.cluster.arn" + end + + @doc """ + The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_container_arn() + :"aws.ecs.container.arn" + + ### Erlang + + ```erlang + ?AWS_ECS_CONTAINER_ARN. + 'aws.ecs.container.arn' + ``` + + + """ + @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" + def aws_ecs_container_arn do + :"aws.ecs.container.arn" + end + + @typedoc """ + The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + + + ### Enum Values + * `:ec2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:fargate` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type aws_ecs_launchtype() :: %{ + :ec2 => :ec2, + :fargate => :fargate + } + @doc """ + The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype().ec2 + :ec2 + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'aws_ecs_launchtype.ec2'. + ec2 + + ?aws_ecs_launchtype.(custom_value). + custom_value + ``` + + + """ + @spec aws_ecs_launchtype() :: aws_ecs_launchtype() + def aws_ecs_launchtype() do + %{ + :ec2 => :ec2, + :fargate => :fargate + } + end + + @spec aws_ecs_launchtype(atom() | String.t()) :: atom() | String.t() + def aws_ecs_launchtype(custom_value) do + custom_value + end + + @doc """ + The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b", "arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_task_arn() + :"aws.ecs.task.arn" + + ### Erlang + + ```erlang + ?AWS_ECS_TASK_ARN. + 'aws.ecs.task.arn' + ``` + + + """ + @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" + def aws_ecs_task_arn do + :"aws.ecs.task.arn" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-family"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_task_family() + :"aws.ecs.task.family" + + ### Erlang + + ```erlang + ?AWS_ECS_TASK_FAMILY. + 'aws.ecs.task.family' + ``` + + + """ + @spec aws_ecs_task_family :: :"aws.ecs.task.family" + def aws_ecs_task_family do + :"aws.ecs.task.family" + end + + @doc """ + The ID of a running ECS task. The ID **MUST** be extracted from `task.arn`. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["10838bed-421f-43ef-870a-f43feacbbb5b", "23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_task_id() + :"aws.ecs.task.id" + + ### Erlang + + ```erlang + ?AWS_ECS_TASK_ID. + 'aws.ecs.task.id' + ``` + + + """ + @spec aws_ecs_task_id :: :"aws.ecs.task.id" + def aws_ecs_task_id do + :"aws.ecs.task.id" + end + + @doc """ + The revision for the task definition used to create the ECS task. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["8", "26"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_task_revision() + :"aws.ecs.task.revision" + + ### Erlang + + ```erlang + ?AWS_ECS_TASK_REVISION. + 'aws.ecs.task.revision' + ``` + + + """ + @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" + def aws_ecs_task_revision do + :"aws.ecs.task.revision" + end + + @doc """ + The ARN of an EKS cluster. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_eks_cluster_arn() + :"aws.eks.cluster.arn" + + ### Erlang + + ```erlang + ?AWS_EKS_CLUSTER_ARN. + 'aws.eks.cluster.arn' + ``` + + + """ + @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" + def aws_eks_cluster_arn do + :"aws.eks.cluster.arn" + end + + @doc """ + 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). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + This may be different from `cloud.resource_id` if an alias is involved. + ### Examples + + ``` + ["arn:aws:lambda:us-east-1:123456:function:myfunction:myalias"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_lambda_invokedarn() + :"aws.lambda.invoked_arn" + + ### Erlang + + ```erlang + ?AWS_LAMBDA_INVOKEDARN. + 'aws.lambda.invoked_arn' + ``` + + + """ + @spec aws_lambda_invokedarn :: :"aws.lambda.invoked_arn" + def aws_lambda_invokedarn do + :"aws.lambda.invoked_arn" + end + + @doc """ + The Amazon Resource Name(s) (ARN) of the AWS log group(s). + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Notes + + See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). + + ### Examples + + ``` + ["arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_log_group_arns() + :"aws.log.group.arns" + + ### Erlang + + ```erlang + ?AWS_LOG_GROUP_ARNS. + 'aws.log.group.arns' + ``` + + + """ + @spec aws_log_group_arns :: :"aws.log.group.arns" + def aws_log_group_arns do + :"aws.log.group.arns" + end + + @doc """ + The name(s) of the AWS log group(s) an application is writing to. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Notes + + 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. + + ### Examples + + ``` + ["/aws/lambda/my-function", "opentelemetry-service"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_log_group_names() + :"aws.log.group.names" + + ### Erlang + + ```erlang + ?AWS_LOG_GROUP_NAMES. + 'aws.log.group.names' + ``` + + + """ + @spec aws_log_group_names :: :"aws.log.group.names" + def aws_log_group_names do + :"aws.log.group.names" + end + + @doc """ + The ARN(s) of the AWS log stream(s). + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Notes + + 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. + + ### Examples + + ``` + ["arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_log_stream_arns() + :"aws.log.stream.arns" + + ### Erlang + + ```erlang + ?AWS_LOG_STREAM_ARNS. + 'aws.log.stream.arns' + ``` + + + """ + @spec aws_log_stream_arns :: :"aws.log.stream.arns" + def aws_log_stream_arns do + :"aws.log.stream.arns" + end + + @doc """ + The name(s) of the AWS log stream(s) an application is writing to. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_log_stream_names() + :"aws.log.stream.names" + + ### Erlang + + ```erlang + ?AWS_LOG_STREAM_NAMES. + 'aws.log.stream.names' + ``` + + + """ + @spec aws_log_stream_names :: :"aws.log.stream.names" + def aws_log_stream_names do + :"aws.log.stream.names" + end + + @doc """ + The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["79b9da39-b7ae-508a-a6bc-864b2829c622", "C9ER4AJX75574TDJ"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_requestid() + :"aws.request_id" + + ### Erlang + + ```erlang + ?AWS_REQUESTID. + 'aws.request_id' + ``` + + + """ + @spec aws_requestid :: :"aws.request_id" + def aws_requestid do + :"aws.request_id" + end + + @doc """ + 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. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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`. + + ### Examples + + ``` + ["some-bucket-name"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_bucket() + :"aws.s3.bucket" + + ### Erlang + + ```erlang + ?AWS_S_3_BUCKET. + 'aws.s3.bucket' + ``` + + + """ + @spec aws_s_3_bucket :: :"aws.s3.bucket" + def aws_s_3_bucket do + :"aws.s3.bucket" + end + + @doc """ + The source object (in the form `bucket`/`key`) for the copy operation. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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) + + ### Examples + + ``` + ["someFile.yml"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_copysource() + :"aws.s3.copy_source" + + ### Erlang + + ```erlang + ?AWS_S_3_COPYSOURCE. + 'aws.s3.copy_source' + ``` + + + """ + @spec aws_s_3_copysource :: :"aws.s3.copy_source" + def aws_s_3_copysource do + :"aws.s3.copy_source" + end + + @doc """ + The delete request container that specifies the objects to be deleted. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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). + + ### Examples + + ``` + ["Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_delete() + :"aws.s3.delete" + + ### Erlang + + ```erlang + ?AWS_S_3_DELETE. + 'aws.s3.delete' + ``` + + + """ + @spec aws_s_3_delete :: :"aws.s3.delete" + def aws_s_3_delete do + :"aws.s3.delete" + end + + @doc """ + 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. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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) + + ### Examples + + ``` + ["someFile.yml"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_key() + :"aws.s3.key" + + ### Erlang + + ```erlang + ?AWS_S_3_KEY. + 'aws.s3.key' + ``` + + + """ + @spec aws_s_3_key :: :"aws.s3.key" + def aws_s_3_key do + :"aws.s3.key" + end + + @doc """ + The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. + ### Value type + + Value must be of type `integer()`. + ### Notes + + 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). + + ### Examples + + ``` + [3456] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_partnumber() + :"aws.s3.part_number" + + ### Erlang + + ```erlang + ?AWS_S_3_PARTNUMBER. + 'aws.s3.part_number' + ``` + + + """ + @spec aws_s_3_partnumber :: :"aws.s3.part_number" + def aws_s_3_partnumber do + :"aws.s3.part_number" + end + + @doc """ + Upload ID that identifies the multipart upload. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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) + + ### Examples + + ``` + ["dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_uploadid() + :"aws.s3.upload_id" + + ### Erlang + + ```erlang + ?AWS_S_3_UPLOADID. + 'aws.s3.upload_id' + ``` + + + """ + @spec aws_s_3_uploadid :: :"aws.s3.upload_id" + def aws_s_3_uploadid do + :"aws.s3.upload_id" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex similarity index 61% rename from apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex index 0c5fdcaa..63b85baf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/browser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.BrowserAttributes do +defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Browser attributes. @@ -6,14 +6,34 @@ defmodule OpenTelemetry.SemanticConventions.BrowserAttributes do @doc """ Array of brand name and version separated by a space + ### Value type + + Value must be of type `[atom() | String.t()]`. ### Notes This value is intended to be taken from the [UA client hints API](https://wicg.github.io/ua-client-hints/#interface) (`navigator.userAgentData.brands`). + ### Examples + + ``` + [" Not A;Brand 99", "Chromium 99", "Chrome 99"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_brands() + iex> OpenTelemetry.SemConv.Incubating.BrowserAttributes.browser_brands() :"browser.brands" + + ### Erlang + + ```erlang + ?BROWSER_BRANDS. + 'browser.brands' + ``` + + """ @spec browser_brands :: :"browser.brands" def browser_brands do @@ -22,14 +42,34 @@ defmodule OpenTelemetry.SemanticConventions.BrowserAttributes do @doc """ Preferred language of the user using the browser + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes This value is intended to be taken from the Navigator API `navigator.language`. + ### Examples + + ``` + ["en", "en-US", "fr", "fr-FR"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_language() + iex> OpenTelemetry.SemConv.Incubating.BrowserAttributes.browser_language() :"browser.language" + + ### Erlang + + ```erlang + ?BROWSER_LANGUAGE. + 'browser.language' + ``` + + """ @spec browser_language :: :"browser.language" def browser_language do @@ -38,14 +78,29 @@ defmodule OpenTelemetry.SemanticConventions.BrowserAttributes do @doc """ A boolean that is true if the browser is running on a mobile device + ### Value type + + Value must be of type `boolean()`. ### Notes 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 - iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_mobile() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.BrowserAttributes.browser_mobile() :"browser.mobile" + + ### Erlang + + ```erlang + ?BROWSER_MOBILE. + 'browser.mobile' + ``` + + """ @spec browser_mobile :: :"browser.mobile" def browser_mobile do @@ -54,15 +109,35 @@ defmodule OpenTelemetry.SemanticConventions.BrowserAttributes do @doc """ The platform on which the browser is running + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes 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. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.BrowserAttributes.browser_platform() + ``` + ["Windows", "macOS", "Android"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.BrowserAttributes.browser_platform() :"browser.platform" + + ### Erlang + + ```erlang + ?BROWSER_PLATFORM. + 'browser.platform' + ``` + + """ @spec browser_platform :: :"browser.platform" def browser_platform do diff --git a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex similarity index 55% rename from apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index b3265398..e7eb1c66 100644 --- a/apps/opentelemetry_semantic_conventions/lib/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.CloudAttributes do +defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Cloud attributes. @@ -7,11 +7,30 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do @doc """ The cloud account ID the resource is assigned to. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_account_id() + ``` + ["111111111111", "opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_account_id() :"cloud.account.id" + + ### Erlang + + ```erlang + ?CLOUD_ACCOUNT_ID. + 'cloud.account.id' + ``` + + """ @spec cloud_account_id :: :"cloud.account.id" def cloud_account_id do @@ -21,14 +40,34 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do @doc """ Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + ### Examples + + ``` + ["us-east-1c"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_availabilityzone() + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_availabilityzone() :"cloud.availability_zone" + + ### Erlang + + ```erlang + ?CLOUD_AVAILABILITYZONE. + 'cloud.availability_zone' + ``` + + """ @spec cloud_availabilityzone :: :"cloud.availability_zone" def cloud_availabilityzone do @@ -40,34 +79,34 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do ### Enum Values - * `:alibaba_cloud_ecs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud Elastic Compute Service - * `:alibaba_cloud_fc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud Function Compute - * `:alibaba_cloud_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on Alibaba Cloud - * `:aws_ec2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Compute Cloud - * `:aws_ecs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Container Service - * `:aws_eks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Kubernetes Service - * `:aws_lambda` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Lambda - * `:aws_elastic_beanstalk` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS Elastic Beanstalk - * `:aws_app_runner` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AWS App Runner - * `:aws_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on AWS (ROSA) - * `:azure_vm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Virtual Machines - * `:azure_container_apps` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Container Apps - * `:azure_container_instances` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Container Instances - * `:azure_aks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Kubernetes Service - * `:azure_functions` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Functions - * `:azure_app_service` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure App Service - * `:azure_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Red Hat OpenShift - * `:gcp_bare_metal_solution` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Bare Metal Solution (BMS) - * `:gcp_compute_engine` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Compute Engine (GCE) - * `:gcp_cloud_run` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Run - * `:gcp_kubernetes_engine` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Kubernetes Engine (GKE) - * `:gcp_cloud_functions` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Functions (GCF) - * `:gcp_app_engine` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud App Engine (GAE) - * `:gcp_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on Google Cloud - * `:ibm_cloud_openshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Red Hat OpenShift on IBM Cloud - * `:tencent_cloud_cvm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Cloud Virtual Machine (CVM) - * `:tencent_cloud_eks` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Elastic Kubernetes Service (EKS) - * `:tencent_cloud_scf` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud Serverless Cloud Function (SCF) + * `:alibaba_cloud_ecs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Alibaba Cloud Elastic Compute Service + * `:alibaba_cloud_fc` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Alibaba Cloud Function Compute + * `:alibaba_cloud_openshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Red Hat OpenShift on Alibaba Cloud + * `:aws_ec2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AWS Elastic Compute Cloud + * `:aws_ecs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AWS Elastic Container Service + * `:aws_eks` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AWS Elastic Kubernetes Service + * `:aws_lambda` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AWS Lambda + * `:aws_elastic_beanstalk` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AWS Elastic Beanstalk + * `:aws_app_runner` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AWS App Runner + * `:aws_openshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Red Hat OpenShift on AWS (ROSA) + * `:azure_vm` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Virtual Machines + * `:azure_container_apps` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Container Apps + * `:azure_container_instances` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Container Instances + * `:azure_aks` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Kubernetes Service + * `:azure_functions` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Functions + * `:azure_app_service` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure App Service + * `:azure_openshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Red Hat OpenShift + * `:gcp_bare_metal_solution` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Bare Metal Solution (BMS) + * `:gcp_compute_engine` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Compute Engine (GCE) + * `:gcp_cloud_run` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Run + * `:gcp_kubernetes_engine` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Kubernetes Engine (GKE) + * `:gcp_cloud_functions` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Functions (GCF) + * `:gcp_app_engine` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud App Engine (GAE) + * `:gcp_openshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Red Hat OpenShift on Google Cloud + * `:ibm_cloud_openshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Red Hat OpenShift on IBM Cloud + * `:tencent_cloud_cvm` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud Cloud Virtual Machine (CVM) + * `:tencent_cloud_eks` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud Elastic Kubernetes Service (EKS) + * `:tencent_cloud_scf` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud Serverless Cloud Function (SCF) """ @type cloud_platform() :: %{ :alibaba_cloud_ecs => :alibaba_cloud_ecs, @@ -102,17 +141,33 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do @doc """ The cloud platform in use. + ### Notes The prefix of the service **SHOULD** match the one specified in `cloud.provider`. - ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform().alibaba_cloud_ecs + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform().alibaba_cloud_ecs :alibaba_cloud_ecs - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_platform(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'cloud_platform.alibaba_cloud_ecs'. + alibaba_cloud_ecs + + ?cloud_platform.(custom_value). + custom_value + ``` + + """ @spec cloud_platform() :: cloud_platform() def cloud_platform() do @@ -158,13 +213,13 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do ### Enum Values - * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud - * `:aws` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services - * `:azure` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure - * `:gcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform - * `:heroku` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Heroku Platform as a Service - * `:ibm_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Cloud - * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud + * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Alibaba Cloud + * `:aws` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon Web Services + * `:azure` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft Azure + * `:gcp` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Platform + * `:heroku` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Heroku Platform as a Service + * `:ibm_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM Cloud + * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud """ @type cloud_provider() :: %{ :alibaba_cloud => :alibaba_cloud, @@ -180,12 +235,27 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider().alibaba_cloud + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider().alibaba_cloud :alibaba_cloud - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_provider(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'cloud_provider.alibaba_cloud'. + alibaba_cloud + + ?cloud_provider.(custom_value). + custom_value + ``` + + """ @spec cloud_provider() :: cloud_provider() def cloud_provider() do @@ -208,14 +278,34 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do @doc """ The geographical region the resource is running. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes 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). + ### Examples + + ``` + ["us-central1", "us-east-1"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_region() + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_region() :"cloud.region" + + ### Erlang + + ```erlang + ?CLOUD_REGION. + 'cloud.region' + ``` + + """ @spec cloud_region :: :"cloud.region" def cloud_region do @@ -225,6 +315,9 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do @doc """ 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes On some cloud providers, it may not be possible to determine the full ID at startup, @@ -245,10 +338,27 @@ defmodule OpenTelemetry.SemanticConventions.CloudAttributes do This means that a span attribute **MUST** be used, as an Azure function app can host multiple functions that would usually share a TracerProvider. + ### Examples + + ``` + ["arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function", "//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID", "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//functions/"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.CloudAttributes.cloud_resourceid() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_resourceid() :"cloud.resource_id" + + ### Erlang + + ```erlang + ?CLOUD_RESOURCEID. + 'cloud.resource_id' + ``` + + """ @spec cloud_resourceid :: :"cloud.resource_id" def cloud_resourceid do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex new file mode 100644 index 00000000..0481e7e4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex @@ -0,0 +1,171 @@ +defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Cloudevents attributes. + """ + + @doc """ + The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["123e4567-e89b-12d3-a456-426614174000", "0001"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventid() + :"cloudevents.event_id" + + ### Erlang + + ```erlang + ?CLOUDEVENTS_EVENTID. + 'cloudevents.event_id' + ``` + + + """ + @spec cloudevents_eventid :: :"cloudevents.event_id" + def cloudevents_eventid do + :"cloudevents.event_id" + end + + @doc """ + The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["https://github.com/cloudevents", "/cloudevents/spec/pull/123", "my-service"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventsource() + :"cloudevents.event_source" + + ### Erlang + + ```erlang + ?CLOUDEVENTS_EVENTSOURCE. + 'cloudevents.event_source' + ``` + + + """ + @spec cloudevents_eventsource :: :"cloudevents.event_source" + def cloudevents_eventsource do + :"cloudevents.event_source" + end + + @doc """ + The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 1.0 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventspecversion() + :"cloudevents.event_spec_version" + + ### Erlang + + ```erlang + ?CLOUDEVENTS_EVENTSPECVERSION. + 'cloudevents.event_spec_version' + ``` + + + """ + @spec cloudevents_eventspecversion :: :"cloudevents.event_spec_version" + def cloudevents_eventspecversion do + :"cloudevents.event_spec_version" + end + + @doc """ + 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). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + mynewfile.jpg + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventsubject() + :"cloudevents.event_subject" + + ### Erlang + + ```erlang + ?CLOUDEVENTS_EVENTSUBJECT. + 'cloudevents.event_subject' + ``` + + + """ + @spec cloudevents_eventsubject :: :"cloudevents.event_subject" + def cloudevents_eventsubject do + :"cloudevents.event_subject" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["com.github.pull_request.opened", "com.example.object.deleted.v2"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventtype() + :"cloudevents.event_type" + + ### Erlang + + ```erlang + ?CLOUDEVENTS_EVENTTYPE. + 'cloudevents.event_type' + ``` + + + """ + @spec cloudevents_eventtype :: :"cloudevents.event_type" + def cloudevents_eventtype do + :"cloudevents.event_type" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex new file mode 100644 index 00000000..154e989a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex @@ -0,0 +1,204 @@ +defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Code attributes. + """ + + @doc """ + The column number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function`. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 16 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CodeAttributes.code_column() + :"code.column" + + ### Erlang + + ```erlang + ?CODE_COLUMN. + 'code.column' + ``` + + + """ + @spec code_column :: :"code.column" + def code_column do + :"code.column" + end + + @doc """ + The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + /usr/local/MyApplication/content_root/app/index.php + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CodeAttributes.code_filepath() + :"code.filepath" + + ### Erlang + + ```erlang + ?CODE_FILEPATH. + 'code.filepath' + ``` + + + """ + @spec code_filepath :: :"code.filepath" + def code_filepath do + :"code.filepath" + end + + @doc """ + The method or function name, or equivalent (usually rightmost part of the code unit's name). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + serveRequest + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CodeAttributes.code_function() + :"code.function" + + ### Erlang + + ```erlang + ?CODE_FUNCTION. + 'code.function' + ``` + + + """ + @spec code_function :: :"code.function" + def code_function do + :"code.function" + end + + @doc """ + The line number in `code.filepath` best representing the operation. It **SHOULD** point within the code unit named in `code.function`. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 42 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CodeAttributes.code_lineno() + :"code.lineno" + + ### Erlang + + ```erlang + ?CODE_LINENO. + 'code.lineno' + ``` + + + """ + @spec code_lineno :: :"code.lineno" + def code_lineno do + :"code.lineno" + end + + @doc """ + The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + com.example.MyHttpService + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CodeAttributes.code_namespace() + :"code.namespace" + + ### Erlang + + ```erlang + ?CODE_NAMESPACE. + 'code.namespace' + ``` + + + """ + @spec code_namespace :: :"code.namespace" + def code_namespace do + :"code.namespace" + end + + @doc """ + A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5) + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CodeAttributes.code_stacktrace() + :"code.stacktrace" + + ### Erlang + + ```erlang + ?CODE_STACKTRACE. + 'code.stacktrace' + ``` + + + """ + @spec code_stacktrace :: :"code.stacktrace" + def code_stacktrace do + :"code.stacktrace" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex new file mode 100644 index 00000000..7c0c9ff4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -0,0 +1,449 @@ +defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Container attributes. + """ + + @doc """ + The command used to run the container (i.e. the command name). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage. + + ### Examples + + ``` + ["otelcontribcol"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_command() + :"container.command" + + ### Erlang + + ```erlang + ?CONTAINER_COMMAND. + 'container.command' + ``` + + + """ + @spec container_command :: :"container.command" + def container_command do + :"container.command" + end + + @doc """ + All the command arguments (including the command/executable itself) run by the container. [2] + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["otelcontribcol, --config, config.yaml"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_commandargs() + :"container.command_args" + + ### Erlang + + ```erlang + ?CONTAINER_COMMANDARGS. + 'container.command_args' + ``` + + + """ + @spec container_commandargs :: :"container.command_args" + def container_commandargs do + :"container.command_args" + end + + @doc """ + The full command run by the container as a single string representing the full command. [2] + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["otelcontribcol --config config.yaml"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_commandline() + :"container.command_line" + + ### Erlang + + ```erlang + ?CONTAINER_COMMANDLINE. + 'container.command_line' + ``` + + + """ + @spec container_commandline :: :"container.command_line" + def container_commandline do + :"container.command_line" + end + + @typedoc """ + The CPU state for this data point. + + ### Enum Values + * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). + * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When CPU is used by the system (host OS) + * `:kernel` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). + """ + @type container_cpu_state() :: %{ + :user => :user, + :system => :system, + :kernel => :kernel + } + @doc """ + The CPU state for this data point. + + ### Examples + + ``` + ["user", "kernel"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state().user + :user + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'container_cpu_state.user'. + user + + ?container_cpu_state.(custom_value). + custom_value + ``` + + + """ + @spec container_cpu_state() :: container_cpu_state() + def container_cpu_state() do + %{ + :user => :user, + :system => :system, + :kernel => :kernel + } + end + + @spec container_cpu_state(atom() | String.t()) :: atom() | String.t() + def container_cpu_state(custom_value) do + custom_value + end + + @doc """ + Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["a3bf90e006b2"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_id() + :"container.id" + + ### Erlang + + ```erlang + ?CONTAINER_ID. + 'container.id' + ``` + + + """ + @spec container_id :: :"container.id" + def container_id do + :"container.id" + end + + @doc """ + Runtime specific image identifier. Usually a hash algorithm followed by a UUID. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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. + + ### Examples + + ``` + ["sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_image_id() + :"container.image.id" + + ### Erlang + + ```erlang + ?CONTAINER_IMAGE_ID. + 'container.image.id' + ``` + + + """ + @spec container_image_id :: :"container.image.id" + def container_image_id do + :"container.image.id" + end + + @doc """ + Name of the image the container was built on. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["gcr.io/opentelemetry/operator"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_image_name() + :"container.image.name" + + ### Erlang + + ```erlang + ?CONTAINER_IMAGE_NAME. + 'container.image.name' + ``` + + + """ + @spec container_image_name :: :"container.image.name" + def container_image_name do + :"container.image.name" + end + + @doc """ + Repo digests of the container image as provided by the container runtime. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Notes + + [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. + + ### Examples + + ``` + ["example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb", "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_image_repodigests() + :"container.image.repo_digests" + + ### Erlang + + ```erlang + ?CONTAINER_IMAGE_REPODIGESTS. + 'container.image.repo_digests' + ``` + + + """ + @spec container_image_repodigests :: :"container.image.repo_digests" + def container_image_repodigests do + :"container.image.repo_digests" + end + + @doc """ + 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:`. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["v1.27.1", "3.5.7-0"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_image_tags() + :"container.image.tags" + + ### Erlang + + ```erlang + ?CONTAINER_IMAGE_TAGS. + 'container.image.tags' + ``` + + + """ + @spec container_image_tags :: :"container.image.tags" + def container_image_tags do + :"container.image.tags" + end + + @doc """ + Container labels, `` being the label name, the value being the label value. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["container.label.app=nginx"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_label() + :"container.label" + + ### Erlang + + ```erlang + ?CONTAINER_LABEL. + 'container.label' + ``` + + + """ + @spec container_label :: :"container.label" + def container_label do + :"container.label" + end + + @deprecated """ + Replaced by `container.label`. + """ + @spec container_labels :: :"container.labels" + def container_labels do + :"container.labels" + end + + @doc """ + Container name used by container runtime. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-autoconf"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_name() + :"container.name" + + ### Erlang + + ```erlang + ?CONTAINER_NAME. + 'container.name' + ``` + + + """ + @spec container_name :: :"container.name" + def container_name do + :"container.name" + end + + @doc """ + The container runtime managing this container. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["docker", "containerd", "rkt"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_runtime() + :"container.runtime" + + ### Erlang + + ```erlang + ?CONTAINER_RUNTIME. + 'container.runtime' + ``` + + + """ + @spec container_runtime :: :"container.runtime" + def container_runtime do + :"container.runtime" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex similarity index 54% rename from apps/opentelemetry_semantic_conventions/lib/db_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index 88feebb2..2b39d0ac 100644 --- a/apps/opentelemetry_semantic_conventions/lib/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -1,7 +1,7 @@ -defmodule OpenTelemetry.SemanticConventions.DbAttributes do +defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Db attributes. + OpenTelemetry Semantic Conventions for DB attributes. """ @typedoc """ @@ -9,17 +9,17 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do ### Enum Values - * `:all` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:each_quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:local_quorum` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:one` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:two` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:three` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:local_one` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:any` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:serial` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:local_serial` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:all` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:each_quorum` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:quorum` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:local_quorum` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:one` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:two` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:three` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:local_one` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:any` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:serial` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:local_serial` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type db_cassandra_consistencylevel() :: %{ :all => :all, @@ -39,12 +39,27 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel().all + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel().all :all - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_consistencylevel(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'db_cassandra_consistencylevel.all'. + all + + ?db_cassandra_consistencylevel.(custom_value). + custom_value + ``` + + """ @spec db_cassandra_consistencylevel() :: db_cassandra_consistencylevel() def db_cassandra_consistencylevel() do @@ -71,11 +86,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The data center of the coordinating node for a query. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + us-west-2 + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_coordinator_dc() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_coordinator_dc() :"db.cassandra.coordinator.dc" + + ### Erlang + + ```erlang + ?DB_CASSANDRA_COORDINATOR_DC. + 'db.cassandra.coordinator.dc' + ``` + + """ @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" def db_cassandra_coordinator_dc do @@ -85,11 +119,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The ID of the coordinating node for a query. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + be13faa2-8574-4d71-926d-27f16cf8a7af + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_coordinator_id() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_coordinator_id() :"db.cassandra.coordinator.id" + + ### Erlang + + ```erlang + ?DB_CASSANDRA_COORDINATOR_ID. + 'db.cassandra.coordinator.id' + ``` + + """ @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" def db_cassandra_coordinator_id do @@ -99,11 +152,25 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Whether or not the query is idempotent. + ### Value type + + Value must be of type `boolean()`. + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_idempotence() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_idempotence() :"db.cassandra.idempotence" + + ### Erlang + + ```erlang + ?DB_CASSANDRA_IDEMPOTENCE. + 'db.cassandra.idempotence' + ``` + + """ @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" def db_cassandra_idempotence do @@ -113,11 +180,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The fetch size used for paging, i.e. how many rows will be returned at once. + ### Value type + + Value must be of type `integer()`. + ### Examples + ``` + [5000] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_pagesize() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_pagesize() :"db.cassandra.page_size" + + ### Erlang + + ```erlang + ?DB_CASSANDRA_PAGESIZE. + 'db.cassandra.page_size' + ``` + + """ @spec db_cassandra_pagesize :: :"db.cassandra.page_size" def db_cassandra_pagesize do @@ -127,11 +213,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cassandra_speculativeexecutioncount() + ``` + [0, 2] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_speculativeexecutioncount() :"db.cassandra.speculative_execution_count" + + ### Erlang + + ```erlang + ?DB_CASSANDRA_SPECULATIVEEXECUTIONCOUNT. + 'db.cassandra.speculative_execution_count' + ``` + + """ @spec db_cassandra_speculativeexecutioncount :: :"db.cassandra.speculative_execution_count" def db_cassandra_speculativeexecutioncount do @@ -149,11 +254,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["myDataSource"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_pool_name() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_pool_name() :"db.client.connections.pool.name" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTIONS_POOL_NAME. + 'db.client.connections.pool.name' + ``` + + """ @spec db_client_connections_pool_name :: :"db.client.connections.pool.name" def db_client_connections_pool_name do @@ -164,8 +288,8 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do The state of a connection in the pool ### Enum Values - * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type db_client_connections_state() :: %{ :idle => :idle, @@ -174,13 +298,33 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The state of a connection in the pool + ### Examples + + ``` + ["idle"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state().idle + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state().idle :idle - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_client_connections_state(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'db_client_connections_state.idle'. + idle + + ?db_client_connections_state.(custom_value). + custom_value + ``` + + """ @spec db_client_connections_state() :: db_client_connections_state() def db_client_connections_state() do @@ -197,15 +341,35 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The name of a collection (table, container) within the database. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes If the collection name is parsed from the query, it **SHOULD** match the value provided in the query and may be qualified with the schema and database name. It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + ### Examples + + ``` + ["public.users", "customers"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_collection_name() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_collection_name() :"db.collection.name" + + ### Erlang + + ```erlang + ?DB_COLLECTION_NAME. + 'db.collection.name' + ``` + + """ @spec db_collection_name :: :"db.collection.name" def db_collection_name do @@ -223,11 +387,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Unique Cosmos client instance id. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 3ba4827d-4422-483f-b59f-85b74211c11d + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_clientid() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_clientid() :"db.cosmosdb.client_id" + + ### Erlang + + ```erlang + ?DB_COSMOSDB_CLIENTID. + 'db.cosmosdb.client_id' + ``` + + """ @spec db_cosmosdb_clientid :: :"db.cosmosdb.client_id" def db_cosmosdb_clientid do @@ -238,8 +421,8 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do Cosmos client connection mode. ### Enum Values - * `:gateway` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Gateway (HTTP) connections mode - * `:direct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Direct connection. + * `:gateway` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Gateway (HTTP) connections mode + * `:direct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Direct connection. """ @type db_cosmosdb_connectionmode() :: %{ :gateway => :gateway, @@ -249,12 +432,27 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do Cosmos client connection mode. - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode().gateway + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode().gateway :gateway - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_connectionmode(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'db_cosmosdb_connectionmode.gateway'. + gateway + + ?db_cosmosdb_connectionmode.(custom_value). + custom_value + ``` + + """ @spec db_cosmosdb_connectionmode() :: db_cosmosdb_connectionmode() def db_cosmosdb_connectionmode() do @@ -281,21 +479,21 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do CosmosDB Operation Type. ### Enum Values - * `:invalid` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:create` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:patch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:read` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:read_feed` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:replace` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:execute` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:query` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:head` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:head_feed` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:upsert` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:batch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:query_plan` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:execute_javascript` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:invalid` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:create` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:patch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:read` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:read_feed` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:delete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:replace` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:execute` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:query` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:head` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:head_feed` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:upsert` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:batch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:query_plan` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:execute_javascript` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type db_cosmosdb_operationtype() :: %{ :invalid => :Invalid, @@ -318,12 +516,27 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do CosmosDB Operation Type. - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype().invalid + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype().invalid :Invalid - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_operationtype(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'db_cosmosdb_operationtype.invalid'. + Invalid + + ?db_cosmosdb_operationtype.(custom_value). + custom_value + ``` + + """ @spec db_cosmosdb_operationtype() :: db_cosmosdb_operationtype() def db_cosmosdb_operationtype() do @@ -353,11 +566,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ RU consumed for that operation + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [46.18, 1.0] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_requestcharge() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_requestcharge() :"db.cosmosdb.request_charge" + + ### Erlang + + ```erlang + ?DB_COSMOSDB_REQUESTCHARGE. + 'db.cosmosdb.request_charge' + ``` + + """ @spec db_cosmosdb_requestcharge :: :"db.cosmosdb.request_charge" def db_cosmosdb_requestcharge do @@ -366,11 +598,25 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Request payload size in bytes + ### Value type + + Value must be of type `integer()`. + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_requestcontentlength() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_requestcontentlength() :"db.cosmosdb.request_content_length" + + ### Erlang + + ```erlang + ?DB_COSMOSDB_REQUESTCONTENTLENGTH. + 'db.cosmosdb.request_content_length' + ``` + + """ @spec db_cosmosdb_requestcontentlength :: :"db.cosmosdb.request_content_length" def db_cosmosdb_requestcontentlength do @@ -379,11 +625,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Cosmos DB status code. + ### Value type + + Value must be of type `integer()`. + ### Examples + ``` + [200, 201] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_statuscode() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_statuscode() :"db.cosmosdb.status_code" + + ### Erlang + + ```erlang + ?DB_COSMOSDB_STATUSCODE. + 'db.cosmosdb.status_code' + ``` + + """ @spec db_cosmosdb_statuscode :: :"db.cosmosdb.status_code" def db_cosmosdb_statuscode do @@ -392,11 +657,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Cosmos DB sub status code. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_cosmosdb_substatuscode() + ``` + [1000, 1002] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_substatuscode() :"db.cosmosdb.sub_status_code" + + ### Erlang + + ```erlang + ?DB_COSMOSDB_SUBSTATUSCODE. + 'db.cosmosdb.sub_status_code' + ``` + + """ @spec db_cosmosdb_substatuscode :: :"db.cosmosdb.sub_status_code" def db_cosmosdb_substatuscode do @@ -406,11 +690,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Represents the identifier of an Elasticsearch cluster. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["e9106fc68e3044f0b1475b04bf4ffd5f"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_elasticsearch_cluster_name() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_elasticsearch_cluster_name() :"db.elasticsearch.cluster.name" + + ### Erlang + + ```erlang + ?DB_ELASTICSEARCH_CLUSTER_NAME. + 'db.elasticsearch.cluster.name' + ``` + + """ @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" def db_elasticsearch_cluster_name do @@ -420,11 +723,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ Represents the human-readable identifier of the node/instance to which a request was routed. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["instance-0000000001"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_elasticsearch_node_name() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_elasticsearch_node_name() :"db.elasticsearch.node.name" + + ### Erlang + + ```erlang + ?DB_ELASTICSEARCH_NODE_NAME. + 'db.elasticsearch.node.name' + ``` + + """ @spec db_elasticsearch_node_name :: :"db.elasticsearch.node.name" def db_elasticsearch_node_name do @@ -434,14 +756,34 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ A dynamic value in the url path. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Many Elasticsearch url paths allow dynamic values. These **SHOULD** be recorded in span attributes in the format `db.elasticsearch.path_parts.`, where `` is the url path part name. The implementation **SHOULD** reference the [elasticsearch schema](https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json) in order to map the path part values to their names. + ### Examples + + ``` + ["db.elasticsearch.path_parts.index=test-index", "db.elasticsearch.path_parts.doc_id=123"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_elasticsearch_pathparts() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_elasticsearch_pathparts() :"db.elasticsearch.path_parts" + + ### Erlang + + ```erlang + ?DB_ELASTICSEARCH_PATHPARTS. + 'db.elasticsearch.path_parts' + ``` + + """ @spec db_elasticsearch_pathparts :: :"db.elasticsearch.path_parts" def db_elasticsearch_pathparts do @@ -491,16 +833,36 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The name of the database, fully qualified within the server address and port. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes If a database system has multiple namespace components, they **SHOULD** be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces **SHOULD** **NOT** be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid. Semantic conventions for individual database systems **SHOULD** document what `db.namespace` means in the context of that system. It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + ### Examples + + ``` + ["customers", "test.users"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_namespace() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_namespace() :"db.namespace" + + ### Erlang + + ```erlang + ?DB_NAMESPACE. + 'db.namespace' + ``` + + """ @spec db_namespace :: :"db.namespace" def db_namespace do @@ -518,14 +880,34 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The name of the operation or command being executed. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + ### Examples + + ``` + ["findAndModify", "HMSET", "SELECT"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_operation_name() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_operation_name() :"db.operation.name" + + ### Erlang + + ```erlang + ?DB_OPERATION_NAME. + 'db.operation.name' + ``` + + """ @spec db_operation_name :: :"db.operation.name" def db_operation_name do @@ -535,15 +917,35 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Query parameters should only be captured when `db.query.text` is parameterized with placeholders. If a parameter has no name and instead is referenced only by index, then `` **SHOULD** be the 0-based index. + ### Examples + + ``` + ["someval", "55"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_query_parameter() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_query_parameter() :"db.query.parameter" + + ### Erlang + + ```erlang + ?DB_QUERY_PARAMETER. + 'db.query.parameter' + ``` + + """ @spec db_query_parameter :: :"db.query.parameter" def db_query_parameter do @@ -553,11 +955,30 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do @doc """ The database query being executed. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_query_text() + ``` + ["SELECT * FROM wuser_table where username = ?", "SET mykey \"WuValue\""] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_query_text() :"db.query.text" + + ### Erlang + + ```erlang + ?DB_QUERY_TEXT. + 'db.query.text' + ``` + + """ @spec db_query_text :: :"db.query.text" def db_query_text do @@ -592,58 +1013,58 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do The database management system (DBMS) product as identified by the client instrumentation. ### Enum Values - * `:other_sql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Some other SQL database. Fallback only. See notes. - * `:mssql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server - * `:mssqlcompact` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft SQL Server Compact - * `:mysql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MySQL - * `:oracle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Oracle Database - * `:db2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM Db2 - * `:postgresql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PostgreSQL - * `:redshift` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Redshift - * `:hive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Hive - * `:cloudscape` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloudscape - * `:hsqldb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HyperSQL DataBase - * `:progress` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Progress Database - * `:maxdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP MaxDB - * `:hanadb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SAP HANA - * `:ingres` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Ingres - * `:firstsql` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FirstSQL - * `:edb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EnterpriseDB - * `:cache` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterSystems Caché - * `:adabas` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Adabas (Adaptable Database System) - * `:firebird` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Firebird - * `:derby` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Derby - * `:filemaker` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FileMaker - * `:informix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Informix - * `:instantdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InstantDB - * `:interbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - InterBase - * `:mariadb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MariaDB - * `:netezza` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Netezza - * `:pervasive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Pervasive PSQL - * `:pointbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PointBase - * `:sqlite` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SQLite - * `:sybase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Sybase - * `:teradata` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Teradata - * `:vertica` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Vertica - * `:h2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - H2 - * `:coldfusion` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ColdFusion IMQ - * `:cassandra` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Cassandra - * `:hbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache HBase - * `:mongodb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - MongoDB - * `:redis` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Redis - * `:couchbase` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Couchbase - * `:couchdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CouchDB - * `:cosmosdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure Cosmos DB - * `:dynamodb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon DynamoDB - * `:neo4j` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Neo4j - * `:geode` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Geode - * `:elasticsearch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Elasticsearch - * `:memcached` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Memcached - * `:cockroachdb` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CockroachDB - * `:opensearch` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenSearch - * `:clickhouse` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ClickHouse - * `:spanner` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Cloud Spanner - * `:trino` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Trino + * `:other_sql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Some other SQL database. Fallback only. See notes. + * `:mssql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft SQL Server + * `:mssqlcompact` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft SQL Server Compact + * `:mysql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MySQL + * `:oracle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Oracle Database + * `:db2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM Db2 + * `:postgresql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - PostgreSQL + * `:redshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon Redshift + * `:hive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Hive + * `:cloudscape` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cloudscape + * `:hsqldb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HyperSQL DataBase + * `:progress` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Progress Database + * `:maxdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SAP MaxDB + * `:hanadb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SAP HANA + * `:ingres` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Ingres + * `:firstsql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FirstSQL + * `:edb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EnterpriseDB + * `:cache` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InterSystems Caché + * `:adabas` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Adabas (Adaptable Database System) + * `:firebird` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Firebird + * `:derby` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Derby + * `:filemaker` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FileMaker + * `:informix` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Informix + * `:instantdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InstantDB + * `:interbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InterBase + * `:mariadb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MariaDB + * `:netezza` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Netezza + * `:pervasive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Pervasive PSQL + * `:pointbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - PointBase + * `:sqlite` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SQLite + * `:sybase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Sybase + * `:teradata` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Teradata + * `:vertica` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Vertica + * `:h2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - H2 + * `:coldfusion` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ColdFusion IMQ + * `:cassandra` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Cassandra + * `:hbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache HBase + * `:mongodb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MongoDB + * `:redis` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Redis + * `:couchbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Couchbase + * `:couchdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CouchDB + * `:cosmosdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft Azure Cosmos DB + * `:dynamodb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon DynamoDB + * `:neo4j` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Neo4j + * `:geode` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Geode + * `:elasticsearch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Elasticsearch + * `:memcached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Memcached + * `:cockroachdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CockroachDB + * `:opensearch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenSearch + * `:clickhouse` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ClickHouse + * `:spanner` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cloud Spanner + * `:trino` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Trino """ @type db_system() :: %{ :other_sql => :other_sql, @@ -701,17 +1122,33 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do } @doc """ The database management system (DBMS) product as identified by the client instrumentation. + ### Notes The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system` is set to `postgresql` based on the instrumentation's best knowledge. - ### Example - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system().other_sql + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().other_sql :other_sql - iex> OpenTelemetry.SemanticConventions.DbAttributes.db_system(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'db_system.other_sql'. + other_sql + + ?db_system.(custom_value). + custom_value + ``` + + """ @spec db_system() :: db_system() def db_system() do @@ -796,8 +1233,8 @@ defmodule OpenTelemetry.SemanticConventions.DbAttributes do Deprecated, use `db.client.connections.state` instead. ### Enum Values - * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type state() :: %{ :idle => :idle, diff --git a/apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex similarity index 67% rename from apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex index eff82505..7b9b9166 100644 --- a/apps/opentelemetry_semantic_conventions/lib/deployment_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.DeploymentAttributes do +defmodule OpenTelemetry.SemConv.Incubating.DeploymentAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Deployment attributes. @@ -7,6 +7,9 @@ defmodule OpenTelemetry.SemanticConventions.DeploymentAttributes do @doc """ Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes `deployment.environment` does not affect the uniqueness constraints defined through @@ -17,10 +20,27 @@ defmodule OpenTelemetry.SemanticConventions.DeploymentAttributes do * `service.name=frontend`, `deployment.environment=production` * `service.name=frontend`, `deployment.environment=staging`. + ### Examples + + ``` + ["staging", "production"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DeploymentAttributes.deployment_environment() + iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_environment() :"deployment.environment" + + ### Erlang + + ```erlang + ?DEPLOYMENT_ENVIRONMENT. + 'deployment.environment' + ``` + + """ @spec deployment_environment :: :"deployment.environment" def deployment_environment do diff --git a/apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex similarity index 52% rename from apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex index 773a1331..79f50f43 100644 --- a/apps/opentelemetry_semantic_conventions/lib/destination_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.DestinationAttributes do +defmodule OpenTelemetry.SemConv.Incubating.DestinationAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Destination attributes. @@ -6,14 +6,34 @@ defmodule OpenTelemetry.SemanticConventions.DestinationAttributes do @doc """ Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes 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. + ### Examples + + ``` + ["destination.example.com", "10.1.2.80", "/tmp/my.sock"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DestinationAttributes.destination_address() + iex> OpenTelemetry.SemConv.Incubating.DestinationAttributes.destination_address() :"destination.address" + + ### Erlang + + ```erlang + ?DESTINATION_ADDRESS. + 'destination.address' + ``` + + """ @spec destination_address :: :"destination.address" def destination_address do @@ -22,11 +42,30 @@ defmodule OpenTelemetry.SemanticConventions.DestinationAttributes do @doc """ Destination port number + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.DestinationAttributes.destination_port() + ``` + [3389, 2888] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DestinationAttributes.destination_port() :"destination.port" + + ### Erlang + + ```erlang + ?DESTINATION_PORT. + 'destination.port' + ``` + + """ @spec destination_port :: :"destination.port" def destination_port do diff --git a/apps/opentelemetry_semantic_conventions/lib/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex similarity index 60% rename from apps/opentelemetry_semantic_conventions/lib/device_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex index 31ceeb42..3e77f70f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/device_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.DeviceAttributes do +defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Device attributes. @@ -7,14 +7,34 @@ defmodule OpenTelemetry.SemanticConventions.DeviceAttributes do @doc """ A unique identifier representing the device + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST** **NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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. + ### Examples + + ``` + ["2ab2916d-a51f-4ac8-80ee-45ac31a28092"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_id() + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_id() :"device.id" + + ### Erlang + + ```erlang + ?DEVICE_ID. + 'device.id' + ``` + + """ @spec device_id :: :"device.id" def device_id do @@ -24,14 +44,34 @@ defmodule OpenTelemetry.SemanticConventions.DeviceAttributes do @doc """ The name of the device manufacturer + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple`. + ### Examples + + ``` + ["Apple", "Samsung"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_manufacturer() + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_manufacturer() :"device.manufacturer" + + ### Erlang + + ```erlang + ?DEVICE_MANUFACTURER. + 'device.manufacturer' + ``` + + """ @spec device_manufacturer :: :"device.manufacturer" def device_manufacturer do @@ -41,14 +81,34 @@ defmodule OpenTelemetry.SemanticConventions.DeviceAttributes do @doc """ The model identifier for the device + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes 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. + ### Examples + + ``` + ["iPhone3,4", "SM-G920F"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_model_identifier() + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_model_identifier() :"device.model.identifier" + + ### Erlang + + ```erlang + ?DEVICE_MODEL_IDENTIFIER. + 'device.model.identifier' + ``` + + """ @spec device_model_identifier :: :"device.model.identifier" def device_model_identifier do @@ -58,14 +118,34 @@ defmodule OpenTelemetry.SemanticConventions.DeviceAttributes do @doc """ The marketing name for the device model + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + ### Examples + + ``` + ["iPhone 6s Plus", "Samsung Galaxy S6"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DeviceAttributes.device_model_name() + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_model_name() :"device.model.name" + + ### Erlang + + ```erlang + ?DEVICE_MODEL_NAME. + 'device.model.name' + ``` + + """ @spec device_model_name :: :"device.model.name" def device_model_name do diff --git a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex similarity index 53% rename from apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex index 528516f0..72806f16 100644 --- a/apps/opentelemetry_semantic_conventions/lib/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.DiskAttributes do +defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Disk attributes. @@ -8,8 +8,8 @@ defmodule OpenTelemetry.SemanticConventions.DiskAttributes do The disk IO operation direction. ### Enum Values - * `:read` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:write` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:read` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:write` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type disk_io_direction() :: %{ :read => :read, @@ -18,13 +18,33 @@ defmodule OpenTelemetry.SemanticConventions.DiskAttributes do @doc """ The disk IO operation direction. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction().read + ``` + ["read"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction().read :read - iex> OpenTelemetry.SemanticConventions.DiskAttributes.disk_io_direction(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'disk_io_direction.read'. + read + + ?disk_io_direction.(custom_value). + custom_value + ``` + + """ @spec disk_io_direction() :: disk_io_direction() def disk_io_direction() do diff --git a/apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex similarity index 53% rename from apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex index fd55aa50..0931ca23 100644 --- a/apps/opentelemetry_semantic_conventions/lib/dns_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex @@ -1,19 +1,39 @@ -defmodule OpenTelemetry.SemanticConventions.DnsAttributes do +defmodule OpenTelemetry.SemConv.Incubating.DNSAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Dns attributes. + OpenTelemetry Semantic Conventions for DNS attributes. """ @doc """ The name being queried. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes 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. + ### Examples + + ``` + ["www.example.com", "opentelemetry.io"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.DnsAttributes.dns_question_name() + iex> OpenTelemetry.SemConv.Incubating.DNSAttributes.dns_question_name() :"dns.question.name" + + ### Erlang + + ```erlang + ?DNS_QUESTION_NAME. + 'dns.question.name' + ``` + + """ @spec dns_question_name :: :"dns.question.name" def dns_question_name do diff --git a/apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex similarity index 54% rename from apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex index d363cff4..519cb767 100644 --- a/apps/opentelemetry_semantic_conventions/lib/enduser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.EnduserAttributes do +defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Enduser attributes. @@ -7,11 +7,30 @@ defmodule OpenTelemetry.SemanticConventions.EnduserAttributes do @doc """ Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.EnduserAttributes.enduser_id() + ``` + username + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.EnduserAttributes.enduser_id() :"enduser.id" + + ### Erlang + + ```erlang + ?ENDUSER_ID. + 'enduser.id' + ``` + + """ @spec enduser_id :: :"enduser.id" def enduser_id do @@ -20,11 +39,30 @@ defmodule OpenTelemetry.SemanticConventions.EnduserAttributes do @doc """ Actual/assumed role the client is making the request under extracted from token or application security context. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + admin + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.EnduserAttributes.enduser_role() + iex> OpenTelemetry.SemConv.Incubating.EnduserAttributes.enduser_role() :"enduser.role" + + ### Erlang + + ```erlang + ?ENDUSER_ROLE. + 'enduser.role' + ``` + + """ @spec enduser_role :: :"enduser.role" def enduser_role do @@ -34,11 +72,30 @@ defmodule OpenTelemetry.SemanticConventions.EnduserAttributes do @doc """ Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + read:message, write:files + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.EnduserAttributes.enduser_scope() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.EnduserAttributes.enduser_scope() :"enduser.scope" + + ### Erlang + + ```erlang + ?ENDUSER_SCOPE. + 'enduser.scope' + ``` + + """ @spec enduser_scope :: :"enduser.scope" def enduser_scope do diff --git a/apps/opentelemetry_semantic_conventions/lib/event_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex similarity index 61% rename from apps/opentelemetry_semantic_conventions/lib/event_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex index 3b49a38f..77309279 100644 --- a/apps/opentelemetry_semantic_conventions/lib/event_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.EventAttributes do +defmodule OpenTelemetry.SemConv.Incubating.EventAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Event attributes. @@ -7,14 +7,34 @@ defmodule OpenTelemetry.SemanticConventions.EventAttributes do @doc """ Identifies the class / type of event. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.33.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes. + ### Examples + + ``` + ["browser.mouse.click", "device.app.lifecycle"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.EventAttributes.event_name() + iex> OpenTelemetry.SemConv.Incubating.EventAttributes.event_name() :"event.name" + + ### Erlang + + ```erlang + ?EVENT_NAME. + 'event.name' + ``` + + """ @spec event_name :: :"event.name" def event_name do diff --git a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex similarity index 53% rename from apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index 49e91e17..a3b596af 100644 --- a/apps/opentelemetry_semantic_conventions/lib/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -1,17 +1,31 @@ -defmodule OpenTelemetry.SemanticConventions.FaasAttributes do +defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Faas attributes. + OpenTelemetry Semantic Conventions for FAAS attributes. """ @doc """ A boolean that is true if the serverless function is executed for the first time (aka cold-start). + ### Value type + Value must be of type `boolean()`. - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_coldstart() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_coldstart() :"faas.coldstart" + + ### Erlang + + ```erlang + ?FAAS_COLDSTART. + 'faas.coldstart' + ``` + + """ @spec faas_coldstart :: :"faas.coldstart" def faas_coldstart do @@ -21,11 +35,30 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 0/5 * * * ? * + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_cron() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_cron() :"faas.cron" + + ### Erlang + + ```erlang + ?FAAS_CRON. + 'faas.cron' + ``` + + """ @spec faas_cron :: :"faas.cron" def faas_cron do @@ -35,11 +68,30 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ 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. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["myBucketName", "myDbName"] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_collection() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_collection() :"faas.document.collection" + + ### Erlang + + ```erlang + ?FAAS_DOCUMENT_COLLECTION. + 'faas.document.collection' + ``` + + """ @spec faas_document_collection :: :"faas.document.collection" def faas_document_collection do @@ -49,11 +101,30 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ 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. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["myFile.txt", "myTableName"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_name() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_name() :"faas.document.name" + + ### Erlang + + ```erlang + ?FAAS_DOCUMENT_NAME. + 'faas.document.name' + ``` + + """ @spec faas_document_name :: :"faas.document.name" def faas_document_name do @@ -64,9 +135,9 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do Describes the type of the operation that was performed on the data. ### Enum Values - * `:insert` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When a new object is created. - * `:edit` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is modified. - * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - When an object is deleted. + * `:insert` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When a new object is created. + * `:edit` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When an object is modified. + * `:delete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When an object is deleted. """ @type faas_document_operation() :: %{ :insert => :insert, @@ -77,12 +148,27 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do Describes the type of the operation that was performed on the data. - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation().insert + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation().insert :insert - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_operation(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'faas_document_operation.insert'. + insert + + ?faas_document_operation.(custom_value). + custom_value + ``` + + """ @spec faas_document_operation() :: faas_document_operation() def faas_document_operation() do @@ -101,11 +187,30 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ 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). + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + 2020-01-23T13:47:06Z + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_document_time() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_time() :"faas.document.time" + + ### Erlang + + ```erlang + ?FAAS_DOCUMENT_TIME. + 'faas.document.time' + ``` + + """ @spec faas_document_time :: :"faas.document.time" def faas_document_time do @@ -115,14 +220,34 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes * **AWS Lambda:** Use the (full) log stream name. + ### Examples + + ``` + ["2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_instance() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_instance() :"faas.instance" + + ### Erlang + + ```erlang + ?FAAS_INSTANCE. + 'faas.instance' + ``` + + """ @spec faas_instance :: :"faas.instance" def faas_instance do @@ -132,11 +257,30 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The invocation ID of the current function invocation. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + af9d5aa4-a685-4c5f-a22b-444f80b3cc28 + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invocationid() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invocationid() :"faas.invocation_id" + + ### Erlang + + ```erlang + ?FAAS_INVOCATIONID. + 'faas.invocation_id' + ``` + + """ @spec faas_invocationid :: :"faas.invocation_id" def faas_invocationid do @@ -146,14 +290,34 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The name of the invoked function. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes SHOULD be equal to the `faas.name` resource attribute of the invoked function. + ### Examples + + ``` + my-function + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedname() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedname() :"faas.invoked_name" + + ### Erlang + + ```erlang + ?FAAS_INVOKEDNAME. + 'faas.invoked_name' + ``` + + """ @spec faas_invokedname :: :"faas.invoked_name" def faas_invokedname do @@ -165,11 +329,11 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do ### Enum Values - * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Alibaba Cloud - * `:aws` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Web Services - * `:azure` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Azure - * `:gcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Platform - * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Tencent Cloud + * `:alibaba_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Alibaba Cloud + * `:aws` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon Web Services + * `:azure` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft Azure + * `:gcp` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Platform + * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud """ @type faas_invokedprovider() :: %{ :alibaba_cloud => :alibaba_cloud, @@ -181,17 +345,33 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The cloud provider of the invoked function. + ### Notes SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider().alibaba_cloud + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider().alibaba_cloud :alibaba_cloud - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedprovider(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'faas_invokedprovider.alibaba_cloud'. + alibaba_cloud + + ?faas_invokedprovider.(custom_value). + custom_value + ``` + + """ @spec faas_invokedprovider() :: faas_invokedprovider() def faas_invokedprovider() do @@ -212,14 +392,34 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The cloud region of the invoked function. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes SHOULD be equal to the `cloud.region` resource attribute of the invoked function. + ### Examples + + ``` + eu-central-1 + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_invokedregion() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedregion() :"faas.invoked_region" + + ### Erlang + + ```erlang + ?FAAS_INVOKEDREGION. + 'faas.invoked_region' + ``` + + """ @spec faas_invokedregion :: :"faas.invoked_region" def faas_invokedregion do @@ -229,14 +429,34 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The amount of memory available to the serverless function converted to Bytes. + ### Value type + + Value must be of type `integer()`. ### Notes 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). + ### Examples + + ``` + 134217728 + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_maxmemory() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_maxmemory() :"faas.max_memory" + + ### Erlang + + ```erlang + ?FAAS_MAXMEMORY. + 'faas.max_memory' + ``` + + """ @spec faas_maxmemory :: :"faas.max_memory" def faas_maxmemory do @@ -246,6 +466,9 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The name of the single function that this runtime instance executes. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes This is the name of the function as configured/deployed on the FaaS @@ -265,10 +488,27 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do app can host multiple functions that would usually share a TracerProvider (see also the `cloud.resource_id` attribute). + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_name() + ``` + ["my-function", "myazurefunctionapp/some-function-name"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_name() :"faas.name" + + ### Erlang + + ```erlang + ?FAAS_NAME. + 'faas.name' + ``` + + """ @spec faas_name :: :"faas.name" def faas_name do @@ -278,11 +518,30 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ 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). + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + 2020-01-23T13:47:06Z + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_time() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_time() :"faas.time" + + ### Erlang + + ```erlang + ?FAAS_TIME. + 'faas.time' + ``` + + """ @spec faas_time :: :"faas.time" def faas_time do @@ -294,11 +553,11 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do ### Enum Values - * `:datasource` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A response to some data source operation such as a database or filesystem read/write - * `:http` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - To provide an answer to an inbound HTTP request - * `:pubsub` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is set to be executed when messages are sent to a messaging system - * `:timer` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A function is scheduled to be executed regularly - * `:other` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - If none of the others apply + * `:datasource` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - A response to some data source operation such as a database or filesystem read/write + * `:http` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - To provide an answer to an inbound HTTP request + * `:pubsub` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - A function is set to be executed when messages are sent to a messaging system + * `:timer` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - A function is scheduled to be executed regularly + * `:other` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - If none of the others apply """ @type faas_trigger() :: %{ :datasource => :datasource, @@ -312,12 +571,27 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger().datasource + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger().datasource :datasource - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_trigger(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'faas_trigger.datasource'. + datasource + + ?faas_trigger.(custom_value). + custom_value + ``` + + """ @spec faas_trigger() :: faas_trigger() def faas_trigger() do @@ -337,6 +611,9 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do @doc """ The immutable version of the function being executed. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Depending on the cloud provider and platform, use: @@ -349,10 +626,27 @@ defmodule OpenTelemetry.SemanticConventions.FaasAttributes do [`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. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.FaasAttributes.faas_version() + ``` + ["26", "pinkfroid-00002"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_version() :"faas.version" + + ### Erlang + + ```erlang + ?FAAS_VERSION. + 'faas.version' + ``` + + """ @spec faas_version :: :"faas.version" def faas_version do diff --git a/apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex similarity index 55% rename from apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex index 4cbd804b..cde207c0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/feature_flag_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.FeatureFlagAttributes do +defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Feature_Flag attributes. @@ -6,11 +6,30 @@ defmodule OpenTelemetry.SemanticConventions.FeatureFlagAttributes do @doc """ The unique identifier of the feature flag. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.FeatureFlagAttributes.featureflag_key() + ``` + ["logo-color"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_key() :"feature_flag.key" + + ### Erlang + + ```erlang + ?FEATUREFLAG_KEY. + 'feature_flag.key' + ``` + + """ @spec featureflag_key :: :"feature_flag.key" def featureflag_key do @@ -19,11 +38,30 @@ defmodule OpenTelemetry.SemanticConventions.FeatureFlagAttributes do @doc """ The name of the service provider that performs the flag evaluation. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Flag Manager"] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.FeatureFlagAttributes.featureflag_providername() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_providername() :"feature_flag.provider_name" + + ### Erlang + + ```erlang + ?FEATUREFLAG_PROVIDERNAME. + 'feature_flag.provider_name' + ``` + + """ @spec featureflag_providername :: :"feature_flag.provider_name" def featureflag_providername do @@ -33,6 +71,9 @@ defmodule OpenTelemetry.SemanticConventions.FeatureFlagAttributes do @doc """ SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes A semantic identifier, commonly referred to as a variant, provides a means @@ -43,10 +84,27 @@ defmodule OpenTelemetry.SemanticConventions.FeatureFlagAttributes do A stringified version of the value can be used in situations where a semantic identifier is unavailable. String representation of the value should be determined by the implementer. + ### Examples + + ``` + ["red", "true", "on"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.FeatureFlagAttributes.featureflag_variant() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_variant() :"feature_flag.variant" + + ### Erlang + + ```erlang + ?FEATUREFLAG_VARIANT. + 'feature_flag.variant' + ``` + + """ @spec featureflag_variant :: :"feature_flag.variant" def featureflag_variant do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex new file mode 100644 index 00000000..8f960803 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex @@ -0,0 +1,170 @@ +defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for File attributes. + """ + + @doc """ + Directory where the file is located. It should include the drive letter, when appropriate. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/home/user", "C:\\Program Files\\MyApp"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FileAttributes.file_directory() + :"file.directory" + + ### Erlang + + ```erlang + ?FILE_DIRECTORY. + 'file.directory' + ``` + + + """ + @spec file_directory :: :"file.directory" + def file_directory do + :"file.directory" + end + + @doc """ + File extension, excluding the leading dot. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + When the file name has multiple extensions (example.tar.gz), only the last one should be captured ("gz", not "tar.gz"). + + ### Examples + + ``` + ["png", "gz"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FileAttributes.file_extension() + :"file.extension" + + ### Erlang + + ```erlang + ?FILE_EXTENSION. + 'file.extension' + ``` + + + """ + @spec file_extension :: :"file.extension" + def file_extension do + :"file.extension" + end + + @doc """ + Name of the file including the extension, without the directory. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["example.png"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FileAttributes.file_name() + :"file.name" + + ### Erlang + + ```erlang + ?FILE_NAME. + 'file.name' + ``` + + + """ + @spec file_name :: :"file.name" + def file_name do + :"file.name" + end + + @doc """ + Full path to the file, including the file name. It should include the drive letter, when appropriate. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/home/alice/example.png", "C:\\Program Files\\MyApp\\myapp.exe"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FileAttributes.file_path() + :"file.path" + + ### Erlang + + ```erlang + ?FILE_PATH. + 'file.path' + ``` + + + """ + @spec file_path :: :"file.path" + def file_path do + :"file.path" + end + + @doc """ + File size in bytes. + + ### Value type + + Value must be of type `integer()`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FileAttributes.file_size() + :"file.size" + + ### Erlang + + ```erlang + ?FILE_SIZE. + 'file.size' + ``` + + + """ + @spec file_size :: :"file.size" + def file_size do + :"file.size" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex similarity index 52% rename from apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex index 080af736..ecb23f76 100644 --- a/apps/opentelemetry_semantic_conventions/lib/gcp_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex @@ -1,17 +1,36 @@ -defmodule OpenTelemetry.SemanticConventions.GcpAttributes do +defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Gcp attributes. + OpenTelemetry Semantic Conventions for GCP attributes. """ @doc """ 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. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_cloudrun_job_execution() + ``` + ["job-name-xxxx", "sample-job-mdw84"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_cloudrun_job_execution() :"gcp.cloud_run.job.execution" + + ### Erlang + + ```erlang + ?GCP_CLOUDRUN_JOB_EXECUTION. + 'gcp.cloud_run.job.execution' + ``` + + """ @spec gcp_cloudrun_job_execution :: :"gcp.cloud_run.job.execution" def gcp_cloudrun_job_execution do @@ -21,11 +40,30 @@ defmodule OpenTelemetry.SemanticConventions.GcpAttributes do @doc """ 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. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_cloudrun_job_taskindex() + ``` + [0, 1] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_cloudrun_job_taskindex() :"gcp.cloud_run.job.task_index" + + ### Erlang + + ```erlang + ?GCP_CLOUDRUN_JOB_TASKINDEX. + 'gcp.cloud_run.job.task_index' + ``` + + """ @spec gcp_cloudrun_job_taskindex :: :"gcp.cloud_run.job.task_index" def gcp_cloudrun_job_taskindex do @@ -35,11 +73,30 @@ defmodule OpenTelemetry.SemanticConventions.GcpAttributes do @doc """ 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). + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_gce_instance_hostname() + ``` + ["my-host1234.example.com", "sample-vm.us-west1-b.c.my-project.internal"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_gce_instance_hostname() :"gcp.gce.instance.hostname" + + ### Erlang + + ```erlang + ?GCP_GCE_INSTANCE_HOSTNAME. + 'gcp.gce.instance.hostname' + ``` + + """ @spec gcp_gce_instance_hostname :: :"gcp.gce.instance.hostname" def gcp_gce_instance_hostname do @@ -49,11 +106,30 @@ defmodule OpenTelemetry.SemanticConventions.GcpAttributes do @doc """ 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). + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.GcpAttributes.gcp_gce_instance_name() + ``` + ["instance-1", "my-vm-name"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_gce_instance_name() :"gcp.gce.instance.name" + + ### Erlang + + ```erlang + ?GCP_GCE_INSTANCE_NAME. + 'gcp.gce.instance.name' + ``` + + """ @spec gcp_gce_instance_name :: :"gcp.gce.instance.name" def gcp_gce_instance_name do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex new file mode 100644 index 00000000..1eb70f29 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex @@ -0,0 +1,420 @@ +defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Gen_Ai attributes. + """ + + @doc """ + The full response received from the LLM. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) + ### Examples + + ``` + ["[{'role': 'assistant', 'content': 'The capital of France is Paris.'}]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_completion() + :"gen_ai.completion" + + ### Erlang + + ```erlang + ?GENAI_COMPLETION. + 'gen_ai.completion' + ``` + + + """ + @spec genai_completion :: :"gen_ai.completion" + def genai_completion do + :"gen_ai.completion" + end + + @doc """ + The full prompt sent to an LLM. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) + ### Examples + + ``` + ["[{'role': 'user', 'content': 'What is the capital of France?'}]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_prompt() + :"gen_ai.prompt" + + ### Erlang + + ```erlang + ?GENAI_PROMPT. + 'gen_ai.prompt' + ``` + + + """ + @spec genai_prompt :: :"gen_ai.prompt" + def genai_prompt do + :"gen_ai.prompt" + end + + @doc """ + The maximum number of tokens the LLM generates for a request. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [100] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_maxtokens() + :"gen_ai.request.max_tokens" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_MAXTOKENS. + 'gen_ai.request.max_tokens' + ``` + + + """ + @spec genai_request_maxtokens :: :"gen_ai.request.max_tokens" + def genai_request_maxtokens do + :"gen_ai.request.max_tokens" + end + + @doc """ + The name of the LLM a request is being made to. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + gpt-4 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_model() + :"gen_ai.request.model" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_MODEL. + 'gen_ai.request.model' + ``` + + + """ + @spec genai_request_model :: :"gen_ai.request.model" + def genai_request_model do + :"gen_ai.request.model" + end + + @doc """ + The temperature setting for the LLM request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [0.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_temperature() + :"gen_ai.request.temperature" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_TEMPERATURE. + 'gen_ai.request.temperature' + ``` + + + """ + @spec genai_request_temperature :: :"gen_ai.request.temperature" + def genai_request_temperature do + :"gen_ai.request.temperature" + end + + @doc """ + The top_p sampling setting for the LLM request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [1.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_topp() + :"gen_ai.request.top_p" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_TOPP. + 'gen_ai.request.top_p' + ``` + + + """ + @spec genai_request_topp :: :"gen_ai.request.top_p" + def genai_request_topp do + :"gen_ai.request.top_p" + end + + @doc """ + Array of reasons the model stopped generating tokens, corresponding to each generation received. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["stop"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_finishreasons() + :"gen_ai.response.finish_reasons" + + ### Erlang + + ```erlang + ?GENAI_RESPONSE_FINISHREASONS. + 'gen_ai.response.finish_reasons' + ``` + + + """ + @spec genai_response_finishreasons :: :"gen_ai.response.finish_reasons" + def genai_response_finishreasons do + :"gen_ai.response.finish_reasons" + end + + @doc """ + The unique identifier for the completion. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["chatcmpl-123"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_id() + :"gen_ai.response.id" + + ### Erlang + + ```erlang + ?GENAI_RESPONSE_ID. + 'gen_ai.response.id' + ``` + + + """ + @spec genai_response_id :: :"gen_ai.response.id" + def genai_response_id do + :"gen_ai.response.id" + end + + @doc """ + The name of the LLM a response was generated from. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["gpt-4-0613"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_model() + :"gen_ai.response.model" + + ### Erlang + + ```erlang + ?GENAI_RESPONSE_MODEL. + 'gen_ai.response.model' + ``` + + + """ + @spec genai_response_model :: :"gen_ai.response.model" + def genai_response_model do + :"gen_ai.response.model" + end + + @typedoc """ + The Generative AI product as identified by the client instrumentation. + + ### Enum Values + * `:openai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenAI + """ + @type genai_system() :: %{ + :openai => :openai + } + @doc """ + The Generative AI product as identified by the client instrumentation. + + ### Notes + + The actual GenAI product may differ from the one identified by the client. For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` is set to `openai` based on the instrumentation's best knowledge. + + ### Examples + + ``` + openai + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system().openai + :openai + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'genai_system.openai'. + openai + + ?genai_system.(custom_value). + custom_value + ``` + + + """ + @spec genai_system() :: genai_system() + def genai_system() do + %{ + :openai => :openai + } + end + + @spec genai_system(atom() | String.t()) :: atom() | String.t() + def genai_system(custom_value) do + custom_value + end + + @doc """ + The number of tokens used in the LLM response (completion). + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [180] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_completiontokens() + :"gen_ai.usage.completion_tokens" + + ### Erlang + + ```erlang + ?GENAI_USAGE_COMPLETIONTOKENS. + 'gen_ai.usage.completion_tokens' + ``` + + + """ + @spec genai_usage_completiontokens :: :"gen_ai.usage.completion_tokens" + def genai_usage_completiontokens do + :"gen_ai.usage.completion_tokens" + end + + @doc """ + The number of tokens used in the LLM prompt. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [100] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_prompttokens() + :"gen_ai.usage.prompt_tokens" + + ### Erlang + + ```erlang + ?GENAI_USAGE_PROMPTTOKENS. + 'gen_ai.usage.prompt_tokens' + ``` + + + """ + @spec genai_usage_prompttokens :: :"gen_ai.usage.prompt_tokens" + def genai_usage_prompttokens do + :"gen_ai.usage.prompt_tokens" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex new file mode 100644 index 00000000..44d0111f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex @@ -0,0 +1,131 @@ +defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Graphql attributes. + """ + + @doc """ + The GraphQL document being executed. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The value may be sanitized to exclude sensitive information. + ### Examples + + ``` + query findBookById { bookById(id: ?) { name } } + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_document() + :"graphql.document" + + ### Erlang + + ```erlang + ?GRAPHQL_DOCUMENT. + 'graphql.document' + ``` + + + """ + @spec graphql_document :: :"graphql.document" + def graphql_document do + :"graphql.document" + end + + @doc """ + The name of the operation being executed. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + findBookById + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_name() + :"graphql.operation.name" + + ### Erlang + + ```erlang + ?GRAPHQL_OPERATION_NAME. + 'graphql.operation.name' + ``` + + + """ + @spec graphql_operation_name :: :"graphql.operation.name" + def graphql_operation_name do + :"graphql.operation.name" + end + + @typedoc """ + The type of the operation being executed. + + ### Enum Values + * `:query` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GraphQL query + * `:mutation` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GraphQL mutation + * `:subscription` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GraphQL subscription + """ + @type graphql_operation_type() :: %{ + :query => :query, + :mutation => :mutation, + :subscription => :subscription + } + @doc """ + The type of the operation being executed. + + ### Examples + + ``` + ["query", "mutation", "subscription"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type().query + :query + + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'graphql_operation_type.query'. + query + + ?graphql_operation_type.(custom_value). + custom_value + ``` + + + """ + @spec graphql_operation_type() :: graphql_operation_type() + def graphql_operation_type() do + %{ + :query => :query, + :mutation => :mutation, + :subscription => :subscription + } + end + + @spec graphql_operation_type(atom() | String.t()) :: atom() | String.t() + def graphql_operation_type(custom_value) do + custom_value + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex new file mode 100644 index 00000000..baf4b526 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex @@ -0,0 +1,105 @@ +defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Heroku attributes. + """ + + @doc """ + Unique identifier for the application + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2daa2797-e42b-4624-9322-ec3f968df4da"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HerokuAttributes.heroku_app_id() + :"heroku.app.id" + + ### Erlang + + ```erlang + ?HEROKU_APP_ID. + 'heroku.app.id' + ``` + + + """ + @spec heroku_app_id :: :"heroku.app.id" + def heroku_app_id do + :"heroku.app.id" + end + + @doc """ + Commit hash for the current release + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["e6134959463efd8966b20e75b913cafe3f5ec"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HerokuAttributes.heroku_release_commit() + :"heroku.release.commit" + + ### Erlang + + ```erlang + ?HEROKU_RELEASE_COMMIT. + 'heroku.release.commit' + ``` + + + """ + @spec heroku_release_commit :: :"heroku.release.commit" + def heroku_release_commit do + :"heroku.release.commit" + end + + @doc """ + Time and date the release was created + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2022-10-23T18:00:42Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HerokuAttributes.heroku_release_creationtimestamp() + :"heroku.release.creation_timestamp" + + ### Erlang + + ```erlang + ?HEROKU_RELEASE_CREATIONTIMESTAMP. + 'heroku.release.creation_timestamp' + ``` + + + """ + @spec heroku_release_creationtimestamp :: :"heroku.release.creation_timestamp" + def heroku_release_creationtimestamp do + :"heroku.release.creation_timestamp" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex new file mode 100644 index 00000000..51123d60 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -0,0 +1,550 @@ +defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Host attributes. + """ + + @typedoc """ + The CPU architecture the host system is running on. + + + ### Enum Values + * `:amd64` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AMD64 + * `:arm32` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ARM32 + * `:arm64` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ARM64 + * `:ia64` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Itanium + * `:ppc32` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 32-bit PowerPC + * `:ppc64` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 64-bit PowerPC + * `:s390x` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM z/Architecture + * `:x86` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 32-bit x86 + """ + @type host_arch() :: %{ + :amd64 => :amd64, + :arm32 => :arm32, + :arm64 => :arm64, + :ia64 => :ia64, + :ppc32 => :ppc32, + :ppc64 => :ppc64, + :s390x => :s390x, + :x86 => :x86 + } + @doc """ + The CPU architecture the host system is running on. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch().amd64 + :amd64 + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'host_arch.amd64'. + amd64 + + ?host_arch.(custom_value). + custom_value + ``` + + + """ + @spec host_arch() :: host_arch() + def host_arch() do + %{ + :amd64 => :amd64, + :arm32 => :arm32, + :arm64 => :arm64, + :ia64 => :ia64, + :ppc32 => :ppc32, + :ppc64 => :ppc64, + :s390x => :s390x, + :x86 => :x86 + } + end + + @spec host_arch(atom() | String.t()) :: atom() | String.t() + def host_arch(custom_value) do + custom_value + end + + @doc """ + The amount of level 2 memory cache available to the processor (in Bytes). + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [12288000] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_cache_l_2_size() + :"host.cpu.cache.l2.size" + + ### Erlang + + ```erlang + ?HOST_CPU_CACHE_L_2_SIZE. + 'host.cpu.cache.l2.size' + ``` + + + """ + @spec host_cpu_cache_l_2_size :: :"host.cpu.cache.l2.size" + def host_cpu_cache_l_2_size do + :"host.cpu.cache.l2.size" + end + + @doc """ + Family or generation of the CPU. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["6", "PA-RISC 1.1e"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_family() + :"host.cpu.family" + + ### Erlang + + ```erlang + ?HOST_CPU_FAMILY. + 'host.cpu.family' + ``` + + + """ + @spec host_cpu_family :: :"host.cpu.family" + def host_cpu_family do + :"host.cpu.family" + end + + @doc """ + Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["6", "9000/778/B180L"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_model_id() + :"host.cpu.model.id" + + ### Erlang + + ```erlang + ?HOST_CPU_MODEL_ID. + 'host.cpu.model.id' + ``` + + + """ + @spec host_cpu_model_id :: :"host.cpu.model.id" + def host_cpu_model_id do + :"host.cpu.model.id" + end + + @doc """ + Model designation of the processor. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_model_name() + :"host.cpu.model.name" + + ### Erlang + + ```erlang + ?HOST_CPU_MODEL_NAME. + 'host.cpu.model.name' + ``` + + + """ + @spec host_cpu_model_name :: :"host.cpu.model.name" + def host_cpu_model_name do + :"host.cpu.model.name" + end + + @doc """ + Stepping or core revisions. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1", "r1p1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_stepping() + :"host.cpu.stepping" + + ### Erlang + + ```erlang + ?HOST_CPU_STEPPING. + 'host.cpu.stepping' + ``` + + + """ + @spec host_cpu_stepping :: :"host.cpu.stepping" + def host_cpu_stepping do + :"host.cpu.stepping" + end + + @doc """ + Processor manufacturer identifier. A maximum 12-character string. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + [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. + + ### Examples + + ``` + ["GenuineIntel"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_vendor_id() + :"host.cpu.vendor.id" + + ### Erlang + + ```erlang + ?HOST_CPU_VENDOR_ID. + 'host.cpu.vendor.id' + ``` + + + """ + @spec host_cpu_vendor_id :: :"host.cpu.vendor.id" + def host_cpu_vendor_id do + :"host.cpu.vendor.id" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["fdbf79e8af94cb7f9e8df36789187052"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_id() + :"host.id" + + ### Erlang + + ```erlang + ?HOST_ID. + 'host.id' + ``` + + + """ + @spec host_id :: :"host.id" + def host_id do + :"host.id" + end + + @doc """ + VM image ID or host OS image ID. For Cloud, this value is from the provider. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["ami-07b06b442921831e5"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_image_id() + :"host.image.id" + + ### Erlang + + ```erlang + ?HOST_IMAGE_ID. + 'host.image.id' + ``` + + + """ + @spec host_image_id :: :"host.image.id" + def host_image_id do + :"host.image.id" + end + + @doc """ + Name of the VM image or OS install the host was instantiated from. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["infra-ami-eks-worker-node-7d4ec78312", "CentOS-8-x86_64-1905"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_image_name() + :"host.image.name" + + ### Erlang + + ```erlang + ?HOST_IMAGE_NAME. + 'host.image.name' + ``` + + + """ + @spec host_image_name :: :"host.image.name" + def host_image_name do + :"host.image.name" + end + + @doc """ + The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["0.1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_image_version() + :"host.image.version" + + ### Erlang + + ```erlang + ?HOST_IMAGE_VERSION. + 'host.image.version' + ``` + + + """ + @spec host_image_version :: :"host.image.version" + def host_image_version do + :"host.image.version" + end + + @doc """ + Available IP addresses of the host, excluding loopback interfaces. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Notes + + 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. + + ### Examples + + ``` + ["192.168.1.140", "fe80::abc2:4a28:737a:609e"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_ip() + :"host.ip" + + ### Erlang + + ```erlang + ?HOST_IP. + 'host.ip' + ``` + + + """ + @spec host_ip :: :"host.ip" + def host_ip do + :"host.ip" + end + + @doc """ + Available MAC addresses of the host, excluding loopback interfaces. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Notes + + 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. + + ### Examples + + ``` + ["AC-DE-48-23-45-67", "AC-DE-48-23-45-67-01-9F"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_mac() + :"host.mac" + + ### Erlang + + ```erlang + ?HOST_MAC. + 'host.mac' + ``` + + + """ + @spec host_mac :: :"host.mac" + def host_mac do + :"host.mac" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-test"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_name() + :"host.name" + + ### Erlang + + ```erlang + ?HOST_NAME. + 'host.name' + ``` + + + """ + @spec host_name :: :"host.name" + def host_name do + :"host.name" + end + + @doc """ + Type of host. For Cloud, this must be the machine type. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["n1-standard-1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_type() + :"host.type" + + ### Erlang + + ```erlang + ?HOST_TYPE. + 'host.type' + ``` + + + """ + @spec host_type :: :"host.type" + def host_type do + :"host.type" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex new file mode 100644 index 00000000..27948b6c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -0,0 +1,336 @@ +defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for HTTP attributes. + """ + + @deprecated """ + Replaced by `client.address`. + """ + @spec http_clientip :: :"http.client_ip" + def http_clientip do + :"http.client_ip" + end + + @typedoc """ + State of the HTTP connection in the HTTP connection pool. + + ### Enum Values + * `:active` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - active state. + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - idle state. + """ + @type http_connection_state() :: %{ + :active => :active, + :idle => :idle + } + @doc """ + State of the HTTP connection in the HTTP connection pool. + + ### Examples + + ``` + ["active", "idle"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state().active + :active + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'http_connection_state.active'. + active + + ?http_connection_state.(custom_value). + custom_value + ``` + + + """ + @spec http_connection_state() :: http_connection_state() + def http_connection_state() do + %{ + :active => :active, + :idle => :idle + } + end + + @spec http_connection_state(atom() | String.t()) :: atom() | String.t() + def http_connection_state(custom_value) do + custom_value + end + + @typedoc """ + Deprecated, use `network.protocol.name` instead. + + ### Enum Values + * `:http_1_0` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HTTP/1.0 + * `:http_1_1` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HTTP/1.1 + * `:http_2_0` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HTTP/2 + * `:http_3_0` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HTTP/3 + * `:spdy` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SPDY protocol. + * `:quic` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - QUIC protocol. + """ + @type http_flavor() :: %{ + :http_1_0 => :"1.0", + :http_1_1 => :"1.1", + :http_2_0 => :"2.0", + :http_3_0 => :"3.0", + :spdy => :SPDY, + :quic => :QUIC + } + @deprecated """ + Replaced by `network.protocol.name`. + """ + @spec http_flavor() :: http_flavor() + def http_flavor() do + %{ + :http_1_0 => :"1.0", + :http_1_1 => :"1.1", + :http_2_0 => :"2.0", + :http_3_0 => :"3.0", + :spdy => :SPDY, + :quic => :QUIC + } + end + + @spec http_flavor(atom() | String.t()) :: atom() | String.t() + def http_flavor(custom_value) do + custom_value + end + + @deprecated """ + Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. + """ + @spec http_host :: :"http.host" + def http_host do + :"http.host" + end + + @deprecated """ + Replaced by `http.request.method`. + """ + @spec http_method :: :"http.method" + def http_method do + :"http.method" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 3495 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_request_body_size() + :"http.request.body.size" + + ### Erlang + + ```erlang + ?HTTP_REQUEST_BODY_SIZE. + 'http.request.body.size' + ``` + + + """ + @spec http_request_body_size :: :"http.request.body.size" + def http_request_body_size do + :"http.request.body.size" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 1437 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_request_size() + :"http.request.size" + + ### Erlang + + ```erlang + ?HTTP_REQUEST_SIZE. + 'http.request.size' + ``` + + + """ + @spec http_request_size :: :"http.request.size" + def http_request_size do + :"http.request.size" + end + + @deprecated """ + Replaced by `http.request.header.content-length`. + """ + @spec http_requestcontentlength :: :"http.request_content_length" + def http_requestcontentlength do + :"http.request_content_length" + end + + @deprecated """ + Replaced by `http.request.body.size`. + """ + @spec http_requestcontentlengthuncompressed :: :"http.request_content_length_uncompressed" + def http_requestcontentlengthuncompressed do + :"http.request_content_length_uncompressed" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 3495 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_response_body_size() + :"http.response.body.size" + + ### Erlang + + ```erlang + ?HTTP_RESPONSE_BODY_SIZE. + 'http.response.body.size' + ``` + + + """ + @spec http_response_body_size :: :"http.response.body.size" + def http_response_body_size do + :"http.response.body.size" + end + + @doc """ + 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. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 1437 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_response_size() + :"http.response.size" + + ### Erlang + + ```erlang + ?HTTP_RESPONSE_SIZE. + 'http.response.size' + ``` + + + """ + @spec http_response_size :: :"http.response.size" + def http_response_size do + :"http.response.size" + end + + @deprecated """ + Replaced by `http.response.header.content-length`. + """ + @spec http_responsecontentlength :: :"http.response_content_length" + def http_responsecontentlength do + :"http.response_content_length" + end + + @deprecated """ + Replace by `http.response.body.size`. + """ + @spec http_responsecontentlengthuncompressed :: :"http.response_content_length_uncompressed" + def http_responsecontentlengthuncompressed do + :"http.response_content_length_uncompressed" + end + + @deprecated """ + Replaced by `url.scheme` instead. + """ + @spec http_scheme :: :"http.scheme" + def http_scheme do + :"http.scheme" + end + + @deprecated """ + Replaced by `server.address`. + """ + @spec http_servername :: :"http.server_name" + def http_servername do + :"http.server_name" + end + + @deprecated """ + Replaced by `http.response.status_code`. + """ + @spec http_statuscode :: :"http.status_code" + def http_statuscode do + :"http.status_code" + end + + @deprecated """ + Split to `url.path` and `url.query. + """ + @spec http_target :: :"http.target" + def http_target do + :"http.target" + end + + @deprecated """ + Replaced by `url.full`. + """ + @spec http_url :: :"http.url" + def http_url do + :"http.url" + end + + @deprecated """ + Replaced by `user_agent.original`. + """ + @spec http_useragent :: :"http.user_agent" + def http_useragent do + :"http.user_agent" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex new file mode 100644 index 00000000..8c2cae73 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex @@ -0,0 +1,827 @@ +defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for K8s attributes. + """ + + @doc """ + The name of the cluster. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-cluster"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_name() + :"k8s.cluster.name" + + ### Erlang + + ```erlang + ?K_8_S_CLUSTER_NAME. + 'k8s.cluster.name' + ``` + + + """ + @spec k_8_s_cluster_name :: :"k8s.cluster.name" + def k_8_s_cluster_name do + :"k8s.cluster.name" + end + + @doc """ + A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + K8s doesn't have support for obtaining a cluster ID. If this is ever + added, we will recommend collecting the `k8s.cluster.uid` through the + official APIs. In the meantime, we are able to use the `uid` of the + `kube-system` namespace as a proxy for cluster ID. Read on for the + rationale. + + Every object created in a K8s cluster is assigned a distinct UID. The + `kube-system` namespace is used by Kubernetes itself and will exist + for the lifetime of the cluster. Using the `uid` of the `kube-system` + namespace is a reasonable proxy for the K8s ClusterID as it will only + change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are + UUIDs as standardized by + [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). + Which states: + + > If generated according to one of the mechanisms defined in Rec. + ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be + different from all other UUIDs generated before 3603 A.D., or is + extremely likely to be different (depending on the mechanism chosen). + + Therefore, UIDs between clusters should be extremely unlikely to + conflict. + + ### Examples + + ``` + ["218fc5a9-a5f1-4b54-aa05-46717d0ab26d"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_uid() + :"k8s.cluster.uid" + + ### Erlang + + ```erlang + ?K_8_S_CLUSTER_UID. + 'k8s.cluster.uid' + ``` + + + """ + @spec k_8_s_cluster_uid :: :"k8s.cluster.uid" + def k_8_s_cluster_uid do + :"k8s.cluster.uid" + end + + @doc """ + The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["redis"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_name() + :"k8s.container.name" + + ### Erlang + + ```erlang + ?K_8_S_CONTAINER_NAME. + 'k8s.container.name' + ``` + + + """ + @spec k_8_s_container_name :: :"k8s.container.name" + def k_8_s_container_name do + :"k8s.container.name" + end + + @doc """ + Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. + + ### Value type + + Value must be of type `integer()`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_restartcount() + :"k8s.container.restart_count" + + ### Erlang + + ```erlang + ?K_8_S_CONTAINER_RESTARTCOUNT. + 'k8s.container.restart_count' + ``` + + + """ + @spec k_8_s_container_restartcount :: :"k8s.container.restart_count" + def k_8_s_container_restartcount do + :"k8s.container.restart_count" + end + + @doc """ + Last terminated reason of the Container. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Evicted", "Error"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_status_lastterminatedreason() + :"k8s.container.status.last_terminated_reason" + + ### Erlang + + ```erlang + ?K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON. + 'k8s.container.status.last_terminated_reason' + ``` + + + """ + @spec k_8_s_container_status_lastterminatedreason :: + :"k8s.container.status.last_terminated_reason" + def k_8_s_container_status_lastterminatedreason do + :"k8s.container.status.last_terminated_reason" + end + + @doc """ + The name of the CronJob. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_name() + :"k8s.cronjob.name" + + ### Erlang + + ```erlang + ?K_8_S_CRONJOB_NAME. + 'k8s.cronjob.name' + ``` + + + """ + @spec k_8_s_cronjob_name :: :"k8s.cronjob.name" + def k_8_s_cronjob_name do + :"k8s.cronjob.name" + end + + @doc """ + The UID of the CronJob. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_uid() + :"k8s.cronjob.uid" + + ### Erlang + + ```erlang + ?K_8_S_CRONJOB_UID. + 'k8s.cronjob.uid' + ``` + + + """ + @spec k_8_s_cronjob_uid :: :"k8s.cronjob.uid" + def k_8_s_cronjob_uid do + :"k8s.cronjob.uid" + end + + @doc """ + The name of the DaemonSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_name() + :"k8s.daemonset.name" + + ### Erlang + + ```erlang + ?K_8_S_DAEMONSET_NAME. + 'k8s.daemonset.name' + ``` + + + """ + @spec k_8_s_daemonset_name :: :"k8s.daemonset.name" + def k_8_s_daemonset_name do + :"k8s.daemonset.name" + end + + @doc """ + The UID of the DaemonSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_uid() + :"k8s.daemonset.uid" + + ### Erlang + + ```erlang + ?K_8_S_DAEMONSET_UID. + 'k8s.daemonset.uid' + ``` + + + """ + @spec k_8_s_daemonset_uid :: :"k8s.daemonset.uid" + def k_8_s_daemonset_uid do + :"k8s.daemonset.uid" + end + + @doc """ + The name of the Deployment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_name() + :"k8s.deployment.name" + + ### Erlang + + ```erlang + ?K_8_S_DEPLOYMENT_NAME. + 'k8s.deployment.name' + ``` + + + """ + @spec k_8_s_deployment_name :: :"k8s.deployment.name" + def k_8_s_deployment_name do + :"k8s.deployment.name" + end + + @doc """ + The UID of the Deployment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_uid() + :"k8s.deployment.uid" + + ### Erlang + + ```erlang + ?K_8_S_DEPLOYMENT_UID. + 'k8s.deployment.uid' + ``` + + + """ + @spec k_8_s_deployment_uid :: :"k8s.deployment.uid" + def k_8_s_deployment_uid do + :"k8s.deployment.uid" + end + + @doc """ + The name of the Job. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_name() + :"k8s.job.name" + + ### Erlang + + ```erlang + ?K_8_S_JOB_NAME. + 'k8s.job.name' + ``` + + + """ + @spec k_8_s_job_name :: :"k8s.job.name" + def k_8_s_job_name do + :"k8s.job.name" + end + + @doc """ + The UID of the Job. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_uid() + :"k8s.job.uid" + + ### Erlang + + ```erlang + ?K_8_S_JOB_UID. + 'k8s.job.uid' + ``` + + + """ + @spec k_8_s_job_uid :: :"k8s.job.uid" + def k_8_s_job_uid do + :"k8s.job.uid" + end + + @doc """ + The name of the namespace that the pod is running in. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["default"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_namespace_name() + :"k8s.namespace.name" + + ### Erlang + + ```erlang + ?K_8_S_NAMESPACE_NAME. + 'k8s.namespace.name' + ``` + + + """ + @spec k_8_s_namespace_name :: :"k8s.namespace.name" + def k_8_s_namespace_name do + :"k8s.namespace.name" + end + + @doc """ + The name of the Node. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["node-1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_name() + :"k8s.node.name" + + ### Erlang + + ```erlang + ?K_8_S_NODE_NAME. + 'k8s.node.name' + ``` + + + """ + @spec k_8_s_node_name :: :"k8s.node.name" + def k_8_s_node_name do + :"k8s.node.name" + end + + @doc """ + The UID of the Node. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_uid() + :"k8s.node.uid" + + ### Erlang + + ```erlang + ?K_8_S_NODE_UID. + 'k8s.node.uid' + ``` + + + """ + @spec k_8_s_node_uid :: :"k8s.node.uid" + def k_8_s_node_uid do + :"k8s.node.uid" + end + + @doc """ + The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets=true", "k8s.pod.annotation.mycompany.io/arch=x64", "k8s.pod.annotation.data="] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_annotation() + :"k8s.pod.annotation" + + ### Erlang + + ```erlang + ?K_8_S_POD_ANNOTATION. + 'k8s.pod.annotation' + ``` + + + """ + @spec k_8_s_pod_annotation :: :"k8s.pod.annotation" + def k_8_s_pod_annotation do + :"k8s.pod.annotation" + end + + @doc """ + The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["k8s.pod.label.app=my-app", "k8s.pod.label.mycompany.io/arch=x64", "k8s.pod.label.data="] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_label() + :"k8s.pod.label" + + ### Erlang + + ```erlang + ?K_8_S_POD_LABEL. + 'k8s.pod.label' + ``` + + + """ + @spec k_8_s_pod_label :: :"k8s.pod.label" + def k_8_s_pod_label do + :"k8s.pod.label" + end + + @deprecated """ + Replaced by `k8s.pod.label`. + """ + @spec k_8_s_pod_labels :: :"k8s.pod.labels" + def k_8_s_pod_labels do + :"k8s.pod.labels" + end + + @doc """ + The name of the Pod. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-pod-autoconf"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_name() + :"k8s.pod.name" + + ### Erlang + + ```erlang + ?K_8_S_POD_NAME. + 'k8s.pod.name' + ``` + + + """ + @spec k_8_s_pod_name :: :"k8s.pod.name" + def k_8_s_pod_name do + :"k8s.pod.name" + end + + @doc """ + The UID of the Pod. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_uid() + :"k8s.pod.uid" + + ### Erlang + + ```erlang + ?K_8_S_POD_UID. + 'k8s.pod.uid' + ``` + + + """ + @spec k_8_s_pod_uid :: :"k8s.pod.uid" + def k_8_s_pod_uid do + :"k8s.pod.uid" + end + + @doc """ + The name of the ReplicaSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_name() + :"k8s.replicaset.name" + + ### Erlang + + ```erlang + ?K_8_S_REPLICASET_NAME. + 'k8s.replicaset.name' + ``` + + + """ + @spec k_8_s_replicaset_name :: :"k8s.replicaset.name" + def k_8_s_replicaset_name do + :"k8s.replicaset.name" + end + + @doc """ + The UID of the ReplicaSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_uid() + :"k8s.replicaset.uid" + + ### Erlang + + ```erlang + ?K_8_S_REPLICASET_UID. + 'k8s.replicaset.uid' + ``` + + + """ + @spec k_8_s_replicaset_uid :: :"k8s.replicaset.uid" + def k_8_s_replicaset_uid do + :"k8s.replicaset.uid" + end + + @doc """ + The name of the StatefulSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_name() + :"k8s.statefulset.name" + + ### Erlang + + ```erlang + ?K_8_S_STATEFULSET_NAME. + 'k8s.statefulset.name' + ``` + + + """ + @spec k_8_s_statefulset_name :: :"k8s.statefulset.name" + def k_8_s_statefulset_name do + :"k8s.statefulset.name" + end + + @doc """ + The UID of the StatefulSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_uid() + :"k8s.statefulset.uid" + + ### Erlang + + ```erlang + ?K_8_S_STATEFULSET_UID. + 'k8s.statefulset.uid' + ``` + + + """ + @spec k_8_s_statefulset_uid :: :"k8s.statefulset.uid" + def k_8_s_statefulset_uid do + :"k8s.statefulset.uid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex new file mode 100644 index 00000000..885ff928 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -0,0 +1,228 @@ +defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Log attributes. + """ + + @doc """ + The basename of the file. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["audit.log"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_name() + :"log.file.name" + + ### Erlang + + ```erlang + ?LOG_FILE_NAME. + 'log.file.name' + ``` + + + """ + @spec log_file_name :: :"log.file.name" + def log_file_name do + :"log.file.name" + end + + @doc """ + The basename of the file, with symlinks resolved. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["uuid.log"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_nameresolved() + :"log.file.name_resolved" + + ### Erlang + + ```erlang + ?LOG_FILE_NAMERESOLVED. + 'log.file.name_resolved' + ``` + + + """ + @spec log_file_nameresolved :: :"log.file.name_resolved" + def log_file_nameresolved do + :"log.file.name_resolved" + end + + @doc """ + The full path to the file. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/var/log/mysql/audit.log"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_path() + :"log.file.path" + + ### Erlang + + ```erlang + ?LOG_FILE_PATH. + 'log.file.path' + ``` + + + """ + @spec log_file_path :: :"log.file.path" + def log_file_path do + :"log.file.path" + end + + @doc """ + The full path to the file, with symlinks resolved. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/var/lib/docker/uuid.log"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_pathresolved() + :"log.file.path_resolved" + + ### Erlang + + ```erlang + ?LOG_FILE_PATHRESOLVED. + 'log.file.path_resolved' + ``` + + + """ + @spec log_file_pathresolved :: :"log.file.path_resolved" + def log_file_pathresolved do + :"log.file.path_resolved" + end + + @typedoc """ + The stream associated with the log. See below for a list of well-known values. + + + ### Enum Values + * `:stdout` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Logs from stdout stream + * `:stderr` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Events from stderr stream + """ + @type log_iostream() :: %{ + :stdout => :stdout, + :stderr => :stderr + } + @doc """ + The stream associated with the log. See below for a list of well-known values. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream().stdout + :stdout + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'log_iostream.stdout'. + stdout + + ?log_iostream.(custom_value). + custom_value + ``` + + + """ + @spec log_iostream() :: log_iostream() + def log_iostream() do + %{ + :stdout => :stdout, + :stderr => :stderr + } + end + + @spec log_iostream(atom() | String.t()) :: atom() | String.t() + def log_iostream(custom_value) do + custom_value + end + + @doc """ + A unique identifier for the Log Record. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records **MUST** have different values. + The id **MAY** be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed. + + ### Examples + + ``` + ["01ARZ3NDEKTSV4RRFFQ69G5FAV"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_record_uid() + :"log.record.uid" + + ### Erlang + + ```erlang + ?LOG_RECORD_UID. + 'log.record.uid' + ``` + + + """ + @spec log_record_uid :: :"log.record.uid" + def log_record_uid do + :"log.record.uid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex similarity index 51% rename from apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index 748d36dd..8b6df18c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do +defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Messaging attributes. @@ -6,14 +6,34 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The number of messages sent, received, or processed in the scope of the batching operation. + ### Value type + + Value must be of type `integer()`. ### Notes Instrumentations **SHOULD** **NOT** set `messaging.batch.message_count` on spans that operate with a single message. When a messaging client library supports both batch and single-message API for the same operation, instrumentations **SHOULD** use `messaging.batch.message_count` for batching APIs and **SHOULD** **NOT** use it for single-message APIs. + ### Examples + + ``` + [0, 1, 2] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_batch_messagecount() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_batch_messagecount() :"messaging.batch.message_count" + + ### Erlang + + ```erlang + ?MESSAGING_BATCH_MESSAGECOUNT. + 'messaging.batch.message_count' + ``` + + """ @spec messaging_batch_messagecount :: :"messaging.batch.message_count" def messaging_batch_messagecount do @@ -23,11 +43,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A unique identifier for the client that consumes or produces a message. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["client-5", "myhost@8742@s8083jm"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_client_id() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_client_id() :"messaging.client.id" + + ### Erlang + + ```erlang + ?MESSAGING_CLIENT_ID. + 'messaging.client.id' + ``` + + """ @spec messaging_client_id :: :"messaging.client.id" def messaging_client_id do @@ -44,11 +83,25 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). + ### Value type + + Value must be of type `boolean()`. + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_anonymous() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_anonymous() :"messaging.destination.anonymous" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATION_ANONYMOUS. + 'messaging.destination.anonymous' + ``` + + """ @spec messaging_destination_anonymous :: :"messaging.destination.anonymous" def messaging_destination_anonymous do @@ -57,15 +110,35 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The message destination name + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Destination name **SHOULD** uniquely identify a specific queue, topic or other entity within the broker. If the broker doesn't have such notion, the destination name **SHOULD** uniquely identify the broker. + ### Examples + + ``` + ["MyQueue", "MyTopic"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_name() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_name() :"messaging.destination.name" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATION_NAME. + 'messaging.destination.name' + ``` + + """ @spec messaging_destination_name :: :"messaging.destination.name" def messaging_destination_name do @@ -75,11 +148,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 1 + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_partition_id() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_partition_id() :"messaging.destination.partition.id" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATION_PARTITION_ID. + 'messaging.destination.partition.id' + ``` + + """ @spec messaging_destination_partition_id :: :"messaging.destination.partition.id" def messaging_destination_partition_id do @@ -88,14 +180,34 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Low cardinality representation of the messaging destination name + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Destination names could be constructed from templates. An example would be a destination name involving a user name or product id. Although the destination name in this case is of high cardinality, the underlying template is of low cardinality and can be effectively used for grouping and aggregation. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_template() + ``` + ["/customers/{customerId}"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_template() :"messaging.destination.template" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATION_TEMPLATE. + 'messaging.destination.template' + ``` + + """ @spec messaging_destination_template :: :"messaging.destination.template" def messaging_destination_template do @@ -104,11 +216,25 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. + ### Value type + + Value must be of type `boolean()`. + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destination_temporary() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_temporary() :"messaging.destination.temporary" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATION_TEMPORARY. + 'messaging.destination.temporary' + ``` + + """ @spec messaging_destination_temporary :: :"messaging.destination.temporary" def messaging_destination_temporary do @@ -117,11 +243,25 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). + ### Value type + + Value must be of type `boolean()`. + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destinationpublish_anonymous() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destinationpublish_anonymous() :"messaging.destination_publish.anonymous" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATIONPUBLISH_ANONYMOUS. + 'messaging.destination_publish.anonymous' + ``` + + """ @spec messaging_destinationpublish_anonymous :: :"messaging.destination_publish.anonymous" def messaging_destinationpublish_anonymous do @@ -130,15 +270,35 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The name of the original destination the message was published to + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes The name **SHOULD** uniquely identify a specific queue, topic, or other entity within the broker. If the broker doesn't have such notion, the original destination name **SHOULD** uniquely identify the broker. + ### Examples + + ``` + ["MyQueue", "MyTopic"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_destinationpublish_name() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destinationpublish_name() :"messaging.destination_publish.name" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATIONPUBLISH_NAME. + 'messaging.destination_publish.name' + ``` + + """ @spec messaging_destinationpublish_name :: :"messaging.destination_publish.name" def messaging_destinationpublish_name do @@ -148,11 +308,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The name of the consumer group the event consumer is associated with. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + indexer + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_eventhubs_consumer_group() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_eventhubs_consumer_group() :"messaging.eventhubs.consumer.group" + + ### Erlang + + ```erlang + ?MESSAGING_EVENTHUBS_CONSUMER_GROUP. + 'messaging.eventhubs.consumer.group' + ``` + + """ @spec messaging_eventhubs_consumer_group :: :"messaging.eventhubs.consumer.group" def messaging_eventhubs_consumer_group do @@ -162,11 +341,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The UTC epoch seconds at which the message has been accepted and stored in the entity. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 1701393730 + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_eventhubs_message_enqueuedtime() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_eventhubs_message_enqueuedtime() :"messaging.eventhubs.message.enqueued_time" + + ### Erlang + + ```erlang + ?MESSAGING_EVENTHUBS_MESSAGE_ENQUEUEDTIME. + 'messaging.eventhubs.message.enqueued_time' + ``` + + """ @spec messaging_eventhubs_message_enqueuedtime :: :"messaging.eventhubs.message.enqueued_time" def messaging_eventhubs_message_enqueuedtime do @@ -176,11 +374,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The ack deadline in seconds set for the modify ack deadline request. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_ackdeadline() + ``` + 10 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_ackdeadline() :"messaging.gcp_pubsub.message.ack_deadline" + + ### Erlang + + ```erlang + ?MESSAGING_GCPPUBSUB_MESSAGE_ACKDEADLINE. + 'messaging.gcp_pubsub.message.ack_deadline' + ``` + + """ @spec messaging_gcppubsub_message_ackdeadline :: :"messaging.gcp_pubsub.message.ack_deadline" def messaging_gcppubsub_message_ackdeadline do @@ -190,11 +407,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The ack id for a given message. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ack_id + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_ackid() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_ackid() :"messaging.gcp_pubsub.message.ack_id" + + ### Erlang + + ```erlang + ?MESSAGING_GCPPUBSUB_MESSAGE_ACKID. + 'messaging.gcp_pubsub.message.ack_id' + ``` + + """ @spec messaging_gcppubsub_message_ackid :: :"messaging.gcp_pubsub.message.ack_id" def messaging_gcppubsub_message_ackid do @@ -204,11 +440,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The delivery attempt for a given message. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_deliveryattempt() + ``` + 2 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_deliveryattempt() :"messaging.gcp_pubsub.message.delivery_attempt" + + ### Erlang + + ```erlang + ?MESSAGING_GCPPUBSUB_MESSAGE_DELIVERYATTEMPT. + 'messaging.gcp_pubsub.message.delivery_attempt' + ``` + + """ @spec messaging_gcppubsub_message_deliveryattempt :: :"messaging.gcp_pubsub.message.delivery_attempt" @@ -219,11 +474,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ordering_key + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_gcppubsub_message_orderingkey() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_orderingkey() :"messaging.gcp_pubsub.message.ordering_key" + + ### Erlang + + ```erlang + ?MESSAGING_GCPPUBSUB_MESSAGE_ORDERINGKEY. + 'messaging.gcp_pubsub.message.ordering_key' + ``` + + """ @spec messaging_gcppubsub_message_orderingkey :: :"messaging.gcp_pubsub.message.ordering_key" def messaging_gcppubsub_message_orderingkey do @@ -233,11 +507,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_consumer_group() + ``` + my-group + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_consumer_group() :"messaging.kafka.consumer.group" + + ### Erlang + + ```erlang + ?MESSAGING_KAFKA_CONSUMER_GROUP. + 'messaging.kafka.consumer.group' + ``` + + """ @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer.group" def messaging_kafka_consumer_group do @@ -255,14 +548,34 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute **MUST** **NOT** be set. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value. + ### Examples + + ``` + myKey + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_message_key() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_message_key() :"messaging.kafka.message.key" + + ### Erlang + + ```erlang + ?MESSAGING_KAFKA_MESSAGE_KEY. + 'messaging.kafka.message.key' + ``` + + """ @spec messaging_kafka_message_key :: :"messaging.kafka.message.key" def messaging_kafka_message_key do @@ -272,11 +585,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The offset of a record in the corresponding Kafka partition. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 42 + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_message_offset() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_message_offset() :"messaging.kafka.message.offset" + + ### Erlang + + ```erlang + ?MESSAGING_KAFKA_MESSAGE_OFFSET. + 'messaging.kafka.message.offset' + ``` + + """ @spec messaging_kafka_message_offset :: :"messaging.kafka.message.offset" def messaging_kafka_message_offset do @@ -285,11 +617,25 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A boolean that is true if the message is a tombstone. + ### Value type + + Value must be of type `boolean()`. + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_kafka_message_tombstone() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_message_tombstone() :"messaging.kafka.message.tombstone" + + ### Erlang + + ```erlang + ?MESSAGING_KAFKA_MESSAGE_TOMBSTONE. + 'messaging.kafka.message.tombstone' + ``` + + """ @spec messaging_kafka_message_tombstone :: :"messaging.kafka.message.tombstone" def messaging_kafka_message_tombstone do @@ -299,15 +645,35 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The size of the message body in bytes. + ### Value type + + Value must be of type `integer()`. ### Notes This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed body size should be used. + ### Examples + + ``` + 1439 + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_body_size() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_message_body_size() :"messaging.message.body.size" + + ### Erlang + + ```erlang + ?MESSAGING_MESSAGE_BODY_SIZE. + 'messaging.message.body.size' + ``` + + """ @spec messaging_message_body_size :: :"messaging.message.body.size" def messaging_message_body_size do @@ -317,11 +683,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + MyConversationId + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_conversationid() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_message_conversationid() :"messaging.message.conversation_id" + + ### Erlang + + ```erlang + ?MESSAGING_MESSAGE_CONVERSATIONID. + 'messaging.message.conversation_id' + ``` + + """ @spec messaging_message_conversationid :: :"messaging.message.conversation_id" def messaging_message_conversationid do @@ -331,15 +716,35 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The size of the message body and metadata in bytes. + ### Value type + + Value must be of type `integer()`. ### Notes This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed size should be used. + ### Examples + + ``` + 2738 + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_envelope_size() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_message_envelope_size() :"messaging.message.envelope.size" + + ### Erlang + + ```erlang + ?MESSAGING_MESSAGE_ENVELOPE_SIZE. + 'messaging.message.envelope.size' + ``` + + """ @spec messaging_message_envelope_size :: :"messaging.message.envelope.size" def messaging_message_envelope_size do @@ -348,11 +753,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A value used by the messaging system as an identifier for the message, represented as a string. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 452a7c7c7c7048c2f887f61572b18fc2 + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_message_id() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_message_id() :"messaging.message.id" + + ### Erlang + + ```erlang + ?MESSAGING_MESSAGE_ID. + 'messaging.message.id' + ``` + + """ @spec messaging_message_id :: :"messaging.message.id" def messaging_message_id do @@ -370,11 +794,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The system-specific name of the messaging operation. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["ack", "nack", "send"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_name() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_name() :"messaging.operation.name" + + ### Erlang + + ```erlang + ?MESSAGING_OPERATION_NAME. + 'messaging.operation.name' + ``` + + """ @spec messaging_operation_name :: :"messaging.operation.name" def messaging_operation_name do @@ -386,15 +829,15 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do ### Enum Values - * `:publish` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created. + * `:publish` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are provided for publishing to an intermediary. If a single message is published, the context of the "Publish" span can be used as the creation context and no "Create" span needs to be created. - * `:create` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios. + * `:create` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - A message is created. "Create" spans always refer to a single message and are used to provide a unique creation context for messages in batch publishing scenarios. - * `:receive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. + * `:receive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. - * `:deliver` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are delivered to or processed by a consumer. + * `:deliver` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are delivered to or processed by a consumer. - * `:settle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - One or more messages are settled. + * `:settle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are settled. """ @type messaging_operation_type() :: %{ @@ -407,16 +850,32 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ A string identifying the type of the messaging operation. + ### Notes If a custom value is used, it **MUST** be of low cardinality. - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type().publish + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type().publish :publish - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_operation_type(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'messaging_operation_type.publish'. + publish + + ?messaging_operation_type.(custom_value). + custom_value + ``` + + """ @spec messaging_operation_type() :: messaging_operation_type() def messaging_operation_type() do @@ -437,11 +896,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ RabbitMQ message routing key. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rabbitmq_destination_routingkey() + ``` + myKey + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rabbitmq_destination_routingkey() :"messaging.rabbitmq.destination.routing_key" + + ### Erlang + + ```erlang + ?MESSAGING_RABBITMQ_DESTINATION_ROUTINGKEY. + 'messaging.rabbitmq.destination.routing_key' + ``` + + """ @spec messaging_rabbitmq_destination_routingkey :: :"messaging.rabbitmq.destination.routing_key" def messaging_rabbitmq_destination_routingkey do @@ -451,11 +929,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ RabbitMQ message delivery tag + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 123 + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rabbitmq_message_deliverytag() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rabbitmq_message_deliverytag() :"messaging.rabbitmq.message.delivery_tag" + + ### Erlang + + ```erlang + ?MESSAGING_RABBITMQ_MESSAGE_DELIVERYTAG. + 'messaging.rabbitmq.message.delivery_tag' + ``` + + """ @spec messaging_rabbitmq_message_deliverytag :: :"messaging.rabbitmq.message.delivery_tag" def messaging_rabbitmq_message_deliverytag do @@ -465,11 +962,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_clientgroup() + ``` + myConsumerGroup + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_clientgroup() :"messaging.rocketmq.client_group" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_CLIENTGROUP. + 'messaging.rocketmq.client_group' + ``` + + """ @spec messaging_rocketmq_clientgroup :: :"messaging.rocketmq.client_group" def messaging_rocketmq_clientgroup do @@ -481,8 +997,8 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do ### Enum Values - * `:clustering` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Clustering consumption model - * `:broadcasting` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Broadcasting consumption model + * `:clustering` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Clustering consumption model + * `:broadcasting` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Broadcasting consumption model """ @type messaging_rocketmq_consumptionmodel() :: %{ :clustering => :clustering, @@ -493,12 +1009,27 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel().clustering + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel().clustering :clustering - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_consumptionmodel(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'messaging_rocketmq_consumptionmodel.clustering'. + clustering + + ?messaging_rocketmq_consumptionmodel.(custom_value). + custom_value + ``` + + """ @spec messaging_rocketmq_consumptionmodel() :: messaging_rocketmq_consumptionmodel() def messaging_rocketmq_consumptionmodel() do @@ -516,11 +1047,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The delay time level for delay message, which determines the message delay time. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_delaytimelevel() + ``` + 3 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_delaytimelevel() :"messaging.rocketmq.message.delay_time_level" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_MESSAGE_DELAYTIMELEVEL. + 'messaging.rocketmq.message.delay_time_level' + ``` + + """ @spec messaging_rocketmq_message_delaytimelevel :: :"messaging.rocketmq.message.delay_time_level" @@ -531,11 +1081,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The timestamp in milliseconds that the delay message is expected to be delivered to consumer. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 1665987217045 + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_deliverytimestamp() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_deliverytimestamp() :"messaging.rocketmq.message.delivery_timestamp" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_MESSAGE_DELIVERYTIMESTAMP. + 'messaging.rocketmq.message.delivery_timestamp' + ``` + + """ @spec messaging_rocketmq_message_deliverytimestamp :: :"messaging.rocketmq.message.delivery_timestamp" @@ -546,11 +1115,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + myMessageGroup + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_group() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_group() :"messaging.rocketmq.message.group" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_MESSAGE_GROUP. + 'messaging.rocketmq.message.group' + ``` + + """ @spec messaging_rocketmq_message_group :: :"messaging.rocketmq.message.group" def messaging_rocketmq_message_group do @@ -560,11 +1148,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Key(s) of message, another way to mark message besides message id. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + ``` + ["keyA", "keyB"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_keys() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_keys() :"messaging.rocketmq.message.keys" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_MESSAGE_KEYS. + 'messaging.rocketmq.message.keys' + ``` + + """ @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message.keys" def messaging_rocketmq_message_keys do @@ -574,11 +1181,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The secondary classifier of message besides topic. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + tagA + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_tag() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_tag() :"messaging.rocketmq.message.tag" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_MESSAGE_TAG. + 'messaging.rocketmq.message.tag' + ``` + + """ @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message.tag" def messaging_rocketmq_message_tag do @@ -590,10 +1216,10 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do ### Enum Values - * `:normal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Normal message - * `:fifo` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FIFO message - * `:delay` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Delay message - * `:transaction` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Transaction message + * `:normal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Normal message + * `:fifo` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FIFO message + * `:delay` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Delay message + * `:transaction` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Transaction message """ @type messaging_rocketmq_message_type() :: %{ :normal => :normal, @@ -606,12 +1232,27 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type().normal + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type().normal :normal - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_message_type(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'messaging_rocketmq_message_type.normal'. + normal + + ?messaging_rocketmq_message_type.(custom_value). + custom_value + ``` + + """ @spec messaging_rocketmq_message_type() :: messaging_rocketmq_message_type() def messaging_rocketmq_message_type() do @@ -631,11 +1272,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Namespace of RocketMQ resources, resources in different namespaces are individual. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + myNamespace + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_rocketmq_namespace() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_namespace() :"messaging.rocketmq.namespace" + + ### Erlang + + ```erlang + ?MESSAGING_ROCKETMQ_NAMESPACE. + 'messaging.rocketmq.namespace' + ``` + + """ @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" def messaging_rocketmq_namespace do @@ -645,11 +1305,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The name of the subscription in the topic messages are received from. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_destination_subscriptionname() + ``` + mySubscription + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_destination_subscriptionname() :"messaging.servicebus.destination.subscription_name" + + ### Erlang + + ```erlang + ?MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTIONNAME. + 'messaging.servicebus.destination.subscription_name' + ``` + + """ @spec messaging_servicebus_destination_subscriptionname :: :"messaging.servicebus.destination.subscription_name" @@ -662,10 +1341,10 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do ### Enum Values - * `:complete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is completed - * `:abandon` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is abandoned - * `:dead_letter` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is sent to dead letter queue - * `:defer` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Message is deferred + * `:complete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is completed + * `:abandon` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is abandoned + * `:dead_letter` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is sent to dead letter queue + * `:defer` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is deferred """ @type messaging_servicebus_dispositionstatus() :: %{ :complete => :complete, @@ -678,12 +1357,27 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus().complete + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus().complete :complete - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_dispositionstatus(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'messaging_servicebus_dispositionstatus.complete'. + complete + + ?messaging_servicebus_dispositionstatus.(custom_value). + custom_value + ``` + + """ @spec messaging_servicebus_dispositionstatus() :: messaging_servicebus_dispositionstatus() def messaging_servicebus_dispositionstatus() do @@ -703,11 +1397,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ Number of deliveries that have been attempted for this message. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_message_deliverycount() + ``` + 2 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_message_deliverycount() :"messaging.servicebus.message.delivery_count" + + ### Erlang + + ```erlang + ?MESSAGING_SERVICEBUS_MESSAGE_DELIVERYCOUNT. + 'messaging.servicebus.message.delivery_count' + ``` + + """ @spec messaging_servicebus_message_deliverycount :: :"messaging.servicebus.message.delivery_count" @@ -718,11 +1431,30 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do @doc """ The UTC epoch seconds at which the message has been accepted and stored in the entity. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 1701393730 + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_servicebus_message_enqueuedtime() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_message_enqueuedtime() :"messaging.servicebus.message.enqueued_time" + + ### Erlang + + ```erlang + ?MESSAGING_SERVICEBUS_MESSAGE_ENQUEUEDTIME. + 'messaging.servicebus.message.enqueued_time' + ``` + + """ @spec messaging_servicebus_message_enqueuedtime :: :"messaging.servicebus.message.enqueued_time" def messaging_servicebus_message_enqueuedtime do @@ -733,16 +1465,16 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do The messaging system as identified by the client instrumentation. ### Enum Values - * `:activemq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache ActiveMQ - * `:aws_sqs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Amazon Simple Queue Service (SQS) - * `:eventgrid` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Grid - * `:eventhubs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Event Hubs - * `:servicebus` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Azure Service Bus - * `:gcp_pubsub` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Google Cloud Pub/Sub - * `:jms` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java Message Service - * `:kafka` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Kafka - * `:rabbitmq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RabbitMQ - * `:rocketmq` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache RocketMQ + * `:activemq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache ActiveMQ + * `:aws_sqs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon Simple Queue Service (SQS) + * `:eventgrid` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Event Grid + * `:eventhubs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Event Hubs + * `:servicebus` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Azure Service Bus + * `:gcp_pubsub` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Pub/Sub + * `:jms` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Java Message Service + * `:kafka` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Kafka + * `:rabbitmq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - RabbitMQ + * `:rocketmq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache RocketMQ """ @type messaging_system() :: %{ :activemq => :activemq, @@ -758,17 +1490,33 @@ defmodule OpenTelemetry.SemanticConventions.MessagingAttributes do } @doc """ The messaging system as identified by the client instrumentation. + ### Notes The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge. - ### Example - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system().activemq + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system().activemq :activemq - iex> OpenTelemetry.SemanticConventions.MessagingAttributes.messaging_system(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'messaging_system.activemq'. + activemq + + ?messaging_system.(custom_value). + custom_value + ``` + + """ @spec messaging_system() :: messaging_system() def messaging_system() do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex new file mode 100644 index 00000000..80ac0341 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex @@ -0,0 +1,535 @@ +defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Network attributes. + """ + + @deprecated """ + Replaced by `network.local.address`. + """ + @spec net_host_ip :: :"net.host.ip" + def net_host_ip do + :"net.host.ip" + end + + @deprecated """ + Replaced by `server.address`. + """ + @spec net_host_name :: :"net.host.name" + def net_host_name do + :"net.host.name" + end + + @deprecated """ + Replaced by `server.port`. + """ + @spec net_host_port :: :"net.host.port" + def net_host_port do + :"net.host.port" + end + + @deprecated """ + Replaced by `network.peer.address`. + """ + @spec net_peer_ip :: :"net.peer.ip" + def net_peer_ip do + :"net.peer.ip" + end + + @deprecated """ + Replaced by `server.address` on client spans and `client.address` on server spans. + """ + @spec net_peer_name :: :"net.peer.name" + def net_peer_name do + :"net.peer.name" + end + + @deprecated """ + Replaced by `server.port` on client spans and `client.port` on server spans. + """ + @spec net_peer_port :: :"net.peer.port" + def net_peer_port do + :"net.peer.port" + end + + @deprecated """ + Replaced by `network.protocol.name`. + """ + @spec net_protocol_name :: :"net.protocol.name" + def net_protocol_name do + :"net.protocol.name" + end + + @deprecated """ + Replaced by `network.protocol.version`. + """ + @spec net_protocol_version :: :"net.protocol.version" + def net_protocol_version do + :"net.protocol.version" + end + + @typedoc """ + Deprecated, use `network.transport` and `network.type`. + + ### Enum Values + * `:inet` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IPv4 address + * `:inet6` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IPv6 address + * `:unix` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Unix domain socket path + """ + @type net_sock_family() :: %{ + :inet => :inet, + :inet6 => :inet6, + :unix => :unix + } + @deprecated """ + Split to `network.transport` and `network.type`. + """ + @spec net_sock_family() :: net_sock_family() + def net_sock_family() do + %{ + :inet => :inet, + :inet6 => :inet6, + :unix => :unix + } + end + + @spec net_sock_family(atom() | String.t()) :: atom() | String.t() + def net_sock_family(custom_value) do + custom_value + end + + @deprecated """ + Replaced by `network.local.address`. + """ + @spec net_sock_host_addr :: :"net.sock.host.addr" + def net_sock_host_addr do + :"net.sock.host.addr" + end + + @deprecated """ + Replaced by `network.local.port`. + """ + @spec net_sock_host_port :: :"net.sock.host.port" + def net_sock_host_port do + :"net.sock.host.port" + end + + @deprecated """ + Replaced by `network.peer.address`. + """ + @spec net_sock_peer_addr :: :"net.sock.peer.addr" + def net_sock_peer_addr do + :"net.sock.peer.addr" + end + + @deprecated """ + Removed. + """ + @spec net_sock_peer_name :: :"net.sock.peer.name" + def net_sock_peer_name do + :"net.sock.peer.name" + end + + @deprecated """ + Replaced by `network.peer.port`. + """ + @spec net_sock_peer_port :: :"net.sock.peer.port" + def net_sock_peer_port do + :"net.sock.peer.port" + end + + @typedoc """ + Deprecated, use `network.transport`. + + ### Enum Values + * `:ip_tcp` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:ip_udp` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:pipe` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Named or anonymous pipe. + * `:inproc` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - In-process communication. + * `:other` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Something else (non IP-based). + """ + @type net_transport() :: %{ + :ip_tcp => :ip_tcp, + :ip_udp => :ip_udp, + :pipe => :pipe, + :inproc => :inproc, + :other => :other + } + @deprecated """ + Replaced by `network.transport`. + """ + @spec net_transport() :: net_transport() + def net_transport() do + %{ + :ip_tcp => :ip_tcp, + :ip_udp => :ip_udp, + :pipe => :pipe, + :inproc => :inproc, + :other => :other + } + end + + @spec net_transport(atom() | String.t()) :: atom() | String.t() + def net_transport(custom_value) do + custom_value + end + + @doc """ + The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + DE + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_icc() + :"network.carrier.icc" + + ### Erlang + + ```erlang + ?NETWORK_CARRIER_ICC. + 'network.carrier.icc' + ``` + + + """ + @spec network_carrier_icc :: :"network.carrier.icc" + def network_carrier_icc do + :"network.carrier.icc" + end + + @doc """ + The mobile carrier country code. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 310 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_mcc() + :"network.carrier.mcc" + + ### Erlang + + ```erlang + ?NETWORK_CARRIER_MCC. + 'network.carrier.mcc' + ``` + + + """ + @spec network_carrier_mcc :: :"network.carrier.mcc" + def network_carrier_mcc do + :"network.carrier.mcc" + end + + @doc """ + The mobile carrier network code. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 001 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_mnc() + :"network.carrier.mnc" + + ### Erlang + + ```erlang + ?NETWORK_CARRIER_MNC. + 'network.carrier.mnc' + ``` + + + """ + @spec network_carrier_mnc :: :"network.carrier.mnc" + def network_carrier_mnc do + :"network.carrier.mnc" + end + + @doc """ + The name of the mobile carrier. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + sprint + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_carrier_name() + :"network.carrier.name" + + ### Erlang + + ```erlang + ?NETWORK_CARRIER_NAME. + 'network.carrier.name' + ``` + + + """ + @spec network_carrier_name :: :"network.carrier.name" + def network_carrier_name do + :"network.carrier.name" + end + + @typedoc """ + This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + + ### Enum Values + * `:gprs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GPRS + * `:edge` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EDGE + * `:umts` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UMTS + * `:cdma` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CDMA + * `:evdo_0` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EVDO Rel. 0 + * `:evdo_a` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EVDO Rev. A + * `:cdma2000_1xrtt` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CDMA2000 1XRTT + * `:hsdpa` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HSDPA + * `:hsupa` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HSUPA + * `:hspa` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HSPA + * `:iden` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IDEN + * `:evdo_b` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EVDO Rev. B + * `:lte` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - LTE + * `:ehrpd` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EHRPD + * `:hspap` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HSPAP + * `:gsm` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GSM + * `:td_scdma` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - TD-SCDMA + * `:iwlan` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IWLAN + * `:nr` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 5G NR (New Radio) + * `:nrnsa` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) + * `:lte_ca` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - LTE CA + """ + @type network_connection_subtype() :: %{ + :gprs => :gprs, + :edge => :edge, + :umts => :umts, + :cdma => :cdma, + :evdo_0 => :evdo_0, + :evdo_a => :evdo_a, + :cdma2000_1xrtt => :cdma2000_1xrtt, + :hsdpa => :hsdpa, + :hsupa => :hsupa, + :hspa => :hspa, + :iden => :iden, + :evdo_b => :evdo_b, + :lte => :lte, + :ehrpd => :ehrpd, + :hspap => :hspap, + :gsm => :gsm, + :td_scdma => :td_scdma, + :iwlan => :iwlan, + :nr => :nr, + :nrnsa => :nrnsa, + :lte_ca => :lte_ca + } + @doc """ + This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + + ### Examples + + ``` + LTE + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype().gprs + :gprs + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'network_connection_subtype.gprs'. + gprs + + ?network_connection_subtype.(custom_value). + custom_value + ``` + + + """ + @spec network_connection_subtype() :: network_connection_subtype() + def network_connection_subtype() do + %{ + :gprs => :gprs, + :edge => :edge, + :umts => :umts, + :cdma => :cdma, + :evdo_0 => :evdo_0, + :evdo_a => :evdo_a, + :cdma2000_1xrtt => :cdma2000_1xrtt, + :hsdpa => :hsdpa, + :hsupa => :hsupa, + :hspa => :hspa, + :iden => :iden, + :evdo_b => :evdo_b, + :lte => :lte, + :ehrpd => :ehrpd, + :hspap => :hspap, + :gsm => :gsm, + :td_scdma => :td_scdma, + :iwlan => :iwlan, + :nr => :nr, + :nrnsa => :nrnsa, + :lte_ca => :lte_ca + } + end + + @spec network_connection_subtype(atom() | String.t()) :: atom() | String.t() + def network_connection_subtype(custom_value) do + custom_value + end + + @typedoc """ + The internet connection type. + + ### Enum Values + * `:wifi` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:wired` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:cell` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unavailable` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unknown` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type network_connection_type() :: %{ + :wifi => :wifi, + :wired => :wired, + :cell => :cell, + :unavailable => :unavailable, + :unknown => :unknown + } + @doc """ + The internet connection type. + + ### Examples + + ``` + wifi + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type().wifi + :wifi + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'network_connection_type.wifi'. + wifi + + ?network_connection_type.(custom_value). + custom_value + ``` + + + """ + @spec network_connection_type() :: network_connection_type() + def network_connection_type() do + %{ + :wifi => :wifi, + :wired => :wired, + :cell => :cell, + :unavailable => :unavailable, + :unknown => :unknown + } + end + + @spec network_connection_type(atom() | String.t()) :: atom() | String.t() + def network_connection_type(custom_value) do + custom_value + end + + @typedoc """ + The network IO operation direction. + + ### Enum Values + * `:transmit` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:receive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type network_io_direction() :: %{ + :transmit => :transmit, + :receive => :receive + } + @doc """ + The network IO operation direction. + + ### Examples + + ``` + ["transmit"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction().transmit + :transmit + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'network_io_direction.transmit'. + transmit + + ?network_io_direction.(custom_value). + custom_value + ``` + + + """ + @spec network_io_direction() :: network_io_direction() + def network_io_direction() do + %{ + :transmit => :transmit, + :receive => :receive + } + end + + @spec network_io_direction(atom() | String.t()) :: atom() | String.t() + def network_io_direction(custom_value) do + custom_value + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex similarity index 59% rename from apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex index 1265a733..7bed10ea 100644 --- a/apps/opentelemetry_semantic_conventions/lib/oci_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex @@ -1,21 +1,41 @@ -defmodule OpenTelemetry.SemanticConventions.OciAttributes do +defmodule OpenTelemetry.SemConv.Incubating.OCIAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Oci attributes. + OpenTelemetry Semantic Conventions for OCI attributes. """ @doc """ The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes Follows [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md), and specifically the [Digest property](https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests). An example can be found in [Example Image Manifest](https://docs.docker.com/registry/spec/manifest-v2-2/#example-image-manifest). + ### Examples + + ``` + ["sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.OciAttributes.oci_manifest_digest() + iex> OpenTelemetry.SemConv.Incubating.OCIAttributes.oci_manifest_digest() :"oci.manifest.digest" + + ### Erlang + + ```erlang + ?OCI_MANIFEST_DIGEST. + 'oci.manifest.digest' + ``` + + """ @spec oci_manifest_digest :: :"oci.manifest.digest" def oci_manifest_digest do diff --git a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex similarity index 52% rename from apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index 8b84423e..a7fa5ae7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do +defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Opentracing attributes. @@ -8,8 +8,8 @@ defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do Parent-child Reference type ### Enum Values - * `:child_of` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span depends on the child Span in some capacity - * `:follows_from` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span + * `:child_of` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - The parent Span depends on the child Span in some capacity + * `:follows_from` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span """ @type opentracing_reftype() :: %{ :child_of => :child_of, @@ -17,17 +17,33 @@ defmodule OpenTelemetry.SemanticConventions.OpentracingAttributes do } @doc """ Parent-child Reference type + ### Notes The causal relationship between a child Span and a parent Span. - ### Example - iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype().child_of + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype().child_of :child_of - iex> OpenTelemetry.SemanticConventions.OpentracingAttributes.opentracing_reftype(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'opentracing_reftype.child_of'. + child_of + + ?opentracing_reftype.(custom_value). + custom_value + ``` + + """ @spec opentracing_reftype() :: opentracing_reftype() def opentracing_reftype() do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex new file mode 100644 index 00000000..fba39b3a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -0,0 +1,215 @@ +defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for OS attributes. + """ + + @doc """ + Unique identifier for a particular build or compilation of the operating system. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["TQ3C.230805.001.B2", "20E247", "22621"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_buildid() + :"os.build_id" + + ### Erlang + + ```erlang + ?OS_BUILDID. + 'os.build_id' + ``` + + + """ + @spec os_buildid :: :"os.build_id" + def os_buildid do + :"os.build_id" + end + + @doc """ + Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_description() + :"os.description" + + ### Erlang + + ```erlang + ?OS_DESCRIPTION. + 'os.description' + ``` + + + """ + @spec os_description :: :"os.description" + def os_description do + :"os.description" + end + + @doc """ + Human readable operating system name. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["iOS", "Android", "Ubuntu"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_name() + :"os.name" + + ### Erlang + + ```erlang + ?OS_NAME. + 'os.name' + ``` + + + """ + @spec os_name :: :"os.name" + def os_name do + :"os.name" + end + + @typedoc """ + The operating system type. + + + ### Enum Values + * `:windows` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft Windows + * `:linux` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Linux + * `:darwin` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apple Darwin + * `:freebsd` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FreeBSD + * `:netbsd` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - NetBSD + * `:openbsd` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenBSD + * `:dragonflybsd` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - DragonFly BSD + * `:hpux` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HP-UX (Hewlett Packard Unix) + * `:aix` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - AIX (Advanced Interactive eXecutive) + * `:solaris` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SunOS, Oracle Solaris + * `:z_os` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM z/OS + """ + @type os_type() :: %{ + :windows => :windows, + :linux => :linux, + :darwin => :darwin, + :freebsd => :freebsd, + :netbsd => :netbsd, + :openbsd => :openbsd, + :dragonflybsd => :dragonflybsd, + :hpux => :hpux, + :aix => :aix, + :solaris => :solaris, + :z_os => :z_os + } + @doc """ + The operating system type. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type().windows + :windows + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'os_type.windows'. + windows + + ?os_type.(custom_value). + custom_value + ``` + + + """ + @spec os_type() :: os_type() + def os_type() do + %{ + :windows => :windows, + :linux => :linux, + :darwin => :darwin, + :freebsd => :freebsd, + :netbsd => :netbsd, + :openbsd => :openbsd, + :dragonflybsd => :dragonflybsd, + :hpux => :hpux, + :aix => :aix, + :solaris => :solaris, + :z_os => :z_os + } + end + + @spec os_type(atom() | String.t()) :: atom() | String.t() + def os_type(custom_value) do + custom_value + end + + @doc """ + The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["14.2.1", "18.04.1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_version() + :"os.version" + + ### Erlang + + ```erlang + ?OS_VERSION. + 'os.version' + ``` + + + """ + @spec os_version :: :"os.version" + def os_version do + :"os.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/otel_attributes.ex new file mode 100644 index 00000000..d0fc65f4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/otel_attributes.ex @@ -0,0 +1,22 @@ +defmodule OpenTelemetry.SemConv.Incubating.OtelAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Otel attributes. + """ + + @deprecated """ + use the `otel.scope.name` attribute. + """ + @spec otel_library_name :: :"otel.library.name" + def otel_library_name do + :"otel.library.name" + end + + @deprecated """ + use the `otel.scope.version` attribute. + """ + @spec otel_library_version :: :"otel.library.version" + def otel_library_version do + :"otel.library.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex similarity index 53% rename from apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex index 9c3173ce..1ea717e0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/peer_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.PeerAttributes do +defmodule OpenTelemetry.SemConv.Incubating.PeerAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Peer attributes. @@ -7,11 +7,30 @@ defmodule OpenTelemetry.SemanticConventions.PeerAttributes do @doc """ The [`service.name`](/docs/resource/README.md#service) of the remote service. **SHOULD** be equal to the actual `service.name` resource attribute of the remote service if any. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.PeerAttributes.peer_service() + ``` + AuthTokenCache + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.PeerAttributes.peer_service() :"peer.service" + + ### Erlang + + ```erlang + ?PEER_SERVICE. + 'peer.service' + ``` + + """ @spec peer_service :: :"peer.service" def peer_service do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex new file mode 100644 index 00000000..ff504045 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -0,0 +1,954 @@ +defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Process attributes. + """ + + @doc """ + The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["cmd/otelcol"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_command() + :"process.command" + + ### Erlang + + ```erlang + ?PROCESS_COMMAND. + 'process.command' + ``` + + + """ + @spec process_command :: :"process.command" + def process_command do + :"process.command" + end + + @doc """ + All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["cmd/otecol", "--config=config.yaml"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_commandargs() + :"process.command_args" + + ### Erlang + + ```erlang + ?PROCESS_COMMANDARGS. + 'process.command_args' + ``` + + + """ + @spec process_commandargs :: :"process.command_args" + def process_commandargs do + :"process.command_args" + end + + @doc """ + The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["C:\\cmd\\otecol --config=\"my directory\\config.yaml\""] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_commandline() + :"process.command_line" + + ### Erlang + + ```erlang + ?PROCESS_COMMANDLINE. + 'process.command_line' + ``` + + + """ + @spec process_commandline :: :"process.command_line" + def process_commandline do + :"process.command_line" + end + + @typedoc """ + Specifies whether the context switches for this data point were voluntary or involuntary. + + ### Enum Values + * `:voluntary` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:involuntary` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type process_contextswitchtype() :: %{ + :voluntary => :voluntary, + :involuntary => :involuntary + } + @doc """ + Specifies whether the context switches for this data point were voluntary or involuntary. + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype().voluntary + :voluntary + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'process_contextswitchtype.voluntary'. + voluntary + + ?process_contextswitchtype.(custom_value). + custom_value + ``` + + + """ + @spec process_contextswitchtype() :: process_contextswitchtype() + def process_contextswitchtype() do + %{ + :voluntary => :voluntary, + :involuntary => :involuntary + } + end + + @spec process_contextswitchtype(atom() | String.t()) :: atom() | String.t() + def process_contextswitchtype(custom_value) do + custom_value + end + + @typedoc """ + The CPU state of the process. + + + ### Enum Values + * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type process_cpu_state() :: %{ + :system => :system, + :user => :user, + :wait => :wait + } + @doc """ + The CPU state of the process. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state().system + :system + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'process_cpu_state.system'. + system + + ?process_cpu_state.(custom_value). + custom_value + ``` + + + """ + @spec process_cpu_state() :: process_cpu_state() + def process_cpu_state() do + %{ + :system => :system, + :user => :user, + :wait => :wait + } + end + + @spec process_cpu_state(atom() | String.t()) :: atom() | String.t() + def process_cpu_state(custom_value) do + custom_value + end + + @doc """ + The date and time the process was created, in ISO 8601 format. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2023-11-21T09:25:34.853Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_creation_time() + :"process.creation.time" + + ### Erlang + + ```erlang + ?PROCESS_CREATION_TIME. + 'process.creation.time' + ``` + + + """ + @spec process_creation_time :: :"process.creation.time" + def process_creation_time do + :"process.creation.time" + end + + @doc """ + The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["otelcol"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_executable_name() + :"process.executable.name" + + ### Erlang + + ```erlang + ?PROCESS_EXECUTABLE_NAME. + 'process.executable.name' + ``` + + + """ + @spec process_executable_name :: :"process.executable.name" + def process_executable_name do + :"process.executable.name" + end + + @doc """ + The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/usr/bin/cmd/otelcol"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_executable_path() + :"process.executable.path" + + ### Erlang + + ```erlang + ?PROCESS_EXECUTABLE_PATH. + 'process.executable.path' + ``` + + + """ + @spec process_executable_path :: :"process.executable.path" + def process_executable_path do + :"process.executable.path" + end + + @doc """ + The exit code of the process. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [127] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_exit_code() + :"process.exit.code" + + ### Erlang + + ```erlang + ?PROCESS_EXIT_CODE. + 'process.exit.code' + ``` + + + """ + @spec process_exit_code :: :"process.exit.code" + def process_exit_code do + :"process.exit.code" + end + + @doc """ + The date and time the process exited, in ISO 8601 format. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2023-11-21T09:26:12.315Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_exit_time() + :"process.exit.time" + + ### Erlang + + ```erlang + ?PROCESS_EXIT_TIME. + 'process.exit.time' + ``` + + + """ + @spec process_exit_time :: :"process.exit.time" + def process_exit_time do + :"process.exit.time" + end + + @doc """ + The PID of the process's group leader. This is also the process group ID (PGID) of the process. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [23] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_groupleader_pid() + :"process.group_leader.pid" + + ### Erlang + + ```erlang + ?PROCESS_GROUPLEADER_PID. + 'process.group_leader.pid' + ``` + + + """ + @spec process_groupleader_pid :: :"process.group_leader.pid" + def process_groupleader_pid do + :"process.group_leader.pid" + end + + @doc """ + Whether the process is connected to an interactive shell. + + ### Value type + + Value must be of type `boolean()`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_interactive() + :"process.interactive" + + ### Erlang + + ```erlang + ?PROCESS_INTERACTIVE. + 'process.interactive' + ``` + + + """ + @spec process_interactive :: :"process.interactive" + def process_interactive do + :"process.interactive" + end + + @doc """ + The username of the user that owns the process. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["root"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_owner() + :"process.owner" + + ### Erlang + + ```erlang + ?PROCESS_OWNER. + 'process.owner' + ``` + + + """ + @spec process_owner :: :"process.owner" + def process_owner do + :"process.owner" + end + + @typedoc """ + The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. + + + ### Enum Values + * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type process_paging_faulttype() :: %{ + :major => :major, + :minor => :minor + } + @doc """ + The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype().major + :major + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'process_paging_faulttype.major'. + major + + ?process_paging_faulttype.(custom_value). + custom_value + ``` + + + """ + @spec process_paging_faulttype() :: process_paging_faulttype() + def process_paging_faulttype() do + %{ + :major => :major, + :minor => :minor + } + end + + @spec process_paging_faulttype(atom() | String.t()) :: atom() | String.t() + def process_paging_faulttype(custom_value) do + custom_value + end + + @doc """ + Parent Process identifier (PPID). + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [111] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_parentpid() + :"process.parent_pid" + + ### Erlang + + ```erlang + ?PROCESS_PARENTPID. + 'process.parent_pid' + ``` + + + """ + @spec process_parentpid :: :"process.parent_pid" + def process_parentpid do + :"process.parent_pid" + end + + @doc """ + Process identifier (PID). + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [1234] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_pid() + :"process.pid" + + ### Erlang + + ```erlang + ?PROCESS_PID. + 'process.pid' + ``` + + + """ + @spec process_pid :: :"process.pid" + def process_pid do + :"process.pid" + end + + @doc """ + The real user ID (RUID) of the process. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [1000] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_realuser_id() + :"process.real_user.id" + + ### Erlang + + ```erlang + ?PROCESS_REALUSER_ID. + 'process.real_user.id' + ``` + + + """ + @spec process_realuser_id :: :"process.real_user.id" + def process_realuser_id do + :"process.real_user.id" + end + + @doc """ + The username of the real user of the process. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["operator"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_realuser_name() + :"process.real_user.name" + + ### Erlang + + ```erlang + ?PROCESS_REALUSER_NAME. + 'process.real_user.name' + ``` + + + """ + @spec process_realuser_name :: :"process.real_user.name" + def process_realuser_name do + :"process.real_user.name" + end + + @doc """ + An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_runtime_description() + :"process.runtime.description" + + ### Erlang + + ```erlang + ?PROCESS_RUNTIME_DESCRIPTION. + 'process.runtime.description' + ``` + + + """ + @spec process_runtime_description :: :"process.runtime.description" + def process_runtime_description do + :"process.runtime.description" + end + + @doc """ + The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["OpenJDK Runtime Environment"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_runtime_name() + :"process.runtime.name" + + ### Erlang + + ```erlang + ?PROCESS_RUNTIME_NAME. + 'process.runtime.name' + ``` + + + """ + @spec process_runtime_name :: :"process.runtime.name" + def process_runtime_name do + :"process.runtime.name" + end + + @doc """ + The version of the runtime of this process, as returned by the runtime without modification. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 14.0.2 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_runtime_version() + :"process.runtime.version" + + ### Erlang + + ```erlang + ?PROCESS_RUNTIME_VERSION. + 'process.runtime.version' + ``` + + + """ + @spec process_runtime_version :: :"process.runtime.version" + def process_runtime_version do + :"process.runtime.version" + end + + @doc """ + The saved user ID (SUID) of the process. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [1002] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_saveduser_id() + :"process.saved_user.id" + + ### Erlang + + ```erlang + ?PROCESS_SAVEDUSER_ID. + 'process.saved_user.id' + ``` + + + """ + @spec process_saveduser_id :: :"process.saved_user.id" + def process_saveduser_id do + :"process.saved_user.id" + end + + @doc """ + The username of the saved user. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["operator"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_saveduser_name() + :"process.saved_user.name" + + ### Erlang + + ```erlang + ?PROCESS_SAVEDUSER_NAME. + 'process.saved_user.name' + ``` + + + """ + @spec process_saveduser_name :: :"process.saved_user.name" + def process_saveduser_name do + :"process.saved_user.name" + end + + @doc """ + The PID of the process's session leader. This is also the session ID (SID) of the process. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [14] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_sessionleader_pid() + :"process.session_leader.pid" + + ### Erlang + + ```erlang + ?PROCESS_SESSIONLEADER_PID. + 'process.session_leader.pid' + ``` + + + """ + @spec process_sessionleader_pid :: :"process.session_leader.pid" + def process_sessionleader_pid do + :"process.session_leader.pid" + end + + @doc """ + The effective user ID (EUID) of the process. + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [1001] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_user_id() + :"process.user.id" + + ### Erlang + + ```erlang + ?PROCESS_USER_ID. + 'process.user.id' + ``` + + + """ + @spec process_user_id :: :"process.user.id" + def process_user_id do + :"process.user.id" + end + + @doc """ + The username of the effective user of the process. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["root"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_user_name() + :"process.user.name" + + ### Erlang + + ```erlang + ?PROCESS_USER_NAME. + 'process.user.name' + ``` + + + """ + @spec process_user_name :: :"process.user.name" + def process_user_name do + :"process.user.name" + end + + @doc """ + Virtual process identifier. + + ### Value type + + Value must be of type `integer()`. + ### Notes + + The process ID within a PID namespace. This is not necessarily unique across all processes on the host but it is unique within the process namespace that the process exists within. + + ### Examples + + ``` + [12] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_vpid() + :"process.vpid" + + ### Erlang + + ```erlang + ?PROCESS_VPID. + 'process.vpid' + ``` + + + """ + @spec process_vpid :: :"process.vpid" + def process_vpid do + :"process.vpid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex similarity index 56% rename from apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index 962a3014..dc16fe75 100644 --- a/apps/opentelemetry_semantic_conventions/lib/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -1,7 +1,7 @@ -defmodule OpenTelemetry.SemanticConventions.RpcAttributes do +defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Rpc attributes. + OpenTelemetry Semantic Conventions for RPC attributes. """ @deprecated """ @@ -24,8 +24,8 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do Deprecated, use `rpc.message.type` instead. ### Enum Values - * `:sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:received` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:received` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type message_type() :: %{ :sent => :SENT, @@ -59,22 +59,22 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. ### Enum Values - * `:cancelled` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:invalid_argument` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:deadline_exceeded` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:not_found` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:already_exists` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:permission_denied` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:resource_exhausted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:failed_precondition` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:aborted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:out_of_range` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:unimplemented` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:internal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:data_loss` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:unauthenticated` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:cancelled` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unknown` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:invalid_argument` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:deadline_exceeded` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:not_found` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:already_exists` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:permission_denied` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:resource_exhausted` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:failed_precondition` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:aborted` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:out_of_range` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unimplemented` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:internal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unavailable` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:data_loss` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unauthenticated` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type rpc_connectrpc_errorcode() :: %{ :cancelled => :cancelled, @@ -98,12 +98,27 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode().cancelled + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode().cancelled :cancelled - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_errorcode(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'rpc_connectrpc_errorcode.cancelled'. + cancelled + + ?rpc_connectrpc_errorcode.(custom_value). + custom_value + ``` + + """ @spec rpc_connectrpc_errorcode() :: rpc_connectrpc_errorcode() def rpc_connectrpc_errorcode() do @@ -135,14 +150,34 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. + ### Value type + + Value must be of type `[atom() | String.t()]`. ### Notes Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_request_metadata() + ``` + ["rpc.request.metadata.my-custom-metadata-attribute=[\"1.2.3.4\", \"1.2.3.5\"]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_request_metadata() :"rpc.connect_rpc.request.metadata" + + ### Erlang + + ```erlang + ?RPC_CONNECTRPC_REQUEST_METADATA. + 'rpc.connect_rpc.request.metadata' + ``` + + """ @spec rpc_connectrpc_request_metadata :: :"rpc.connect_rpc.request.metadata" def rpc_connectrpc_request_metadata do @@ -152,14 +187,34 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. + ### Value type + + Value must be of type `[atom() | String.t()]`. ### Notes Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_connectrpc_response_metadata() + ``` + ["rpc.response.metadata.my-custom-metadata-attribute=[\"attribute_value\"]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_response_metadata() :"rpc.connect_rpc.response.metadata" + + ### Erlang + + ```erlang + ?RPC_CONNECTRPC_RESPONSE_METADATA. + 'rpc.connect_rpc.response.metadata' + ``` + + """ @spec rpc_connectrpc_response_metadata :: :"rpc.connect_rpc.response.metadata" def rpc_connectrpc_response_metadata do @@ -169,14 +224,34 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ gRPC request metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. + ### Value type + + Value must be of type `[atom() | String.t()]`. ### Notes Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_request_metadata() + ``` + ["rpc.grpc.request.metadata.my-custom-metadata-attribute=[\"1.2.3.4\", \"1.2.3.5\"]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_request_metadata() :"rpc.grpc.request.metadata" + + ### Erlang + + ```erlang + ?RPC_GRPC_REQUEST_METADATA. + 'rpc.grpc.request.metadata' + ``` + + """ @spec rpc_grpc_request_metadata :: :"rpc.grpc.request.metadata" def rpc_grpc_request_metadata do @@ -186,14 +261,34 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ gRPC response metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. + ### Value type + + Value must be of type `[atom() | String.t()]`. ### Notes Instrumentations **SHOULD** require an explicit configuration of which metadata values are to be captured. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. + ### Examples + + ``` + ["rpc.grpc.response.metadata.my-custom-metadata-attribute=[\"attribute_value\"]"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_response_metadata() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_response_metadata() :"rpc.grpc.response.metadata" + + ### Erlang + + ```erlang + ?RPC_GRPC_RESPONSE_METADATA. + 'rpc.grpc.response.metadata' + ``` + + """ @spec rpc_grpc_response_metadata :: :"rpc.grpc.response.metadata" def rpc_grpc_response_metadata do @@ -204,23 +299,23 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. ### Enum Values - * `:ok` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OK - * `:cancelled` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CANCELLED - * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNKNOWN - * `:invalid_argument` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INVALID_ARGUMENT - * `:deadline_exceeded` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DEADLINE_EXCEEDED - * `:not_found` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NOT_FOUND - * `:already_exists` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ALREADY_EXISTS - * `:permission_denied` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - PERMISSION_DENIED - * `:resource_exhausted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - RESOURCE_EXHAUSTED - * `:failed_precondition` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FAILED_PRECONDITION - * `:aborted` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - ABORTED - * `:out_of_range` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OUT_OF_RANGE - * `:unimplemented` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNIMPLEMENTED - * `:internal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - INTERNAL - * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAVAILABLE - * `:data_loss` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DATA_LOSS - * `:unauthenticated` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UNAUTHENTICATED + * `:ok` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OK + * `:cancelled` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CANCELLED + * `:unknown` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UNKNOWN + * `:invalid_argument` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - INVALID_ARGUMENT + * `:deadline_exceeded` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - DEADLINE_EXCEEDED + * `:not_found` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - NOT_FOUND + * `:already_exists` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ALREADY_EXISTS + * `:permission_denied` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - PERMISSION_DENIED + * `:resource_exhausted` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - RESOURCE_EXHAUSTED + * `:failed_precondition` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FAILED_PRECONDITION + * `:aborted` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ABORTED + * `:out_of_range` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OUT_OF_RANGE + * `:unimplemented` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UNIMPLEMENTED + * `:internal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - INTERNAL + * `:unavailable` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UNAVAILABLE + * `:data_loss` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - DATA_LOSS + * `:unauthenticated` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UNAUTHENTICATED """ @type rpc_grpc_statuscode() :: %{ :ok => 0, @@ -245,12 +340,27 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode().ok + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode().ok 0 - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_grpc_statuscode(27) + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode(27) 27 + + ### Erlang + + ```erlang + ?'rpc_grpc_statuscode.ok'. + 0 + + ?rpc_grpc_statuscode.(27). + 27 + ``` + + """ @spec rpc_grpc_statuscode() :: rpc_grpc_statuscode() def rpc_grpc_statuscode() do @@ -282,11 +392,30 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ `error.code` property of response if it is an error response. + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_errorcode() + ``` + [-32700, 100] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_errorcode() :"rpc.jsonrpc.error_code" + + ### Erlang + + ```erlang + ?RPC_JSONRPC_ERRORCODE. + 'rpc.jsonrpc.error_code' + ``` + + """ @spec rpc_jsonrpc_errorcode :: :"rpc.jsonrpc.error_code" def rpc_jsonrpc_errorcode do @@ -295,11 +424,30 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ `error.message` property of response if it is an error response. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["Parse error", "User already exists"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_errormessage() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_errormessage() :"rpc.jsonrpc.error_message" + + ### Erlang + + ```erlang + ?RPC_JSONRPC_ERRORMESSAGE. + 'rpc.jsonrpc.error_message' + ``` + + """ @spec rpc_jsonrpc_errormessage :: :"rpc.jsonrpc.error_message" def rpc_jsonrpc_errormessage do @@ -309,11 +457,30 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["10", "request-7", ""] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_requestid() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_requestid() :"rpc.jsonrpc.request_id" + + ### Erlang + + ```erlang + ?RPC_JSONRPC_REQUESTID. + 'rpc.jsonrpc.request_id' + ``` + + """ @spec rpc_jsonrpc_requestid :: :"rpc.jsonrpc.request_id" def rpc_jsonrpc_requestid do @@ -322,11 +489,30 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2.0", "1.0"] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_jsonrpc_version() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_version() :"rpc.jsonrpc.version" + + ### Erlang + + ```erlang + ?RPC_JSONRPC_VERSION. + 'rpc.jsonrpc.version' + ``` + + """ @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" def rpc_jsonrpc_version do @@ -335,11 +521,25 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ Compressed size of the message in bytes. + ### Value type + Value must be of type `integer()`. - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_compressedsize() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_compressedsize() :"rpc.message.compressed_size" + + ### Erlang + + ```erlang + ?RPC_MESSAGE_COMPRESSEDSIZE. + 'rpc.message.compressed_size' + ``` + + """ @spec rpc_message_compressedsize :: :"rpc.message.compressed_size" def rpc_message_compressedsize do @@ -348,13 +548,28 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. + ### Value type + + Value must be of type `integer()`. ### Notes This way we guarantee that the values will be consistent between different implementations. - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_id() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_id() :"rpc.message.id" + + ### Erlang + + ```erlang + ?RPC_MESSAGE_ID. + 'rpc.message.id' + ``` + + """ @spec rpc_message_id :: :"rpc.message.id" def rpc_message_id do @@ -365,8 +580,8 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do Whether this is a received or sent message. ### Enum Values - * `:sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:received` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:received` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type rpc_message_type() :: %{ :sent => :SENT, @@ -376,12 +591,27 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do Whether this is a received or sent message. - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type().sent + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type().sent :SENT - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_type(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'rpc_message_type.sent'. + SENT + + ?rpc_message_type.(custom_value). + custom_value + ``` + + """ @spec rpc_message_type() :: rpc_message_type() def rpc_message_type() do @@ -398,11 +628,25 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ Uncompressed size of the message in bytes. + ### Value type + + Value must be of type `integer()`. + - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_message_uncompressedsize() + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_uncompressedsize() :"rpc.message.uncompressed_size" + + ### Erlang + + ```erlang + ?RPC_MESSAGE_UNCOMPRESSEDSIZE. + 'rpc.message.uncompressed_size' + ``` + + """ @spec rpc_message_uncompressedsize :: :"rpc.message.uncompressed_size" def rpc_message_uncompressedsize do @@ -411,14 +655,34 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ The name of the (logical) method being called, must be equal to the $method part in the span name. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_method() + ``` + exampleMethod + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_method() :"rpc.method" + + ### Erlang + + ```erlang + ?RPC_METHOD. + 'rpc.method' + ``` + + """ @spec rpc_method :: :"rpc.method" def rpc_method do @@ -427,14 +691,34 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do @doc """ The full (logical) name of the service being called, including its package name, if applicable. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). + ### Examples + + ``` + myservice.EchoService + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_service() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_service() :"rpc.service" + + ### Erlang + + ```erlang + ?RPC_SERVICE. + 'rpc.service' + ``` + + """ @spec rpc_service :: :"rpc.service" def rpc_service do @@ -445,11 +729,11 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do A string identifying the remoting system. See below for a list of well-known identifiers. ### Enum Values - * `:grpc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - gRPC - * `:java_rmi` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Java RMI - * `:dotnet_wcf` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - .NET WCF - * `:apache_dubbo` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apache Dubbo - * `:connect_rpc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Connect RPC + * `:grpc` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - gRPC + * `:java_rmi` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Java RMI + * `:dotnet_wcf` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - .NET WCF + * `:apache_dubbo` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Dubbo + * `:connect_rpc` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Connect RPC """ @type rpc_system() :: %{ :grpc => :grpc, @@ -462,12 +746,27 @@ defmodule OpenTelemetry.SemanticConventions.RpcAttributes do A string identifying the remoting system. See below for a list of well-known identifiers. - ### Example - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system().grpc + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system().grpc :grpc - iex> OpenTelemetry.SemanticConventions.RpcAttributes.rpc_system(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'rpc_system.grpc'. + grpc + + ?rpc_system.(custom_value). + custom_value + ``` + + """ @spec rpc_system() :: rpc_system() def rpc_system() do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex new file mode 100644 index 00000000..2c2e2001 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex @@ -0,0 +1,105 @@ +defmodule OpenTelemetry.SemConv.Incubating.ServiceAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Service attributes. + """ + + @doc """ + The string ID of the service instance. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words + `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to + distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled + service). + + Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC + 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of + this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and + **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. + + UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is + needed. Similar to what can be seen in the man page for the + [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying + data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it + or not via another resource attribute. + + For applications running behind an application server (like unicorn), we do not recommend using one identifier + for all processes participating in the application. Instead, it's recommended each division (e.g. a worker + thread in unicorn) to have its own instance.id. + + It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the + service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will + likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. + However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance + for that telemetry. This is typically the case for scraping receivers, as they know the target address and + port. + + ### Examples + + ``` + ["627cc493-f310-47de-96bd-71410b7dec09"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ServiceAttributes.service_instance_id() + :"service.instance.id" + + ### Erlang + + ```erlang + ?SERVICE_INSTANCE_ID. + 'service.instance.id' + ``` + + + """ + @spec service_instance_id :: :"service.instance.id" + def service_instance_id do + :"service.instance.id" + end + + @doc """ + A namespace for `service.name`. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. + + ### Examples + + ``` + ["Shop"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ServiceAttributes.service_namespace() + :"service.namespace" + + ### Erlang + + ```erlang + ?SERVICE_NAMESPACE. + 'service.namespace' + ``` + + + """ + @spec service_namespace :: :"service.namespace" + def service_namespace do + :"service.namespace" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex new file mode 100644 index 00000000..8cccfa78 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex @@ -0,0 +1,70 @@ +defmodule OpenTelemetry.SemConv.Incubating.SessionAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Session attributes. + """ + + @doc """ + A unique id to identify a session. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 00112233-4455-6677-8899-aabbccddeeff + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SessionAttributes.session_id() + :"session.id" + + ### Erlang + + ```erlang + ?SESSION_ID. + 'session.id' + ``` + + + """ + @spec session_id :: :"session.id" + def session_id do + :"session.id" + end + + @doc """ + The previous `session.id` for this user, when known. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + 00112233-4455-6677-8899-aabbccddeeff + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SessionAttributes.session_previousid() + :"session.previous_id" + + ### Erlang + + ```erlang + ?SESSION_PREVIOUSID. + 'session.previous_id' + ``` + + + """ + @spec session_previousid :: :"session.previous_id" + def session_previousid do + :"session.previous_id" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/source_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex similarity index 51% rename from apps/opentelemetry_semantic_conventions/lib/source_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex index 2ed3226a..a8cb54b3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/source_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.SourceAttributes do +defmodule OpenTelemetry.SemConv.Incubating.SourceAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Source attributes. @@ -6,14 +6,34 @@ defmodule OpenTelemetry.SemanticConventions.SourceAttributes do @doc """ Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes When observed from the destination side, and when communicating through an intermediary, `source.address` **SHOULD** represent the source address behind any intermediaries, for example proxies, if it's available. + ### Examples + + ``` + ["source.example.com", "10.1.2.80", "/tmp/my.sock"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.SourceAttributes.source_address() + iex> OpenTelemetry.SemConv.Incubating.SourceAttributes.source_address() :"source.address" + + ### Erlang + + ```erlang + ?SOURCE_ADDRESS. + 'source.address' + ``` + + """ @spec source_address :: :"source.address" def source_address do @@ -22,11 +42,30 @@ defmodule OpenTelemetry.SemanticConventions.SourceAttributes do @doc """ Source port number + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.SourceAttributes.source_port() + ``` + [3389, 2888] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SourceAttributes.source_port() :"source.port" + + ### Erlang + + ```erlang + ?SOURCE_PORT. + 'source.port' + ``` + + """ @spec source_port :: :"source.port" def source_port do diff --git a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex similarity index 51% rename from apps/opentelemetry_semantic_conventions/lib/system_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index c6f729b3..24c64c52 100644 --- a/apps/opentelemetry_semantic_conventions/lib/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.SystemAttributes do +defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for System attributes. @@ -6,11 +6,30 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The logical CPU number [0..n-1] + ### Value type + Value must be of type `integer()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_logicalnumber() + ``` + [1] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_logicalnumber() :"system.cpu.logical_number" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_LOGICALNUMBER. + 'system.cpu.logical_number' + ``` + + """ @spec system_cpu_logicalnumber :: :"system.cpu.logical_number" def system_cpu_logicalnumber do @@ -21,13 +40,13 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The state of the CPU ### Enum Values - * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:nice` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:idle` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:iowait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:interrupt` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:steal` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:nice` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:iowait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:interrupt` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:steal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_cpu_state() :: %{ :user => :user, @@ -41,13 +60,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The state of the CPU + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state().user + ``` + ["idle", "interrupt"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state().user :user - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_cpu_state(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_cpu_state.user'. + user + + ?system_cpu_state.(custom_value). + custom_value + ``` + + """ @spec system_cpu_state() :: system_cpu_state() def system_cpu_state() do @@ -69,11 +108,30 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The device identifier + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["(identifier)"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_device() + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_device() :"system.device" + + ### Erlang + + ```erlang + ?SYSTEM_DEVICE. + 'system.device' + ``` + + """ @spec system_device :: :"system.device" def system_device do @@ -82,11 +140,30 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The filesystem mode + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["rw, ro"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_mode() + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_mode() :"system.filesystem.mode" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_MODE. + 'system.filesystem.mode' + ``` + + """ @spec system_filesystem_mode :: :"system.filesystem.mode" def system_filesystem_mode do @@ -95,11 +172,30 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The filesystem mount path + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/mnt/data"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_mountpoint() + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_mountpoint() :"system.filesystem.mountpoint" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_MOUNTPOINT. + 'system.filesystem.mountpoint' + ``` + + """ @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" def system_filesystem_mountpoint do @@ -110,9 +206,9 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The filesystem state ### Enum Values - * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:reserved` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:reserved` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_filesystem_state() :: %{ :used => :used, @@ -122,13 +218,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The filesystem state + ### Examples + + ``` + ["used"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state().used + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state().used :used - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_state(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_filesystem_state.used'. + used + + ?system_filesystem_state.(custom_value). + custom_value + ``` + + """ @spec system_filesystem_state() :: system_filesystem_state() def system_filesystem_state() do @@ -148,12 +264,12 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The filesystem type ### Enum Values - * `:fat32` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:exfat` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:ntfs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:refs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:hfsplus` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:ext4` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:fat32` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:exfat` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:ntfs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:refs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:hfsplus` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:ext4` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_filesystem_type() :: %{ :fat32 => :fat32, @@ -166,13 +282,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The filesystem type + ### Examples + + ``` + ["ext4"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type().fat32 + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type().fat32 :fat32 - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_filesystem_type(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_filesystem_type.fat32'. + fat32 + + ?system_filesystem_type.(custom_value). + custom_value + ``` + + """ @spec system_filesystem_type() :: system_filesystem_type() def system_filesystem_type() do @@ -195,11 +331,11 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The memory state ### Enum Values - * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:shared` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:buffers` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:cached` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:shared` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:buffers` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:cached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_memory_state() :: %{ :used => :used, @@ -211,13 +347,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The memory state + ### Examples + + ``` + ["free", "cached"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state().used + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state().used :used - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_memory_state(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_memory_state.used'. + used + + ?system_memory_state.(custom_value). + custom_value + ``` + + """ @spec system_memory_state() :: system_memory_state() def system_memory_state() do @@ -239,18 +395,18 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do A stateless protocol **MUST** **NOT** set this attribute ### Enum Values - * `:close` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:close_wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:closing` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:delete` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:established` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:fin_wait_1` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:fin_wait_2` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:last_ack` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:listen` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:syn_recv` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:syn_sent` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:time_wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:close` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:close_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:closing` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:delete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:established` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:fin_wait_1` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:fin_wait_2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:last_ack` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:listen` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:syn_recv` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:syn_sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:time_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_network_state() :: %{ :close => :close, @@ -269,13 +425,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ A stateless protocol **MUST** **NOT** set this attribute + ### Examples + + ``` + ["close_wait"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state().close + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state().close :close - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_network_state(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_network_state.close'. + close + + ?system_network_state.(custom_value). + custom_value + ``` + + """ @spec system_network_state() :: system_network_state() def system_network_state() do @@ -304,8 +480,8 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The paging access direction ### Enum Values - * `:in` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:out` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:in` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:out` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_paging_direction() :: %{ :in => :in, @@ -314,13 +490,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The paging access direction + ### Examples + + ``` + ["in"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction().in + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction().in :in - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_direction(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_paging_direction.in'. + in + + ?system_paging_direction.(custom_value). + custom_value + ``` + + """ @spec system_paging_direction() :: system_paging_direction() def system_paging_direction() do @@ -339,8 +535,8 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The memory paging state ### Enum Values - * `:used` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:free` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_paging_state() :: %{ :used => :used, @@ -349,13 +545,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The memory paging state + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state().used + ``` + ["free"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state().used :used - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_state(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_paging_state.used'. + used + + ?system_paging_state.(custom_value). + custom_value + ``` + + """ @spec system_paging_state() :: system_paging_state() def system_paging_state() do @@ -374,8 +590,8 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The memory paging type ### Enum Values - * `:major` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:minor` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_paging_type() :: %{ :major => :major, @@ -384,13 +600,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do @doc """ The memory paging type + ### Examples + + ``` + ["minor"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type().major + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type().major :major - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_paging_type(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_paging_type.major'. + major + + ?system_paging_type.(custom_value). + custom_value + ``` + + """ @spec system_paging_type() :: system_paging_type() def system_paging_type() do @@ -410,10 +646,10 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do ### Enum Values - * `:running` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:sleeping` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:stopped` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:defunct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:running` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:sleeping` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_process_status() :: %{ :running => :running, @@ -425,13 +661,33 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + ### Examples + + ``` + ["running"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status().running + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status().running :running - iex> OpenTelemetry.SemanticConventions.SystemAttributes.system_process_status(:custom_value) + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'system_process_status.running'. + running + + ?system_process_status.(custom_value). + custom_value + ``` + + """ @spec system_process_status() :: system_process_status() def system_process_status() do @@ -452,10 +708,10 @@ defmodule OpenTelemetry.SemanticConventions.SystemAttributes do Deprecated, use `system.process.status` instead. ### Enum Values - * `:running` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:sleeping` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:stopped` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:defunct` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + * `:running` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:sleeping` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ @type system_processes_status() :: %{ :running => :running, diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex new file mode 100644 index 00000000..e62633d5 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex @@ -0,0 +1,77 @@ +defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Telemetry attributes. + """ + + @doc """ + The name of the auto instrumentation agent or distribution, if used. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to + a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`. + + ### Examples + + ``` + ["parts-unlimited-java"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TelemetryAttributes.telemetry_distro_name() + :"telemetry.distro.name" + + ### Erlang + + ```erlang + ?TELEMETRY_DISTRO_NAME. + 'telemetry.distro.name' + ``` + + + """ + @spec telemetry_distro_name :: :"telemetry.distro.name" + def telemetry_distro_name do + :"telemetry.distro.name" + end + + @doc """ + The version string of the auto instrumentation agent or distribution, if used. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1.2.3"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TelemetryAttributes.telemetry_distro_version() + :"telemetry.distro.version" + + ### Erlang + + ```erlang + ?TELEMETRY_DISTRO_VERSION. + 'telemetry.distro.version' + ``` + + + """ + @spec telemetry_distro_version :: :"telemetry.distro.version" + def telemetry_distro_version do + :"telemetry.distro.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex new file mode 100644 index 00000000..4d236c82 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex @@ -0,0 +1,72 @@ +defmodule OpenTelemetry.SemConv.Incubating.ThreadAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Thread attributes. + """ + + @doc """ + Current "managed" thread ID (as opposed to OS thread ID). + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + 42 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ThreadAttributes.thread_id() + :"thread.id" + + ### Erlang + + ```erlang + ?THREAD_ID. + 'thread.id' + ``` + + + """ + @spec thread_id :: :"thread.id" + def thread_id do + :"thread.id" + end + + @doc """ + Current thread name. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + main + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ThreadAttributes.thread_name() + :"thread.name" + + ### Erlang + + ```erlang + ?THREAD_NAME. + 'thread.name' + ``` + + + """ + @spec thread_name :: :"thread.name" + def thread_name do + :"thread.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex new file mode 100644 index 00000000..1dc1dfeb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -0,0 +1,971 @@ +defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for TLS attributes. + """ + + @doc """ + String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The values allowed for `tls.cipher` **MUST** be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4). + + ### Examples + + ``` + ["TLS_RSA_WITH_3DES_EDE_CBC_SHA", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_cipher() + :"tls.cipher" + + ### Erlang + + ```erlang + ?TLS_CIPHER. + 'tls.cipher' + ``` + + + """ + @spec tls_cipher :: :"tls.cipher" + def tls_cipher do + :"tls.cipher" + end + + @doc """ + PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["MII..."] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_certificate() + :"tls.client.certificate" + + ### Erlang + + ```erlang + ?TLS_CLIENT_CERTIFICATE. + 'tls.client.certificate' + ``` + + + """ + @spec tls_client_certificate :: :"tls.client.certificate" + def tls_client_certificate do + :"tls.client.certificate" + end + + @doc """ + Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["MII...", "MI..."] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_certificatechain() + :"tls.client.certificate_chain" + + ### Erlang + + ```erlang + ?TLS_CLIENT_CERTIFICATECHAIN. + 'tls.client.certificate_chain' + ``` + + + """ + @spec tls_client_certificatechain :: :"tls.client.certificate_chain" + def tls_client_certificatechain do + :"tls.client.certificate_chain" + end + + @doc """ + Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_md_5() + :"tls.client.hash.md5" + + ### Erlang + + ```erlang + ?TLS_CLIENT_HASH_MD_5. + 'tls.client.hash.md5' + ``` + + + """ + @spec tls_client_hash_md_5 :: :"tls.client.hash.md5" + def tls_client_hash_md_5 do + :"tls.client.hash.md5" + end + + @doc """ + Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["9E393D93138888D288266C2D915214D1D1CCEB2A"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_sha_1() + :"tls.client.hash.sha1" + + ### Erlang + + ```erlang + ?TLS_CLIENT_HASH_SHA_1. + 'tls.client.hash.sha1' + ``` + + + """ + @spec tls_client_hash_sha_1 :: :"tls.client.hash.sha1" + def tls_client_hash_sha_1 do + :"tls.client.hash.sha1" + end + + @doc """ + Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_sha_256() + :"tls.client.hash.sha256" + + ### Erlang + + ```erlang + ?TLS_CLIENT_HASH_SHA_256. + 'tls.client.hash.sha256' + ``` + + + """ + @spec tls_client_hash_sha_256 :: :"tls.client.hash.sha256" + def tls_client_hash_sha_256 do + :"tls.client.hash.sha256" + end + + @doc """ + Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_issuer() + :"tls.client.issuer" + + ### Erlang + + ```erlang + ?TLS_CLIENT_ISSUER. + 'tls.client.issuer' + ``` + + + """ + @spec tls_client_issuer :: :"tls.client.issuer" + def tls_client_issuer do + :"tls.client.issuer" + end + + @doc """ + A hash that identifies clients based on how they perform an SSL/TLS handshake. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["d4e5b18d6b55c71272893221c96ba240"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_ja_3() + :"tls.client.ja3" + + ### Erlang + + ```erlang + ?TLS_CLIENT_JA_3. + 'tls.client.ja3' + ``` + + + """ + @spec tls_client_ja_3 :: :"tls.client.ja3" + def tls_client_ja_3 do + :"tls.client.ja3" + end + + @doc """ + Date/Time indicating when client certificate is no longer considered valid. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2021-01-01T00:00:00.000Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_notafter() + :"tls.client.not_after" + + ### Erlang + + ```erlang + ?TLS_CLIENT_NOTAFTER. + 'tls.client.not_after' + ``` + + + """ + @spec tls_client_notafter :: :"tls.client.not_after" + def tls_client_notafter do + :"tls.client.not_after" + end + + @doc """ + Date/Time indicating when client certificate is first considered valid. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1970-01-01T00:00:00.000Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_notbefore() + :"tls.client.not_before" + + ### Erlang + + ```erlang + ?TLS_CLIENT_NOTBEFORE. + 'tls.client.not_before' + ``` + + + """ + @spec tls_client_notbefore :: :"tls.client.not_before" + def tls_client_notbefore do + :"tls.client.not_before" + end + + @doc """ + Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry.io"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_servername() + :"tls.client.server_name" + + ### Erlang + + ```erlang + ?TLS_CLIENT_SERVERNAME. + 'tls.client.server_name' + ``` + + + """ + @spec tls_client_servername :: :"tls.client.server_name" + def tls_client_servername do + :"tls.client.server_name" + end + + @doc """ + Distinguished name of subject of the x.509 certificate presented by the client. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["CN=myclient, OU=Documentation Team, DC=example, DC=com"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_subject() + :"tls.client.subject" + + ### Erlang + + ```erlang + ?TLS_CLIENT_SUBJECT. + 'tls.client.subject' + ``` + + + """ + @spec tls_client_subject :: :"tls.client.subject" + def tls_client_subject do + :"tls.client.subject" + end + + @doc """ + Array of ciphers offered by the client during the client hello. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["\"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\", \"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\", \"...\""] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_supportedciphers() + :"tls.client.supported_ciphers" + + ### Erlang + + ```erlang + ?TLS_CLIENT_SUPPORTEDCIPHERS. + 'tls.client.supported_ciphers' + ``` + + + """ + @spec tls_client_supportedciphers :: :"tls.client.supported_ciphers" + def tls_client_supportedciphers do + :"tls.client.supported_ciphers" + end + + @doc """ + String indicating the curve used for the given cipher, when applicable + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["secp256r1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_curve() + :"tls.curve" + + ### Erlang + + ```erlang + ?TLS_CURVE. + 'tls.curve' + ``` + + + """ + @spec tls_curve :: :"tls.curve" + def tls_curve do + :"tls.curve" + end + + @doc """ + Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. + ### Value type + + Value must be of type `boolean()`. + ### Examples + + ``` + [true] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_established() + :"tls.established" + + ### Erlang + + ```erlang + ?TLS_ESTABLISHED. + 'tls.established' + ``` + + + """ + @spec tls_established :: :"tls.established" + def tls_established do + :"tls.established" + end + + @doc """ + String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["http/1.1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_nextprotocol() + :"tls.next_protocol" + + ### Erlang + + ```erlang + ?TLS_NEXTPROTOCOL. + 'tls.next_protocol' + ``` + + + """ + @spec tls_nextprotocol :: :"tls.next_protocol" + def tls_nextprotocol do + :"tls.next_protocol" + end + + @typedoc """ + Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + + ### Enum Values + * `:ssl` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:tls` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type tls_protocol_name() :: %{ + :ssl => :ssl, + :tls => :tls + } + @doc """ + Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name().ssl + :ssl + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name(:custom_value) + :custom_value + + ### Erlang + + ```erlang + ?'tls_protocol_name.ssl'. + ssl + + ?tls_protocol_name.(custom_value). + custom_value + ``` + + + """ + @spec tls_protocol_name() :: tls_protocol_name() + def tls_protocol_name() do + %{ + :ssl => :ssl, + :tls => :tls + } + end + + @spec tls_protocol_name(atom() | String.t()) :: atom() | String.t() + def tls_protocol_name(custom_value) do + custom_value + end + + @doc """ + Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1.2", "3"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_version() + :"tls.protocol.version" + + ### Erlang + + ```erlang + ?TLS_PROTOCOL_VERSION. + 'tls.protocol.version' + ``` + + + """ + @spec tls_protocol_version :: :"tls.protocol.version" + def tls_protocol_version do + :"tls.protocol.version" + end + + @doc """ + Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. + ### Value type + + Value must be of type `boolean()`. + ### Examples + + ``` + [true] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_resumed() + :"tls.resumed" + + ### Erlang + + ```erlang + ?TLS_RESUMED. + 'tls.resumed' + ``` + + + """ + @spec tls_resumed :: :"tls.resumed" + def tls_resumed do + :"tls.resumed" + end + + @doc """ + PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["MII..."] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_certificate() + :"tls.server.certificate" + + ### Erlang + + ```erlang + ?TLS_SERVER_CERTIFICATE. + 'tls.server.certificate' + ``` + + + """ + @spec tls_server_certificate :: :"tls.server.certificate" + def tls_server_certificate do + :"tls.server.certificate" + end + + @doc """ + Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["MII...", "MI..."] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_certificatechain() + :"tls.server.certificate_chain" + + ### Erlang + + ```erlang + ?TLS_SERVER_CERTIFICATECHAIN. + 'tls.server.certificate_chain' + ``` + + + """ + @spec tls_server_certificatechain :: :"tls.server.certificate_chain" + def tls_server_certificatechain do + :"tls.server.certificate_chain" + end + + @doc """ + Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_md_5() + :"tls.server.hash.md5" + + ### Erlang + + ```erlang + ?TLS_SERVER_HASH_MD_5. + 'tls.server.hash.md5' + ``` + + + """ + @spec tls_server_hash_md_5 :: :"tls.server.hash.md5" + def tls_server_hash_md_5 do + :"tls.server.hash.md5" + end + + @doc """ + Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["9E393D93138888D288266C2D915214D1D1CCEB2A"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_sha_1() + :"tls.server.hash.sha1" + + ### Erlang + + ```erlang + ?TLS_SERVER_HASH_SHA_1. + 'tls.server.hash.sha1' + ``` + + + """ + @spec tls_server_hash_sha_1 :: :"tls.server.hash.sha1" + def tls_server_hash_sha_1 do + :"tls.server.hash.sha1" + end + + @doc """ + Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_sha_256() + :"tls.server.hash.sha256" + + ### Erlang + + ```erlang + ?TLS_SERVER_HASH_SHA_256. + 'tls.server.hash.sha256' + ``` + + + """ + @spec tls_server_hash_sha_256 :: :"tls.server.hash.sha256" + def tls_server_hash_sha_256 do + :"tls.server.hash.sha256" + end + + @doc """ + Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_issuer() + :"tls.server.issuer" + + ### Erlang + + ```erlang + ?TLS_SERVER_ISSUER. + 'tls.server.issuer' + ``` + + + """ + @spec tls_server_issuer :: :"tls.server.issuer" + def tls_server_issuer do + :"tls.server.issuer" + end + + @doc """ + A hash that identifies servers based on how they perform an SSL/TLS handshake. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["d4e5b18d6b55c71272893221c96ba240"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_ja_3_s() + :"tls.server.ja3s" + + ### Erlang + + ```erlang + ?TLS_SERVER_JA_3_S. + 'tls.server.ja3s' + ``` + + + """ + @spec tls_server_ja_3_s :: :"tls.server.ja3s" + def tls_server_ja_3_s do + :"tls.server.ja3s" + end + + @doc """ + Date/Time indicating when server certificate is no longer considered valid. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["2021-01-01T00:00:00.000Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_notafter() + :"tls.server.not_after" + + ### Erlang + + ```erlang + ?TLS_SERVER_NOTAFTER. + 'tls.server.not_after' + ``` + + + """ + @spec tls_server_notafter :: :"tls.server.not_after" + def tls_server_notafter do + :"tls.server.not_after" + end + + @doc """ + Date/Time indicating when server certificate is first considered valid. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1970-01-01T00:00:00.000Z"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_notbefore() + :"tls.server.not_before" + + ### Erlang + + ```erlang + ?TLS_SERVER_NOTBEFORE. + 'tls.server.not_before' + ``` + + + """ + @spec tls_server_notbefore :: :"tls.server.not_before" + def tls_server_notbefore do + :"tls.server.not_before" + end + + @doc """ + Distinguished name of subject of the x.509 certificate presented by the server. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["CN=myserver, OU=Documentation Team, DC=example, DC=com"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_subject() + :"tls.server.subject" + + ### Erlang + + ```erlang + ?TLS_SERVER_SUBJECT. + 'tls.server.subject' + ``` + + + """ + @spec tls_server_subject :: :"tls.server.subject" + def tls_server_subject do + :"tls.server.subject" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex new file mode 100644 index 00000000..caaad001 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex @@ -0,0 +1,295 @@ +defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for URL attributes. + """ + + @doc """ + Domain extracted from the `url.full`, such as "opentelemetry.io". + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field. + + ### Examples + + ``` + ["www.foo.bar", "opentelemetry.io", "3.12.167.2", "[1080:0:0:0:8:800:200C:417A]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_domain() + :"url.domain" + + ### Erlang + + ```erlang + ?URL_DOMAIN. + 'url.domain' + ``` + + + """ + @spec url_domain :: :"url.domain" + def url_domain do + :"url.domain" + end + + @doc """ + The file extension extracted from the `url.full`, excluding the leading dot. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`. + + ### Examples + + ``` + ["png", "gz"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_extension() + :"url.extension" + + ### Erlang + + ```erlang + ?URL_EXTENSION. + 'url.extension' + ``` + + + """ + @spec url_extension :: :"url.extension" + def url_extension do + :"url.extension" + end + + @doc """ + Unmodified original URL as seen in the event source. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. + `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username **SHOULD** **NOT** be redacted and attribute's value **SHOULD** remain the same. + + ### Examples + + ``` + ["https://www.foo.bar/search?q=OpenTelemetry#SemConv", "search?q=OpenTelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_original() + :"url.original" + + ### Erlang + + ```erlang + ?URL_ORIGINAL. + 'url.original' + ``` + + + """ + @spec url_original :: :"url.original" + def url_original do + :"url.original" + end + + @doc """ + Port extracted from the `url.full` + + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [443] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_port() + :"url.port" + + ### Erlang + + ```erlang + ?URL_PORT. + 'url.port' + ``` + + + """ + @spec url_port :: :"url.port" + def url_port do + :"url.port" + end + + @doc """ + The highest registered url domain, stripped of the subdomain. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. + + ### Examples + + ``` + ["example.com", "foo.co.uk"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_registereddomain() + :"url.registered_domain" + + ### Erlang + + ```erlang + ?URL_REGISTEREDDOMAIN. + 'url.registered_domain' + ``` + + + """ + @spec url_registereddomain :: :"url.registered_domain" + def url_registereddomain do + :"url.registered_domain" + end + + @doc """ + The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. + + ### Examples + + ``` + ["east", "sub2.sub1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_subdomain() + :"url.subdomain" + + ### Erlang + + ```erlang + ?URL_SUBDOMAIN. + 'url.subdomain' + ``` + + + """ + @spec url_subdomain :: :"url.subdomain" + def url_subdomain do + :"url.subdomain" + end + + @doc """ + The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/users/{id}", "/users/:id", "/users?id={id}"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_template() + :"url.template" + + ### Erlang + + ```erlang + ?URL_TEMPLATE. + 'url.template' + ``` + + + """ + @spec url_template :: :"url.template" + def url_template do + :"url.template" + end + + @doc """ + The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + This value can be determined precisely with the [public suffix list](http://publicsuffix.org). + + ### Examples + + ``` + ["com", "co.uk"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_topleveldomain() + :"url.top_level_domain" + + ### Erlang + + ```erlang + ?URL_TOPLEVELDOMAIN. + 'url.top_level_domain' + ``` + + + """ + @spec url_topleveldomain :: :"url.top_level_domain" + def url_topleveldomain do + :"url.top_level_domain" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex new file mode 100644 index 00000000..d057d172 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex @@ -0,0 +1,80 @@ +defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for User_Agent attributes. + """ + + @doc """ + Name of the user-agent extracted from original. Usually refers to the browser's name. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` + + ### Examples + + ``` + ["Safari", "YourApp"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_name() + :"user_agent.name" + + ### Erlang + + ```erlang + ?USERAGENT_NAME. + 'user_agent.name' + ``` + + + """ + @spec useragent_name :: :"user_agent.name" + def useragent_name do + :"user_agent.name" + end + + @doc """ + Version of the user-agent extracted from original. Usually refers to the browser's version + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` + + ### Examples + + ``` + ["14.1.2", "1.0.0"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_version() + :"user_agent.version" + + ### Erlang + + ```erlang + ?USERAGENT_VERSION. + 'user_agent.version' + ``` + + + """ + @spec useragent_version :: :"user_agent.version" + def useragent_version do + :"user_agent.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex new file mode 100644 index 00000000..c6824610 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex @@ -0,0 +1,105 @@ +defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Webengine attributes. + """ + + @doc """ + Additional description of the web engine (e.g. detailed version and edition information). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.WebengineAttributes.webengine_description() + :"webengine.description" + + ### Erlang + + ```erlang + ?WEBENGINE_DESCRIPTION. + 'webengine.description' + ``` + + + """ + @spec webengine_description :: :"webengine.description" + def webengine_description do + :"webengine.description" + end + + @doc """ + The name of the web engine. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["WildFly"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.WebengineAttributes.webengine_name() + :"webengine.name" + + ### Erlang + + ```erlang + ?WEBENGINE_NAME. + 'webengine.name' + ``` + + + """ + @spec webengine_name :: :"webengine.name" + def webengine_name do + :"webengine.name" + end + + @doc """ + The version of the web engine. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["21.0.0"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.WebengineAttributes.webengine_version() + :"webengine.version" + + ### Erlang + + ```erlang + ?WEBENGINE_VERSION. + 'webengine.version' + ``` + + + """ + @spec webengine_version :: :"webengine.version" + def webengine_version do + :"webengine.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex deleted file mode 100644 index f86b3cd7..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/k_8_s_attributes.ex +++ /dev/null @@ -1,375 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.K8SAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for K8s attributes. - """ - - @doc """ - The name of the cluster. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cluster_name() - :"k8s.cluster.name" - """ - @spec k_8_s_cluster_name :: :"k8s.cluster.name" - def k_8_s_cluster_name do - :"k8s.cluster.name" - end - - @doc """ - A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. - - ### Notes - - K8s doesn't have support for obtaining a cluster ID. If this is ever - added, we will recommend collecting the `k8s.cluster.uid` through the - official APIs. In the meantime, we are able to use the `uid` of the - `kube-system` namespace as a proxy for cluster ID. Read on for the - rationale. - - Every object created in a K8s cluster is assigned a distinct UID. The - `kube-system` namespace is used by Kubernetes itself and will exist - for the lifetime of the cluster. Using the `uid` of the `kube-system` - namespace is a reasonable proxy for the K8s ClusterID as it will only - change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are - UUIDs as standardized by - [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). - Which states: - - > If generated according to one of the mechanisms defined in Rec. - ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be - different from all other UUIDs generated before 3603 A.D., or is - extremely likely to be different (depending on the mechanism chosen). - - Therefore, UIDs between clusters should be extremely unlikely to - conflict. - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cluster_uid() - :"k8s.cluster.uid" - """ - @spec k_8_s_cluster_uid :: :"k8s.cluster.uid" - def k_8_s_cluster_uid do - :"k8s.cluster.uid" - end - - @doc """ - The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_container_name() - :"k8s.container.name" - """ - @spec k_8_s_container_name :: :"k8s.container.name" - def k_8_s_container_name do - :"k8s.container.name" - end - - @doc """ - Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_container_restartcount() - :"k8s.container.restart_count" - """ - @spec k_8_s_container_restartcount :: :"k8s.container.restart_count" - def k_8_s_container_restartcount do - :"k8s.container.restart_count" - end - - @doc """ - Last terminated reason of the Container. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_container_status_lastterminatedreason() - :"k8s.container.status.last_terminated_reason" - """ - @spec k_8_s_container_status_lastterminatedreason :: - :"k8s.container.status.last_terminated_reason" - def k_8_s_container_status_lastterminatedreason do - :"k8s.container.status.last_terminated_reason" - end - - @doc """ - The name of the CronJob. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cronjob_name() - :"k8s.cronjob.name" - """ - @spec k_8_s_cronjob_name :: :"k8s.cronjob.name" - def k_8_s_cronjob_name do - :"k8s.cronjob.name" - end - - @doc """ - The UID of the CronJob. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_cronjob_uid() - :"k8s.cronjob.uid" - """ - @spec k_8_s_cronjob_uid :: :"k8s.cronjob.uid" - def k_8_s_cronjob_uid do - :"k8s.cronjob.uid" - end - - @doc """ - The name of the DaemonSet. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_daemonset_name() - :"k8s.daemonset.name" - """ - @spec k_8_s_daemonset_name :: :"k8s.daemonset.name" - def k_8_s_daemonset_name do - :"k8s.daemonset.name" - end - - @doc """ - The UID of the DaemonSet. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_daemonset_uid() - :"k8s.daemonset.uid" - """ - @spec k_8_s_daemonset_uid :: :"k8s.daemonset.uid" - def k_8_s_daemonset_uid do - :"k8s.daemonset.uid" - end - - @doc """ - The name of the Deployment. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_deployment_name() - :"k8s.deployment.name" - """ - @spec k_8_s_deployment_name :: :"k8s.deployment.name" - def k_8_s_deployment_name do - :"k8s.deployment.name" - end - - @doc """ - The UID of the Deployment. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_deployment_uid() - :"k8s.deployment.uid" - """ - @spec k_8_s_deployment_uid :: :"k8s.deployment.uid" - def k_8_s_deployment_uid do - :"k8s.deployment.uid" - end - - @doc """ - The name of the Job. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_job_name() - :"k8s.job.name" - """ - @spec k_8_s_job_name :: :"k8s.job.name" - def k_8_s_job_name do - :"k8s.job.name" - end - - @doc """ - The UID of the Job. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_job_uid() - :"k8s.job.uid" - """ - @spec k_8_s_job_uid :: :"k8s.job.uid" - def k_8_s_job_uid do - :"k8s.job.uid" - end - - @doc """ - The name of the namespace that the pod is running in. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_namespace_name() - :"k8s.namespace.name" - """ - @spec k_8_s_namespace_name :: :"k8s.namespace.name" - def k_8_s_namespace_name do - :"k8s.namespace.name" - end - - @doc """ - The name of the Node. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_node_name() - :"k8s.node.name" - """ - @spec k_8_s_node_name :: :"k8s.node.name" - def k_8_s_node_name do - :"k8s.node.name" - end - - @doc """ - The UID of the Node. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_node_uid() - :"k8s.node.uid" - """ - @spec k_8_s_node_uid :: :"k8s.node.uid" - def k_8_s_node_uid do - :"k8s.node.uid" - end - - @doc """ - The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_annotation() - :"k8s.pod.annotation" - """ - @spec k_8_s_pod_annotation :: :"k8s.pod.annotation" - def k_8_s_pod_annotation do - :"k8s.pod.annotation" - end - - @doc """ - The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_label() - :"k8s.pod.label" - """ - @spec k_8_s_pod_label :: :"k8s.pod.label" - def k_8_s_pod_label do - :"k8s.pod.label" - end - - @deprecated """ - Replaced by `k8s.pod.label`. - """ - @spec k_8_s_pod_labels :: :"k8s.pod.labels" - def k_8_s_pod_labels do - :"k8s.pod.labels" - end - - @doc """ - The name of the Pod. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_name() - :"k8s.pod.name" - """ - @spec k_8_s_pod_name :: :"k8s.pod.name" - def k_8_s_pod_name do - :"k8s.pod.name" - end - - @doc """ - The UID of the Pod. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_pod_uid() - :"k8s.pod.uid" - """ - @spec k_8_s_pod_uid :: :"k8s.pod.uid" - def k_8_s_pod_uid do - :"k8s.pod.uid" - end - - @doc """ - The name of the ReplicaSet. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_replicaset_name() - :"k8s.replicaset.name" - """ - @spec k_8_s_replicaset_name :: :"k8s.replicaset.name" - def k_8_s_replicaset_name do - :"k8s.replicaset.name" - end - - @doc """ - The UID of the ReplicaSet. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_replicaset_uid() - :"k8s.replicaset.uid" - """ - @spec k_8_s_replicaset_uid :: :"k8s.replicaset.uid" - def k_8_s_replicaset_uid do - :"k8s.replicaset.uid" - end - - @doc """ - The name of the StatefulSet. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_statefulset_name() - :"k8s.statefulset.name" - """ - @spec k_8_s_statefulset_name :: :"k8s.statefulset.name" - def k_8_s_statefulset_name do - :"k8s.statefulset.name" - end - - @doc """ - The UID of the StatefulSet. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.K8SAttributes.k_8_s_statefulset_uid() - :"k8s.statefulset.uid" - """ - @spec k_8_s_statefulset_uid :: :"k8s.statefulset.uid" - def k_8_s_statefulset_uid do - :"k8s.statefulset.uid" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex deleted file mode 100644 index 819c6acf..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/log_attributes.ex +++ /dev/null @@ -1,117 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.LogAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Log attributes. - """ - - @doc """ - The basename of the file. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_name() - :"log.file.name" - """ - @spec log_file_name :: :"log.file.name" - def log_file_name do - :"log.file.name" - end - - @doc """ - The basename of the file, with symlinks resolved. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_nameresolved() - :"log.file.name_resolved" - """ - @spec log_file_nameresolved :: :"log.file.name_resolved" - def log_file_nameresolved do - :"log.file.name_resolved" - end - - @doc """ - The full path to the file. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_path() - :"log.file.path" - """ - @spec log_file_path :: :"log.file.path" - def log_file_path do - :"log.file.path" - end - - @doc """ - The full path to the file, with symlinks resolved. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_file_pathresolved() - :"log.file.path_resolved" - """ - @spec log_file_pathresolved :: :"log.file.path_resolved" - def log_file_pathresolved do - :"log.file.path_resolved" - end - - @typedoc """ - The stream associated with the log. See below for a list of well-known values. - - - ### Enum Values - * `:stdout` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Logs from stdout stream - * `:stderr` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Events from stderr stream - """ - @type log_iostream() :: %{ - :stdout => :stdout, - :stderr => :stderr - } - @doc """ - The stream associated with the log. See below for a list of well-known values. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream().stdout - :stdout - - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_iostream(:custom_value) - :custom_value - """ - @spec log_iostream() :: log_iostream() - def log_iostream() do - %{ - :stdout => :stdout, - :stderr => :stderr - } - end - - @spec log_iostream(atom() | String.t()) :: atom() | String.t() - def log_iostream(custom_value) do - custom_value - end - - @doc """ - A unique identifier for the Log Record. - - ### Notes - - If an id is provided, other log records with the same id will be considered duplicates and can be removed safely. This means, that two distinguishable log records **MUST** have different values. - The id **MAY** be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), but other identifiers (e.g. UUID) may be used as needed. - - - ### Example - iex> OpenTelemetry.SemanticConventions.LogAttributes.log_record_uid() - :"log.record.uid" - """ - @spec log_record_uid :: :"log.record.uid" - def log_record_uid do - :"log.record.uid" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/logs.ex b/apps/opentelemetry_semantic_conventions/lib/logs.ex new file mode 100644 index 00000000..7913b288 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/logs.ex @@ -0,0 +1,24 @@ +defmodule OpenTelemetry.SemanticConventions.Logs do + @moduledoc """ + WARNING: This module is deprecated and will be removed in a future release. + Migrate to >= v1.26.0 semantic conventions. + """ + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec logs_schema_url :: String.t() + def logs_schema_url do + "https://opentelemetry.io/schemas/1.13.0" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec event_name :: :"event.name" + def event_name do + :"event.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec event_domain :: :"event.domain" + def event_domain do + :"event.domain" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index 64b23608..af544898 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -1,435 +1,99 @@ -defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do +defmodule OpenTelemetry.SemConv.NetworkAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Network attributes. """ - @deprecated """ - Replaced by `network.local.address`. - """ - @spec net_host_ip :: :"net.host.ip" - def net_host_ip do - :"net.host.ip" - end - - @deprecated """ - Replaced by `server.address`. - """ - @spec net_host_name :: :"net.host.name" - def net_host_name do - :"net.host.name" - end - - @deprecated """ - Replaced by `server.port`. - """ - @spec net_host_port :: :"net.host.port" - def net_host_port do - :"net.host.port" - end - - @deprecated """ - Replaced by `network.peer.address`. - """ - @spec net_peer_ip :: :"net.peer.ip" - def net_peer_ip do - :"net.peer.ip" - end - - @deprecated """ - Replaced by `server.address` on client spans and `client.address` on server spans. - """ - @spec net_peer_name :: :"net.peer.name" - def net_peer_name do - :"net.peer.name" - end - - @deprecated """ - Replaced by `server.port` on client spans and `client.port` on server spans. - """ - @spec net_peer_port :: :"net.peer.port" - def net_peer_port do - :"net.peer.port" - end - - @deprecated """ - Replaced by `network.protocol.name`. - """ - @spec net_protocol_name :: :"net.protocol.name" - def net_protocol_name do - :"net.protocol.name" - end - - @deprecated """ - Replaced by `network.protocol.version`. - """ - @spec net_protocol_version :: :"net.protocol.version" - def net_protocol_version do - :"net.protocol.version" - end - - @typedoc """ - Deprecated, use `network.transport` and `network.type`. - - ### Enum Values - * `:inet` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IPv4 address - * `:inet6` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IPv6 address - * `:unix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Unix domain socket path - """ - @type net_sock_family() :: %{ - :inet => :inet, - :inet6 => :inet6, - :unix => :unix - } - @deprecated """ - Split to `network.transport` and `network.type`. - """ - @spec net_sock_family() :: net_sock_family() - def net_sock_family() do - %{ - :inet => :inet, - :inet6 => :inet6, - :unix => :unix - } - end - - @spec net_sock_family(atom() | String.t()) :: atom() | String.t() - def net_sock_family(custom_value) do - custom_value - end - - @deprecated """ - Replaced by `network.local.address`. - """ - @spec net_sock_host_addr :: :"net.sock.host.addr" - def net_sock_host_addr do - :"net.sock.host.addr" - end - - @deprecated """ - Replaced by `network.local.port`. - """ - @spec net_sock_host_port :: :"net.sock.host.port" - def net_sock_host_port do - :"net.sock.host.port" - end - - @deprecated """ - Replaced by `network.peer.address`. - """ - @spec net_sock_peer_addr :: :"net.sock.peer.addr" - def net_sock_peer_addr do - :"net.sock.peer.addr" - end - - @deprecated """ - Removed. - """ - @spec net_sock_peer_name :: :"net.sock.peer.name" - def net_sock_peer_name do - :"net.sock.peer.name" - end - - @deprecated """ - Replaced by `network.peer.port`. - """ - @spec net_sock_peer_port :: :"net.sock.peer.port" - def net_sock_peer_port do - :"net.sock.peer.port" - end - - @typedoc """ - Deprecated, use `network.transport`. - - ### Enum Values - * `:ip_tcp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:ip_udp` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:pipe` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Named or anonymous pipe. - * `:inproc` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - In-process communication. - * `:other` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Something else (non IP-based). - """ - @type net_transport() :: %{ - :ip_tcp => :ip_tcp, - :ip_udp => :ip_udp, - :pipe => :pipe, - :inproc => :inproc, - :other => :other - } - @deprecated """ - Replaced by `network.transport`. - """ - @spec net_transport() :: net_transport() - def net_transport() do - %{ - :ip_tcp => :ip_tcp, - :ip_udp => :ip_udp, - :pipe => :pipe, - :inproc => :inproc, - :other => :other - } - end - - @spec net_transport(atom() | String.t()) :: atom() | String.t() - def net_transport(custom_value) do - custom_value - end - @doc """ - The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. - - - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_icc() - :"network.carrier.icc" - """ - @spec network_carrier_icc :: :"network.carrier.icc" - def network_carrier_icc do - :"network.carrier.icc" - end - - @doc """ - The mobile carrier country code. + Local address of the network connection - IP address or Unix domain socket name. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_mcc() - :"network.carrier.mcc" - """ - @spec network_carrier_mcc :: :"network.carrier.mcc" - def network_carrier_mcc do - :"network.carrier.mcc" - end + ``` + ["10.1.2.80", "/tmp/my.sock"] + ``` - @doc """ - The mobile carrier network code. + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_mnc() - :"network.carrier.mnc" - """ - @spec network_carrier_mnc :: :"network.carrier.mnc" - def network_carrier_mnc do - :"network.carrier.mnc" - end + iex> OpenTelemetry.SemConv.NetworkAttributes.network_local_address() + :"network.local.address" - @doc """ - The name of the mobile carrier. + ### Erlang + ```erlang + ?NETWORK_LOCAL_ADDRESS. + 'network.local.address' + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_carrier_name() - :"network.carrier.name" + """ - @spec network_carrier_name :: :"network.carrier.name" - def network_carrier_name do - :"network.carrier.name" + @spec network_local_address :: :"network.local.address" + def network_local_address do + :"network.local.address" end - @typedoc """ - This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. - - ### Enum Values - * `:gprs` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GPRS - * `:edge` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EDGE - * `:umts` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - UMTS - * `:cdma` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA - * `:evdo_0` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rel. 0 - * `:evdo_a` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. A - * `:cdma2000_1xrtt` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - CDMA2000 1XRTT - * `:hsdpa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSDPA - * `:hsupa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSUPA - * `:hspa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPA - * `:iden` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IDEN - * `:evdo_b` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EVDO Rev. B - * `:lte` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE - * `:ehrpd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - EHRPD - * `:hspap` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HSPAP - * `:gsm` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - GSM - * `:td_scdma` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - TD-SCDMA - * `:iwlan` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IWLAN - * `:nr` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NR (New Radio) - * `:nrnsa` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) - * `:lte_ca` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - LTE CA - """ - @type network_connection_subtype() :: %{ - :gprs => :gprs, - :edge => :edge, - :umts => :umts, - :cdma => :cdma, - :evdo_0 => :evdo_0, - :evdo_a => :evdo_a, - :cdma2000_1xrtt => :cdma2000_1xrtt, - :hsdpa => :hsdpa, - :hsupa => :hsupa, - :hspa => :hspa, - :iden => :iden, - :evdo_b => :evdo_b, - :lte => :lte, - :ehrpd => :ehrpd, - :hspap => :hspap, - :gsm => :gsm, - :td_scdma => :td_scdma, - :iwlan => :iwlan, - :nr => :nr, - :nrnsa => :nrnsa, - :lte_ca => :lte_ca - } @doc """ - This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. - - - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype().gprs - :gprs - - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_subtype(:custom_value) - :custom_value - """ - @spec network_connection_subtype() :: network_connection_subtype() - def network_connection_subtype() do - %{ - :gprs => :gprs, - :edge => :edge, - :umts => :umts, - :cdma => :cdma, - :evdo_0 => :evdo_0, - :evdo_a => :evdo_a, - :cdma2000_1xrtt => :cdma2000_1xrtt, - :hsdpa => :hsdpa, - :hsupa => :hsupa, - :hspa => :hspa, - :iden => :iden, - :evdo_b => :evdo_b, - :lte => :lte, - :ehrpd => :ehrpd, - :hspap => :hspap, - :gsm => :gsm, - :td_scdma => :td_scdma, - :iwlan => :iwlan, - :nr => :nr, - :nrnsa => :nrnsa, - :lte_ca => :lte_ca - } - end + Local port number of the network connection. + ### Value type - @spec network_connection_subtype(atom() | String.t()) :: atom() | String.t() - def network_connection_subtype(custom_value) do - custom_value - end + Value must be of type `integer()`. + ### Examples - @typedoc """ - The internet connection type. + ``` + [65123] + ``` - ### Enum Values - * `:wifi` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:wired` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:cell` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:unavailable` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:unknown` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type network_connection_type() :: %{ - :wifi => :wifi, - :wired => :wired, - :cell => :cell, - :unavailable => :unavailable, - :unknown => :unknown - } - @doc """ - The internet connection type. + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type().wifi - :wifi - - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_connection_type(:custom_value) - :custom_value - """ - @spec network_connection_type() :: network_connection_type() - def network_connection_type() do - %{ - :wifi => :wifi, - :wired => :wired, - :cell => :cell, - :unavailable => :unavailable, - :unknown => :unknown - } - end + iex> OpenTelemetry.SemConv.NetworkAttributes.network_local_port() + :"network.local.port" - @spec network_connection_type(atom() | String.t()) :: atom() | String.t() - def network_connection_type(custom_value) do - custom_value - end + ### Erlang - @typedoc """ - The network IO operation direction. + ```erlang + ?NETWORK_LOCAL_PORT. + 'network.local.port' + ``` - ### Enum Values - * `:transmit` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:receive` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ + """ - @type network_io_direction() :: %{ - :transmit => :transmit, - :receive => :receive - } - @doc """ - The network IO operation direction. - - - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction().transmit - :transmit - - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_io_direction(:custom_value) - :custom_value - """ - @spec network_io_direction() :: network_io_direction() - def network_io_direction() do - %{ - :transmit => :transmit, - :receive => :receive - } - end - - @spec network_io_direction(atom() | String.t()) :: atom() | String.t() - def network_io_direction(custom_value) do - custom_value + @spec network_local_port :: :"network.local.port" + def network_local_port do + :"network.local.port" end @doc """ - Local address of the network connection - IP address or Unix domain socket name. + Peer address of the network connection - IP address or Unix domain socket name. + ### Value type + Value must be of type `atom() | String.t()`. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_local_address() - :"network.local.address" - """ - @spec network_local_address :: :"network.local.address" - def network_local_address do - :"network.local.address" - end + ``` + ["10.1.2.80", "/tmp/my.sock"] + ``` - @doc """ - Local port number of the network connection. + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_local_port() - :"network.local.port" - """ - @spec network_local_port :: :"network.local.port" - def network_local_port do - :"network.local.port" - end + iex> OpenTelemetry.SemConv.NetworkAttributes.network_peer_address() + :"network.peer.address" - @doc """ - Peer address of the network connection - IP address or Unix domain socket name. + ### Erlang + ```erlang + ?NETWORK_PEER_ADDRESS. + 'network.peer.address' + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_peer_address() - :"network.peer.address" + """ @spec network_peer_address :: :"network.peer.address" def network_peer_address do @@ -438,11 +102,30 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @doc """ Peer port number of the network connection. + ### Value type + + Value must be of type `integer()`. + ### Examples + ``` + [65123] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_peer_port() + + + ### Elixir + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_peer_port() :"network.peer.port" + + ### Erlang + + ```erlang + ?NETWORK_PEER_PORT. + 'network.peer.port' + ``` + + """ @spec network_peer_port :: :"network.peer.port" def network_peer_port do @@ -451,13 +134,33 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @doc """ [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes The value **SHOULD** be normalized to lowercase. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_protocol_name() + ``` + ["amqp", "http", "mqtt"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_protocol_name() :"network.protocol.name" + + ### Erlang + + ```erlang + ?NETWORK_PROTOCOL_NAME. + 'network.protocol.name' + ``` + + """ @spec network_protocol_name :: :"network.protocol.name" def network_protocol_name do @@ -466,14 +169,34 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @doc """ The actual version of the protocol used for network communication. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), this attribute **SHOULD** be set to the negotiated version. If the actual protocol version is not known, this attribute **SHOULD** **NOT** be set. + ### Examples + + ``` + ["1.1", "2"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_protocol_version() + ### Elixir + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_protocol_version() :"network.protocol.version" + + ### Erlang + + ```erlang + ?NETWORK_PROTOCOL_VERSION. + 'network.protocol.version' + ``` + + """ @spec network_protocol_version :: :"network.protocol.version" def network_protocol_version do @@ -499,6 +222,7 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do @doc """ [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). + ### Notes The value **SHOULD** be normalized to lowercase. @@ -507,13 +231,33 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do a port number is ambiguous without knowing the transport. For example different processes could be listening on TCP port 12345 and UDP port 12345. + ### Examples + + ``` + ["tcp", "udp"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport().tcp + + + ### Elixir + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport().tcp :tcp - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_transport(:custom_value) + iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'network_transport.tcp'. + tcp + + ?network_transport.(custom_value). + custom_value + ``` + + """ @spec network_transport() :: network_transport() def network_transport() do @@ -543,16 +287,37 @@ defmodule OpenTelemetry.SemanticConventions.NetworkAttributes do } @doc """ [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. + ### Notes The value **SHOULD** be normalized to lowercase. + ### Examples + + ``` + ["ipv4", "ipv6"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type().ipv4 + ### Elixir + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_type().ipv4 :ipv4 - iex> OpenTelemetry.SemanticConventions.NetworkAttributes.network_type(:custom_value) + iex> OpenTelemetry.SemConv.NetworkAttributes.network_type(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'network_type.ipv4'. + ipv4 + + ?network_type.(custom_value). + custom_value + ``` + + """ @spec network_type() :: network_type() def network_type() do diff --git a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex deleted file mode 100644 index fb8500da..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/os_attributes.ex +++ /dev/null @@ -1,124 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.OsAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Os attributes. - """ - - @doc """ - Unique identifier for a particular build or compilation of the operating system. - - - ### Example - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_buildid() - :"os.build_id" - """ - @spec os_buildid :: :"os.build_id" - def os_buildid do - :"os.build_id" - end - - @doc """ - Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_description() - :"os.description" - """ - @spec os_description :: :"os.description" - def os_description do - :"os.description" - end - - @doc """ - Human readable operating system name. - - - ### Example - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_name() - :"os.name" - """ - @spec os_name :: :"os.name" - def os_name do - :"os.name" - end - - @typedoc """ - The operating system type. - - - ### Enum Values - * `:windows` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Microsoft Windows - * `:linux` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Linux - * `:darwin` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - Apple Darwin - * `:freebsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - FreeBSD - * `:netbsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - NetBSD - * `:openbsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - OpenBSD - * `:dragonflybsd` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - DragonFly BSD - * `:hpux` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - HP-UX (Hewlett Packard Unix) - * `:aix` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - AIX (Advanced Interactive eXecutive) - * `:solaris` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - SunOS, Oracle Solaris - * `:z_os` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - IBM z/OS - """ - @type os_type() :: %{ - :windows => :windows, - :linux => :linux, - :darwin => :darwin, - :freebsd => :freebsd, - :netbsd => :netbsd, - :openbsd => :openbsd, - :dragonflybsd => :dragonflybsd, - :hpux => :hpux, - :aix => :aix, - :solaris => :solaris, - :z_os => :z_os - } - @doc """ - The operating system type. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type().windows - :windows - - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_type(:custom_value) - :custom_value - """ - @spec os_type() :: os_type() - def os_type() do - %{ - :windows => :windows, - :linux => :linux, - :darwin => :darwin, - :freebsd => :freebsd, - :netbsd => :netbsd, - :openbsd => :openbsd, - :dragonflybsd => :dragonflybsd, - :hpux => :hpux, - :aix => :aix, - :solaris => :solaris, - :z_os => :z_os - } - end - - @spec os_type(atom() | String.t()) :: atom() | String.t() - def os_type(custom_value) do - custom_value - end - - @doc """ - The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.OsAttributes.os_version() - :"os.version" - """ - @spec os_version :: :"os.version" - def os_version do - :"os.version" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index 1d2e3e7e..22b00cc8 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -1,32 +1,35 @@ -defmodule OpenTelemetry.SemanticConventions.OtelAttributes do +defmodule OpenTelemetry.SemConv.OtelAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Otel attributes. """ - @deprecated """ - use the `otel.scope.name` attribute. - """ - @spec otel_library_name :: :"otel.library.name" - def otel_library_name do - :"otel.library.name" - end - - @deprecated """ - use the `otel.scope.version` attribute. - """ - @spec otel_library_version :: :"otel.library.version" - def otel_library_version do - :"otel.library.version" - end - @doc """ The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["io.opentelemetry.contrib.mongodb"] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_scope_name() + ### Elixir + + iex> OpenTelemetry.SemConv.OtelAttributes.otel_scope_name() :"otel.scope.name" + + ### Erlang + + ```erlang + ?OTEL_SCOPE_NAME. + 'otel.scope.name' + ``` + + """ @spec otel_scope_name :: :"otel.scope.name" def otel_scope_name do @@ -35,11 +38,30 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do @doc """ The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1.0.0"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_scope_version() + iex> OpenTelemetry.SemConv.OtelAttributes.otel_scope_version() :"otel.scope.version" + + ### Erlang + + ```erlang + ?OTEL_SCOPE_VERSION. + 'otel.scope.version' + ``` + + """ @spec otel_scope_version :: :"otel.scope.version" def otel_scope_version do @@ -61,12 +83,27 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do Name of the code, either "OK" or "ERROR". **MUST** **NOT** be set if the status code is UNSET. - ### Example - iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode().ok + + + ### Elixir + + iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode().ok :OK - iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statuscode(:custom_value) + iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'otel_statuscode.ok'. + OK + + ?otel_statuscode.(custom_value). + custom_value + ``` + + """ @spec otel_statuscode() :: otel_statuscode() def otel_statuscode() do @@ -83,11 +120,30 @@ defmodule OpenTelemetry.SemanticConventions.OtelAttributes do @doc """ Description of the Status if it has a value, otherwise not set. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["resource not found"] + ``` + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.OtelAttributes.otel_statusdescription() + iex> OpenTelemetry.SemConv.OtelAttributes.otel_statusdescription() :"otel.status_description" + + ### Erlang + + ```erlang + ?OTEL_STATUSDESCRIPTION. + 'otel.status_description' + ``` + + """ @spec otel_statusdescription :: :"otel.status_description" def otel_statusdescription do diff --git a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex deleted file mode 100644 index e15f82df..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/process_attributes.ex +++ /dev/null @@ -1,457 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.ProcessAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Process attributes. - """ - - @doc """ - The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_command() - :"process.command" - """ - @spec process_command :: :"process.command" - def process_command do - :"process.command" - end - - @doc """ - All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_commandargs() - :"process.command_args" - """ - @spec process_commandargs :: :"process.command_args" - def process_commandargs do - :"process.command_args" - end - - @doc """ - The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_commandline() - :"process.command_line" - """ - @spec process_commandline :: :"process.command_line" - def process_commandline do - :"process.command_line" - end - - @typedoc """ - Specifies whether the context switches for this data point were voluntary or involuntary. - - ### Enum Values - * `:voluntary` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:involuntary` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type process_contextswitchtype() :: %{ - :voluntary => :voluntary, - :involuntary => :involuntary - } - @doc """ - Specifies whether the context switches for this data point were voluntary or involuntary. - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype().voluntary - :voluntary - - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_contextswitchtype(:custom_value) - :custom_value - """ - @spec process_contextswitchtype() :: process_contextswitchtype() - def process_contextswitchtype() do - %{ - :voluntary => :voluntary, - :involuntary => :involuntary - } - end - - @spec process_contextswitchtype(atom() | String.t()) :: atom() | String.t() - def process_contextswitchtype(custom_value) do - custom_value - end - - @typedoc """ - The CPU state of the process. - - - ### Enum Values - * `:system` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:user` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:wait` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type process_cpu_state() :: %{ - :system => :system, - :user => :user, - :wait => :wait - } - @doc """ - The CPU state of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state().system - :system - - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_cpu_state(:custom_value) - :custom_value - """ - @spec process_cpu_state() :: process_cpu_state() - def process_cpu_state() do - %{ - :system => :system, - :user => :user, - :wait => :wait - } - end - - @spec process_cpu_state(atom() | String.t()) :: atom() | String.t() - def process_cpu_state(custom_value) do - custom_value - end - - @doc """ - The date and time the process was created, in ISO 8601 format. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_creation_time() - :"process.creation.time" - """ - @spec process_creation_time :: :"process.creation.time" - def process_creation_time do - :"process.creation.time" - end - - @doc """ - The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_executable_name() - :"process.executable.name" - """ - @spec process_executable_name :: :"process.executable.name" - def process_executable_name do - :"process.executable.name" - end - - @doc """ - The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_executable_path() - :"process.executable.path" - """ - @spec process_executable_path :: :"process.executable.path" - def process_executable_path do - :"process.executable.path" - end - - @doc """ - The exit code of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_exit_code() - :"process.exit.code" - """ - @spec process_exit_code :: :"process.exit.code" - def process_exit_code do - :"process.exit.code" - end - - @doc """ - The date and time the process exited, in ISO 8601 format. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_exit_time() - :"process.exit.time" - """ - @spec process_exit_time :: :"process.exit.time" - def process_exit_time do - :"process.exit.time" - end - - @doc """ - The PID of the process's group leader. This is also the process group ID (PGID) of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_groupleader_pid() - :"process.group_leader.pid" - """ - @spec process_groupleader_pid :: :"process.group_leader.pid" - def process_groupleader_pid do - :"process.group_leader.pid" - end - - @doc """ - Whether the process is connected to an interactive shell. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_interactive() - :"process.interactive" - """ - @spec process_interactive :: :"process.interactive" - def process_interactive do - :"process.interactive" - end - - @doc """ - The username of the user that owns the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_owner() - :"process.owner" - """ - @spec process_owner :: :"process.owner" - def process_owner do - :"process.owner" - end - - @typedoc """ - The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. - - - ### Enum Values - * `:major` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:minor` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type process_paging_faulttype() :: %{ - :major => :major, - :minor => :minor - } - @doc """ - The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype().major - :major - - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_paging_faulttype(:custom_value) - :custom_value - """ - @spec process_paging_faulttype() :: process_paging_faulttype() - def process_paging_faulttype() do - %{ - :major => :major, - :minor => :minor - } - end - - @spec process_paging_faulttype(atom() | String.t()) :: atom() | String.t() - def process_paging_faulttype(custom_value) do - custom_value - end - - @doc """ - Parent Process identifier (PPID). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_parentpid() - :"process.parent_pid" - """ - @spec process_parentpid :: :"process.parent_pid" - def process_parentpid do - :"process.parent_pid" - end - - @doc """ - Process identifier (PID). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_pid() - :"process.pid" - """ - @spec process_pid :: :"process.pid" - def process_pid do - :"process.pid" - end - - @doc """ - The real user ID (RUID) of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_realuser_id() - :"process.real_user.id" - """ - @spec process_realuser_id :: :"process.real_user.id" - def process_realuser_id do - :"process.real_user.id" - end - - @doc """ - The username of the real user of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_realuser_name() - :"process.real_user.name" - """ - @spec process_realuser_name :: :"process.real_user.name" - def process_realuser_name do - :"process.real_user.name" - end - - @doc """ - An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_runtime_description() - :"process.runtime.description" - """ - @spec process_runtime_description :: :"process.runtime.description" - def process_runtime_description do - :"process.runtime.description" - end - - @doc """ - The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_runtime_name() - :"process.runtime.name" - """ - @spec process_runtime_name :: :"process.runtime.name" - def process_runtime_name do - :"process.runtime.name" - end - - @doc """ - The version of the runtime of this process, as returned by the runtime without modification. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_runtime_version() - :"process.runtime.version" - """ - @spec process_runtime_version :: :"process.runtime.version" - def process_runtime_version do - :"process.runtime.version" - end - - @doc """ - The saved user ID (SUID) of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_saveduser_id() - :"process.saved_user.id" - """ - @spec process_saveduser_id :: :"process.saved_user.id" - def process_saveduser_id do - :"process.saved_user.id" - end - - @doc """ - The username of the saved user. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_saveduser_name() - :"process.saved_user.name" - """ - @spec process_saveduser_name :: :"process.saved_user.name" - def process_saveduser_name do - :"process.saved_user.name" - end - - @doc """ - The PID of the process's session leader. This is also the session ID (SID) of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_sessionleader_pid() - :"process.session_leader.pid" - """ - @spec process_sessionleader_pid :: :"process.session_leader.pid" - def process_sessionleader_pid do - :"process.session_leader.pid" - end - - @doc """ - The effective user ID (EUID) of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_user_id() - :"process.user.id" - """ - @spec process_user_id :: :"process.user.id" - def process_user_id do - :"process.user.id" - end - - @doc """ - The username of the effective user of the process. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_user_name() - :"process.user.name" - """ - @spec process_user_name :: :"process.user.name" - def process_user_name do - :"process.user.name" - end - - @doc """ - Virtual process identifier. - - ### Notes - - The process ID within a PID namespace. This is not necessarily unique across all processes on the host but it is unique within the process namespace that the process exists within. - - - ### Example - iex> OpenTelemetry.SemanticConventions.ProcessAttributes.process_vpid() - :"process.vpid" - """ - @spec process_vpid :: :"process.vpid" - def process_vpid do - :"process.vpid" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/resource.ex b/apps/opentelemetry_semantic_conventions/lib/resource.ex new file mode 100644 index 00000000..7bf5247b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/resource.ex @@ -0,0 +1,534 @@ +defmodule OpenTelemetry.SemanticConventions.Resource do + @moduledoc """ + WARNING: This module is deprecated and will be removed in a future release. + Migrate to >= v1.26.0 semantic conventions. + """ + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec resource_schema_url :: String.t() + def resource_schema_url do + "https://opentelemetry.io/schemas/1.13.0" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec browser_brands :: :"browser.brands" + def browser_brands do + :"browser.brands" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec browser_platform :: :"browser.platform" + def browser_platform do + :"browser.platform" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec browser_user_agent :: :"browser.user_agent" + def browser_user_agent do + :"browser.user_agent" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloud_provider :: :"cloud.provider" + def cloud_provider do + :"cloud.provider" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloud_account_id :: :"cloud.account.id" + def cloud_account_id do + :"cloud.account.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloud_region :: :"cloud.region" + def cloud_region do + :"cloud.region" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloud_availability_zone :: :"cloud.availability_zone" + def cloud_availability_zone do + :"cloud.availability_zone" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloud_platform :: :"cloud.platform" + def cloud_platform do + :"cloud.platform" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" + def aws_ecs_container_arn do + :"aws.ecs.container.arn" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" + def aws_ecs_cluster_arn do + :"aws.ecs.cluster.arn" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" + def aws_ecs_launchtype do + :"aws.ecs.launchtype" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" + def aws_ecs_task_arn do + :"aws.ecs.task.arn" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_ecs_task_family :: :"aws.ecs.task.family" + def aws_ecs_task_family do + :"aws.ecs.task.family" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" + def aws_ecs_task_revision do + :"aws.ecs.task.revision" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" + def aws_eks_cluster_arn do + :"aws.eks.cluster.arn" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_log_group_names :: :"aws.log.group.names" + def aws_log_group_names do + :"aws.log.group.names" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_log_group_arns :: :"aws.log.group.arns" + def aws_log_group_arns do + :"aws.log.group.arns" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_log_stream_names :: :"aws.log.stream.names" + def aws_log_stream_names do + :"aws.log.stream.names" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_log_stream_arns :: :"aws.log.stream.arns" + def aws_log_stream_arns do + :"aws.log.stream.arns" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec container_name :: :"container.name" + def container_name do + :"container.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec container_id :: :"container.id" + def container_id do + :"container.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec container_runtime :: :"container.runtime" + def container_runtime do + :"container.runtime" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec container_image_name :: :"container.image.name" + def container_image_name do + :"container.image.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec container_image_tag :: :"container.image.tag" + def container_image_tag do + :"container.image.tag" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec deployment_environment :: :"deployment.environment" + def deployment_environment do + :"deployment.environment" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec device_id :: :"device.id" + def device_id do + :"device.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec device_model_identifier :: :"device.model.identifier" + def device_model_identifier do + :"device.model.identifier" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec device_model_name :: :"device.model.name" + def device_model_name do + :"device.model.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec device_manufacturer :: :"device.manufacturer" + def device_manufacturer do + :"device.manufacturer" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_name :: :"faas.name" + def faas_name do + :"faas.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_id :: :"faas.id" + def faas_id do + :"faas.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_version :: :"faas.version" + def faas_version do + :"faas.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_instance :: :"faas.instance" + def faas_instance do + :"faas.instance" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_max_memory :: :"faas.max_memory" + def faas_max_memory do + :"faas.max_memory" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_id :: :"host.id" + def host_id do + :"host.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_name :: :"host.name" + def host_name do + :"host.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_type :: :"host.type" + def host_type do + :"host.type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_arch :: :"host.arch" + def host_arch do + :"host.arch" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_image_name :: :"host.image.name" + def host_image_name do + :"host.image.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_image_id :: :"host.image.id" + def host_image_id do + :"host.image.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec host_image_version :: :"host.image.version" + def host_image_version do + :"host.image.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_cluster_name :: :"k8s.cluster.name" + def k8s_cluster_name do + :"k8s.cluster.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_node_name :: :"k8s.node.name" + def k8s_node_name do + :"k8s.node.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_node_uid :: :"k8s.node.uid" + def k8s_node_uid do + :"k8s.node.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_namespace_name :: :"k8s.namespace.name" + def k8s_namespace_name do + :"k8s.namespace.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_pod_uid :: :"k8s.pod.uid" + def k8s_pod_uid do + :"k8s.pod.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_pod_name :: :"k8s.pod.name" + def k8s_pod_name do + :"k8s.pod.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_container_name :: :"k8s.container.name" + def k8s_container_name do + :"k8s.container.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_container_restart_count :: :"k8s.container.restart_count" + def k8s_container_restart_count do + :"k8s.container.restart_count" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" + def k8s_replicaset_uid do + :"k8s.replicaset.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_replicaset_name :: :"k8s.replicaset.name" + def k8s_replicaset_name do + :"k8s.replicaset.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_deployment_uid :: :"k8s.deployment.uid" + def k8s_deployment_uid do + :"k8s.deployment.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_deployment_name :: :"k8s.deployment.name" + def k8s_deployment_name do + :"k8s.deployment.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" + def k8s_statefulset_uid do + :"k8s.statefulset.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_statefulset_name :: :"k8s.statefulset.name" + def k8s_statefulset_name do + :"k8s.statefulset.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" + def k8s_daemonset_uid do + :"k8s.daemonset.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_daemonset_name :: :"k8s.daemonset.name" + def k8s_daemonset_name do + :"k8s.daemonset.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_job_uid :: :"k8s.job.uid" + def k8s_job_uid do + :"k8s.job.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_job_name :: :"k8s.job.name" + def k8s_job_name do + :"k8s.job.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" + def k8s_cronjob_uid do + :"k8s.cronjob.uid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec k8s_cronjob_name :: :"k8s.cronjob.name" + def k8s_cronjob_name do + :"k8s.cronjob.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec os_type :: :"os.type" + def os_type do + :"os.type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec os_description :: :"os.description" + def os_description do + :"os.description" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec os_name :: :"os.name" + def os_name do + :"os.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec os_version :: :"os.version" + def os_version do + :"os.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_pid :: :"process.pid" + def process_pid do + :"process.pid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_parent_pid :: :"process.parent_pid" + def process_parent_pid do + :"process.parent_pid" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_executable_name :: :"process.executable.name" + def process_executable_name do + :"process.executable.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_executable_path :: :"process.executable.path" + def process_executable_path do + :"process.executable.path" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_command :: :"process.command" + def process_command do + :"process.command" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_command_line :: :"process.command_line" + def process_command_line do + :"process.command_line" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_command_args :: :"process.command_args" + def process_command_args do + :"process.command_args" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_owner :: :"process.owner" + def process_owner do + :"process.owner" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_runtime_name :: :"process.runtime.name" + def process_runtime_name do + :"process.runtime.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_runtime_version :: :"process.runtime.version" + def process_runtime_version do + :"process.runtime.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec process_runtime_description :: :"process.runtime.description" + def process_runtime_description do + :"process.runtime.description" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec service_name :: :"service.name" + def service_name do + :"service.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec service_namespace :: :"service.namespace" + def service_namespace do + :"service.namespace" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec service_instance_id :: :"service.instance.id" + def service_instance_id do + :"service.instance.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec service_version :: :"service.version" + def service_version do + :"service.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec telemetry_sdk_name :: :"telemetry.sdk.name" + def telemetry_sdk_name do + :"telemetry.sdk.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec telemetry_sdk_language :: :"telemetry.sdk.language" + def telemetry_sdk_language do + :"telemetry.sdk.language" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec telemetry_sdk_version :: :"telemetry.sdk.version" + def telemetry_sdk_version do + :"telemetry.sdk.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec telemetry_auto_version :: :"telemetry.auto.version" + def telemetry_auto_version do + :"telemetry.auto.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec webengine_name :: :"webengine.name" + def webengine_name do + :"webengine.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec webengine_version :: :"webengine.version" + def webengine_version do + :"webengine.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec webengine_description :: :"webengine.description" + def webengine_description do + :"webengine.description" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex new file mode 100644 index 00000000..9454f75a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -0,0 +1,118 @@ +defmodule OpenTelemetry.SemConv do + @moduledoc """ + OpenTelemetry Semantic Conventions + + + ## Lifecycle Status + + The support guarantees and allowed changes are governed by the lifecycle of the document. + + [OpenTelemetry Document Status](https://opentelemetry.io/docs/specs/otel/document-status) conventions. + + ### Experimental + + Experimental items are denoted as such, e.g. `attribute`^e^. These items _can_ be changed + but that does not happen frequently in practice. + + ## Usage + + Check out the Guides tab for detailed attribute information and usage. + + ### Migration from v1.13.0 semantic conventions + + The structure of OpenTelemetry Semantic Conventions has evolved a great + deal since the last version we have published. All attributes now live + under a common attribute registry. In addition, attributes have been classified + as stable or experimental. + + Attributes are now organized by attribute group and stability. The prior code + has been kept in a deprecated status to allow backward compatability + during migration. + + ### Erlang + + For Erlang include the semantic conventions header for the particular kind you + need: + + ``` + -include_lib("opentelemetry_semantic_conventions/include/url_attributes.hrl"). + ``` + + You can then use the macros for the attribute keys: + + ``` + ?URL_PATH + ``` + + #### Enums + + Enum Attribute types define each value in a macro with the attribute name prefixed. + + Enum Attributes allow for a user-supplied value when no pre-defined option exists. To + use a custom value, a function macro is provided. + + ``` + -include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). + + ?db_system.("custom"). + ``` + + #### Incubating Attributes + + Incubating attribute header files are located in the `incubating` folder. + + Experimental attributes are considered to be incubating. Attribute groups can + contain attributes which are stable, experimental, or both. Experimental + attributes are contained in an incubating header. Attribute groups containing + attributes of both stability levels will have two header files in this case. + + ``` + -include_lib("opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl"). + ``` + + You can then use the macros for the experimental attribute keys: + + ``` + ?URL_DOMAIN + ``` + + ### Elixir + + Attributes in Elixir are defined as functions. To use an attribute, simply call it + with that attribute's name. + + ``` + iex> OpenTelemetry.SemConv.URLAttributes.url_path() + :"url.path" + ``` + + #### Enums + + Enum Attribute types are defined by a function that returns a map of all defined values. + To get a particular value, you can use map dot or access patterns. Enum keys are always atoms. + + ``` + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().postgresql + :postgresql + ``` + + Enum Attributes allow for a user-supplied value when no pre-defined option exists. To + use a custom value, a function macro is provided. + + ``` + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system(:custom) + :custom + ``` + + #### Incubating Attributes + + Incubating attributes are located under the `OpenTelemetry.SemConv.Incubating` + namespace. + + Experimental attributes are considered to be incubating. Attribute groups can + contain attributes which are stable, experimental, or both. Experimental + attributes are contained in an incubating module. Attribute groups containing + attributes of both stability levels will have two modules in this case. + + """ +end diff --git a/apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex b/apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex deleted file mode 100644 index e47ee7f0..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/semantic_conventions.ex +++ /dev/null @@ -1,17 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions do - @moduledoc """ - Semantic Conventions - - - ## Lifecycle Status - - The support guarantees and allowed changes are governed by the lifecycle of the document. - - [OpenTelemetry Document Status](https://opentelemetry.io/docs/specs/otel/document-status) conventions. - - ### Experimental - - Experimental items are denoted as such, e.g. `attribute`^e^. These items _can_ be changed - but that does not happen frequently in practice. - """ -end diff --git a/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex index 1403cd0f..65bf7803 100644 --- a/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemanticConventions.ServerAttributes do +defmodule OpenTelemetry.SemConv.ServerAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Server attributes. @@ -6,14 +6,34 @@ defmodule OpenTelemetry.SemanticConventions.ServerAttributes do @doc """ Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes When observed from the client side, and when communicating through an intermediary, `server.address` **SHOULD** represent the server address behind any intermediaries, for example proxies, if it's available. + ### Examples + + ``` + ["example.com", "10.1.2.80", "/tmp/my.sock"] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.ServerAttributes.server_address() + iex> OpenTelemetry.SemConv.ServerAttributes.server_address() :"server.address" + + ### Erlang + + ```erlang + ?SERVER_ADDRESS. + 'server.address' + ``` + + """ @spec server_address :: :"server.address" def server_address do @@ -22,14 +42,34 @@ defmodule OpenTelemetry.SemanticConventions.ServerAttributes do @doc """ Server port number. + ### Value type + + Value must be of type `integer()`. ### Notes When observed from the client side, and when communicating through an intermediary, `server.port` **SHOULD** represent the server port behind any intermediaries, for example proxies, if it's available. + ### Examples + + ``` + [80, 8080, 443] + ``` + + + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.ServerAttributes.server_port() + iex> OpenTelemetry.SemConv.ServerAttributes.server_port() :"server.port" + + ### Erlang + + ```erlang + ?SERVER_PORT. + 'server.port' + ``` + + """ @spec server_port :: :"server.port" def server_port do diff --git a/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex index b282c9ad..6605df53 100644 --- a/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex @@ -1,62 +1,40 @@ -defmodule OpenTelemetry.SemanticConventions.ServiceAttributes do +defmodule OpenTelemetry.SemConv.ServiceAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Service attributes. """ @doc """ - The string ID of the service instance. + Logical name of the service. + + ### Value type + Value must be of type `atom() | String.t()`. ### Notes - MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words - `service.namespace,service.name,service.instance.id` triplet **MUST** be globally unique). The ID helps to - distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled - service). - - Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC - 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of - this value if stability is desirable. In that case, the ID **SHOULD** be used as source of a UUID Version 5 and - **SHOULD** use the following UUID as the namespace: `4d63009a-8d0f-11ee-aad7-4c796ed8e320`. - - UUIDs are typically recommended, as only an opaque value for the purposes of identifying a service instance is - needed. Similar to what can be seen in the man page for the - [`/etc/machine-id`](https://www.freedesktop.org/software/systemd/man/machine-id.html) file, the underlying - data, such as pod name and namespace should be treated as confidential, being the user's choice to expose it - or not via another resource attribute. - - For applications running behind an application server (like unicorn), we do not recommend using one identifier - for all processes participating in the application. Instead, it's recommended each division (e.g. a worker - thread in unicorn) to have its own instance.id. - - It's not recommended for a Collector to set `service.instance.id` if it can't unambiguously determine the - service instance that is generating that telemetry. For instance, creating an UUID based on `pod.name` will - likely be wrong, as the Collector might not know from which container within that pod the telemetry originated. - However, Collectors can set the `service.instance.id` if they can unambiguously determine the service instance - for that telemetry. This is typically the case for scraping receivers, as they know the target address and - port. - - - ### Example - iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_instance_id() - :"service.instance.id" - """ - @spec service_instance_id :: :"service.instance.id" - def service_instance_id do - :"service.instance.id" - end + MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service`. - @doc """ - Logical name of the service. + ### Examples - ### Notes + ``` + ["shoppingcart"] + ``` - MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs **MUST** fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value **MUST** be set to `unknown_service`. + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_name() + iex> OpenTelemetry.SemConv.ServiceAttributes.service_name() :"service.name" + + ### Erlang + + ```erlang + ?SERVICE_NAME. + 'service.name' + ``` + + """ @spec service_name :: :"service.name" def service_name do @@ -64,30 +42,32 @@ defmodule OpenTelemetry.SemanticConventions.ServiceAttributes do end @doc """ - A namespace for `service.name`. + The version string of the service API or implementation. The format is not defined by these conventions. - ### Notes + ### Value type - A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["2.0.0", "a01dbef8a"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_namespace() - :"service.namespace" - """ - @spec service_namespace :: :"service.namespace" - def service_namespace do - :"service.namespace" - end + - @doc """ - The version string of the service API or implementation. The format is not defined by these conventions. + ### Elixir + iex> OpenTelemetry.SemConv.ServiceAttributes.service_version() + :"service.version" + ### Erlang - ### Example - iex> OpenTelemetry.SemanticConventions.ServiceAttributes.service_version() - :"service.version" + ```erlang + ?SERVICE_VERSION. + 'service.version' + ``` + + """ @spec service_version :: :"service.version" def service_version do diff --git a/apps/opentelemetry_semantic_conventions/lib/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/session_attributes.ex deleted file mode 100644 index abbfcdf3..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/session_attributes.ex +++ /dev/null @@ -1,32 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.SessionAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Session attributes. - """ - - @doc """ - A unique id to identify a session. - - - ### Example - iex> OpenTelemetry.SemanticConventions.SessionAttributes.session_id() - :"session.id" - """ - @spec session_id :: :"session.id" - def session_id do - :"session.id" - end - - @doc """ - The previous `session.id` for this user, when known. - - - ### Example - iex> OpenTelemetry.SemanticConventions.SessionAttributes.session_previousid() - :"session.previous_id" - """ - @spec session_previousid :: :"session.previous_id" - def session_previousid do - :"session.previous_id" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index aaa065fc..8a917934 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -1,41 +1,9 @@ -defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do +defmodule OpenTelemetry.SemConv.TelemetryAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for Telemetry attributes. """ - @doc """ - The name of the auto instrumentation agent or distribution, if used. - - ### Notes - - Official auto instrumentation agents and distributions **SHOULD** set the `telemetry.distro.name` attribute to - a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_distro_name() - :"telemetry.distro.name" - """ - @spec telemetry_distro_name :: :"telemetry.distro.name" - def telemetry_distro_name do - :"telemetry.distro.name" - end - - @doc """ - The version string of the auto instrumentation agent or distribution, if used. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_distro_version() - :"telemetry.distro.version" - """ - @spec telemetry_distro_version :: :"telemetry.distro.version" - def telemetry_distro_version do - :"telemetry.distro.version" - end - @typedoc """ The language of the telemetry SDK. @@ -73,12 +41,27 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do - ### Example - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language().cpp + + + ### Elixir + + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language().cpp :cpp - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_language(:custom_value) + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language(:custom_value) :custom_value + + ### Erlang + + ```erlang + ?'telemetry_sdk_language.cpp'. + cpp + + ?telemetry_sdk_language.(custom_value). + custom_value + ``` + + """ @spec telemetry_sdk_language() :: telemetry_sdk_language() def telemetry_sdk_language() do @@ -106,6 +89,9 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do @doc """ The name of the telemetry SDK as defined above. + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes The OpenTelemetry SDK **MUST** set the `telemetry.sdk.name` attribute to `opentelemetry`. @@ -115,10 +101,27 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do The identifier `opentelemetry` is reserved and **MUST** **NOT** be used in this case. All custom identifiers **SHOULD** be stable across different versions of an implementation. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_name() + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_name() :"telemetry.sdk.name" + + ### Erlang + + ```erlang + ?TELEMETRY_SDK_NAME. + 'telemetry.sdk.name' + ``` + + """ @spec telemetry_sdk_name :: :"telemetry.sdk.name" def telemetry_sdk_name do @@ -128,11 +131,30 @@ defmodule OpenTelemetry.SemanticConventions.TelemetryAttributes do @doc """ The version string of the telemetry SDK. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1.2.3"] + ``` + - ### Example - iex> OpenTelemetry.SemanticConventions.TelemetryAttributes.telemetry_sdk_version() + ### Elixir + + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_version() :"telemetry.sdk.version" + + ### Erlang + + ```erlang + ?TELEMETRY_SDK_VERSION. + 'telemetry.sdk.version' + ``` + + """ @spec telemetry_sdk_version :: :"telemetry.sdk.version" def telemetry_sdk_version do diff --git a/apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex deleted file mode 100644 index 426ec93c..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/thread_attributes.ex +++ /dev/null @@ -1,34 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.ThreadAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Thread attributes. - """ - - @doc """ - Current "managed" thread ID (as opposed to OS thread ID). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ThreadAttributes.thread_id() - :"thread.id" - """ - @spec thread_id :: :"thread.id" - def thread_id do - :"thread.id" - end - - @doc """ - Current thread name. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.ThreadAttributes.thread_name() - :"thread.name" - """ - @spec thread_name :: :"thread.name" - def thread_name do - :"thread.name" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex deleted file mode 100644 index 01fd14ad..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/tls_attributes.ex +++ /dev/null @@ -1,423 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.TlsAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Tls attributes. - """ - - @doc """ - String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. - - ### Notes - - The values allowed for `tls.cipher` **MUST** be one of the `Descriptions` of the [registered TLS Cipher Suits](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#table-tls-parameters-4). - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_cipher() - :"tls.cipher" - """ - @spec tls_cipher :: :"tls.cipher" - def tls_cipher do - :"tls.cipher" - end - - @doc """ - PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_certificate() - :"tls.client.certificate" - """ - @spec tls_client_certificate :: :"tls.client.certificate" - def tls_client_certificate do - :"tls.client.certificate" - end - - @doc """ - Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_certificatechain() - :"tls.client.certificate_chain" - """ - @spec tls_client_certificatechain :: :"tls.client.certificate_chain" - def tls_client_certificatechain do - :"tls.client.certificate_chain" - end - - @doc """ - Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_hash_md_5() - :"tls.client.hash.md5" - """ - @spec tls_client_hash_md_5 :: :"tls.client.hash.md5" - def tls_client_hash_md_5 do - :"tls.client.hash.md5" - end - - @doc """ - Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_hash_sha_1() - :"tls.client.hash.sha1" - """ - @spec tls_client_hash_sha_1 :: :"tls.client.hash.sha1" - def tls_client_hash_sha_1 do - :"tls.client.hash.sha1" - end - - @doc """ - Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_hash_sha_256() - :"tls.client.hash.sha256" - """ - @spec tls_client_hash_sha_256 :: :"tls.client.hash.sha256" - def tls_client_hash_sha_256 do - :"tls.client.hash.sha256" - end - - @doc """ - Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_issuer() - :"tls.client.issuer" - """ - @spec tls_client_issuer :: :"tls.client.issuer" - def tls_client_issuer do - :"tls.client.issuer" - end - - @doc """ - A hash that identifies clients based on how they perform an SSL/TLS handshake. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_ja_3() - :"tls.client.ja3" - """ - @spec tls_client_ja_3 :: :"tls.client.ja3" - def tls_client_ja_3 do - :"tls.client.ja3" - end - - @doc """ - Date/Time indicating when client certificate is no longer considered valid. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_notafter() - :"tls.client.not_after" - """ - @spec tls_client_notafter :: :"tls.client.not_after" - def tls_client_notafter do - :"tls.client.not_after" - end - - @doc """ - Date/Time indicating when client certificate is first considered valid. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_notbefore() - :"tls.client.not_before" - """ - @spec tls_client_notbefore :: :"tls.client.not_before" - def tls_client_notbefore do - :"tls.client.not_before" - end - - @doc """ - Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_servername() - :"tls.client.server_name" - """ - @spec tls_client_servername :: :"tls.client.server_name" - def tls_client_servername do - :"tls.client.server_name" - end - - @doc """ - Distinguished name of subject of the x.509 certificate presented by the client. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_subject() - :"tls.client.subject" - """ - @spec tls_client_subject :: :"tls.client.subject" - def tls_client_subject do - :"tls.client.subject" - end - - @doc """ - Array of ciphers offered by the client during the client hello. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_client_supportedciphers() - :"tls.client.supported_ciphers" - """ - @spec tls_client_supportedciphers :: :"tls.client.supported_ciphers" - def tls_client_supportedciphers do - :"tls.client.supported_ciphers" - end - - @doc """ - String indicating the curve used for the given cipher, when applicable - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_curve() - :"tls.curve" - """ - @spec tls_curve :: :"tls.curve" - def tls_curve do - :"tls.curve" - end - - @doc """ - Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_established() - :"tls.established" - """ - @spec tls_established :: :"tls.established" - def tls_established do - :"tls.established" - end - - @doc """ - String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_nextprotocol() - :"tls.next_protocol" - """ - @spec tls_nextprotocol :: :"tls.next_protocol" - def tls_nextprotocol do - :"tls.next_protocol" - end - - @typedoc """ - Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - - ### Enum Values - * `:ssl` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - * `:tls` ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^ - """ - @type tls_protocol_name() :: %{ - :ssl => :ssl, - :tls => :tls - } - @doc """ - Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name().ssl - :ssl - - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_name(:custom_value) - :custom_value - """ - @spec tls_protocol_name() :: tls_protocol_name() - def tls_protocol_name() do - %{ - :ssl => :ssl, - :tls => :tls - } - end - - @spec tls_protocol_name(atom() | String.t()) :: atom() | String.t() - def tls_protocol_name(custom_value) do - custom_value - end - - @doc """ - Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_protocol_version() - :"tls.protocol.version" - """ - @spec tls_protocol_version :: :"tls.protocol.version" - def tls_protocol_version do - :"tls.protocol.version" - end - - @doc """ - Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_resumed() - :"tls.resumed" - """ - @spec tls_resumed :: :"tls.resumed" - def tls_resumed do - :"tls.resumed" - end - - @doc """ - PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_certificate() - :"tls.server.certificate" - """ - @spec tls_server_certificate :: :"tls.server.certificate" - def tls_server_certificate do - :"tls.server.certificate" - end - - @doc """ - Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_certificatechain() - :"tls.server.certificate_chain" - """ - @spec tls_server_certificatechain :: :"tls.server.certificate_chain" - def tls_server_certificatechain do - :"tls.server.certificate_chain" - end - - @doc """ - Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_hash_md_5() - :"tls.server.hash.md5" - """ - @spec tls_server_hash_md_5 :: :"tls.server.hash.md5" - def tls_server_hash_md_5 do - :"tls.server.hash.md5" - end - - @doc """ - Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_hash_sha_1() - :"tls.server.hash.sha1" - """ - @spec tls_server_hash_sha_1 :: :"tls.server.hash.sha1" - def tls_server_hash_sha_1 do - :"tls.server.hash.sha1" - end - - @doc """ - Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_hash_sha_256() - :"tls.server.hash.sha256" - """ - @spec tls_server_hash_sha_256 :: :"tls.server.hash.sha256" - def tls_server_hash_sha_256 do - :"tls.server.hash.sha256" - end - - @doc """ - Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_issuer() - :"tls.server.issuer" - """ - @spec tls_server_issuer :: :"tls.server.issuer" - def tls_server_issuer do - :"tls.server.issuer" - end - - @doc """ - A hash that identifies servers based on how they perform an SSL/TLS handshake. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_ja_3_s() - :"tls.server.ja3s" - """ - @spec tls_server_ja_3_s :: :"tls.server.ja3s" - def tls_server_ja_3_s do - :"tls.server.ja3s" - end - - @doc """ - Date/Time indicating when server certificate is no longer considered valid. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_notafter() - :"tls.server.not_after" - """ - @spec tls_server_notafter :: :"tls.server.not_after" - def tls_server_notafter do - :"tls.server.not_after" - end - - @doc """ - Date/Time indicating when server certificate is first considered valid. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_notbefore() - :"tls.server.not_before" - """ - @spec tls_server_notbefore :: :"tls.server.not_before" - def tls_server_notbefore do - :"tls.server.not_before" - end - - @doc """ - Distinguished name of subject of the x.509 certificate presented by the server. - - - ### Example - iex> OpenTelemetry.SemanticConventions.TlsAttributes.tls_server_subject() - :"tls.server.subject" - """ - @spec tls_server_subject :: :"tls.server.subject" - def tls_server_subject do - :"tls.server.subject" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/trace.ex b/apps/opentelemetry_semantic_conventions/lib/trace.ex new file mode 100644 index 00000000..0df7a486 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/trace.ex @@ -0,0 +1,884 @@ +defmodule OpenTelemetry.SemanticConventions.Trace do + @moduledoc """ + WARNING: This module is deprecated and will be removed in a future release. + Migrate to >= v1.26.0 semantic conventions. + """ + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec trace_schema_url :: String.t() + def trace_schema_url do + "https://opentelemetry.io/schemas/1.13.0" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_lambda_invoked_arn :: :"aws.lambda.invoked_arn" + def aws_lambda_invoked_arn do + :"aws.lambda.invoked_arn" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloudevents_event_id :: :"cloudevents.event_id" + def cloudevents_event_id do + :"cloudevents.event_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloudevents_event_source :: :"cloudevents.event_source" + def cloudevents_event_source do + :"cloudevents.event_source" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" + def cloudevents_event_spec_version do + :"cloudevents.event_spec_version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloudevents_event_type :: :"cloudevents.event_type" + def cloudevents_event_type do + :"cloudevents.event_type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec cloudevents_event_subject :: :"cloudevents.event_subject" + def cloudevents_event_subject do + :"cloudevents.event_subject" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec opentracing_ref_type :: :"opentracing.ref_type" + def opentracing_ref_type do + :"opentracing.ref_type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_system :: :"db.system" + def db_system do + :"db.system" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_connection_string :: :"db.connection_string" + def db_connection_string do + :"db.connection_string" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_user :: :"db.user" + def db_user do + :"db.user" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_jdbc_driver_classname :: :"db.jdbc.driver_classname" + def db_jdbc_driver_classname do + :"db.jdbc.driver_classname" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_name :: :"db.name" + def db_name do + :"db.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_statement :: :"db.statement" + def db_statement do + :"db.statement" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_operation :: :"db.operation" + def db_operation do + :"db.operation" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_peer_name :: :"net.peer.name" + def net_peer_name do + :"net.peer.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_peer_port :: :"net.peer.port" + def net_peer_port do + :"net.peer.port" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_sock_peer_addr :: :"net.sock.peer.addr" + def net_sock_peer_addr do + :"net.sock.peer.addr" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_sock_peer_port :: :"net.sock.peer.port" + def net_sock_peer_port do + :"net.sock.peer.port" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_sock_family :: :"net.sock.family" + def net_sock_family do + :"net.sock.family" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_sock_peer_name :: :"net.sock.peer.name" + def net_sock_peer_name do + :"net.sock.peer.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_transport :: :"net.transport" + def net_transport do + :"net.transport" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_mssql_instance_name :: :"db.mssql.instance_name" + def db_mssql_instance_name do + :"db.mssql.instance_name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_page_size :: :"db.cassandra.page_size" + def db_cassandra_page_size do + :"db.cassandra.page_size" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" + def db_cassandra_consistency_level do + :"db.cassandra.consistency_level" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_table :: :"db.cassandra.table" + def db_cassandra_table do + :"db.cassandra.table" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" + def db_cassandra_idempotence do + :"db.cassandra.idempotence" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" + def db_cassandra_speculative_execution_count do + :"db.cassandra.speculative_execution_count" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" + def db_cassandra_coordinator_id do + :"db.cassandra.coordinator.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" + def db_cassandra_coordinator_dc do + :"db.cassandra.coordinator.dc" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_redis_database_index :: :"db.redis.database_index" + def db_redis_database_index do + :"db.redis.database_index" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_mongodb_collection :: :"db.mongodb.collection" + def db_mongodb_collection do + :"db.mongodb.collection" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec db_sql_table :: :"db.sql.table" + def db_sql_table do + :"db.sql.table" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec exception_type :: :"exception.type" + def exception_type do + :"exception.type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec exception_message :: :"exception.message" + def exception_message do + :"exception.message" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec exception_stacktrace :: :"exception.stacktrace" + def exception_stacktrace do + :"exception.stacktrace" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec exception_escaped :: :"exception.escaped" + def exception_escaped do + :"exception.escaped" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_trigger :: :"faas.trigger" + def faas_trigger do + :"faas.trigger" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_execution :: :"faas.execution" + def faas_execution do + :"faas.execution" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_document_collection :: :"faas.document.collection" + def faas_document_collection do + :"faas.document.collection" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_document_operation :: :"faas.document.operation" + def faas_document_operation do + :"faas.document.operation" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_document_time :: :"faas.document.time" + def faas_document_time do + :"faas.document.time" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_document_name :: :"faas.document.name" + def faas_document_name do + :"faas.document.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_method :: :"http.method" + def http_method do + :"http.method" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_status_code :: :"http.status_code" + def http_status_code do + :"http.status_code" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_flavor :: :"http.flavor" + def http_flavor do + :"http.flavor" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_user_agent :: :"http.user_agent" + def http_user_agent do + :"http.user_agent" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_request_content_length :: :"http.request_content_length" + def http_request_content_length do + :"http.request_content_length" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_response_content_length :: :"http.response_content_length" + def http_response_content_length do + :"http.response_content_length" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_scheme :: :"http.scheme" + def http_scheme do + :"http.scheme" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_target :: :"http.target" + def http_target do + :"http.target" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_route :: :"http.route" + def http_route do + :"http.route" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_client_ip :: :"http.client_ip" + def http_client_ip do + :"http.client_ip" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_name :: :"net.host.name" + def net_host_name do + :"net.host.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_port :: :"net.host.port" + def net_host_port do + :"net.host.port" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_sock_host_addr :: :"net.sock.host.addr" + def net_sock_host_addr do + :"net.sock.host.addr" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_sock_host_port :: :"net.sock.host.port" + def net_sock_host_port do + :"net.sock.host.port" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_app_protocol_name :: :"net.app.protocol.name" + def net_app_protocol_name do + :"net.app.protocol.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_app_protocol_version :: :"net.app.protocol.version" + def net_app_protocol_version do + :"net.app.protocol.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_connection_type :: :"net.host.connection.type" + def net_host_connection_type do + :"net.host.connection.type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_connection_subtype :: :"net.host.connection.subtype" + def net_host_connection_subtype do + :"net.host.connection.subtype" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_carrier_name :: :"net.host.carrier.name" + def net_host_carrier_name do + :"net.host.carrier.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_carrier_mcc :: :"net.host.carrier.mcc" + def net_host_carrier_mcc do + :"net.host.carrier.mcc" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_carrier_mnc :: :"net.host.carrier.mnc" + def net_host_carrier_mnc do + :"net.host.carrier.mnc" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec net_host_carrier_icc :: :"net.host.carrier.icc" + def net_host_carrier_icc do + :"net.host.carrier.icc" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_system :: :"messaging.system" + def messaging_system do + :"messaging.system" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_destination :: :"messaging.destination" + def messaging_destination do + :"messaging.destination" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_destination_kind :: :"messaging.destination_kind" + def messaging_destination_kind do + :"messaging.destination_kind" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_temp_destination :: :"messaging.temp_destination" + def messaging_temp_destination do + :"messaging.temp_destination" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_protocol :: :"messaging.protocol" + def messaging_protocol do + :"messaging.protocol" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_protocol_version :: :"messaging.protocol_version" + def messaging_protocol_version do + :"messaging.protocol_version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_url :: :"messaging.url" + def messaging_url do + :"messaging.url" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_message_id :: :"messaging.message_id" + def messaging_message_id do + :"messaging.message_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_conversation_id :: :"messaging.conversation_id" + def messaging_conversation_id do + :"messaging.conversation_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_message_payload_size_bytes :: :"messaging.message_payload_size_bytes" + def messaging_message_payload_size_bytes do + :"messaging.message_payload_size_bytes" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_message_payload_compressed_size_bytes :: + :"messaging.message_payload_compressed_size_bytes" + def messaging_message_payload_compressed_size_bytes do + :"messaging.message_payload_compressed_size_bytes" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_time :: :"faas.time" + def faas_time do + :"faas.time" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_cron :: :"faas.cron" + def faas_cron do + :"faas.cron" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_coldstart :: :"faas.coldstart" + def faas_coldstart do + :"faas.coldstart" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_invoked_name :: :"faas.invoked_name" + def faas_invoked_name do + :"faas.invoked_name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_invoked_provider :: :"faas.invoked_provider" + def faas_invoked_provider do + :"faas.invoked_provider" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec faas_invoked_region :: :"faas.invoked_region" + def faas_invoked_region do + :"faas.invoked_region" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec peer_service :: :"peer.service" + def peer_service do + :"peer.service" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec enduser_id :: :"enduser.id" + def enduser_id do + :"enduser.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec enduser_role :: :"enduser.role" + def enduser_role do + :"enduser.role" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec enduser_scope :: :"enduser.scope" + def enduser_scope do + :"enduser.scope" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec thread_id :: :"thread.id" + def thread_id do + :"thread.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec thread_name :: :"thread.name" + def thread_name do + :"thread.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec code_function :: :"code.function" + def code_function do + :"code.function" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec code_namespace :: :"code.namespace" + def code_namespace do + :"code.namespace" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec code_filepath :: :"code.filepath" + def code_filepath do + :"code.filepath" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec code_lineno :: :"code.lineno" + def code_lineno do + :"code.lineno" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_url :: :"http.url" + def http_url do + :"http.url" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec http_retry_count :: :"http.retry_count" + def http_retry_count do + :"http.retry_count" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_system :: :"rpc.system" + def rpc_system do + :"rpc.system" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_service :: :"rpc.service" + def rpc_service do + :"rpc.service" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_method :: :"rpc.method" + def rpc_method do + :"rpc.method" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" + def aws_dynamodb_table_names do + :"aws.dynamodb.table_names" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" + def aws_dynamodb_consumed_capacity do + :"aws.dynamodb.consumed_capacity" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" + def aws_dynamodb_item_collection_metrics do + :"aws.dynamodb.item_collection_metrics" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" + def aws_dynamodb_provisioned_read_capacity do + :"aws.dynamodb.provisioned_read_capacity" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" + def aws_dynamodb_provisioned_write_capacity do + :"aws.dynamodb.provisioned_write_capacity" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" + def aws_dynamodb_consistent_read do + :"aws.dynamodb.consistent_read" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" + def aws_dynamodb_projection do + :"aws.dynamodb.projection" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" + def aws_dynamodb_limit do + :"aws.dynamodb.limit" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" + def aws_dynamodb_attributes_to_get do + :"aws.dynamodb.attributes_to_get" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" + def aws_dynamodb_index_name do + :"aws.dynamodb.index_name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_select :: :"aws.dynamodb.select" + def aws_dynamodb_select do + :"aws.dynamodb.select" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" + def aws_dynamodb_global_secondary_indexes do + :"aws.dynamodb.global_secondary_indexes" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" + def aws_dynamodb_local_secondary_indexes do + :"aws.dynamodb.local_secondary_indexes" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" + def aws_dynamodb_exclusive_start_table do + :"aws.dynamodb.exclusive_start_table" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" + def aws_dynamodb_table_count do + :"aws.dynamodb.table_count" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" + def aws_dynamodb_scan_forward do + :"aws.dynamodb.scan_forward" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" + def aws_dynamodb_segment do + :"aws.dynamodb.segment" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" + def aws_dynamodb_total_segments do + :"aws.dynamodb.total_segments" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_count :: :"aws.dynamodb.count" + def aws_dynamodb_count do + :"aws.dynamodb.count" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" + def aws_dynamodb_scanned_count do + :"aws.dynamodb.scanned_count" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" + def aws_dynamodb_attribute_definitions do + :"aws.dynamodb.attribute_definitions" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec aws_dynamodb_global_secondary_index_updates :: + :"aws.dynamodb.global_secondary_index_updates" + def aws_dynamodb_global_secondary_index_updates do + :"aws.dynamodb.global_secondary_index_updates" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec graphql_operation_name :: :"graphql.operation.name" + def graphql_operation_name do + :"graphql.operation.name" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec graphql_operation_type :: :"graphql.operation.type" + def graphql_operation_type do + :"graphql.operation.type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec graphql_document :: :"graphql.document" + def graphql_document do + :"graphql.document" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_operation :: :"messaging.operation" + def messaging_operation do + :"messaging.operation" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_consumer_id :: :"messaging.consumer_id" + def messaging_consumer_id do + :"messaging.consumer_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rabbitmq_routing_key :: :"messaging.rabbitmq.routing_key" + def messaging_rabbitmq_routing_key do + :"messaging.rabbitmq.routing_key" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_kafka_message_key :: :"messaging.kafka.message_key" + def messaging_kafka_message_key do + :"messaging.kafka.message_key" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer_group" + def messaging_kafka_consumer_group do + :"messaging.kafka.consumer_group" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_kafka_client_id :: :"messaging.kafka.client_id" + def messaging_kafka_client_id do + :"messaging.kafka.client_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_kafka_partition :: :"messaging.kafka.partition" + def messaging_kafka_partition do + :"messaging.kafka.partition" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_kafka_tombstone :: :"messaging.kafka.tombstone" + def messaging_kafka_tombstone do + :"messaging.kafka.tombstone" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" + def messaging_rocketmq_namespace do + :"messaging.rocketmq.namespace" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" + def messaging_rocketmq_client_group do + :"messaging.rocketmq.client_group" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_client_id :: :"messaging.rocketmq.client_id" + def messaging_rocketmq_client_id do + :"messaging.rocketmq.client_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message_type" + def messaging_rocketmq_message_type do + :"messaging.rocketmq.message_type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message_tag" + def messaging_rocketmq_message_tag do + :"messaging.rocketmq.message_tag" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message_keys" + def messaging_rocketmq_message_keys do + :"messaging.rocketmq.message_keys" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" + def messaging_rocketmq_consumption_model do + :"messaging.rocketmq.consumption_model" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" + def rpc_grpc_status_code do + :"rpc.grpc.status_code" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" + def rpc_jsonrpc_version do + :"rpc.jsonrpc.version" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" + def rpc_jsonrpc_request_id do + :"rpc.jsonrpc.request_id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" + def rpc_jsonrpc_error_code do + :"rpc.jsonrpc.error_code" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" + def rpc_jsonrpc_error_message do + :"rpc.jsonrpc.error_message" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec message_type :: :"message.type" + def message_type do + :"message.type" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec message_id :: :"message.id" + def message_id do + :"message.id" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec message_compressed_size :: :"message.compressed_size" + def message_compressed_size do + :"message.compressed_size" + end + + @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @spec message_uncompressed_size :: :"message.uncompressed_size" + def message_uncompressed_size do + :"message.uncompressed_size" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex index 212265b8..a5fa0b6c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex @@ -1,51 +1,36 @@ -defmodule OpenTelemetry.SemanticConventions.UrlAttributes do +defmodule OpenTelemetry.SemConv.URLAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for Url attributes. + OpenTelemetry Semantic Conventions for URL attributes. """ @doc """ - Domain extracted from the `url.full`, such as "opentelemetry.io". + The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component - ### Notes + ### Value type - In some cases a URL may refer to an IP and/or port directly, without a domain name. In this case, the IP address would go to the domain field. If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field. + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["SemConv"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_domain() - :"url.domain" - """ - @spec url_domain :: :"url.domain" - def url_domain do - :"url.domain" - end + - @doc """ - The file extension extracted from the `url.full`, excluding the leading dot. + ### Elixir - ### Notes - - The file extension is only set if it exists, as not every url has a file extension. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`. - - - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_extension() - :"url.extension" - """ - @spec url_extension :: :"url.extension" - def url_extension do - :"url.extension" - end - - @doc """ - The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component + iex> OpenTelemetry.SemConv.URLAttributes.url_fragment() + :"url.fragment" + ### Erlang + ```erlang + ?URL_FRAGMENT. + 'url.fragment' + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_fragment() - :"url.fragment" + """ @spec url_fragment :: :"url.fragment" def url_fragment do @@ -54,16 +39,36 @@ defmodule OpenTelemetry.SemanticConventions.UrlAttributes do @doc """ Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it **SHOULD** be included nevertheless. `url.full` **MUST** **NOT** contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case username and password **SHOULD** be redacted and attribute's value **SHOULD** be `https://REDACTED:REDACTED@www.example.com/`. `url.full` **SHOULD** capture the absolute URL when it is available (or can be reconstructed). Sensitive content provided in `url.full` **SHOULD** be scrubbed when instrumentations can identify it. + ### Examples + + ``` + ["https://www.foo.bar/search?q=OpenTelemetry#SemConv", "//localhost"] + ``` + + - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_full() + ### Elixir + + iex> OpenTelemetry.SemConv.URLAttributes.url_full() :"url.full" + + ### Erlang + + ```erlang + ?URL_FULL. + 'url.full' + ``` + + """ @spec url_full :: :"url.full" def url_full do @@ -71,34 +76,36 @@ defmodule OpenTelemetry.SemanticConventions.UrlAttributes do end @doc """ - Unmodified original URL as seen in the event source. + The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component + ### Value type + + Value must be of type `atom() | String.t()`. ### Notes - In network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not. - `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case password and username **SHOULD** **NOT** be redacted and attribute's value **SHOULD** remain the same. + Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it. + ### Examples - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_original() - :"url.original" - """ - @spec url_original :: :"url.original" - def url_original do - :"url.original" - end + ``` + ["/search"] + ``` - @doc """ - The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component + - ### Notes + ### Elixir - Sensitive content provided in `url.path` **SHOULD** be scrubbed when instrumentations can identify it. + iex> OpenTelemetry.SemConv.URLAttributes.url_path() + :"url.path" + ### Erlang - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_path() - :"url.path" + ```erlang + ?URL_PATH. + 'url.path' + ``` + + """ @spec url_path :: :"url.path" def url_path do @@ -106,30 +113,36 @@ defmodule OpenTelemetry.SemanticConventions.UrlAttributes do end @doc """ - Port extracted from the `url.full` + The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component + ### Value type + Value must be of type `atom() | String.t()`. + ### Notes - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_port() - :"url.port" - """ - @spec url_port :: :"url.port" - def url_port do - :"url.port" - end + Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it. - @doc """ - The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component + ### Examples - ### Notes + ``` + ["q=OpenTelemetry"] + ``` - Sensitive content provided in `url.query` **SHOULD** be scrubbed when instrumentations can identify it. + + ### Elixir - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_query() + iex> OpenTelemetry.SemConv.URLAttributes.url_query() :"url.query" + + ### Erlang + + ```erlang + ?URL_QUERY. + 'url.query' + ``` + + """ @spec url_query :: :"url.query" def url_query do @@ -137,81 +150,35 @@ defmodule OpenTelemetry.SemanticConventions.UrlAttributes do end @doc """ - The highest registered url domain, stripped of the subdomain. + The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. - ### Notes + ### Value type - This value can be determined precisely with the [public suffix list](http://publicsuffix.org). For example, the registered domain for `foo.example.com` is `example.com`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["https", "ftp", "telnet"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_registereddomain() - :"url.registered_domain" - """ - @spec url_registereddomain :: :"url.registered_domain" - def url_registereddomain do - :"url.registered_domain" - end + - @doc """ - The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. + ### Elixir + iex> OpenTelemetry.SemConv.URLAttributes.url_scheme() + :"url.scheme" + ### Erlang - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_scheme() - :"url.scheme" + ```erlang + ?URL_SCHEME. + 'url.scheme' + ``` + + """ @spec url_scheme :: :"url.scheme" def url_scheme do :"url.scheme" end - - @doc """ - The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. - - ### Notes - - The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. - - - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_subdomain() - :"url.subdomain" - """ - @spec url_subdomain :: :"url.subdomain" - def url_subdomain do - :"url.subdomain" - end - - @doc """ - The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_template() - :"url.template" - """ - @spec url_template :: :"url.template" - def url_template do - :"url.template" - end - - @doc """ - The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. - - ### Notes - - This value can be determined precisely with the [public suffix list](http://publicsuffix.org). - - - ### Example - iex> OpenTelemetry.SemanticConventions.UrlAttributes.url_topleveldomain() - :"url.top_level_domain" - """ - @spec url_topleveldomain :: :"url.top_level_domain" - def url_topleveldomain do - :"url.top_level_domain" - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex index 3b6d2ce6..4587815f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex @@ -1,54 +1,39 @@ -defmodule OpenTelemetry.SemanticConventions.UserAgentAttributes do +defmodule OpenTelemetry.SemConv.UserAgentAttributes do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for User_Agent attributes. """ @doc """ - Name of the user-agent extracted from original. Usually refers to the browser's name. + Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. - ### Notes + ### Value type - [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` + Value must be of type `atom() | String.t()`. + ### Examples + ``` + ["CERN-LineMode/2.15 libwww/2.17b3", "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", "YourApp/1.0.0 grpc-java-okhttp/1.27.2"] + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.UserAgentAttributes.useragent_name() - :"user_agent.name" - """ - @spec useragent_name :: :"user_agent.name" - def useragent_name do - :"user_agent.name" - end + - @doc """ - Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. + ### Elixir + + iex> OpenTelemetry.SemConv.UserAgentAttributes.useragent_original() + :"user_agent.original" + ### Erlang + ```erlang + ?USERAGENT_ORIGINAL. + 'user_agent.original' + ``` - ### Example - iex> OpenTelemetry.SemanticConventions.UserAgentAttributes.useragent_original() - :"user_agent.original" + """ @spec useragent_original :: :"user_agent.original" def useragent_original do :"user_agent.original" end - - @doc """ - Version of the user-agent extracted from original. Usually refers to the browser's version - - ### Notes - - [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` - - - ### Example - iex> OpenTelemetry.SemanticConventions.UserAgentAttributes.useragent_version() - :"user_agent.version" - """ - @spec useragent_version :: :"user_agent.version" - def useragent_version do - :"user_agent.version" - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex deleted file mode 100644 index fb4939bb..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/webengine_attributes.ex +++ /dev/null @@ -1,48 +0,0 @@ -defmodule OpenTelemetry.SemanticConventions.WebengineAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Webengine attributes. - """ - - @doc """ - Additional description of the web engine (e.g. detailed version and edition information). - - - - ### Example - iex> OpenTelemetry.SemanticConventions.WebengineAttributes.webengine_description() - :"webengine.description" - """ - @spec webengine_description :: :"webengine.description" - def webengine_description do - :"webengine.description" - end - - @doc """ - The name of the web engine. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.WebengineAttributes.webengine_name() - :"webengine.name" - """ - @spec webengine_name :: :"webengine.name" - def webengine_name do - :"webengine.name" - end - - @doc """ - The version of the web engine. - - - - ### Example - iex> OpenTelemetry.SemanticConventions.WebengineAttributes.webengine_version() - :"webengine.version" - """ - @spec webengine_version :: :"webengine.version" - def webengine_version do - :"webengine.version" - end -end diff --git a/apps/opentelemetry_semantic_conventions/mix.exs b/apps/opentelemetry_semantic_conventions/mix.exs index 43de72bc..1e3ad343 100644 --- a/apps/opentelemetry_semantic_conventions/mix.exs +++ b/apps/opentelemetry_semantic_conventions/mix.exs @@ -15,12 +15,12 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do {:covertool, ">= 0.0.0", only: :test}, {:ex_doc, "~> 0.34", only: [:dev]} ], - name: "OpenTelemetry.SemanticConventions", + name: "OpenTelemetry.SemConv", source_url: "https://github.com/open-telemetry/opentelemetry-erlang/apps/opentelemetry_semantic_conventions", docs: [ markdown_processor: {ExDoc.Markdown.Earmark, [all: true]}, - main: "OpenTelemetry.SemanticConventions", + main: "OpenTelemetry.SemConv", extra_section: "GUIDES", extras: guides() ++ [], groups_for_extras: [ @@ -45,6 +45,7 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do URL: Path.wildcard("guides/url/*.md") ], nest_modules_by_prefix: [ + OpenTelemetry.SemConv, OpenTelemetry.SemanticConventions ] ], diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.erl b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.erl index 2bb73025..ae23d471 100644 --- a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.erl +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.erl @@ -1,12 +1,3 @@ -module(opentelemetry_semantic_conventions). -export([]). - --ifdef(TEST). --include_lib("eunit/include/eunit.hrl"). - --include("trace.hrl"). - -quick_test() -> - ?assertEqual('aws.lambda.invoked_arn', ?AWS_LAMBDA_INVOKED_ARN). --endif. diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 6fa40f46..5af7f041 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -1,9 +1,7 @@ -{%- macro to_elixir_module(text) -%} - {{ text | pascal_case }} -{%- endmacro -%} {#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} {# {{ text | snake_case_const | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} +{%- set acronyms = ["http", "url", "tls", "rpc", "os", "oci", "gcp", "faas", "dns", "db", "aws"] %} {%- macro func_name(text) -%} {{ text | snake_case_const }} {%- endmacro -%} @@ -39,6 +37,15 @@ NOT_MAPPED {%- endif -%} {%- endmacro -%} +{%- macro erlang_enum_value_return_type_example(value) -%} + {%- if value is string -%} + custom_value + {%- elif value is integer -%} + 27 + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} {%- macro enum_to_map(members) -%} {% raw %}%{{% endraw %} {% for member in members %} @@ -49,30 +56,40 @@ {%- macro strong_reqs(string) -%} {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} {%- endmacro -%} +{%- macro format_acronym(value) -%} + {%- if value | lower in acronyms -%} + {{ value | upper }} + {%- else -%} + {{ value }} + {%- endif -%} +{%- endmacro -%} {%- set file_name = ctx.id | snake_case ~ "_attributes.ex" -%} -{%- set module_name = ctx.id | pascal_case -%} +{%- set module_name = (ctx.id | pascal_case) -%} {%- set trim_blocks = true %} {%- set trim_lstrip_blocks = true %} {{ template.set_file_name(file_name) }} -{%- set module_name = ctx.id | pascal_case ~ "Attributes" -%} -defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do +{%- set module_name = format_acronym(ctx.id | pascal_case) ~ "Attributes" -%} +{%- if params.stability == "experimental" -%} +{%- set module_namespace = "OpenTelemetry.SemConv.Incubating" -%} +{%- else -%} +{%- set module_namespace = "OpenTelemetry.SemConv" -%} +{%- endif -%} +defmodule {{ module_namespace }}.{{ module_name }} do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for {{ ctx.id | title }} attributes. + OpenTelemetry Semantic Conventions for {{ format_acronym(ctx.id | title) }} attributes. """ {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute.type is mapping %} - {# @doc namespace: {{ to_atom(ctx.id) }} #} - @typedoc """ {{ strong_reqs(attribute.brief) }} ### Enum Values {% for member in attribute.type.members -%} * `{{ to_atom(member.id) }}` - {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemanticConventions#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} + {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemConv#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} {% endfor -%} """ @type {{ attribute.name | snake_case_const }}() :: {{ enum_to_map(attribute.type.members) }} @@ -86,25 +103,61 @@ defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do {% if not(attribute is deprecated) %} @doc """ {{ strong_reqs(attribute.brief | replace("\n", "\n ")) }} - {% if attribute.note -%} + {% if (attribute.type is simple_type) or (attribute.type is template_type) -%} + ### Value type + Value must be of type `{{ attribute.type | map_text("elixir_types") }}`. + {%- endif %} + {%- if attribute.note %} ### Notes {{ strong_reqs(attribute.note | replace("\n", "\n ")) }} + {%- endif %} + {%- if attribute.examples %} + ### Examples + + ``` + {{ attribute.examples }} + ``` {%- endif %} - ### Example + {%- if attribute.type is mapping %} - iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}().{{ attribute.type.members|first|attr('id') }} + + ### Elixir + + iex> {{ module_namespace }}.{{ module_name }}.{{ func_name(attribute.name) }}().{{ attribute.type.members|first|attr('id') }} {{ enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} - iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}({{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) + iex> {{ module_namespace }}.{{ module_name }}.{{ func_name(attribute.name) }}({{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) {{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }} + + ### Erlang + + ```erlang + ?'{{ attribute.name | snake_case_const }}.{{ attribute.type.members|first|attr('id') }}'. + {{ attribute.type.members|first|attr('value') }} + + ?{{ attribute.name | snake_case_const }}.({{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). + {{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }} + ``` {%- else %} - iex> OpenTelemetry.SemanticConventions.{{ module_name }}.{{ func_name(attribute.name) }}() + + ### Elixir + + iex> {{ module_namespace }}.{{ module_name }}.{{ func_name(attribute.name) }}() {{ to_atom(attribute.name) }} + + ### Erlang + + ```erlang + ?{{ attribute.name | snake_case_const | upper }}. + '{{ attribute.name }}' + ``` {%- endif %} + + """ {%- endif %} @@ -125,4 +178,4 @@ defmodule OpenTelemetry.SemanticConventions.{{ module_name }} do end {%- endif %} {% endfor %} -end +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index e9d511c2..168f62ac 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -1,3 +1,6 @@ +params: + stability: "stable" + templates: - pattern: semantic_attributes.ex.j2 filter: > @@ -6,31 +9,33 @@ templates: | map(select(.type == "attribute_group")) | map(select(.id | startswith("registry."))) | map({ id: .id, group_id: .id | split(".") | .[1], attributes: .attributes}) + | map(select([.attributes[] | select(.stability == $stability)] | any)) | group_by(.group_id) - | map({ id: .[0].group_id, attributes: [.[].attributes[]] | sort_by(.id) }) + | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id) }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) | map(select(.attributes | length > 0)) application_mode: each - # | map(select([.attributes[] | select(.stability="stable")] | any)) text_maps: - type_mapping: + elixir_types: "int": "integer()" "int[]": "[integer()]" "double": "float()" "double[]": "[float()]" "boolean": "boolean()" "boolean[]": "[boolean()]" - "string": "String.t()" - "string[]": "[String.t()]" + "string": "atom() | String.t()" + "string[]": "[atom() | String.t()]" "template[int]": "integer()" "template[double]": "float()" "template[boolean]": "boolean()" - "template[string]": "String.t()" - "template[string[]]": "[String.t()]" + "template[string]": "atom() | String.t()" + "template[string[]]": "[atom() | String.t()]" "template[int[]]": "[integer()]" "template[double[]]": "[float()]" "template[boolean[]]": "[boolean()]" + +acronyms: ["iOS", "HTTP", "API", "SDK", "CLI", "URL", "JSON", "XML", "HTML", "TLS", "RPC", "OS", "OCI", "GCP", "FAAS", "DNS", "DB", "AWS" ] # java_generic_type: # int: Long # double: Double @@ -82,10 +87,3 @@ text_maps: # template[int[]]: longArrayKeyTemplate # template[double[]]: doubleArrayKeyTemplate # template[boolean[]]: booleanArrayKeyTemplate - -# Space delimited list of root namespaces to excluded (i.e. "foo bar") -# "-Dexcluded_namespaces=\"ios aspnetcore signalr\"", -#"-Dfilter=${filter}", -# "-DclassPrefix=${classPrefix}", -# "-Dpkg=$packageNameArg", -# "-DstablePkg=$stablePackageNameArg" diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index 0af39716..4cf421ee 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -1,14 +1,16 @@ -%% The schema url for telemetry resources --define({{ module | to_const_name }}_SCHEMA_URL, <<"{{ schema_uri }}">>). -{# blank line #} -{%- for attribute in attributes | unique(attribute="fqn") %} -%% {{ attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n%% ") }} -{%- if attribute.note %} -%% {{ attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n%% ") }} +{%- set file_name = ctx.id | snake_case ~ "_attributes.hrl" -%} +{{ template.set_file_name(file_name) }} +{%- for attribute in ctx.attributes | sort(attribute="name") %} +{% if attribute is deprecated -%} +%% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} {%- endif %} -{%- if attribute.deprecated %} -%% @deprecated {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n %% ") }} +%% {{ attribute.brief | replace("\n", "\n%% ") }} +{% if attribute.type is mapping -%} +{%- for member in attribute.type.members %} +-define('{{ attribute.name | snake_case_const }}.{{ member.id }}', '{{ member.value }}'). +{% endfor %} +-define({{ attribute.name | snake_case_const }}.(Custom), Custom). +{%- else -%} +-define({{ attribute.name | snake_case_const | upper }}, '{{ attribute.name }}'). {%- endif %} --define({{ attribute.fqn | to_const_name }}, '{{ attribute.fqn }}'). -{# blank line #} -{%- endfor %} +{% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml new file mode 100644 index 00000000..0f8c6f88 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -0,0 +1,87 @@ +params: + stability: "stable" + +templates: + - pattern: semantic_attributes.hrl.j2 + filter: > + ["ios", "android", "dotnet", "aspnetcore", "signalr", "jvm"] as $excluded | + .groups + | map(select(.type == "attribute_group")) + | map(select(.id | startswith("registry."))) + | map({ id: .id, group_id: .id | split(".") | .[1], attributes: .attributes}) + | map(select([.attributes[] | select(.stability == $stability)] | any)) + | group_by(.group_id) + | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id) }) + | map(select( .id as $id | any( $excluded[]; . == $id) | not )) + | map(select(.attributes | length > 0)) + application_mode: each + +text_maps: + erlang_types: + "int": "integer()" + "int[]": "[integer()]" + "double": "float()" + "double[]": "[float()]" + "boolean": "boolean()" + "boolean[]": "[boolean()]" + "string": "atom() | binary()" + "string[]": "[atom() | binary()]" + "template[int]": "integer()" + "template[double]": "float()" + "template[boolean]": "boolean()" + "template[string]": "atom() | binary()" + "template[string[]]": "[atom() | binary()]" + "template[int[]]": "[integer()]" + "template[double[]]": "[float()]" + "template[boolean[]]": "[boolean()]" +# java_generic_type: +# int: Long +# double: Double +# boolean: Boolean +# string: String +# string[]: List +# int[]: List +# double[]: List +# boolean[]: List +# template[int]: Long +# template[double]: Double +# template[boolean]: Boolean +# template[string]: String +# template[string[]]: List +# template[int[]]: List +# template[double[]]: List +# template[boolean[]]: List +# java_key_type: +# int: AttributeKey +# double: AttributeKey +# boolean: AttributeKey +# string: AttributeKey +# string[]: AttributeKey> +# int[]: AttributeKey> +# double[]: AttributeKey> +# boolean[]: AttributeKey> +# template[int]: AttributeKeyTemplate +# template[double]: AttributeKeyTemplate +# template[boolean]: AttributeKeyTemplate +# template[string]: AttributeKeyTemplate +# template[string[]]: AttributeKeyTemplate> +# template[int[]]: AttributeKeyTemplate> +# template[double[]]: AttributeKeyTemplate> +# template[boolean[]]: AttributeKeyTemplate> +# java_key_factory: +# int: longKey +# double: doubleKey +# boolean: booleanKey +# string: stringKey +# string[]: stringArrayKey +# int[]: longArrayKey +# double[]: doubleArrayKey +# boolean[]: booleanArrayKey +# template[int]: longKeyTemplate +# template[double]: doubleKeyTemplate +# template[boolean]: booleanKeyTemplate +# template[string]: stringKeyTemplate +# template[string[]]: stringArrayKeyTemplate +# template[int[]]: longArrayKeyTemplate +# template[double[]]: doubleArrayKeyTemplate +# template[boolean[]]: booleanArrayKeyTemplate diff --git a/apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 new file mode 100644 index 00000000..e83e89c7 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 @@ -0,0 +1,132 @@ +{%- macro to_elixir_module(text) -%} + {{ text | to_camelcase(True) | first_up }} +{%- endmacro -%} +{%- macro funcName(text) -%} + {{ text | regex_replace(pattern="\.", replace="_") }} +{%- endmacro -%} +{%- macro toAtom(text) -%} +{%- if text.find('.') != -1 %}:"{{ text }}"{%- else %}:{{ text }}{%- endif %} +{%- endmacro -%} +{%- macro to_elixir_type(value) -%} + {%- if value|string == value -%} + {{ toAtom(value) }} + {%- elif value == value|int -%} + {{ value }} + {%- else -%} + unmatchedtype: {{ value }} + {%- endif -%} +{%- endmacro -%} +{%- macro excluded_namespaces() -%} +('android', 'aspnetcore', 'dotnet', 'ios', 'jvm', 'signalr') +{%- endmacro -%} +{%- macro strong_reqs(string) -%} + {{ string | regex_replace(pattern="(? OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.schema_url() + "{{ schema_uri }}" + """ + @spec schema_url :: String.t() + def schema_url do + "{{ schema_uri }}" + end + +{%- for attribute in attributes_and_templates %} + {%- if root_namespace not in excluded_namespaces() %} + {% if root_namespace != '' %} + @doc namespace: {{ toAtom(root_namespace) }} + {% endif -%} + {%- if attribute|is_deprecated %} + @deprecated """ + {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} + """ + {%- else -%} + @doc """ + {{ attribute }} + {{ strong_reqs(attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} + {%- if attribute.note %} + + ### Notes + + {{ strong_reqs(attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} + {%- endif %} + + iex> OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.{{ funcName(attribute.fqn) }}() + :"{{ attribute.fqn }}" + + """ + {%- endif %} + @spec {{ funcName(attribute.fqn) }} :: {{ toAtom(attribute.fqn) }} + def {{ funcName(attribute.fqn) }} do + {{ toAtom(attribute.fqn) }} + end + {%- endif -%} +{%- endfor %} +end #} From 938ea42bdbcef4b2a02d69a890b8844ad950096f Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 12:29:06 -0600 Subject: [PATCH 16/57] Remove single attribute tmpl --- .../single_semantic_attributes.ex.j2 | 132 ------------------ 1 file changed, 132 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 diff --git a/apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 deleted file mode 100644 index e83e89c7..00000000 --- a/apps/opentelemetry_semantic_conventions/templates/single_semantic_attributes.ex.j2 +++ /dev/null @@ -1,132 +0,0 @@ -{%- macro to_elixir_module(text) -%} - {{ text | to_camelcase(True) | first_up }} -{%- endmacro -%} -{%- macro funcName(text) -%} - {{ text | regex_replace(pattern="\.", replace="_") }} -{%- endmacro -%} -{%- macro toAtom(text) -%} -{%- if text.find('.') != -1 %}:"{{ text }}"{%- else %}:{{ text }}{%- endif %} -{%- endmacro -%} -{%- macro to_elixir_type(value) -%} - {%- if value|string == value -%} - {{ toAtom(value) }} - {%- elif value == value|int -%} - {{ value }} - {%- else -%} - unmatchedtype: {{ value }} - {%- endif -%} -{%- endmacro -%} -{%- macro excluded_namespaces() -%} -('android', 'aspnetcore', 'dotnet', 'ios', 'jvm', 'signalr') -{%- endmacro -%} -{%- macro strong_reqs(string) -%} - {{ string | regex_replace(pattern="(? OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.schema_url() - "{{ schema_uri }}" - """ - @spec schema_url :: String.t() - def schema_url do - "{{ schema_uri }}" - end - -{%- for attribute in attributes_and_templates %} - {%- if root_namespace not in excluded_namespaces() %} - {% if root_namespace != '' %} - @doc namespace: {{ toAtom(root_namespace) }} - {% endif -%} - {%- if attribute|is_deprecated %} - @deprecated """ - {{ attribute.deprecated | to_doc_brief | regex_replace(pattern="\n", replace="\n ") }} - """ - {%- else -%} - @doc """ - {{ attribute }} - {{ strong_reqs(attribute.brief | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} - {%- if attribute.note %} - - ### Notes - - {{ strong_reqs(attribute.note | to_doc_brief | regex_replace(pattern="\n", replace="\n ")) }} - {%- endif %} - - iex> OpenTelemetry.SemanticConventions.{{ to_elixir_module(root_namespace) }}.{{ funcName(attribute.fqn) }}() - :"{{ attribute.fqn }}" - - """ - {%- endif %} - @spec {{ funcName(attribute.fqn) }} :: {{ toAtom(attribute.fqn) }} - def {{ funcName(attribute.fqn) }} do - {{ toAtom(attribute.fqn) }} - end - {%- endif -%} -{%- endfor %} -end #} From 8e52910f98904f7beebd27db0c60d692beb29638 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 16:31:52 -0600 Subject: [PATCH 17/57] Fix enum macros and add testing/ci --- .github/labeler.yml | 3 + .github/workflows/elixir.yml | 64 +++-- .github/workflows/erlang.yml | 242 ++++++++++-------- .../README.md | 2 +- .../include/error_attributes.hrl | 2 +- .../include/http_attributes.hrl | 2 +- .../include/incubating/aws_attributes.hrl | 2 +- .../include/incubating/cloud_attributes.hrl | 4 +- .../incubating/container_attributes.hrl | 2 +- .../include/incubating/db_attributes.hrl | 12 +- .../include/incubating/disk_attributes.hrl | 2 +- .../include/incubating/faas_attributes.hrl | 6 +- .../include/incubating/gen_ai_attributes.hrl | 2 +- .../include/incubating/graphql_attributes.hrl | 2 +- .../include/incubating/host_attributes.hrl | 2 +- .../include/incubating/http_attributes.hrl | 4 +- .../include/incubating/log_attributes.hrl | 2 +- .../incubating/messaging_attributes.hrl | 10 +- .../include/incubating/network_attributes.hrl | 10 +- .../incubating/opentracing_attributes.hrl | 2 +- .../include/incubating/os_attributes.hrl | 2 +- .../include/incubating/process_attributes.hrl | 6 +- .../include/incubating/rpc_attributes.hrl | 10 +- .../include/incubating/system_attributes.hrl | 20 +- .../include/incubating/tls_attributes.hrl | 2 +- .../include/network_attributes.hrl | 4 +- .../include/otel_attributes.hrl | 2 +- .../include/telemetry_attributes.hrl | 2 +- .../lib/error_attributes.ex | 2 +- .../lib/http_attributes.ex | 2 +- .../lib/incubating/aws_attributes.ex | 2 +- .../lib/incubating/cloud_attributes.ex | 4 +- .../lib/incubating/container_attributes.ex | 2 +- .../lib/incubating/db_attributes.ex | 10 +- .../lib/incubating/disk_attributes.ex | 2 +- .../lib/incubating/faas_attributes.ex | 6 +- .../lib/incubating/gen_ai_attributes.ex | 2 +- .../lib/incubating/graphql_attributes.ex | 2 +- .../lib/incubating/host_attributes.ex | 2 +- .../lib/incubating/http_attributes.ex | 2 +- .../lib/incubating/log_attributes.ex | 2 +- .../lib/incubating/messaging_attributes.ex | 10 +- .../lib/incubating/network_attributes.ex | 6 +- .../lib/incubating/opentracing_attributes.ex | 2 +- .../lib/incubating/os_attributes.ex | 2 +- .../lib/incubating/process_attributes.ex | 6 +- .../lib/incubating/rpc_attributes.ex | 8 +- .../lib/incubating/system_attributes.ex | 18 +- .../lib/incubating/tls_attributes.ex | 2 +- .../lib/network_attributes.ex | 4 +- .../lib/otel_attributes.ex | 2 +- .../lib/sem_conv.ex | 2 +- .../lib/telemetry_attributes.ex | 2 +- .../registry/elixir/semantic_attributes.ex.j2 | 2 +- .../erlang/semantic_attributes.hrl.j2 | 2 +- .../semantic_conventions/registry_test.exs | 2 +- .../test/opentelemetry_semconv_SUITE.erl | 16 ++ 57 files changed, 315 insertions(+), 236 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl diff --git a/.github/labeler.yml b/.github/labeler.yml index cfc6c16e..b8aa83cf 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -13,5 +13,8 @@ scope-api: scope-sdk: - apps/opentelemetry/** +scope-semconv: + - apps/opentelemetry_semantic_conventions/** + scope-ci: - .github/workflows/** diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 97595912..90df4994 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -3,10 +3,10 @@ name: Elixir on: pull_request: branches: - - 'main' + - "main" push: branches: - - 'main' + - "main" jobs: format: @@ -15,9 +15,9 @@ jobs: - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1 with: - otp-version: '26.1.2' - elixir-version: '1.15.7' - version-type: 'strict' + otp-version: "26.1.2" + elixir-version: "1.15.7" + version-type: "strict" - uses: actions/cache@v4 name: Cache with: @@ -34,9 +34,9 @@ jobs: name: Test SDK on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }} strategy: matrix: - otp_version: ['26.1.2', '24.3.4.14'] - elixir_version: ['1.15.7', '1.12.3'] - rebar3_version: ['3.22.1'] + otp_version: ["26.1.2", "24.3.4.14"] + elixir_version: ["1.15.7", "1.12.3"] + rebar3_version: ["3.22.1"] os: [ubuntu-20.04] exclude: - elixir_version: "1.12.3" @@ -51,7 +51,7 @@ jobs: otp-version: ${{ matrix.otp_version }} elixir-version: ${{ matrix.elixir_version }} rebar3-version: ${{ matrix.rebar3_version }} - version-type: 'strict' + version-type: "strict" - name: Compile run: rebar3 as test compile - name: ExUnit @@ -62,9 +62,9 @@ jobs: name: Test API on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }} strategy: matrix: - otp_version: ['26.1.2', '24.3.4.14'] - elixir_version: ['1.15.7', '1.12.3'] - rebar3_version: ['3.22.1'] + otp_version: ["26.1.2", "24.3.4.14"] + elixir_version: ["1.15.7", "1.12.3"] + rebar3_version: ["3.22.1"] os: [ubuntu-20.04] exclude: - elixir_version: "1.12.3" @@ -82,7 +82,7 @@ jobs: otp-version: ${{ matrix.otp_version }} elixir-version: ${{ matrix.elixir_version }} rebar3-version: ${{ matrix.rebar3_version }} - version-type: 'strict' + version-type: "strict" - uses: actions/cache@v4 name: Cache with: @@ -108,9 +108,9 @@ jobs: name: Dialyze on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }} strategy: matrix: - otp_version: ['26.1.2'] - elixir_version: ['1.15.7'] - rebar_version: ['3.22.1'] + otp_version: ["26.1.2"] + elixir_version: ["1.15.7"] + rebar_version: ["3.22.1"] os: [ubuntu-20.04] env: OTP_VERSION: ${{ matrix.otp_version }} @@ -124,7 +124,7 @@ jobs: with: otp-version: ${{ matrix.otp_version }} elixir-version: ${{ matrix.elixir_version }} - version-type: 'strict' + version-type: "strict" - uses: actions/cache@v4 name: Cache with: @@ -138,3 +138,33 @@ jobs: name: Deps - run: mix dialyzer name: Dialyzer + + semconv_tests: + runs-on: ${{ matrix.os }} + if: (contains(github.event.pull_request.labels.*.name, 'language-elixir') && contains(github.event.pull_request.labels.*.name, 'scope-semconv')) + name: Test SemConv on Elixir ${{ matrix.elixir_version }} (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }} + strategy: + matrix: + otp_version: ["26.1.2", "24.3.4.14"] + elixir_version: ["1.15.7", "1.12.3"] + rebar3_version: ["3.22.1"] + os: [ubuntu-20.04] + exclude: + - elixir_version: "1.12.3" + - otp_version: "26.1.2" + defaults: + run: + working-directory: apps/opentelemetry_semantic_conventions + env: + OTP_VERSION: ${{ matrix.otp_version }} + ELIXIR_VERSION: ${{ matrix.elixir_version }} + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp_version }} + elixir-version: ${{ matrix.elixir_version }} + rebar3-version: ${{ matrix.rebar3_version }} + version-type: "strict" + - name: ExUnit + run: mix test diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index b4b3faa0..17a99575 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -4,10 +4,10 @@ name: Erlang on: pull_request: branches: - - 'main' + - "main" push: branches: - - 'main' + - "main" permissions: checks: write @@ -18,130 +18,160 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - otp_version: ['26.1.2', '25.3.2.7', '24.3.4.14'] - rebar3_version: ['3.22.1'] + otp_version: ["26.1.2", "25.3.2.7", "24.3.4.14"] + rebar3_version: ["3.22.1"] os: [ubuntu-20.04] include: - - otp_version: '23.3.4.19' - rebar3_version: '3.17.0' + - otp_version: "23.3.4.19" + rebar3_version: "3.17.0" os: ubuntu-20.04 env: OTP_VERSION: ${{ matrix.otp_version }} steps: - - uses: actions/checkout@v4 - - name: Run Collector - run: docker-compose up -d - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ matrix.otp_version }} - rebar3-version: ${{ matrix.rebar3_version }} - version-type: 'strict' - - uses: actions/cache@v4 - name: Cache - with: - path: | - _build - key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles(format('rebar.lock')) }}-5 - restore-keys: | - ${{ runner.os }}-build-${{ matrix.otp_version }}-5- - - name: Compile - run: rebar3 compile - - name: EUnit tests - run: rebar3 eunit --cover - - name: Common Test tests - run: rebar3 ct --cover + - uses: actions/checkout@v4 + - name: Run Collector + run: docker-compose up -d + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp_version }} + rebar3-version: ${{ matrix.rebar3_version }} + version-type: "strict" + - uses: actions/cache@v4 + name: Cache + with: + path: | + _build + key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles(format('rebar.lock')) }}-5 + restore-keys: | + ${{ runner.os }}-build-${{ matrix.otp_version }}-5- + - name: Compile + run: rebar3 compile + - name: EUnit tests + run: rebar3 eunit --cover + - name: Common Test tests + run: rebar3 ct --cover - - name: Publish Test Report - uses: mikepenz/action-junit-report@v4 - if: success() || failure() # always run even if the previous step fails - with: - report_paths: '**/_build/test/logs/*/junit_report.xml' + - name: Publish Test Report + uses: mikepenz/action-junit-report@v4 + if: success() || failure() # always run even if the previous step fails + with: + report_paths: "**/_build/test/logs/*/junit_report.xml" - - name: XRef - run: rebar3 xref - - name: Covertool - if: ${{ always() }} - run: rebar3 covertool generate - - uses: codecov/codecov-action@v4 - if: ${{ always() }} - with: - file: _build/test/covertool/opentelemetry.covertool.xml - env_vars: OTP_VERSION - flags: sdk,erlang - - uses: codecov/codecov-action@v4 - if: ${{ always() }} - with: - file: _build/test/covertool/opentelemetry_api.covertool.xml - env_vars: OTP_VERSION - flags: api,erlang - - uses: codecov/codecov-action@v4 - if: ${{ always() }} - with: - file: _build/test/covertool/opentelemetry_exporter.covertool.xml - env_vars: OTP_VERSION - flags: exporter,erlang - - uses: codecov/codecov-action@v4 - if: ${{ always() }} - with: - file: _build/test/covertool/opentelemetry_zipkin.covertool.xml - env_vars: OTP_VERSION - flags: zipkin,erlang + - name: XRef + run: rebar3 xref + - name: Covertool + if: ${{ always() }} + run: rebar3 covertool generate + - uses: codecov/codecov-action@v4 + if: ${{ always() }} + with: + file: _build/test/covertool/opentelemetry.covertool.xml + env_vars: OTP_VERSION + flags: sdk,erlang + - uses: codecov/codecov-action@v4 + if: ${{ always() }} + with: + file: _build/test/covertool/opentelemetry_api.covertool.xml + env_vars: OTP_VERSION + flags: api,erlang + - uses: codecov/codecov-action@v4 + if: ${{ always() }} + with: + file: _build/test/covertool/opentelemetry_exporter.covertool.xml + env_vars: OTP_VERSION + flags: exporter,erlang + - uses: codecov/codecov-action@v4 + if: ${{ always() }} + with: + file: _build/test/covertool/opentelemetry_zipkin.covertool.xml + env_vars: OTP_VERSION + flags: zipkin,erlang dialyzer: name: Dialyze on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - otp_version: ['26.1.2'] - rebar3_version: ['3.22.1'] + otp_version: ["26.1.2"] + rebar3_version: ["3.22.1"] os: [ubuntu-20.04] steps: - - uses: actions/checkout@v4 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ matrix.otp_version }} - rebar3-version: ${{ matrix.rebar3_version }} - version-type: 'strict' - - uses: actions/cache@v4 - name: Cache - with: - path: | - _build - key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles('rebar.lock') }}-5 - restore-keys: | - ${{ runner.os }}-dialyzer-${{ matrix.otp_version }}-5- - - name: Compile - run: rebar3 compile - - name: Dialyzer - run: rebar3 as dialyzer dialyzer + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp_version }} + rebar3-version: ${{ matrix.rebar3_version }} + version-type: "strict" + - uses: actions/cache@v4 + name: Cache + with: + path: | + _build + key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles('rebar.lock') }}-5 + restore-keys: | + ${{ runner.os }}-dialyzer-${{ matrix.otp_version }}-5- + - name: Compile + run: rebar3 compile + - name: Dialyzer + run: rebar3 as dialyzer dialyzer eqWAlizer: name: EqWAlizer on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - otp_version: ['26.1.2'] - rebar3_version: ['3.22.1'] + otp_version: ["26.1.2"] + rebar3_version: ["3.22.1"] os: [ubuntu-20.04] steps: - - uses: actions/checkout@v4 - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ matrix.otp_version }} - rebar3-version: ${{ matrix.rebar3_version }} - version-type: 'strict' - - uses: actions/cache@v4 - name: Cache - with: - path: | - _build - key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles('rebar.lock') }}-5 - restore-keys: | - ${{ runner.os }}-eqWAlizer-${{ matrix.otp_version }}-5- - - name: Download elp - run: | - wget https://github.com/WhatsApp/eqwalizer/releases/download/v0.17.16/elp-linux.tar.gz - tar xvf elp-linux.tar.gz - - name: Compile - run: rebar3 compile - - name: eqWAlizer - run: ./elp eqwalize-all + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp_version }} + rebar3-version: ${{ matrix.rebar3_version }} + version-type: "strict" + - uses: actions/cache@v4 + name: Cache + with: + path: | + _build + key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles('rebar.lock') }}-5 + restore-keys: | + ${{ runner.os }}-eqWAlizer-${{ matrix.otp_version }}-5- + - name: Download elp + run: | + wget https://github.com/WhatsApp/eqwalizer/releases/download/v0.17.16/elp-linux.tar.gz + tar xvf elp-linux.tar.gz + - name: Compile + run: rebar3 compile + - name: eqWAlizer + run: ./elp eqwalize-all + + semconv_tests: + runs-on: ${{ matrix.os }} + if: (contains(github.event.pull_request.labels.*.name, 'language-erlang') && contains(github.event.pull_request.labels.*.name, 'scope-semconv')) + name: Test SemConv on (OTP ${{ matrix.otp_version }}) and ${{ matrix.os }} + strategy: + matrix: + otp_version: ["26.1.2", "24.3.4.14"] + rebar3_version: ["3.22.1"] + os: [ubuntu-20.04] + exclude: + - elixir_version: "1.12.3" + - otp_version: "26.1.2" + defaults: + run: + working-directory: apps/opentelemetry_semantic_conventions + env: + OTP_VERSION: ${{ matrix.otp_version }} + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp_version }} + elixir-version: ${{ matrix.elixir_version }} + rebar3-version: ${{ matrix.rebar3_version }} + version-type: "strict" + - name: Compile + run: rebar3 compile + - name: Common Test tests + run: rebar3 ct --cover diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 35a33e7b..3082459f 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -46,7 +46,7 @@ use a custom value, a function macro is provided. ``` -include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). -?db_system.("custom"). +?db_system("custom"). ``` #### Incubating Attributes diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl index ebcd756a..b353d44f 100644 --- a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -5,4 +5,4 @@ -define('error_type.other', '_OTHER'). --define(error_type.(Custom), Custom). +-define(error_type(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index 177388c7..faa29ecb 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -27,7 +27,7 @@ -define('http_request_method.other', '_OTHER'). --define(http_request_method.(Custom), Custom). +-define(http_request_method(Custom), Custom). %% Original HTTP method sent by the client in the request line. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index 8e173cbd..9cd22985 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -105,7 +105,7 @@ -define('aws_ecs_launchtype.fargate', 'fargate'). --define(aws_ecs_launchtype.(Custom), Custom). +-define(aws_ecs_launchtype(Custom), Custom). %% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index 8ac3976f..1c80ecdf 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -69,7 +69,7 @@ -define('cloud_platform.tencent_cloud_scf', 'tencent_cloud_scf'). --define(cloud_platform.(Custom), Custom). +-define(cloud_platform(Custom), Custom). %% Name of the cloud provider. @@ -89,7 +89,7 @@ -define('cloud_provider.tencent_cloud', 'tencent_cloud'). --define(cloud_provider.(Custom), Custom). +-define(cloud_provider(Custom), Custom). %% The geographical region the resource is running. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index 245fb46d..5e637e36 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -23,7 +23,7 @@ -define('container_cpu_state.kernel', 'kernel'). --define(container_cpu_state.(Custom), Custom). +-define(container_cpu_state(Custom), Custom). %% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index c888cc5b..fd61d73d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -25,7 +25,7 @@ -define('db_cassandra_consistencylevel.local_serial', 'local_serial'). --define(db_cassandra_consistencylevel.(Custom), Custom). +-define(db_cassandra_consistencylevel(Custom), Custom). %% The data center of the coordinating node for a query. @@ -68,7 +68,7 @@ -define('db_client_connections_state.used', 'used'). --define(db_client_connections_state.(Custom), Custom). +-define(db_client_connections_state(Custom), Custom). %% The name of a collection (table, container) within the database. @@ -90,7 +90,7 @@ -define('db_cosmosdb_connectionmode.direct', 'direct'). --define(db_cosmosdb_connectionmode.(Custom), Custom). +-define(db_cosmosdb_connectionmode(Custom), Custom). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. @@ -129,7 +129,7 @@ -define('db_cosmosdb_operationtype.execute_javascript', 'ExecuteJavaScript'). --define(db_cosmosdb_operationtype.(Custom), Custom). +-define(db_cosmosdb_operationtype(Custom), Custom). %% RU consumed for that operation @@ -325,7 +325,7 @@ -define('db_system.trino', 'trino'). --define(db_system.(Custom), Custom). +-define(db_system(Custom), Custom). %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. @@ -342,4 +342,4 @@ -define('state.used', 'used'). --define(state.(Custom), Custom). +-define(state(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl index 5bd98d24..d7afc493 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -6,4 +6,4 @@ -define('disk_io_direction.write', 'write'). --define(disk_io_direction.(Custom), Custom). +-define(disk_io_direction(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index a85213db..eab1c7f3 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -28,7 +28,7 @@ -define('faas_document_operation.delete', 'delete'). --define(faas_document_operation.(Custom), Custom). +-define(faas_document_operation(Custom), Custom). %% 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). @@ -64,7 +64,7 @@ -define('faas_invokedprovider.tencent_cloud', 'tencent_cloud'). --define(faas_invokedprovider.(Custom), Custom). +-define(faas_invokedprovider(Custom), Custom). %% The cloud region of the invoked function. @@ -100,7 +100,7 @@ -define('faas_trigger.other', 'other'). --define(faas_trigger.(Custom), Custom). +-define(faas_trigger(Custom), Custom). %% The immutable version of the function being executed. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl index 7ce41932..df9b997c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -40,7 +40,7 @@ -define('genai_system.openai', 'openai'). --define(genai_system.(Custom), Custom). +-define(genai_system(Custom), Custom). %% The number of tokens used in the LLM response (completion). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl index 4289c25a..e5c5b725 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -16,4 +16,4 @@ -define('graphql_operation_type.subscription', 'subscription'). --define(graphql_operation_type.(Custom), Custom). +-define(graphql_operation_type(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index 1f698f94..89a6d832 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -19,7 +19,7 @@ -define('host_arch.x86', 'x86'). --define(host_arch.(Custom), Custom). +-define(host_arch(Custom), Custom). %% The amount of level 2 memory cache available to the processor (in Bytes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index 5857c504..2b7b11c4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -10,7 +10,7 @@ -define('http_connection_state.idle', 'idle'). --define(http_connection_state.(Custom), Custom). +-define(http_connection_state(Custom), Custom). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name` instead. @@ -27,7 +27,7 @@ -define('http_flavor.quic', 'QUIC'). --define(http_flavor.(Custom), Custom). +-define(http_flavor(Custom), Custom). %% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. %% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index e4caf9ba..b65d8a70 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -27,7 +27,7 @@ -define('log_iostream.stderr', 'stderr'). --define(log_iostream.(Custom), Custom). +-define(log_iostream(Custom), Custom). %% A unique identifier for the Log Record. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index 7fa0071e..d4903656 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -139,7 +139,7 @@ -define('messaging_operation_type.settle', 'settle'). --define(messaging_operation_type.(Custom), Custom). +-define(messaging_operation_type(Custom), Custom). %% RabbitMQ message routing key. @@ -164,7 +164,7 @@ -define('messaging_rocketmq_consumptionmodel.broadcasting', 'broadcasting'). --define(messaging_rocketmq_consumptionmodel.(Custom), Custom). +-define(messaging_rocketmq_consumptionmodel(Custom), Custom). %% The delay time level for delay message, which determines the message delay time. @@ -203,7 +203,7 @@ -define('messaging_rocketmq_message_type.transaction', 'transaction'). --define(messaging_rocketmq_message_type.(Custom), Custom). +-define(messaging_rocketmq_message_type(Custom), Custom). %% Namespace of RocketMQ resources, resources in different namespaces are individual. @@ -227,7 +227,7 @@ -define('messaging_servicebus_dispositionstatus.defer', 'defer'). --define(messaging_servicebus_dispositionstatus.(Custom), Custom). +-define(messaging_servicebus_dispositionstatus(Custom), Custom). %% Number of deliveries that have been attempted for this message. @@ -262,4 +262,4 @@ -define('messaging_system.rocketmq', 'rocketmq'). --define(messaging_system.(Custom), Custom). +-define(messaging_system(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl index e3a3f864..529d9bea 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -40,7 +40,7 @@ -define('net_sock_family.unix', 'unix'). --define(net_sock_family.(Custom), Custom). +-define(net_sock_family(Custom), Custom). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. @@ -75,7 +75,7 @@ -define('net_transport.other', 'other'). --define(net_transport.(Custom), Custom). +-define(net_transport(Custom), Custom). %% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. @@ -138,7 +138,7 @@ -define('network_connection_subtype.lte_ca', 'lte_ca'). --define(network_connection_subtype.(Custom), Custom). +-define(network_connection_subtype(Custom), Custom). %% The internet connection type. @@ -153,7 +153,7 @@ -define('network_connection_type.unknown', 'unknown'). --define(network_connection_type.(Custom), Custom). +-define(network_connection_type(Custom), Custom). %% The network IO operation direction. @@ -162,4 +162,4 @@ -define('network_io_direction.receive', 'receive'). --define(network_io_direction.(Custom), Custom). +-define(network_io_direction(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index 7d71545e..fcf15225 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -6,4 +6,4 @@ -define('opentracing_reftype.follows_from', 'follows_from'). --define(opentracing_reftype.(Custom), Custom). +-define(opentracing_reftype(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index 412be08e..4588301c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -38,7 +38,7 @@ -define('os_type.z_os', 'z_os'). --define(os_type.(Custom), Custom). +-define(os_type(Custom), Custom). %% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index 4497c612..bf8afa2f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -21,7 +21,7 @@ -define('process_contextswitchtype.involuntary', 'involuntary'). --define(process_contextswitchtype.(Custom), Custom). +-define(process_contextswitchtype(Custom), Custom). %% The CPU state of the process. @@ -33,7 +33,7 @@ -define('process_cpu_state.wait', 'wait'). --define(process_cpu_state.(Custom), Custom). +-define(process_cpu_state(Custom), Custom). %% The date and time the process was created, in ISO 8601 format. @@ -83,7 +83,7 @@ -define('process_paging_faulttype.minor', 'minor'). --define(process_paging_faulttype.(Custom), Custom). +-define(process_paging_faulttype(Custom), Custom). %% Parent Process identifier (PPID). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index f8de11a2..bd856543 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -14,7 +14,7 @@ -define('message_type.received', 'RECEIVED'). --define(message_type.(Custom), Custom). +-define(message_type(Custom), Custom). %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. @@ -55,7 +55,7 @@ -define('rpc_connectrpc_errorcode.unauthenticated', 'unauthenticated'). --define(rpc_connectrpc_errorcode.(Custom), Custom). +-define(rpc_connectrpc_errorcode(Custom), Custom). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. @@ -114,7 +114,7 @@ -define('rpc_grpc_statuscode.unauthenticated', '16'). --define(rpc_grpc_statuscode.(Custom), Custom). +-define(rpc_grpc_statuscode(Custom), Custom). %% `error.code` property of response if it is an error response. @@ -148,7 +148,7 @@ -define('rpc_message_type.received', 'RECEIVED'). --define(rpc_message_type.(Custom), Custom). +-define(rpc_message_type(Custom), Custom). %% Uncompressed size of the message in bytes. @@ -175,4 +175,4 @@ -define('rpc_system.connect_rpc', 'connect_rpc'). --define(rpc_system.(Custom), Custom). +-define(rpc_system(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index 8b02457a..f5341d42 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -20,7 +20,7 @@ -define('system_cpu_state.steal', 'steal'). --define(system_cpu_state.(Custom), Custom). +-define(system_cpu_state(Custom), Custom). %% The device identifier @@ -43,7 +43,7 @@ -define('system_filesystem_state.reserved', 'reserved'). --define(system_filesystem_state.(Custom), Custom). +-define(system_filesystem_state(Custom), Custom). %% The filesystem type @@ -60,7 +60,7 @@ -define('system_filesystem_type.ext4', 'ext4'). --define(system_filesystem_type.(Custom), Custom). +-define(system_filesystem_type(Custom), Custom). %% The memory state @@ -75,7 +75,7 @@ -define('system_memory_state.cached', 'cached'). --define(system_memory_state.(Custom), Custom). +-define(system_memory_state(Custom), Custom). %% A stateless protocol MUST NOT set this attribute @@ -104,7 +104,7 @@ -define('system_network_state.time_wait', 'time_wait'). --define(system_network_state.(Custom), Custom). +-define(system_network_state(Custom), Custom). %% The paging access direction @@ -113,7 +113,7 @@ -define('system_paging_direction.out', 'out'). --define(system_paging_direction.(Custom), Custom). +-define(system_paging_direction(Custom), Custom). %% The memory paging state @@ -122,7 +122,7 @@ -define('system_paging_state.free', 'free'). --define(system_paging_state.(Custom), Custom). +-define(system_paging_state(Custom), Custom). %% The memory paging type @@ -131,7 +131,7 @@ -define('system_paging_type.minor', 'minor'). --define(system_paging_type.(Custom), Custom). +-define(system_paging_type(Custom), Custom). %% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) @@ -145,7 +145,7 @@ -define('system_process_status.defunct', 'defunct'). --define(system_process_status.(Custom), Custom). +-define(system_process_status(Custom), Custom). %% @deprecated Replaced by `system.process.status`. %% Deprecated, use `system.process.status` instead. @@ -158,4 +158,4 @@ -define('system_processes_status.defunct', 'defunct'). --define(system_processes_status.(Custom), Custom). +-define(system_processes_status(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index bb2d3412..82af9a6a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -78,7 +78,7 @@ -define('tls_protocol_name.tls', 'tls'). --define(tls_protocol_name.(Custom), Custom). +-define(tls_protocol_name(Custom), Custom). %% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl index 0a9e7e0f..a8bdcd0b 100644 --- a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -35,7 +35,7 @@ -define('network_transport.unix', 'unix'). --define(network_transport.(Custom), Custom). +-define(network_transport(Custom), Custom). %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. @@ -44,4 +44,4 @@ -define('network_type.ipv6', 'ipv6'). --define(network_type.(Custom), Custom). +-define(network_type(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index 66c9492a..19d26c74 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -14,7 +14,7 @@ -define('otel_statuscode.error', 'ERROR'). --define(otel_statuscode.(Custom), Custom). +-define(otel_statuscode(Custom), Custom). %% Description of the Status if it has a value, otherwise not set. diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl index 097304ff..13a0d439 100644 --- a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -27,7 +27,7 @@ -define('telemetry_sdk_language.webjs', 'webjs'). --define(telemetry_sdk_language.(Custom), Custom). +-define(telemetry_sdk_language(Custom), Custom). %% The name of the telemetry SDK as defined above. diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index fc28cecb..e9127e52 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do ?'error_type.other'. _OTHER - ?error_type.(custom_value). + ?error_type(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 299cdef7..308c93e6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -112,7 +112,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ?'http_request_method.connect'. CONNECT - ?http_request_method.(custom_value). + ?http_request_method(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex index 4704f756..a9cac1f3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -797,7 +797,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ?'aws_ecs_launchtype.ec2'. ec2 - ?aws_ecs_launchtype.(custom_value). + ?aws_ecs_launchtype(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index e7eb1c66..81dc6e7b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -163,7 +163,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ?'cloud_platform.alibaba_cloud_ecs'. alibaba_cloud_ecs - ?cloud_platform.(custom_value). + ?cloud_platform(custom_value). custom_value ``` @@ -251,7 +251,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ?'cloud_provider.alibaba_cloud'. alibaba_cloud - ?cloud_provider.(custom_value). + ?cloud_provider(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex index 7c0c9ff4..34aefaa1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -145,7 +145,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ?'container_cpu_state.user'. user - ?container_cpu_state.(custom_value). + ?container_cpu_state(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index 2b39d0ac..25fe1645 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -55,7 +55,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?'db_cassandra_consistencylevel.all'. all - ?db_cassandra_consistencylevel.(custom_value). + ?db_cassandra_consistencylevel(custom_value). custom_value ``` @@ -320,7 +320,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?'db_client_connections_state.idle'. idle - ?db_client_connections_state.(custom_value). + ?db_client_connections_state(custom_value). custom_value ``` @@ -448,7 +448,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?'db_cosmosdb_connectionmode.gateway'. gateway - ?db_cosmosdb_connectionmode.(custom_value). + ?db_cosmosdb_connectionmode(custom_value). custom_value ``` @@ -532,7 +532,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?'db_cosmosdb_operationtype.invalid'. Invalid - ?db_cosmosdb_operationtype.(custom_value). + ?db_cosmosdb_operationtype(custom_value). custom_value ``` @@ -1144,7 +1144,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?'db_system.other_sql'. other_sql - ?db_system.(custom_value). + ?db_system(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex index 72806f16..054d0451 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex @@ -40,7 +40,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do ?'disk_io_direction.read'. read - ?disk_io_direction.(custom_value). + ?disk_io_direction(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index a3b596af..6d8c43e8 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -164,7 +164,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?'faas_document_operation.insert'. insert - ?faas_document_operation.(custom_value). + ?faas_document_operation(custom_value). custom_value ``` @@ -367,7 +367,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?'faas_invokedprovider.alibaba_cloud'. alibaba_cloud - ?faas_invokedprovider.(custom_value). + ?faas_invokedprovider(custom_value). custom_value ``` @@ -587,7 +587,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?'faas_trigger.datasource'. datasource - ?faas_trigger.(custom_value). + ?faas_trigger(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex index 1eb70f29..189c1de9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex @@ -336,7 +336,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ?'genai_system.openai'. openai - ?genai_system.(custom_value). + ?genai_system(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex index 44d0111f..5edc6398 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex @@ -109,7 +109,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ?'graphql_operation_type.query'. query - ?graphql_operation_type.(custom_value). + ?graphql_operation_type(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex index 51123d60..d0a53ac2 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -49,7 +49,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ?'host_arch.amd64'. amd64 - ?host_arch.(custom_value). + ?host_arch(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex index 27948b6c..4060c639 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -48,7 +48,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ?'http_connection_state.active'. active - ?http_connection_state.(custom_value). + ?http_connection_state(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex index 885ff928..e0e59071 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -169,7 +169,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ?'log_iostream.stdout'. stdout - ?log_iostream.(custom_value). + ?log_iostream(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index 8b6df18c..898e4682 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -871,7 +871,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?'messaging_operation_type.publish'. publish - ?messaging_operation_type.(custom_value). + ?messaging_operation_type(custom_value). custom_value ``` @@ -1025,7 +1025,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?'messaging_rocketmq_consumptionmodel.clustering'. clustering - ?messaging_rocketmq_consumptionmodel.(custom_value). + ?messaging_rocketmq_consumptionmodel(custom_value). custom_value ``` @@ -1248,7 +1248,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?'messaging_rocketmq_message_type.normal'. normal - ?messaging_rocketmq_message_type.(custom_value). + ?messaging_rocketmq_message_type(custom_value). custom_value ``` @@ -1373,7 +1373,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?'messaging_servicebus_dispositionstatus.complete'. complete - ?messaging_servicebus_dispositionstatus.(custom_value). + ?messaging_servicebus_dispositionstatus(custom_value). custom_value ``` @@ -1512,7 +1512,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?'messaging_system.activemq'. activemq - ?messaging_system.(custom_value). + ?messaging_system(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex index 80ac0341..c42286e3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex @@ -376,7 +376,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?'network_connection_subtype.gprs'. gprs - ?network_connection_subtype.(custom_value). + ?network_connection_subtype(custom_value). custom_value ``` @@ -456,7 +456,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?'network_connection_type.wifi'. wifi - ?network_connection_type.(custom_value). + ?network_connection_type(custom_value). custom_value ``` @@ -514,7 +514,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?'network_io_direction.transmit'. transmit - ?network_io_direction.(custom_value). + ?network_io_direction(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index a7fa5ae7..8eb73ba1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ?'opentracing_reftype.child_of'. child_of - ?opentracing_reftype.(custom_value). + ?opentracing_reftype(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex index fba39b3a..d58daaf4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -152,7 +152,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ?'os_type.windows'. windows - ?os_type.(custom_value). + ?os_type(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex index ff504045..586cc265 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -134,7 +134,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?'process_contextswitchtype.voluntary'. voluntary - ?process_contextswitchtype.(custom_value). + ?process_contextswitchtype(custom_value). custom_value ``` @@ -188,7 +188,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?'process_cpu_state.system'. system - ?process_cpu_state.(custom_value). + ?process_cpu_state(custom_value). custom_value ``` @@ -500,7 +500,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?'process_paging_faulttype.major'. major - ?process_paging_faulttype.(custom_value). + ?process_paging_faulttype(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index dc16fe75..c9b1d48f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -114,7 +114,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?'rpc_connectrpc_errorcode.cancelled'. cancelled - ?rpc_connectrpc_errorcode.(custom_value). + ?rpc_connectrpc_errorcode(custom_value). custom_value ``` @@ -356,7 +356,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?'rpc_grpc_statuscode.ok'. 0 - ?rpc_grpc_statuscode.(27). + ?rpc_grpc_statuscode(27). 27 ``` @@ -607,7 +607,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?'rpc_message_type.sent'. SENT - ?rpc_message_type.(custom_value). + ?rpc_message_type(custom_value). custom_value ``` @@ -762,7 +762,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?'rpc_system.grpc'. grpc - ?rpc_system.(custom_value). + ?rpc_system(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index 24c64c52..52e0cc99 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -82,7 +82,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_cpu_state.user'. user - ?system_cpu_state.(custom_value). + ?system_cpu_state(custom_value). custom_value ``` @@ -240,7 +240,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_filesystem_state.used'. used - ?system_filesystem_state.(custom_value). + ?system_filesystem_state(custom_value). custom_value ``` @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_filesystem_type.fat32'. fat32 - ?system_filesystem_type.(custom_value). + ?system_filesystem_type(custom_value). custom_value ``` @@ -369,7 +369,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_memory_state.used'. used - ?system_memory_state.(custom_value). + ?system_memory_state(custom_value). custom_value ``` @@ -447,7 +447,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_network_state.close'. close - ?system_network_state.(custom_value). + ?system_network_state(custom_value). custom_value ``` @@ -512,7 +512,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_paging_direction.in'. in - ?system_paging_direction.(custom_value). + ?system_paging_direction(custom_value). custom_value ``` @@ -567,7 +567,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_paging_state.used'. used - ?system_paging_state.(custom_value). + ?system_paging_state(custom_value). custom_value ``` @@ -622,7 +622,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_paging_type.major'. major - ?system_paging_type.(custom_value). + ?system_paging_type(custom_value). custom_value ``` @@ -683,7 +683,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?'system_process_status.running'. running - ?system_process_status.(custom_value). + ?system_process_status(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex index 1dc1dfeb..3212331b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -560,7 +560,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ?'tls_protocol_name.ssl'. ssl - ?tls_protocol_name.(custom_value). + ?tls_protocol_name(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index af544898..821d936c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -253,7 +253,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?'network_transport.tcp'. tcp - ?network_transport.(custom_value). + ?network_transport(custom_value). custom_value ``` @@ -313,7 +313,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?'network_type.ipv4'. ipv4 - ?network_type.(custom_value). + ?network_type(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index 22b00cc8..907a1d0d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ?'otel_statuscode.ok'. OK - ?otel_statuscode.(custom_value). + ?otel_statuscode(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index 9454f75a..c0fee216 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -54,7 +54,7 @@ defmodule OpenTelemetry.SemConv do ``` -include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). - ?db_system.("custom"). + ?db_system("custom"). ``` #### Incubating Attributes diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index 8a917934..7108c2a0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ?'telemetry_sdk_language.cpp'. cpp - ?telemetry_sdk_language.(custom_value). + ?telemetry_sdk_language(custom_value). custom_value ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 5af7f041..d05da2c8 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -139,7 +139,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ?'{{ attribute.name | snake_case_const }}.{{ attribute.type.members|first|attr('id') }}'. {{ attribute.type.members|first|attr('value') }} - ?{{ attribute.name | snake_case_const }}.({{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). + ?{{ attribute.name | snake_case_const }}({{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). {{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }} ``` {%- else %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index 4cf421ee..f3153545 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -9,7 +9,7 @@ {%- for member in attribute.type.members %} -define('{{ attribute.name | snake_case_const }}.{{ member.id }}', '{{ member.value }}'). {% endfor %} --define({{ attribute.name | snake_case_const }}.(Custom), Custom). +-define({{ attribute.name | snake_case_const }}(Custom), Custom). {%- else -%} -define({{ attribute.name | snake_case_const | upper }}, '{{ attribute.name }}'). {%- endif %} diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs index 3653836e..8489b99c 100644 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs +++ b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/registry_test.exs @@ -7,7 +7,7 @@ contents = modules_to_test = Enum.filter(modules, fn module -> module = to_string(module) - String.starts_with?(module, "Elixir") && String.contains?(module, "SemanticConventions") + String.starts_with?(module, "Elixir") && String.contains?(module, "SemConv") end) for module <- modules_to_test do diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl new file mode 100644 index 00000000..2061ed85 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -0,0 +1,16 @@ +-module(opentelemetry_semconv_SUITE). + +-compile(export_all). + +-include_lib("stdlib/include/assert.hrl"). +-include_lib("common_test/include/ct.hrl"). + +-include("incubating/db_attributes.hrl"). + +all() -> + [registry_macros]. + +registry_macros(_Config) -> + ?assertEqual('postgresql', ?'db_system.postgresql'), + ?assertEqual('custom', ?db_system('custom')), + ok. From dba84aa616311239f225b656b92386725923a609 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 16:36:29 -0600 Subject: [PATCH 18/57] Fixup workflow events --- .github/workflows/elixir.yml | 2 ++ .github/workflows/erlang.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 90df4994..a9c3318f 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -4,6 +4,8 @@ on: pull_request: branches: - "main" + types: [opened, reopened, synchronize, labeled] + push: branches: - "main" diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 17a99575..87afcfc2 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -5,6 +5,8 @@ on: pull_request: branches: - "main" + types: [opened, reopened, synchronize, labeled] + push: branches: - "main" From 6e19a4a4e84ad82e2ef1a6b370a77ee99921e218 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 16:49:00 -0600 Subject: [PATCH 19/57] Undefined --- .github/workflows/erlang.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 87afcfc2..caad4f8d 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -170,7 +170,6 @@ jobs: - uses: erlef/setup-beam@v1 with: otp-version: ${{ matrix.otp_version }} - elixir-version: ${{ matrix.elixir_version }} rebar3-version: ${{ matrix.rebar3_version }} version-type: "strict" - name: Compile From b355a7923b6fc0a3b3fcae35f5e1bdca4509123f Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 16:58:49 -0600 Subject: [PATCH 20/57] Move old modules back to old folder --- .../lib/{ => semantic_conventions}/logs.ex | 0 .../lib/{ => semantic_conventions}/resource.ex | 0 .../lib/{ => semantic_conventions}/trace.ex | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename apps/opentelemetry_semantic_conventions/lib/{ => semantic_conventions}/logs.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => semantic_conventions}/resource.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => semantic_conventions}/trace.ex (100%) diff --git a/apps/opentelemetry_semantic_conventions/lib/logs.ex b/apps/opentelemetry_semantic_conventions/lib/semantic_conventions/logs.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/logs.ex rename to apps/opentelemetry_semantic_conventions/lib/semantic_conventions/logs.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/resource.ex b/apps/opentelemetry_semantic_conventions/lib/semantic_conventions/resource.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/resource.ex rename to apps/opentelemetry_semantic_conventions/lib/semantic_conventions/resource.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/trace.ex b/apps/opentelemetry_semantic_conventions/lib/semantic_conventions/trace.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/trace.ex rename to apps/opentelemetry_semantic_conventions/lib/semantic_conventions/trace.ex From e1cf5fd5c7464567c8036f251cc7377b1f028f0b Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 16:59:46 -0600 Subject: [PATCH 21/57] Nest folder --- .../lib/{ => open_telemetry}/semantic_conventions/logs.ex | 0 .../lib/{ => open_telemetry}/semantic_conventions/resource.ex | 0 .../lib/{ => open_telemetry}/semantic_conventions/trace.ex | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename apps/opentelemetry_semantic_conventions/lib/{ => open_telemetry}/semantic_conventions/logs.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => open_telemetry}/semantic_conventions/resource.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => open_telemetry}/semantic_conventions/trace.ex (100%) diff --git a/apps/opentelemetry_semantic_conventions/lib/semantic_conventions/logs.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/semantic_conventions/logs.ex rename to apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/semantic_conventions/resource.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/semantic_conventions/resource.ex rename to apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/semantic_conventions/trace.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/semantic_conventions/trace.ex rename to apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex From 31018c6ec0361fa6e3f1fb6d2a3d245f54006bba Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 17:08:11 -0600 Subject: [PATCH 22/57] Deps get --- .github/workflows/elixir.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index a9c3318f..a731aa86 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -168,5 +168,18 @@ jobs: elixir-version: ${{ matrix.elixir_version }} rebar3-version: ${{ matrix.rebar3_version }} version-type: "strict" + - name: Cache + uses: actions/cache@v4 + with: + path: | + ~/deps + ~/_build + key: ${{ runner.os }}-test-${{ matrix.otp_version }}-${{ matrix.elixir_version }}-${{ hashFiles('**/mix.lock') }} + + - name: Get and compile deps + if: steps.deps-cache.outputs.cache-hit != 'true' + run: | + mix deps.get + mix deps.compile - name: ExUnit run: mix test From 8005eb01bcc611f0c961c7e25397b705389469b1 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 10 Jul 2024 17:10:41 -0600 Subject: [PATCH 23/57] Remove elixir exclude --- .github/workflows/erlang.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index caad4f8d..10067ba2 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -157,9 +157,6 @@ jobs: otp_version: ["26.1.2", "24.3.4.14"] rebar3_version: ["3.22.1"] os: [ubuntu-20.04] - exclude: - - elixir_version: "1.12.3" - - otp_version: "26.1.2" defaults: run: working-directory: apps/opentelemetry_semantic_conventions From 3429bcf1e60299e9b91e9c67c3e9e43fe01e0f06 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Mon, 15 Jul 2024 17:52:19 -0600 Subject: [PATCH 24/57] Add metrics and license to hrl --- .../generate.exs | 36 +- .../include/client_attributes.hrl | 14 + .../include/error_attributes.hrl | 14 + .../include/exception_attributes.hrl | 14 + .../include/http_attributes.hrl | 14 + .../include/incubating/aws_attributes.hrl | 14 + .../include/incubating/browser_attributes.hrl | 14 + .../include/incubating/cloud_attributes.hrl | 14 + .../incubating/cloudevents_attributes.hrl | 14 + .../include/incubating/code_attributes.hrl | 14 + .../incubating/container_attributes.hrl | 14 + .../include/incubating/db_attributes.hrl | 14 + .../incubating/deployment_attributes.hrl | 14 + .../incubating/destination_attributes.hrl | 14 + .../include/incubating/device_attributes.hrl | 14 + .../include/incubating/disk_attributes.hrl | 14 + .../include/incubating/dns_attributes.hrl | 14 + .../include/incubating/enduser_attributes.hrl | 14 + .../include/incubating/event_attributes.hrl | 14 + .../include/incubating/faas_attributes.hrl | 14 + .../incubating/feature_flag_attributes.hrl | 14 + .../include/incubating/file_attributes.hrl | 14 + .../include/incubating/gcp_attributes.hrl | 14 + .../include/incubating/gen_ai_attributes.hrl | 14 + .../include/incubating/graphql_attributes.hrl | 14 + .../include/incubating/heroku_attributes.hrl | 14 + .../include/incubating/host_attributes.hrl | 14 + .../include/incubating/http_attributes.hrl | 14 + .../include/incubating/k_8_s_attributes.hrl | 14 + .../include/incubating/log_attributes.hrl | 14 + .../incubating/messaging_attributes.hrl | 14 + .../incubating/metrics/container_metrics.hrl | 30 + .../include/incubating/metrics/db_metrics.hrl | 90 ++ .../incubating/metrics/dns_metrics.hrl | 18 + .../incubating/metrics/faas_metrics.hrl | 50 ++ .../incubating/metrics/http_metrics.hrl | 46 + .../incubating/metrics/messaging_metrics.hrl | 38 + .../incubating/metrics/process_metrics.hrl | 54 ++ .../incubating/metrics/rpc_metrics.hrl | 54 ++ .../incubating/metrics/system_metrics.hrl | 126 +++ .../include/incubating/network_attributes.hrl | 14 + .../include/incubating/oci_attributes.hrl | 14 + .../incubating/opentracing_attributes.hrl | 14 + .../include/incubating/os_attributes.hrl | 14 + .../include/incubating/otel_attributes.hrl | 14 + .../include/incubating/peer_attributes.hrl | 14 + .../include/incubating/process_attributes.hrl | 14 + .../include/incubating/rpc_attributes.hrl | 14 + .../include/incubating/service_attributes.hrl | 14 + .../include/incubating/session_attributes.hrl | 14 + .../include/incubating/source_attributes.hrl | 14 + .../include/incubating/system_attributes.hrl | 14 + .../incubating/telemetry_attributes.hrl | 14 + .../include/incubating/thread_attributes.hrl | 14 + .../include/incubating/tls_attributes.hrl | 14 + .../include/incubating/url_attributes.hrl | 14 + .../incubating/user_agent_attributes.hrl | 14 + .../incubating/webengine_attributes.hrl | 14 + .../include/metrics/http_metrics.hrl | 22 + .../include/network_attributes.hrl | 14 + .../include/otel_attributes.hrl | 14 + .../include/server_attributes.hrl | 14 + .../include/service_attributes.hrl | 14 + .../include/telemetry_attributes.hrl | 14 + .../include/url_attributes.hrl | 14 + .../include/user_agent_attributes.hrl | 14 + .../incubating/metrics/container_metrics.ex | 129 +++ .../lib/incubating/metrics/db_metrics.ex | 356 ++++++++ .../lib/incubating/metrics/dns_metrics.ex | 32 + .../lib/incubating/metrics/faas_metrics.ex | 248 ++++++ .../lib/incubating/metrics/http_metrics.ex | 237 +++++ .../incubating/metrics/messaging_metrics.ex | 167 ++++ .../lib/incubating/metrics/process_metrics.ex | 275 ++++++ .../lib/incubating/metrics/rpc_metrics.ex | 329 +++++++ .../lib/incubating/metrics/system_metrics.ex | 815 ++++++++++++++++++ .../lib/metrics/http_metrics.ex | 59 ++ .../templates/registry/elixir/common.j2 | 74 ++ .../registry/elixir/semantic_attributes.ex.j2 | 115 +-- .../registry/elixir/semantic_metrics.ex.j2 | 64 ++ .../templates/registry/elixir/weaver.yaml | 24 +- .../erlang/semantic_attributes.hrl.j2 | 17 +- .../registry/erlang/semantic_metrics.hrl.j2 | 24 + .../templates/registry/erlang/weaver.yaml | 23 +- 83 files changed, 4216 insertions(+), 106 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs index e588f053..ddcd7e62 100644 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ b/apps/opentelemetry_semantic_conventions/generate.exs @@ -1,6 +1,5 @@ semconv_version = "1.26.0" docker_img_vsn = "0.5.0" -schema_uri = "https://opentelemetry.io/schemas/#{semconv_version}" # build_dir = System.cmd("mktemp", ["-d"]) |> elem(0) |> String.trim() build_dir = "#{File.cwd!()}/semtmp" @@ -30,11 +29,13 @@ cwd = File.cwd!() ######## # elixir + +# stable attrs System.cmd("docker", [ "run", # "--rm", "-v", - "#{build_dir}:/source", + "#{build_dir}/model:/source", "-v", "#{cwd}/templates:/weaver/templates", "-v", @@ -43,30 +44,35 @@ System.cmd("docker", [ # "otel/weaver:#{docker_img_vsn}", "registry", "generate", - "--registry=/source/model", + "--registry=/source", "--templates=/weaver/templates", "--param", + "output=/output/", + "--param", "stability=stable", "elixir", "/output/" ]) +# incubating attrs System.cmd("docker", [ "run", # "--rm", "-v", - "#{build_dir}:/source", + "#{build_dir}/model:/source", "-v", "#{cwd}/templates:/weaver/templates", "-v", - "#{cwd}/lib/incubating:/output", + "#{cwd}/lib:/output", "local-weaver", # "otel/weaver:#{docker_img_vsn}", "registry", "generate", - "--registry=/source/model", + "--registry=/source", "--templates=/weaver/templates", "--param", + "output=/output/incubating/", + "--param", "stability=experimental", "elixir", "/output/" @@ -74,43 +80,49 @@ System.cmd("docker", [ # erlang +# stable attrs System.cmd("docker", [ "run", # "--rm", "-v", - "#{build_dir}:/source", + "#{build_dir}/model:/source", "-v", "#{cwd}/templates:/weaver/templates", "-v", - "#{cwd}/include:/output", + "#{cwd}/include:/output/", "local-weaver", # "otel/weaver:#{docker_img_vsn}", "registry", "generate", - "--registry=/source/model", + "--registry=/source", "--templates=/weaver/templates", "--param", + "output=/output/", + "--param", "stability=stable", "erlang", "/output/" ]) +# incubating attrs System.cmd("docker", [ "run", # "--rm", "-v", - "#{build_dir}:/source", + "#{build_dir}/model:/source", "-v", "#{cwd}/templates:/weaver/templates", "-v", - "#{cwd}/include/incubating:/output", + "#{cwd}/include:/output", "local-weaver", # "otel/weaver:#{docker_img_vsn}", "registry", "generate", - "--registry=/source/model", + "--registry=/source", "--templates=/weaver/templates", "--param", + "output=/output/incubating/", + "--param", "stability=experimental", "erlang", "/output/" diff --git a/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl index 8c848ac8..193bca86 100644 --- a/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. -define(CLIENT_ADDRESS, 'client.address'). diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl index b353d44f..880406dc 100644 --- a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Describes a class of error the operation ended with. %% diff --git a/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl index 41d7323b..fee6dd17 100644 --- a/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. %% diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index faa29ecb..43b9eef0 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index 9cd22985..3899e0a9 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The JSON-serialized value of each item in the `AttributeDefinitions` request field. -define(AWS_DYNAMODB_ATTRIBUTEDEFINITIONS, 'aws.dynamodb.attribute_definitions'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl index 8d66555e..a016ca03 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Array of brand name and version separated by a space -define(BROWSER_BRANDS, 'browser.brands'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index 1c80ecdf..2ae85c46 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The cloud account ID the resource is assigned to. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl index 8cd3c7c4..842b4638 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl index e54514aa..8500b126 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index 5e637e36..5bf9f714 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The command used to run the container (i.e. the command name). %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index fd61d73d..08e47d15 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% 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). %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl index a87bea18..51b0c3fe 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl index 8265517f..3239960a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. -define(DESTINATION_ADDRESS, 'destination.address'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl index c3870a9b..8b75ec21 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% A unique identifier representing the device %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl index d7afc493..57314318 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The disk IO operation direction. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl index 75c62e30..b5399045 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The name being queried. -define(DNS_QUESTION_NAME, 'dns.question.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl index 59e8cb9e..2afc72e4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl index e1ffd76e..58b4dbd1 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Identifies the class / type of event. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index eab1c7f3..0e8f4b46 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% A boolean that is true if the serverless function is executed for the first time (aka cold-start). %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl index 0a79d661..d931d3a0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The unique identifier of the feature flag. -define(FEATUREFLAG_KEY, 'feature_flag.key'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl index 2a7320d7..0ea28994 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Directory where the file is located. It should include the drive letter, when appropriate. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl index 64ea016c..95a85150 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% 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. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl index df9b997c..26433d2f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The full response received from the LLM. -define(GENAI_COMPLETION, 'gen_ai.completion'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl index e5c5b725..ffb4668e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The GraphQL document being executed. -define(GRAPHQL_DOCUMENT, 'graphql.document'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl index 3f0be564..2116a751 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Unique identifier for the application %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index 89a6d832..af29e697 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The CPU architecture the host system is running on. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index 2b7b11c4..dde158b2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% @deprecated Replaced by `client.address`. %% Deprecated, use `client.address` instead. -define(HTTP_CLIENTIP, 'http.client_ip'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl index 96f17741..d897794c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The name of the cluster. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index b65d8a70..cac9b33d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The basename of the file. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index d4903656..74fe3b50 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The number of messages sent, received, or processed in the scope of the batching operation. -define(MESSAGING_BATCH_MESSAGECOUNT, 'messaging.batch.message_count'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl new file mode 100644 index 00000000..70487615 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl @@ -0,0 +1,30 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Total CPU time consumed +-define(CONTAINER_CPU_TIME, 'container.cpu.time'). + + +%% Disk bytes for the container. +-define(CONTAINER_DISK_IO, 'container.disk.io'). + + +%% Memory usage of the container. +-define(CONTAINER_MEMORY_USAGE, 'container.memory.usage'). + + +%% Network bytes for the container. +-define(CONTAINER_NETWORK_IO, 'container.network.io'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl new file mode 100644 index 00000000..4aaf0e41 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl @@ -0,0 +1,90 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The number of connections that are currently in state described by the `state` attribute +-define(DB_CLIENT_CONNECTION_COUNT, 'db.client.connection.count'). + + +%% The time it took to create a new connection +-define(DB_CLIENT_CONNECTION_CREATETIME, 'db.client.connection.create_time'). + + +%% The maximum number of idle open connections allowed +-define(DB_CLIENT_CONNECTION_IDLE_MAX, 'db.client.connection.idle.max'). + + +%% The minimum number of idle open connections allowed +-define(DB_CLIENT_CONNECTION_IDLE_MIN, 'db.client.connection.idle.min'). + + +%% The maximum number of open connections allowed +-define(DB_CLIENT_CONNECTION_MAX, 'db.client.connection.max'). + + +%% The number of pending requests for an open connection, cumulative for the entire pool +-define(DB_CLIENT_CONNECTION_PENDINGREQUESTS, 'db.client.connection.pending_requests'). + + +%% The number of connection timeouts that have occurred trying to obtain a connection from the pool +-define(DB_CLIENT_CONNECTION_TIMEOUTS, 'db.client.connection.timeouts'). + + +%% The time between borrowing a connection and returning it to the pool +-define(DB_CLIENT_CONNECTION_USETIME, 'db.client.connection.use_time'). + + +%% The time it took to obtain an open connection from the pool +-define(DB_CLIENT_CONNECTION_WAITTIME, 'db.client.connection.wait_time'). + +%% @deprecated Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. +%% Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. +-define(DB_CLIENT_CONNECTIONS_CREATETIME, 'db.client.connections.create_time'). + +%% @deprecated Replaced by `db.client.connection.idle.max`. +%% Deprecated, use `db.client.connection.idle.max` instead. +-define(DB_CLIENT_CONNECTIONS_IDLE_MAX, 'db.client.connections.idle.max'). + +%% @deprecated Replaced by `db.client.connection.idle.min`. +%% Deprecated, use `db.client.connection.idle.min` instead. +-define(DB_CLIENT_CONNECTIONS_IDLE_MIN, 'db.client.connections.idle.min'). + +%% @deprecated Replaced by `db.client.connection.max`. +%% Deprecated, use `db.client.connection.max` instead. +-define(DB_CLIENT_CONNECTIONS_MAX, 'db.client.connections.max'). + +%% @deprecated Replaced by `db.client.connection.pending_requests`. +%% Deprecated, use `db.client.connection.pending_requests` instead. +-define(DB_CLIENT_CONNECTIONS_PENDINGREQUESTS, 'db.client.connections.pending_requests'). + +%% @deprecated Replaced by `db.client.connection.timeouts`. +%% Deprecated, use `db.client.connection.timeouts` instead. +-define(DB_CLIENT_CONNECTIONS_TIMEOUTS, 'db.client.connections.timeouts'). + +%% @deprecated Replaced by `db.client.connection.count`. +%% Deprecated, use `db.client.connection.count` instead. +-define(DB_CLIENT_CONNECTIONS_USAGE, 'db.client.connections.usage'). + +%% @deprecated Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. +%% Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. +-define(DB_CLIENT_CONNECTIONS_USETIME, 'db.client.connections.use_time'). + +%% @deprecated Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. +%% Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. +-define(DB_CLIENT_CONNECTIONS_WAITTIME, 'db.client.connections.wait_time'). + + +%% Duration of database client operations. +-define(DB_CLIENT_OPERATION_DURATION, 'db.client.operation.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl new file mode 100644 index 00000000..52c3855b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl @@ -0,0 +1,18 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Measures the time taken to perform a DNS lookup. +-define(DNS_LOOKUP_DURATION, 'dns.lookup.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl new file mode 100644 index 00000000..8074f61e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl @@ -0,0 +1,50 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Number of invocation cold starts +-define(FAAS_COLDSTARTS, 'faas.coldstarts'). + + +%% Distribution of CPU usage per invocation +-define(FAAS_CPUUSAGE, 'faas.cpu_usage'). + + +%% Number of invocation errors +-define(FAAS_ERRORS, 'faas.errors'). + + +%% Measures the duration of the function's initialization, such as a cold start +-define(FAAS_INITDURATION, 'faas.init_duration'). + + +%% Number of successful invocations +-define(FAAS_INVOCATIONS, 'faas.invocations'). + + +%% Measures the duration of the function's logic execution +-define(FAAS_INVOKEDURATION, 'faas.invoke_duration'). + + +%% Distribution of max memory usage per invocation +-define(FAAS_MEMUSAGE, 'faas.mem_usage'). + + +%% Distribution of net I/O usage per invocation +-define(FAAS_NETIO, 'faas.net_io'). + + +%% Number of invocation timeouts +-define(FAAS_TIMEOUTS, 'faas.timeouts'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl new file mode 100644 index 00000000..5552b269 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl @@ -0,0 +1,46 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Number of active HTTP requests. +-define(HTTP_CLIENT_ACTIVEREQUESTS, 'http.client.active_requests'). + + +%% The duration of the successfully established outbound HTTP connections. +-define(HTTP_CLIENT_CONNECTION_DURATION, 'http.client.connection.duration'). + + +%% Number of outbound HTTP connections that are currently active or idle on the client. +-define(HTTP_CLIENT_OPENCONNECTIONS, 'http.client.open_connections'). + + +%% Size of HTTP client request bodies. +-define(HTTP_CLIENT_REQUEST_BODY_SIZE, 'http.client.request.body.size'). + + +%% Size of HTTP client response bodies. +-define(HTTP_CLIENT_RESPONSE_BODY_SIZE, 'http.client.response.body.size'). + + +%% Number of active HTTP server requests. +-define(HTTP_SERVER_ACTIVEREQUESTS, 'http.server.active_requests'). + + +%% Size of HTTP server request bodies. +-define(HTTP_SERVER_REQUEST_BODY_SIZE, 'http.server.request.body.size'). + + +%% Size of HTTP server response bodies. +-define(HTTP_SERVER_RESPONSE_BODY_SIZE, 'http.server.response.body.size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl new file mode 100644 index 00000000..adf9a2c6 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl @@ -0,0 +1,38 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Measures the duration of process operation. +-define(MESSAGING_PROCESS_DURATION, 'messaging.process.duration'). + + +%% Measures the number of processed messages. +-define(MESSAGING_PROCESS_MESSAGES, 'messaging.process.messages'). + + +%% Measures the duration of publish operation. +-define(MESSAGING_PUBLISH_DURATION, 'messaging.publish.duration'). + + +%% Measures the number of published messages. +-define(MESSAGING_PUBLISH_MESSAGES, 'messaging.publish.messages'). + + +%% Measures the duration of receive operation. +-define(MESSAGING_RECEIVE_DURATION, 'messaging.receive.duration'). + + +%% Measures the number of received messages. +-define(MESSAGING_RECEIVE_MESSAGES, 'messaging.receive.messages'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl new file mode 100644 index 00000000..1e921b53 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl @@ -0,0 +1,54 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Number of times the process has been context switched. +-define(PROCESS_CONTEXTSWITCHES, 'process.context_switches'). + + +%% Total CPU seconds broken down by different states. +-define(PROCESS_CPU_TIME, 'process.cpu.time'). + + +%% Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. +-define(PROCESS_CPU_UTILIZATION, 'process.cpu.utilization'). + + +%% Disk bytes transferred. +-define(PROCESS_DISK_IO, 'process.disk.io'). + + +%% The amount of physical memory in use. +-define(PROCESS_MEMORY_USAGE, 'process.memory.usage'). + + +%% The amount of committed virtual memory. +-define(PROCESS_MEMORY_VIRTUAL, 'process.memory.virtual'). + + +%% Network bytes transferred. +-define(PROCESS_NETWORK_IO, 'process.network.io'). + + +%% Number of file descriptors in use by the process. +-define(PROCESS_OPENFILEDESCRIPTOR_COUNT, 'process.open_file_descriptor.count'). + + +%% Number of page faults the process has made. +-define(PROCESS_PAGING_FAULTS, 'process.paging.faults'). + + +%% Process threads count. +-define(PROCESS_THREAD_COUNT, 'process.thread.count'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl new file mode 100644 index 00000000..c5672692 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl @@ -0,0 +1,54 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Measures the duration of outbound RPC. +-define(RPC_CLIENT_DURATION, 'rpc.client.duration'). + + +%% Measures the size of RPC request messages (uncompressed). +-define(RPC_CLIENT_REQUEST_SIZE, 'rpc.client.request.size'). + + +%% Measures the number of messages received per RPC. +-define(RPC_CLIENT_REQUESTSPERRPC, 'rpc.client.requests_per_rpc'). + + +%% Measures the size of RPC response messages (uncompressed). +-define(RPC_CLIENT_RESPONSE_SIZE, 'rpc.client.response.size'). + + +%% Measures the number of messages sent per RPC. +-define(RPC_CLIENT_RESPONSESPERRPC, 'rpc.client.responses_per_rpc'). + + +%% Measures the duration of inbound RPC. +-define(RPC_SERVER_DURATION, 'rpc.server.duration'). + + +%% Measures the size of RPC request messages (uncompressed). +-define(RPC_SERVER_REQUEST_SIZE, 'rpc.server.request.size'). + + +%% Measures the number of messages received per RPC. +-define(RPC_SERVER_REQUESTSPERRPC, 'rpc.server.requests_per_rpc'). + + +%% Measures the size of RPC response messages (uncompressed). +-define(RPC_SERVER_RESPONSE_SIZE, 'rpc.server.response.size'). + + +%% Measures the number of messages sent per RPC. +-define(RPC_SERVER_RESPONSESPERRPC, 'rpc.server.responses_per_rpc'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl new file mode 100644 index 00000000..a0f0d737 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl @@ -0,0 +1,126 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Reports the current frequency of the CPU in Hz +-define(SYSTEM_CPU_FREQUENCY, 'system.cpu.frequency'). + + +%% Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking +-define(SYSTEM_CPU_LOGICAL_COUNT, 'system.cpu.logical.count'). + + +%% Reports the number of actual physical processor cores on the hardware +-define(SYSTEM_CPU_PHYSICAL_COUNT, 'system.cpu.physical.count'). + + +%% Seconds each logical CPU spent on each mode +-define(SYSTEM_CPU_TIME, 'system.cpu.time'). + + +%% Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs +-define(SYSTEM_CPU_UTILIZATION, 'system.cpu.utilization'). + + +%% none +-define(SYSTEM_DISK_IO, 'system.disk.io'). + + +%% Time disk spent activated +-define(SYSTEM_DISK_IOTIME, 'system.disk.io_time'). + + +%% none +-define(SYSTEM_DISK_MERGED, 'system.disk.merged'). + + +%% Sum of the time each operation took to complete +-define(SYSTEM_DISK_OPERATIONTIME, 'system.disk.operation_time'). + + +%% none +-define(SYSTEM_DISK_OPERATIONS, 'system.disk.operations'). + + +%% none +-define(SYSTEM_FILESYSTEM_USAGE, 'system.filesystem.usage'). + + +%% none +-define(SYSTEM_FILESYSTEM_UTILIZATION, 'system.filesystem.utilization'). + + +%% An estimate of how much memory is available for starting new applications, without causing swapping +-define(SYSTEM_LINUX_MEMORY_AVAILABLE, 'system.linux.memory.available'). + + +%% Total memory available in the system. +-define(SYSTEM_MEMORY_LIMIT, 'system.memory.limit'). + + +%% Shared memory used (mostly by tmpfs). +-define(SYSTEM_MEMORY_SHARED, 'system.memory.shared'). + + +%% Reports memory in use by state. +-define(SYSTEM_MEMORY_USAGE, 'system.memory.usage'). + + +%% none +-define(SYSTEM_MEMORY_UTILIZATION, 'system.memory.utilization'). + + +%% none +-define(SYSTEM_NETWORK_CONNECTIONS, 'system.network.connections'). + + +%% Count of packets that are dropped or discarded even though there was no error +-define(SYSTEM_NETWORK_DROPPED, 'system.network.dropped'). + + +%% Count of network errors detected +-define(SYSTEM_NETWORK_ERRORS, 'system.network.errors'). + + +%% none +-define(SYSTEM_NETWORK_IO, 'system.network.io'). + + +%% none +-define(SYSTEM_NETWORK_PACKETS, 'system.network.packets'). + + +%% none +-define(SYSTEM_PAGING_FAULTS, 'system.paging.faults'). + + +%% none +-define(SYSTEM_PAGING_OPERATIONS, 'system.paging.operations'). + + +%% Unix swap or windows pagefile usage +-define(SYSTEM_PAGING_USAGE, 'system.paging.usage'). + + +%% none +-define(SYSTEM_PAGING_UTILIZATION, 'system.paging.utilization'). + + +%% Total number of processes in each state +-define(SYSTEM_PROCESS_COUNT, 'system.process.count'). + + +%% Total number of processes created over uptime of the host +-define(SYSTEM_PROCESS_CREATED, 'system.process.created'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl index 529d9bea..650c9e02 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. -define(NET_HOST_IP, 'net.host.ip'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl index b5dde941..18bab4a8 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index fcf15225..49fd7ccc 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Parent-child Reference type diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index 4588301c..554dcfaa 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Unique identifier for a particular build or compilation of the operating system. -define(OS_BUILDID, 'os.build_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl index 531f5859..13575604 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% @deprecated use the `otel.scope.name` attribute. %% -define(OTEL_LIBRARY_NAME, 'otel.library.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl index 397d5486..3dfee4e6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index bf8afa2f..fc451b1b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index bd856543..0e32b826 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% @deprecated Replaced by `rpc.message.compressed_size`. %% Deprecated, use `rpc.message.compressed_size` instead. -define(MESSAGE_COMPRESSEDSIZE, 'message.compressed_size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl index 3c7da21e..fd51e6b2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The string ID of the service instance. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl index 2c54971b..64c3f7b9 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% A unique id to identify a session. -define(SESSION_ID, 'session.id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl index 183305cb..4f7c3f9b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. -define(SOURCE_ADDRESS, 'source.address'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index f5341d42..f9fdfac1 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The logical CPU number [0..n-1] -define(SYSTEM_CPU_LOGICALNUMBER, 'system.cpu.logical_number'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl index ec99328e..913e6ca0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The name of the auto instrumentation agent or distribution, if used. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl index b5741b9c..8eec8d36 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Current "managed" thread ID (as opposed to OS thread ID). %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index 82af9a6a..08c08a63 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl index 162ac320..0c2a7d35 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Domain extracted from the `url.full`, such as "opentelemetry.io". %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl index 2fabfe14..5e35719e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Name of the user-agent extracted from original. Usually refers to the browser's name. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl index 3423838c..fe6cd563 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Additional description of the web engine (e.g. detailed version and edition information). %% diff --git a/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl new file mode 100644 index 00000000..32212de8 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl @@ -0,0 +1,22 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Duration of HTTP client requests. +-define(HTTP_CLIENT_REQUEST_DURATION, 'http.client.request.duration'). + + +%% Duration of HTTP server requests. +-define(HTTP_SERVER_REQUEST_DURATION, 'http.server.request.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl index a8bdcd0b..5997e7c6 100644 --- a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Local address of the network connection - IP address or Unix domain socket name. -define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index 19d26c74..719149db 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). -define(OTEL_SCOPE_NAME, 'otel.scope.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl index 5fd016fd..0b31242b 100644 --- a/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. -define(SERVER_ADDRESS, 'server.address'). diff --git a/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl index ae4802aa..5a9422ad 100644 --- a/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Logical name of the service. %% diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl index 13a0d439..2c8ff0d1 100644 --- a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The language of the telemetry SDK. %% diff --git a/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl index aba14826..de20e51b 100644 --- a/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component %% diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl index e95e7a2a..c55e0ea2 100644 --- a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl @@ -1,4 +1,18 @@ +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- %% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. %% diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex new file mode 100644 index 00000000..afb594d1 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex @@ -0,0 +1,129 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Container metrics. + """ + @doc """ + Total CPU time consumed + + Instrument: `counter` + Unit: `s` + ### Notes + + Total CPU time consumed by the specific container on all available CPU cores + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_cpu_time() + :"container.cpu.time" + + ### Erlang + + ```erlang + ?CONTAINER_CPU_TIME. + 'container.cpu.time' + ``` + + + """ + + @spec container_cpu_time :: :"container.cpu.time" + def container_cpu_time do + :"container.cpu.time" + end + + @doc """ + Disk bytes for the container. + + Instrument: `counter` + Unit: `By` + ### Notes + + The total number of bytes read/written successfully (aggregated from all disks). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_disk_io() + :"container.disk.io" + + ### Erlang + + ```erlang + ?CONTAINER_DISK_IO. + 'container.disk.io' + ``` + + + """ + + @spec container_disk_io :: :"container.disk.io" + def container_disk_io do + :"container.disk.io" + end + + @doc """ + Memory usage of the container. + + Instrument: `counter` + Unit: `By` + ### Notes + + Memory usage of the container. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_memory_usage() + :"container.memory.usage" + + ### Erlang + + ```erlang + ?CONTAINER_MEMORY_USAGE. + 'container.memory.usage' + ``` + + + """ + + @spec container_memory_usage :: :"container.memory.usage" + def container_memory_usage do + :"container.memory.usage" + end + + @doc """ + Network bytes for the container. + + Instrument: `counter` + Unit: `By` + ### Notes + + The number of bytes sent/received on all network interfaces by the container. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_network_io() + :"container.network.io" + + ### Erlang + + ```erlang + ?CONTAINER_NETWORK_IO. + 'container.network.io' + ``` + + + """ + + @spec container_network_io :: :"container.network.io" + def container_network_io do + :"container.network.io" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex new file mode 100644 index 00000000..b7f24721 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex @@ -0,0 +1,356 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for DB metrics. + """ + @doc """ + The number of connections that are currently in state described by the `state` attribute + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_count() + :"db.client.connection.count" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_COUNT. + 'db.client.connection.count' + ``` + + + """ + + @spec db_client_connection_count :: :"db.client.connection.count" + def db_client_connection_count do + :"db.client.connection.count" + end + + @doc """ + The time it took to create a new connection + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_createtime() + :"db.client.connection.create_time" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_CREATETIME. + 'db.client.connection.create_time' + ``` + + + """ + + @spec db_client_connection_createtime :: :"db.client.connection.create_time" + def db_client_connection_createtime do + :"db.client.connection.create_time" + end + + @doc """ + The maximum number of idle open connections allowed + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_max() + :"db.client.connection.idle.max" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_IDLE_MAX. + 'db.client.connection.idle.max' + ``` + + + """ + + @spec db_client_connection_idle_max :: :"db.client.connection.idle.max" + def db_client_connection_idle_max do + :"db.client.connection.idle.max" + end + + @doc """ + The minimum number of idle open connections allowed + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_min() + :"db.client.connection.idle.min" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_IDLE_MIN. + 'db.client.connection.idle.min' + ``` + + + """ + + @spec db_client_connection_idle_min :: :"db.client.connection.idle.min" + def db_client_connection_idle_min do + :"db.client.connection.idle.min" + end + + @doc """ + The maximum number of open connections allowed + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_max() + :"db.client.connection.max" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_MAX. + 'db.client.connection.max' + ``` + + + """ + + @spec db_client_connection_max :: :"db.client.connection.max" + def db_client_connection_max do + :"db.client.connection.max" + end + + @doc """ + The number of pending requests for an open connection, cumulative for the entire pool + + Instrument: `updowncounter` + Unit: `{request}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_pendingrequests() + :"db.client.connection.pending_requests" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_PENDINGREQUESTS. + 'db.client.connection.pending_requests' + ``` + + + """ + + @spec db_client_connection_pendingrequests :: :"db.client.connection.pending_requests" + def db_client_connection_pendingrequests do + :"db.client.connection.pending_requests" + end + + @doc """ + The number of connection timeouts that have occurred trying to obtain a connection from the pool + + Instrument: `counter` + Unit: `{timeout}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_timeouts() + :"db.client.connection.timeouts" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_TIMEOUTS. + 'db.client.connection.timeouts' + ``` + + + """ + + @spec db_client_connection_timeouts :: :"db.client.connection.timeouts" + def db_client_connection_timeouts do + :"db.client.connection.timeouts" + end + + @doc """ + The time between borrowing a connection and returning it to the pool + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_usetime() + :"db.client.connection.use_time" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_USETIME. + 'db.client.connection.use_time' + ``` + + + """ + + @spec db_client_connection_usetime :: :"db.client.connection.use_time" + def db_client_connection_usetime do + :"db.client.connection.use_time" + end + + @doc """ + The time it took to obtain an open connection from the pool + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_waittime() + :"db.client.connection.wait_time" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_WAITTIME. + 'db.client.connection.wait_time' + ``` + + + """ + + @spec db_client_connection_waittime :: :"db.client.connection.wait_time" + def db_client_connection_waittime do + :"db.client.connection.wait_time" + end + + @deprecated """ + Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. + """ + + @spec db_client_connections_createtime :: :"db.client.connections.create_time" + def db_client_connections_createtime do + :"db.client.connections.create_time" + end + + @deprecated """ + Replaced by `db.client.connection.idle.max`. + """ + + @spec db_client_connections_idle_max :: :"db.client.connections.idle.max" + def db_client_connections_idle_max do + :"db.client.connections.idle.max" + end + + @deprecated """ + Replaced by `db.client.connection.idle.min`. + """ + + @spec db_client_connections_idle_min :: :"db.client.connections.idle.min" + def db_client_connections_idle_min do + :"db.client.connections.idle.min" + end + + @deprecated """ + Replaced by `db.client.connection.max`. + """ + + @spec db_client_connections_max :: :"db.client.connections.max" + def db_client_connections_max do + :"db.client.connections.max" + end + + @deprecated """ + Replaced by `db.client.connection.pending_requests`. + """ + + @spec db_client_connections_pendingrequests :: :"db.client.connections.pending_requests" + def db_client_connections_pendingrequests do + :"db.client.connections.pending_requests" + end + + @deprecated """ + Replaced by `db.client.connection.timeouts`. + """ + + @spec db_client_connections_timeouts :: :"db.client.connections.timeouts" + def db_client_connections_timeouts do + :"db.client.connections.timeouts" + end + + @deprecated """ + Replaced by `db.client.connection.count`. + """ + + @spec db_client_connections_usage :: :"db.client.connections.usage" + def db_client_connections_usage do + :"db.client.connections.usage" + end + + @deprecated """ + Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. + """ + + @spec db_client_connections_usetime :: :"db.client.connections.use_time" + def db_client_connections_usetime do + :"db.client.connections.use_time" + end + + @deprecated """ + Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. + """ + + @spec db_client_connections_waittime :: :"db.client.connections.wait_time" + def db_client_connections_waittime do + :"db.client.connections.wait_time" + end + + @doc """ + Duration of database client operations. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_operation_duration() + :"db.client.operation.duration" + + ### Erlang + + ```erlang + ?DB_CLIENT_OPERATION_DURATION. + 'db.client.operation.duration' + ``` + + + """ + + @spec db_client_operation_duration :: :"db.client.operation.duration" + def db_client_operation_duration do + :"db.client.operation.duration" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex new file mode 100644 index 00000000..8608cde1 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex @@ -0,0 +1,32 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for DNS metrics. + """ + @doc """ + Measures the time taken to perform a DNS lookup. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics.dns_lookup_duration() + :"dns.lookup.duration" + + ### Erlang + + ```erlang + ?DNS_LOOKUP_DURATION. + 'dns.lookup.duration' + ``` + + + """ + + @spec dns_lookup_duration :: :"dns.lookup.duration" + def dns_lookup_duration do + :"dns.lookup.duration" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex new file mode 100644 index 00000000..594f553a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex @@ -0,0 +1,248 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for FAAS metrics. + """ + @doc """ + Number of invocation cold starts + + Instrument: `counter` + Unit: `{coldstart}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_coldstarts() + :"faas.coldstarts" + + ### Erlang + + ```erlang + ?FAAS_COLDSTARTS. + 'faas.coldstarts' + ``` + + + """ + + @spec faas_coldstarts :: :"faas.coldstarts" + def faas_coldstarts do + :"faas.coldstarts" + end + + @doc """ + Distribution of CPU usage per invocation + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_cpuusage() + :"faas.cpu_usage" + + ### Erlang + + ```erlang + ?FAAS_CPUUSAGE. + 'faas.cpu_usage' + ``` + + + """ + + @spec faas_cpuusage :: :"faas.cpu_usage" + def faas_cpuusage do + :"faas.cpu_usage" + end + + @doc """ + Number of invocation errors + + Instrument: `counter` + Unit: `{error}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_errors() + :"faas.errors" + + ### Erlang + + ```erlang + ?FAAS_ERRORS. + 'faas.errors' + ``` + + + """ + + @spec faas_errors :: :"faas.errors" + def faas_errors do + :"faas.errors" + end + + @doc """ + Measures the duration of the function's initialization, such as a cold start + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_initduration() + :"faas.init_duration" + + ### Erlang + + ```erlang + ?FAAS_INITDURATION. + 'faas.init_duration' + ``` + + + """ + + @spec faas_initduration :: :"faas.init_duration" + def faas_initduration do + :"faas.init_duration" + end + + @doc """ + Number of successful invocations + + Instrument: `counter` + Unit: `{invocation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invocations() + :"faas.invocations" + + ### Erlang + + ```erlang + ?FAAS_INVOCATIONS. + 'faas.invocations' + ``` + + + """ + + @spec faas_invocations :: :"faas.invocations" + def faas_invocations do + :"faas.invocations" + end + + @doc """ + Measures the duration of the function's logic execution + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invokeduration() + :"faas.invoke_duration" + + ### Erlang + + ```erlang + ?FAAS_INVOKEDURATION. + 'faas.invoke_duration' + ``` + + + """ + + @spec faas_invokeduration :: :"faas.invoke_duration" + def faas_invokeduration do + :"faas.invoke_duration" + end + + @doc """ + Distribution of max memory usage per invocation + + Instrument: `histogram` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_memusage() + :"faas.mem_usage" + + ### Erlang + + ```erlang + ?FAAS_MEMUSAGE. + 'faas.mem_usage' + ``` + + + """ + + @spec faas_memusage :: :"faas.mem_usage" + def faas_memusage do + :"faas.mem_usage" + end + + @doc """ + Distribution of net I/O usage per invocation + + Instrument: `histogram` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_netio() + :"faas.net_io" + + ### Erlang + + ```erlang + ?FAAS_NETIO. + 'faas.net_io' + ``` + + + """ + + @spec faas_netio :: :"faas.net_io" + def faas_netio do + :"faas.net_io" + end + + @doc """ + Number of invocation timeouts + + Instrument: `counter` + Unit: `{timeout}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_timeouts() + :"faas.timeouts" + + ### Erlang + + ```erlang + ?FAAS_TIMEOUTS. + 'faas.timeouts' + ``` + + + """ + + @spec faas_timeouts :: :"faas.timeouts" + def faas_timeouts do + :"faas.timeouts" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex new file mode 100644 index 00000000..bfcc956b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex @@ -0,0 +1,237 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for HTTP metrics. + """ + @doc """ + Number of active HTTP requests. + + Instrument: `updowncounter` + Unit: `{request}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_activerequests() + :"http.client.active_requests" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_ACTIVEREQUESTS. + 'http.client.active_requests' + ``` + + + """ + + @spec http_client_activerequests :: :"http.client.active_requests" + def http_client_activerequests do + :"http.client.active_requests" + end + + @doc """ + The duration of the successfully established outbound HTTP connections. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_connection_duration() + :"http.client.connection.duration" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_CONNECTION_DURATION. + 'http.client.connection.duration' + ``` + + + """ + + @spec http_client_connection_duration :: :"http.client.connection.duration" + def http_client_connection_duration do + :"http.client.connection.duration" + end + + @doc """ + Number of outbound HTTP connections that are currently active or idle on the client. + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_openconnections() + :"http.client.open_connections" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_OPENCONNECTIONS. + 'http.client.open_connections' + ``` + + + """ + + @spec http_client_openconnections :: :"http.client.open_connections" + def http_client_openconnections do + :"http.client.open_connections" + end + + @doc """ + Size of HTTP client request bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_request_body_size() + :"http.client.request.body.size" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_REQUEST_BODY_SIZE. + 'http.client.request.body.size' + ``` + + + """ + + @spec http_client_request_body_size :: :"http.client.request.body.size" + def http_client_request_body_size do + :"http.client.request.body.size" + end + + @doc """ + Size of HTTP client response bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_response_body_size() + :"http.client.response.body.size" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_RESPONSE_BODY_SIZE. + 'http.client.response.body.size' + ``` + + + """ + + @spec http_client_response_body_size :: :"http.client.response.body.size" + def http_client_response_body_size do + :"http.client.response.body.size" + end + + @doc """ + Number of active HTTP server requests. + + Instrument: `updowncounter` + Unit: `{request}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_activerequests() + :"http.server.active_requests" + + ### Erlang + + ```erlang + ?HTTP_SERVER_ACTIVEREQUESTS. + 'http.server.active_requests' + ``` + + + """ + + @spec http_server_activerequests :: :"http.server.active_requests" + def http_server_activerequests do + :"http.server.active_requests" + end + + @doc """ + Size of HTTP server request bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_request_body_size() + :"http.server.request.body.size" + + ### Erlang + + ```erlang + ?HTTP_SERVER_REQUEST_BODY_SIZE. + 'http.server.request.body.size' + ``` + + + """ + + @spec http_server_request_body_size :: :"http.server.request.body.size" + def http_server_request_body_size do + :"http.server.request.body.size" + end + + @doc """ + Size of HTTP server response bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_response_body_size() + :"http.server.response.body.size" + + ### Erlang + + ```erlang + ?HTTP_SERVER_RESPONSE_BODY_SIZE. + 'http.server.response.body.size' + ``` + + + """ + + @spec http_server_response_body_size :: :"http.server.response.body.size" + def http_server_response_body_size do + :"http.server.response.body.size" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex new file mode 100644 index 00000000..f1380483 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex @@ -0,0 +1,167 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Messaging metrics. + """ + @doc """ + Measures the duration of process operation. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_duration() + :"messaging.process.duration" + + ### Erlang + + ```erlang + ?MESSAGING_PROCESS_DURATION. + 'messaging.process.duration' + ``` + + + """ + + @spec messaging_process_duration :: :"messaging.process.duration" + def messaging_process_duration do + :"messaging.process.duration" + end + + @doc """ + Measures the number of processed messages. + + Instrument: `counter` + Unit: `{message}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_messages() + :"messaging.process.messages" + + ### Erlang + + ```erlang + ?MESSAGING_PROCESS_MESSAGES. + 'messaging.process.messages' + ``` + + + """ + + @spec messaging_process_messages :: :"messaging.process.messages" + def messaging_process_messages do + :"messaging.process.messages" + end + + @doc """ + Measures the duration of publish operation. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_duration() + :"messaging.publish.duration" + + ### Erlang + + ```erlang + ?MESSAGING_PUBLISH_DURATION. + 'messaging.publish.duration' + ``` + + + """ + + @spec messaging_publish_duration :: :"messaging.publish.duration" + def messaging_publish_duration do + :"messaging.publish.duration" + end + + @doc """ + Measures the number of published messages. + + Instrument: `counter` + Unit: `{message}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_messages() + :"messaging.publish.messages" + + ### Erlang + + ```erlang + ?MESSAGING_PUBLISH_MESSAGES. + 'messaging.publish.messages' + ``` + + + """ + + @spec messaging_publish_messages :: :"messaging.publish.messages" + def messaging_publish_messages do + :"messaging.publish.messages" + end + + @doc """ + Measures the duration of receive operation. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_duration() + :"messaging.receive.duration" + + ### Erlang + + ```erlang + ?MESSAGING_RECEIVE_DURATION. + 'messaging.receive.duration' + ``` + + + """ + + @spec messaging_receive_duration :: :"messaging.receive.duration" + def messaging_receive_duration do + :"messaging.receive.duration" + end + + @doc """ + Measures the number of received messages. + + Instrument: `counter` + Unit: `{message}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_messages() + :"messaging.receive.messages" + + ### Erlang + + ```erlang + ?MESSAGING_RECEIVE_MESSAGES. + 'messaging.receive.messages' + ``` + + + """ + + @spec messaging_receive_messages :: :"messaging.receive.messages" + def messaging_receive_messages do + :"messaging.receive.messages" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex new file mode 100644 index 00000000..43d85620 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex @@ -0,0 +1,275 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Process metrics. + """ + @doc """ + Number of times the process has been context switched. + + Instrument: `counter` + Unit: `{count}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_contextswitches() + :"process.context_switches" + + ### Erlang + + ```erlang + ?PROCESS_CONTEXTSWITCHES. + 'process.context_switches' + ``` + + + """ + + @spec process_contextswitches :: :"process.context_switches" + def process_contextswitches do + :"process.context_switches" + end + + @doc """ + Total CPU seconds broken down by different states. + + Instrument: `counter` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_cpu_time() + :"process.cpu.time" + + ### Erlang + + ```erlang + ?PROCESS_CPU_TIME. + 'process.cpu.time' + ``` + + + """ + + @spec process_cpu_time :: :"process.cpu.time" + def process_cpu_time do + :"process.cpu.time" + end + + @doc """ + Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_cpu_utilization() + :"process.cpu.utilization" + + ### Erlang + + ```erlang + ?PROCESS_CPU_UTILIZATION. + 'process.cpu.utilization' + ``` + + + """ + + @spec process_cpu_utilization :: :"process.cpu.utilization" + def process_cpu_utilization do + :"process.cpu.utilization" + end + + @doc """ + Disk bytes transferred. + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_disk_io() + :"process.disk.io" + + ### Erlang + + ```erlang + ?PROCESS_DISK_IO. + 'process.disk.io' + ``` + + + """ + + @spec process_disk_io :: :"process.disk.io" + def process_disk_io do + :"process.disk.io" + end + + @doc """ + The amount of physical memory in use. + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_memory_usage() + :"process.memory.usage" + + ### Erlang + + ```erlang + ?PROCESS_MEMORY_USAGE. + 'process.memory.usage' + ``` + + + """ + + @spec process_memory_usage :: :"process.memory.usage" + def process_memory_usage do + :"process.memory.usage" + end + + @doc """ + The amount of committed virtual memory. + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_memory_virtual() + :"process.memory.virtual" + + ### Erlang + + ```erlang + ?PROCESS_MEMORY_VIRTUAL. + 'process.memory.virtual' + ``` + + + """ + + @spec process_memory_virtual :: :"process.memory.virtual" + def process_memory_virtual do + :"process.memory.virtual" + end + + @doc """ + Network bytes transferred. + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_network_io() + :"process.network.io" + + ### Erlang + + ```erlang + ?PROCESS_NETWORK_IO. + 'process.network.io' + ``` + + + """ + + @spec process_network_io :: :"process.network.io" + def process_network_io do + :"process.network.io" + end + + @doc """ + Number of file descriptors in use by the process. + + Instrument: `updowncounter` + Unit: `{count}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_openfiledescriptor_count() + :"process.open_file_descriptor.count" + + ### Erlang + + ```erlang + ?PROCESS_OPENFILEDESCRIPTOR_COUNT. + 'process.open_file_descriptor.count' + ``` + + + """ + + @spec process_openfiledescriptor_count :: :"process.open_file_descriptor.count" + def process_openfiledescriptor_count do + :"process.open_file_descriptor.count" + end + + @doc """ + Number of page faults the process has made. + + Instrument: `counter` + Unit: `{fault}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_paging_faults() + :"process.paging.faults" + + ### Erlang + + ```erlang + ?PROCESS_PAGING_FAULTS. + 'process.paging.faults' + ``` + + + """ + + @spec process_paging_faults :: :"process.paging.faults" + def process_paging_faults do + :"process.paging.faults" + end + + @doc """ + Process threads count. + + Instrument: `updowncounter` + Unit: `{thread}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_thread_count() + :"process.thread.count" + + ### Erlang + + ```erlang + ?PROCESS_THREAD_COUNT. + 'process.thread.count' + ``` + + + """ + + @spec process_thread_count :: :"process.thread.count" + def process_thread_count do + :"process.thread.count" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex new file mode 100644 index 00000000..6d65e00e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex @@ -0,0 +1,329 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for RPC metrics. + """ + @doc """ + Measures the duration of outbound RPC. + + Instrument: `histogram` + Unit: `ms` + ### Notes + + While streaming RPCs may record this metric as start-of-batch + to end-of-batch, it's hard to interpret in practice. + + **Streaming**: N/A. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_duration() + :"rpc.client.duration" + + ### Erlang + + ```erlang + ?RPC_CLIENT_DURATION. + 'rpc.client.duration' + ``` + + + """ + + @spec rpc_client_duration :: :"rpc.client.duration" + def rpc_client_duration do + :"rpc.client.duration" + end + + @doc """ + Measures the size of RPC request messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per message in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_request_size() + :"rpc.client.request.size" + + ### Erlang + + ```erlang + ?RPC_CLIENT_REQUEST_SIZE. + 'rpc.client.request.size' + ``` + + + """ + + @spec rpc_client_request_size :: :"rpc.client.request.size" + def rpc_client_request_size do + :"rpc.client.request.size" + end + + @doc """ + Measures the number of messages received per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming**: This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_requestsperrpc() + :"rpc.client.requests_per_rpc" + + ### Erlang + + ```erlang + ?RPC_CLIENT_REQUESTSPERRPC. + 'rpc.client.requests_per_rpc' + ``` + + + """ + + @spec rpc_client_requestsperrpc :: :"rpc.client.requests_per_rpc" + def rpc_client_requestsperrpc do + :"rpc.client.requests_per_rpc" + end + + @doc """ + Measures the size of RPC response messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per response in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_response_size() + :"rpc.client.response.size" + + ### Erlang + + ```erlang + ?RPC_CLIENT_RESPONSE_SIZE. + 'rpc.client.response.size' + ``` + + + """ + + @spec rpc_client_response_size :: :"rpc.client.response.size" + def rpc_client_response_size do + :"rpc.client.response.size" + end + + @doc """ + Measures the number of messages sent per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming**: This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_responsesperrpc() + :"rpc.client.responses_per_rpc" + + ### Erlang + + ```erlang + ?RPC_CLIENT_RESPONSESPERRPC. + 'rpc.client.responses_per_rpc' + ``` + + + """ + + @spec rpc_client_responsesperrpc :: :"rpc.client.responses_per_rpc" + def rpc_client_responsesperrpc do + :"rpc.client.responses_per_rpc" + end + + @doc """ + Measures the duration of inbound RPC. + + Instrument: `histogram` + Unit: `ms` + ### Notes + + While streaming RPCs may record this metric as start-of-batch + to end-of-batch, it's hard to interpret in practice. + + **Streaming**: N/A. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_duration() + :"rpc.server.duration" + + ### Erlang + + ```erlang + ?RPC_SERVER_DURATION. + 'rpc.server.duration' + ``` + + + """ + + @spec rpc_server_duration :: :"rpc.server.duration" + def rpc_server_duration do + :"rpc.server.duration" + end + + @doc """ + Measures the size of RPC request messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per message in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_request_size() + :"rpc.server.request.size" + + ### Erlang + + ```erlang + ?RPC_SERVER_REQUEST_SIZE. + 'rpc.server.request.size' + ``` + + + """ + + @spec rpc_server_request_size :: :"rpc.server.request.size" + def rpc_server_request_size do + :"rpc.server.request.size" + end + + @doc """ + Measures the number of messages received per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming** : This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_requestsperrpc() + :"rpc.server.requests_per_rpc" + + ### Erlang + + ```erlang + ?RPC_SERVER_REQUESTSPERRPC. + 'rpc.server.requests_per_rpc' + ``` + + + """ + + @spec rpc_server_requestsperrpc :: :"rpc.server.requests_per_rpc" + def rpc_server_requestsperrpc do + :"rpc.server.requests_per_rpc" + end + + @doc """ + Measures the size of RPC response messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per response in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_response_size() + :"rpc.server.response.size" + + ### Erlang + + ```erlang + ?RPC_SERVER_RESPONSE_SIZE. + 'rpc.server.response.size' + ``` + + + """ + + @spec rpc_server_response_size :: :"rpc.server.response.size" + def rpc_server_response_size do + :"rpc.server.response.size" + end + + @doc """ + Measures the number of messages sent per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming**: This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_responsesperrpc() + :"rpc.server.responses_per_rpc" + + ### Erlang + + ```erlang + ?RPC_SERVER_RESPONSESPERRPC. + 'rpc.server.responses_per_rpc' + ``` + + + """ + + @spec rpc_server_responsesperrpc :: :"rpc.server.responses_per_rpc" + def rpc_server_responsesperrpc do + :"rpc.server.responses_per_rpc" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex new file mode 100644 index 00000000..72693fee --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex @@ -0,0 +1,815 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for System metrics. + """ + @doc """ + Reports the current frequency of the CPU in Hz + + Instrument: `gauge` + Unit: `{Hz}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_frequency() + :"system.cpu.frequency" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_FREQUENCY. + 'system.cpu.frequency' + ``` + + + """ + + @spec system_cpu_frequency :: :"system.cpu.frequency" + def system_cpu_frequency do + :"system.cpu.frequency" + end + + @doc """ + Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking + + Instrument: `updowncounter` + Unit: `{cpu}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_logical_count() + :"system.cpu.logical.count" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_LOGICAL_COUNT. + 'system.cpu.logical.count' + ``` + + + """ + + @spec system_cpu_logical_count :: :"system.cpu.logical.count" + def system_cpu_logical_count do + :"system.cpu.logical.count" + end + + @doc """ + Reports the number of actual physical processor cores on the hardware + + Instrument: `updowncounter` + Unit: `{cpu}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_physical_count() + :"system.cpu.physical.count" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_PHYSICAL_COUNT. + 'system.cpu.physical.count' + ``` + + + """ + + @spec system_cpu_physical_count :: :"system.cpu.physical.count" + def system_cpu_physical_count do + :"system.cpu.physical.count" + end + + @doc """ + Seconds each logical CPU spent on each mode + + Instrument: `counter` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_time() + :"system.cpu.time" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_TIME. + 'system.cpu.time' + ``` + + + """ + + @spec system_cpu_time :: :"system.cpu.time" + def system_cpu_time do + :"system.cpu.time" + end + + @doc """ + Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_utilization() + :"system.cpu.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_UTILIZATION. + 'system.cpu.utilization' + ``` + + + """ + + @spec system_cpu_utilization :: :"system.cpu.utilization" + def system_cpu_utilization do + :"system.cpu.utilization" + end + + @doc """ + none + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io() + :"system.disk.io" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_IO. + 'system.disk.io' + ``` + + + """ + + @spec system_disk_io :: :"system.disk.io" + def system_disk_io do + :"system.disk.io" + end + + @doc """ + Time disk spent activated + + Instrument: `counter` + Unit: `s` + ### Notes + + The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as: + + - Linux: Field 13 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) + - Windows: The complement of + ["Disk\% Idle Time"](https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained) + performance counter: `uptime * (100 - "Disk\% Idle Time") / 100` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_iotime() + :"system.disk.io_time" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_IOTIME. + 'system.disk.io_time' + ``` + + + """ + + @spec system_disk_iotime :: :"system.disk.io_time" + def system_disk_iotime do + :"system.disk.io_time" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_merged() + :"system.disk.merged" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_MERGED. + 'system.disk.merged' + ``` + + + """ + + @spec system_disk_merged :: :"system.disk.merged" + def system_disk_merged do + :"system.disk.merged" + end + + @doc """ + Sum of the time each operation took to complete + + Instrument: `counter` + Unit: `s` + ### Notes + + Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as: + + - Linux: Fields 7 & 11 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) + - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec" perf counter (similar for Writes) + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operationtime() + :"system.disk.operation_time" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_OPERATIONTIME. + 'system.disk.operation_time' + ``` + + + """ + + @spec system_disk_operationtime :: :"system.disk.operation_time" + def system_disk_operationtime do + :"system.disk.operation_time" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operations() + :"system.disk.operations" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_OPERATIONS. + 'system.disk.operations' + ``` + + + """ + + @spec system_disk_operations :: :"system.disk.operations" + def system_disk_operations do + :"system.disk.operations" + end + + @doc """ + none + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_usage() + :"system.filesystem.usage" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_USAGE. + 'system.filesystem.usage' + ``` + + + """ + + @spec system_filesystem_usage :: :"system.filesystem.usage" + def system_filesystem_usage do + :"system.filesystem.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_utilization() + :"system.filesystem.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_UTILIZATION. + 'system.filesystem.utilization' + ``` + + + """ + + @spec system_filesystem_utilization :: :"system.filesystem.utilization" + def system_filesystem_utilization do + :"system.filesystem.utilization" + end + + @doc """ + An estimate of how much memory is available for starting new applications, without causing swapping + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + 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. + This is supposed to be more accurate than just "free" memory. + For reference, see the calculations [here](https://superuser.com/a/980821). + See also `MemAvailable` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_linux_memory_available() + :"system.linux.memory.available" + + ### Erlang + + ```erlang + ?SYSTEM_LINUX_MEMORY_AVAILABLE. + 'system.linux.memory.available' + ``` + + + """ + + @spec system_linux_memory_available :: :"system.linux.memory.available" + def system_linux_memory_available do + :"system.linux.memory.available" + end + + @doc """ + Total memory available in the system. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + Its value **SHOULD** equal the sum of `system.memory.state` over all states. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_limit() + :"system.memory.limit" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_LIMIT. + 'system.memory.limit' + ``` + + + """ + + @spec system_memory_limit :: :"system.memory.limit" + def system_memory_limit do + :"system.memory.limit" + end + + @doc """ + Shared memory used (mostly by tmpfs). + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + Equivalent of `shared` from [`free` command](https://man7.org/linux/man-pages/man1/free.1.html) or + `Shmem` from [`/proc/meminfo`](https://man7.org/linux/man-pages/man5/proc.5.html)" + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_shared() + :"system.memory.shared" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_SHARED. + 'system.memory.shared' + ``` + + + """ + + @spec system_memory_shared :: :"system.memory.shared" + def system_memory_shared do + :"system.memory.shared" + end + + @doc """ + Reports memory in use by state. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + The sum over all `system.memory.state` values **SHOULD** equal the total memory + available on the system, that is `system.memory.limit`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_usage() + :"system.memory.usage" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_USAGE. + 'system.memory.usage' + ``` + + + """ + + @spec system_memory_usage :: :"system.memory.usage" + def system_memory_usage do + :"system.memory.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_utilization() + :"system.memory.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_UTILIZATION. + 'system.memory.utilization' + ``` + + + """ + + @spec system_memory_utilization :: :"system.memory.utilization" + def system_memory_utilization do + :"system.memory.utilization" + end + + @doc """ + none + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_connections() + :"system.network.connections" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_CONNECTIONS. + 'system.network.connections' + ``` + + + """ + + @spec system_network_connections :: :"system.network.connections" + def system_network_connections do + :"system.network.connections" + end + + @doc """ + Count of packets that are dropped or discarded even though there was no error + + Instrument: `counter` + Unit: `{packet}` + ### Notes + + 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) + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_dropped() + :"system.network.dropped" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_DROPPED. + 'system.network.dropped' + ``` + + + """ + + @spec system_network_dropped :: :"system.network.dropped" + def system_network_dropped do + :"system.network.dropped" + end + + @doc """ + Count of network errors detected + + Instrument: `counter` + Unit: `{error}` + ### Notes + + 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). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_errors() + :"system.network.errors" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_ERRORS. + 'system.network.errors' + ``` + + + """ + + @spec system_network_errors :: :"system.network.errors" + def system_network_errors do + :"system.network.errors" + end + + @doc """ + none + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_io() + :"system.network.io" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_IO. + 'system.network.io' + ``` + + + """ + + @spec system_network_io :: :"system.network.io" + def system_network_io do + :"system.network.io" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{packet}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_packets() + :"system.network.packets" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_PACKETS. + 'system.network.packets' + ``` + + + """ + + @spec system_network_packets :: :"system.network.packets" + def system_network_packets do + :"system.network.packets" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{fault}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_faults() + :"system.paging.faults" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_FAULTS. + 'system.paging.faults' + ``` + + + """ + + @spec system_paging_faults :: :"system.paging.faults" + def system_paging_faults do + :"system.paging.faults" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_operations() + :"system.paging.operations" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_OPERATIONS. + 'system.paging.operations' + ``` + + + """ + + @spec system_paging_operations :: :"system.paging.operations" + def system_paging_operations do + :"system.paging.operations" + end + + @doc """ + Unix swap or windows pagefile usage + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_usage() + :"system.paging.usage" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_USAGE. + 'system.paging.usage' + ``` + + + """ + + @spec system_paging_usage :: :"system.paging.usage" + def system_paging_usage do + :"system.paging.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_utilization() + :"system.paging.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_UTILIZATION. + 'system.paging.utilization' + ``` + + + """ + + @spec system_paging_utilization :: :"system.paging.utilization" + def system_paging_utilization do + :"system.paging.utilization" + end + + @doc """ + Total number of processes in each state + + Instrument: `updowncounter` + Unit: `{process}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_count() + :"system.process.count" + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_COUNT. + 'system.process.count' + ``` + + + """ + + @spec system_process_count :: :"system.process.count" + def system_process_count do + :"system.process.count" + end + + @doc """ + Total number of processes created over uptime of the host + + Instrument: `counter` + Unit: `{process}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_created() + :"system.process.created" + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_CREATED. + 'system.process.created' + ``` + + + """ + + @spec system_process_created :: :"system.process.created" + def system_process_created do + :"system.process.created" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex new file mode 100644 index 00000000..bdb66804 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex @@ -0,0 +1,59 @@ +defmodule OpenTelemetry.SemConv.Metrics.HttpMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for HTTP metrics. + """ + @doc """ + Duration of HTTP client requests. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_client_request_duration() + :"http.client.request.duration" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_REQUEST_DURATION. + 'http.client.request.duration' + ``` + + + """ + + @spec http_client_request_duration :: :"http.client.request.duration" + def http_client_request_duration do + :"http.client.request.duration" + end + + @doc """ + Duration of HTTP server requests. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_server_request_duration() + :"http.server.request.duration" + + ### Erlang + + ```erlang + ?HTTP_SERVER_REQUEST_DURATION. + 'http.server.request.duration' + ``` + + + """ + + @spec http_server_request_duration :: :"http.server.request.duration" + def http_server_request_duration do + :"http.server.request.duration" + end +end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 new file mode 100644 index 00000000..8fe2a6db --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 @@ -0,0 +1,74 @@ +{%- macro acronyms() -%} +["http", "url", "tls", "rpc", "os", "oci", "gcp", "faas", "dns", "db", "aws"] +{%- endmacro -%} + +{%- macro func_name(text) -%} + {{ text | snake_case_const }} +{%- endmacro -%} + +{%- macro to_atom(text) -%} +{% if text | split_id | length > 1 -%}:"{{ text }}"{%- else -%}:{{ text }}{%- endif %} +{%- endmacro -%} + +{% macro to_elixir_type(member) -%} + {%- if member.id == member.value -%} + {{ to_atom(member.value) }} + {%- else -%} + {{ member }} + {{ member.type | type_mapping }} + {%- endif -%} +{%- endmacro %} + +{%- macro enum_value_to_elixir_type(value) -%} + {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} +{%- endmacro -%} + +{%- macro enum_value_return_type(value) -%} + {%- if value is string -%} + atom() | String.t() + {%- elif value is integer -%} + integer() + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} + +{%- macro enum_value_return_type_example(value) -%} + {%- if value is string -%} + :custom_value + {%- elif value is integer -%} + 27 + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} + +{%- macro erlang_enum_value_return_type_example(value) -%} + {%- if value is string -%} + custom_value + {%- elif value is integer -%} + 27 + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} + +{%- macro enum_to_map(members) -%} + {% raw %}%{{% endraw %} + {% for member in members %} + {{ to_atom(member.id) }} => {{ enum_value_to_elixir_type(member.value) }}{% if not loop.last %},{% endif %} + {% endfor %} + {% raw %}}{% endraw %} +{%- endmacro -%} + +{%- macro strong_reqs(string) -%} + {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} +{%- endmacro -%} + +{%- macro format_acronym(value, acronyms) -%} + {%- if value | lower in acronyms -%} + {{ value | upper }} + {%- else -%} + {{ value }} + {%- endif -%} +{%- endmacro -%} \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index d05da2c8..05537652 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -1,76 +1,15 @@ {#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} {# {{ text | snake_case_const | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} -{%- set acronyms = ["http", "url", "tls", "rpc", "os", "oci", "gcp", "faas", "dns", "db", "aws"] %} -{%- macro func_name(text) -%} - {{ text | snake_case_const }} -{%- endmacro -%} -{%- macro to_atom(text) -%} -{% if text | split_id | length > 1 -%}:"{{ text }}"{%- else -%}:{{ text }}{%- endif %} -{%- endmacro -%} -{% macro to_elixir_type(member) -%} - {%- if member.id == member.value -%} - {{ to_atom(member.value) }} - {%- else -%} - {{ member }} - {{ member.type | type_mapping }} - {%- endif -%} -{%- endmacro %} -{%- macro enum_value_to_elixir_type(value) -%} - {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} -{%- endmacro -%} -{%- macro enum_value_return_type(value) -%} - {%- if value is string -%} - atom() | String.t() - {%- elif value is integer -%} - integer() - {%- else -%} - NOT_MAPPED - {%- endif -%} -{%- endmacro -%} -{%- macro enum_value_return_type_example(value) -%} - {%- if value is string -%} - :custom_value - {%- elif value is integer -%} - 27 - {%- else -%} - NOT_MAPPED - {%- endif -%} -{%- endmacro -%} -{%- macro erlang_enum_value_return_type_example(value) -%} - {%- if value is string -%} - custom_value - {%- elif value is integer -%} - 27 - {%- else -%} - NOT_MAPPED - {%- endif -%} -{%- endmacro -%} -{%- macro enum_to_map(members) -%} - {% raw %}%{{% endraw %} - {% for member in members %} - {{ to_atom(member.id) }} => {{ enum_value_to_elixir_type(member.value) }}{% if not loop.last %},{% endif %} - {% endfor %} - {% raw %}}{% endraw %} -{%- endmacro -%} -{%- macro strong_reqs(string) -%} - {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} -{%- endmacro -%} -{%- macro format_acronym(value) -%} - {%- if value | lower in acronyms -%} - {{ value | upper }} - {%- else -%} - {{ value }} - {%- endif -%} -{%- endmacro -%} -{%- set file_name = ctx.id | snake_case ~ "_attributes.ex" -%} +{%- import 'common.j2' as c %} +{%- set acronyms = c.acronyms() -%} + +{%- set file_name = ctx.output + ctx.id | snake_case ~ "_attributes.ex" -%} {%- set module_name = (ctx.id | pascal_case) -%} -{%- set trim_blocks = true %} -{%- set trim_lstrip_blocks = true %} {{ template.set_file_name(file_name) }} -{%- set module_name = format_acronym(ctx.id | pascal_case) ~ "Attributes" -%} +{%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Attributes" -%} {%- if params.stability == "experimental" -%} {%- set module_namespace = "OpenTelemetry.SemConv.Incubating" -%} {%- else -%} @@ -79,20 +18,20 @@ defmodule {{ module_namespace }}.{{ module_name }} do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for {{ format_acronym(ctx.id | title) }} attributes. + OpenTelemetry Semantic Conventions for {{ c.format_acronym(ctx.id | title, acronyms) }} attributes. """ {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute.type is mapping %} @typedoc """ - {{ strong_reqs(attribute.brief) }} + {{ c.strong_reqs(attribute.brief) }} ### Enum Values {% for member in attribute.type.members -%} - * `{{ to_atom(member.id) }}` + * `{{ c.to_atom(member.id) }}` {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemConv#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} {% endfor -%} """ - @type {{ attribute.name | snake_case_const }}() :: {{ enum_to_map(attribute.type.members) }} + @type {{ attribute.name | snake_case_const }}() :: {{ c.enum_to_map(attribute.type.members) }} {%- endif -%} {% if attribute is deprecated %} @@ -102,7 +41,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do {%- endif -%} {% if not(attribute is deprecated) %} @doc """ - {{ strong_reqs(attribute.brief | replace("\n", "\n ")) }} + {{ c.strong_reqs(attribute.brief | replace("\n", "\n ")) }} {% if (attribute.type is simple_type) or (attribute.type is template_type) -%} ### Value type @@ -111,7 +50,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do {%- if attribute.note %} ### Notes - {{ strong_reqs(attribute.note | replace("\n", "\n ")) }} + {{ c.strong_reqs(attribute.note | replace("\n", "\n ")) }} {%- endif %} {%- if attribute.examples %} ### Examples @@ -127,11 +66,11 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Elixir - iex> {{ module_namespace }}.{{ module_name }}.{{ func_name(attribute.name) }}().{{ attribute.type.members|first|attr('id') }} - {{ enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}().{{ attribute.type.members|first|attr('id') }} + {{ c.enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} - iex> {{ module_namespace }}.{{ module_name }}.{{ func_name(attribute.name) }}({{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) - {{ enum_value_return_type_example(attribute.type.members|first|attr('value')) }} + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}({{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) + {{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }} ### Erlang @@ -139,15 +78,15 @@ defmodule {{ module_namespace }}.{{ module_name }} do ?'{{ attribute.name | snake_case_const }}.{{ attribute.type.members|first|attr('id') }}'. {{ attribute.type.members|first|attr('value') }} - ?{{ attribute.name | snake_case_const }}({{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). - {{ erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }} + ?{{ attribute.name | snake_case_const }}({{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). + {{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }} ``` {%- else %} ### Elixir - iex> {{ module_namespace }}.{{ module_name }}.{{ func_name(attribute.name) }}() - {{ to_atom(attribute.name) }} + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() + {{ c.to_atom(attribute.name) }} ### Erlang @@ -162,18 +101,18 @@ defmodule {{ module_namespace }}.{{ module_name }} do {%- endif %} {%- if not(attribute.type is mapping) %} - @spec {{ func_name(attribute.name) }} :: {{ to_atom(attribute.name) }} - def {{ func_name(attribute.name) }} do - {{ to_atom(attribute.name) }} + @spec {{ c.func_name(attribute.name) }} :: {{ c.to_atom(attribute.name) }} + def {{ c.func_name(attribute.name) }} do + {{ c.to_atom(attribute.name) }} end {%- else %} - @spec {{ func_name(attribute.name) }}() :: {{ attribute.name | snake_case_const }}() - def {{ func_name(attribute.name) }}() do - {{ enum_to_map(attribute.type.members) }} + @spec {{ c.func_name(attribute.name) }}() :: {{ attribute.name | snake_case_const }}() + def {{ c.func_name(attribute.name) }}() do + {{ c.enum_to_map(attribute.type.members) }} end - @spec {{ func_name(attribute.name) }}({{ enum_value_return_type(attribute.type.members|first|attr('value')) }}) :: {{ enum_value_return_type(attribute.type.members|first|attr('value')) }} - def {{ func_name(attribute.name) }}(custom_value) do + @spec {{ c.func_name(attribute.name) }}({{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }}) :: {{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }} + def {{ c.func_name(attribute.name) }}(custom_value) do custom_value end {%- endif %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 new file mode 100644 index 00000000..1b3b85db --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -0,0 +1,64 @@ +{#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} + + {# {{ text | snake_case_const | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} + +{%- import 'common.j2' as c %} +{%- set acronyms = c.acronyms() -%} +{%- set file_name = ctx.output ~ ctx.id | snake_case ~ "_metrics.ex" -%} +{%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Metrics" -%} +{%- set trim_blocks = true %} +{%- set trim_lstrip_blocks = true %} +{{ template.set_file_name(file_name) }} + +{%- set module_name = c.format_acronym(ctx.id | pascal_case) ~ "Metrics" -%} +{%- if params.stability == "experimental" -%} +{%- set module_namespace = "OpenTelemetry.SemConv.Incubating.Metrics" -%} +{%- else -%} +{%- set module_namespace = "OpenTelemetry.SemConv.Metrics" -%} +{%- endif -%} +defmodule {{ module_namespace }}.{{ module_name }} do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for {{ c.format_acronym(ctx.id | title, acronyms) }} metrics. + """ +{%- for metric in ctx.metrics | sort(attribute="metric_name") %} + {% if metric is deprecated %} + @deprecated """ + {{ metric.deprecated | replace("\n", "\n ") }} + """ + {%- else -%} + @doc """ + {{ c.strong_reqs(metric.brief | replace("\n", "\n ")) }} + + Instrument: `{{ metric.instrument }}` + Unit: `{{ metric.unit }}` + + {%- if metric.note %} + ### Notes + + {{ c.strong_reqs(metric.note | replace("\n", "\n ")) }} + {%- endif %} + + + ### Elixir + + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(metric.metric_name) }}() + {{ c.to_atom(metric.metric_name) }} + + ### Erlang + + ```erlang + ?{{ metric.metric_name | snake_case_const | upper }}. + '{{ metric.metric_name }}' + ``` + + + """ + {%- endif %} + + @spec {{ c.func_name(metric.metric_name) }} :: {{ c.to_atom(metric.metric_name) }} + def {{ c.func_name(metric.metric_name) }} do + {{ c.to_atom(metric.metric_name) }} + end +{% endfor %} +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index 168f62ac..14c99fc9 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -1,21 +1,39 @@ params: stability: "stable" + excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js"] templates: - pattern: semantic_attributes.ex.j2 filter: > - ["ios", "android", "dotnet", "aspnetcore", "signalr", "jvm"] as $excluded | .groups | map(select(.type == "attribute_group")) | map(select(.id | startswith("registry."))) | map({ id: .id, group_id: .id | split(".") | .[1], attributes: .attributes}) | map(select([.attributes[] | select(.stability == $stability)] | any)) | group_by(.group_id) - | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id) }) + | map({ + id: .[0].group_id, + attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id), + output: $output + }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) | map(select(.attributes | length > 0)) application_mode: each - + - pattern: semantic_metrics.ex.j2 + filter: > + .groups + | map(select(.type == "metric")) + | map(select(.stability == $stability)) + | map({ id: .id, group_id: .id | split(".") | .[1], brief, unit, stability, deprecated, instrument, metric_name, note}) + | group_by(.group_id) + | map({ + id: .[0].group_id, + metrics: . | sort_by(.metric_name), + output: $output + "/metrics/" + }) + | map(select( .id as $id | any( $excluded[]; . == $id) | not )) + | map(select(.metrics | length > 0)) + application_mode: each text_maps: elixir_types: "int": "integer()" diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index f3153545..5896055b 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -1,5 +1,20 @@ -{%- set file_name = ctx.id | snake_case ~ "_attributes.hrl" -%} +{%- set file_name = ctx.output + ctx.id | snake_case ~ "_attributes.hrl" -%} {{ template.set_file_name(file_name) }} +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute is deprecated -%} %% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 new file mode 100644 index 00000000..f37188fe --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 @@ -0,0 +1,24 @@ +{%- set file_name = ctx.output + ctx.id | snake_case ~ "_metrics.hrl" -%} +{{ template.set_file_name(file_name) }} +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +{%- for metric in ctx.metrics | sort(attribute="metric_name") %} +{% if metric is deprecated -%} +%% @deprecated {{ metric.deprecated | replace("\n", "\n%% ") }} +{%- endif %} +%% {{ metric.brief | replace("\n", "\n%% ") }} +-define({{ metric.metric_name | snake_case_const | upper }}, '{{ metric.metric_name }}'). +{% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index 0f8c6f88..b108bc57 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -1,20 +1,39 @@ params: stability: "stable" + excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js"] templates: - pattern: semantic_attributes.hrl.j2 filter: > - ["ios", "android", "dotnet", "aspnetcore", "signalr", "jvm"] as $excluded | .groups | map(select(.type == "attribute_group")) | map(select(.id | startswith("registry."))) | map({ id: .id, group_id: .id | split(".") | .[1], attributes: .attributes}) | map(select([.attributes[] | select(.stability == $stability)] | any)) | group_by(.group_id) - | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id) }) + | map({ + id: .[0].group_id, + attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id), + output: $output + }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) | map(select(.attributes | length > 0)) application_mode: each + - pattern: semantic_metrics.hrl.j2 + filter: > + .groups + | map(select(.type == "metric")) + | map(select(.stability == $stability)) + | map({ id: .id, group_id: .id | split(".") | .[1], brief, unit, stability, deprecated, instrument, metric_name, note}) + | group_by(.group_id) + | map({ + id: .[0].group_id, + metrics: . | sort_by(.metric_name), + output: $output + "/metrics/" + }) + | map(select( .id as $id | any( $excluded[]; . == $id) | not )) + | map(select(.metrics | length > 0)) + application_mode: each text_maps: erlang_types: From 3ec356ed25507f6abed7ffa9a60cdf54d10eb113 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Mon, 15 Jul 2024 18:03:03 -0600 Subject: [PATCH 25/57] Fix elixir metric acronym module names --- .../lib/incubating/metrics/db_metrics.ex | 22 +++++++++---------- .../lib/incubating/metrics/dns_metrics.ex | 4 ++-- .../lib/incubating/metrics/faas_metrics.ex | 20 ++++++++--------- .../lib/incubating/metrics/http_metrics.ex | 18 +++++++-------- .../lib/incubating/metrics/rpc_metrics.ex | 22 +++++++++---------- .../lib/metrics/http_metrics.ex | 6 ++--- .../registry/elixir/semantic_metrics.ex.j2 | 2 +- 7 files changed, 47 insertions(+), 47 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex index b7f24721..21ed6afd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do +defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for DB metrics. @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_count() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_count() :"db.client.connection.count" ### Erlang @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_createtime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_createtime() :"db.client.connection.create_time" ### Erlang @@ -66,7 +66,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_max() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_idle_max() :"db.client.connection.idle.max" ### Erlang @@ -93,7 +93,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_min() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_idle_min() :"db.client.connection.idle.min" ### Erlang @@ -120,7 +120,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_max() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_max() :"db.client.connection.max" ### Erlang @@ -147,7 +147,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_pendingrequests() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_pendingrequests() :"db.client.connection.pending_requests" ### Erlang @@ -174,7 +174,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_timeouts() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_timeouts() :"db.client.connection.timeouts" ### Erlang @@ -201,7 +201,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_usetime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_usetime() :"db.client.connection.use_time" ### Erlang @@ -228,7 +228,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_waittime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_waittime() :"db.client.connection.wait_time" ### Erlang @@ -336,7 +336,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_operation_duration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_operation_duration() :"db.client.operation.duration" ### Erlang diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex index 8608cde1..030d7e3c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics do +defmodule OpenTelemetry.SemConv.Incubating.Metrics.DNSMetrics do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for DNS metrics. @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics.dns_lookup_duration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DNSMetrics.dns_lookup_duration() :"dns.lookup.duration" ### Erlang diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex index 594f553a..33fca123 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do +defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for FAAS metrics. @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_coldstarts() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_coldstarts() :"faas.coldstarts" ### Erlang @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_cpuusage() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_cpuusage() :"faas.cpu_usage" ### Erlang @@ -66,7 +66,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_errors() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_errors() :"faas.errors" ### Erlang @@ -93,7 +93,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_initduration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_initduration() :"faas.init_duration" ### Erlang @@ -120,7 +120,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invocations() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_invocations() :"faas.invocations" ### Erlang @@ -147,7 +147,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invokeduration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_invokeduration() :"faas.invoke_duration" ### Erlang @@ -174,7 +174,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_memusage() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_memusage() :"faas.mem_usage" ### Erlang @@ -201,7 +201,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_netio() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_netio() :"faas.net_io" ### Erlang @@ -228,7 +228,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_timeouts() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_timeouts() :"faas.timeouts" ### Erlang diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex index bfcc956b..97cc21c1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do +defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for HTTP metrics. @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_activerequests() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_activerequests() :"http.client.active_requests" ### Erlang @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_connection_duration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_connection_duration() :"http.client.connection.duration" ### Erlang @@ -66,7 +66,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_openconnections() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_openconnections() :"http.client.open_connections" ### Erlang @@ -97,7 +97,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_request_body_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_request_body_size() :"http.client.request.body.size" ### Erlang @@ -128,7 +128,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_response_body_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_response_body_size() :"http.client.response.body.size" ### Erlang @@ -155,7 +155,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_activerequests() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_activerequests() :"http.server.active_requests" ### Erlang @@ -186,7 +186,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_request_body_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_request_body_size() :"http.server.request.body.size" ### Erlang @@ -217,7 +217,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_response_body_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_response_body_size() :"http.server.response.body.size" ### Erlang diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex index 6d65e00e..b521527e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do +defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for RPC metrics. @@ -19,7 +19,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_duration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_duration() :"rpc.client.duration" ### Erlang @@ -50,7 +50,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_request_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_request_size() :"rpc.client.request.size" ### Erlang @@ -83,7 +83,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_requestsperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_requestsperrpc() :"rpc.client.requests_per_rpc" ### Erlang @@ -114,7 +114,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_response_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_response_size() :"rpc.client.response.size" ### Erlang @@ -147,7 +147,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_responsesperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_responsesperrpc() :"rpc.client.responses_per_rpc" ### Erlang @@ -181,7 +181,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_duration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_duration() :"rpc.server.duration" ### Erlang @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_request_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_request_size() :"rpc.server.request.size" ### Erlang @@ -245,7 +245,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_requestsperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_requestsperrpc() :"rpc.server.requests_per_rpc" ### Erlang @@ -276,7 +276,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_response_size() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_response_size() :"rpc.server.response.size" ### Erlang @@ -309,7 +309,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_responsesperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_responsesperrpc() :"rpc.server.responses_per_rpc" ### Erlang diff --git a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex index bdb66804..d2e8f13b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex @@ -1,4 +1,4 @@ -defmodule OpenTelemetry.SemConv.Metrics.HttpMetrics do +defmodule OpenTelemetry.SemConv.Metrics.HTTPMetrics do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for HTTP metrics. @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_client_request_duration() + iex> OpenTelemetry.SemConv.Metrics.HTTPMetrics.http_client_request_duration() :"http.client.request.duration" ### Erlang @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.Metrics.HttpMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_server_request_duration() + iex> OpenTelemetry.SemConv.Metrics.HTTPMetrics.http_server_request_duration() :"http.server.request.duration" ### Erlang diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index 1b3b85db..5ab68561 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -10,7 +10,7 @@ {%- set trim_lstrip_blocks = true %} {{ template.set_file_name(file_name) }} -{%- set module_name = c.format_acronym(ctx.id | pascal_case) ~ "Metrics" -%} +{%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Metrics" -%} {%- if params.stability == "experimental" -%} {%- set module_namespace = "OpenTelemetry.SemConv.Incubating.Metrics" -%} {%- else -%} From f50940ccd1272b01a1df7f45ba318e8f220d1311 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 16 Jul 2024 15:14:59 -0600 Subject: [PATCH 26/57] Metrics docs and doc organization refinement --- apps/opentelemetry_semantic_conventions/README.md | 4 ++-- .../lib/sem_conv.ex | 8 ++++---- apps/opentelemetry_semantic_conventions/mix.exs | 12 ++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 3082459f..d238ce82 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -49,9 +49,9 @@ use a custom value, a function macro is provided. ?db_system("custom"). ``` -#### Incubating Attributes +#### Incubating Attributes & Metrics -Incubating attribute header files are located in the `incubating` folder. +Incubating attribute header files are located in the `incubating` folder and metrics under `incubating/metrics`. Experimental attributes are considered to be incubating. Attribute groups can contain attributes which are stable, experimental, or both. Experimental diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index c0fee216..3d9d7682 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -57,9 +57,9 @@ defmodule OpenTelemetry.SemConv do ?db_system("custom"). ``` - #### Incubating Attributes + #### Incubating Attributes & Metrics - Incubating attribute header files are located in the `incubating` folder. + Incubating attribute header files are located in the `incubating` folder and metrics under `incubating/metrics`. Experimental attributes are considered to be incubating. Attribute groups can contain attributes which are stable, experimental, or both. Experimental @@ -104,10 +104,10 @@ defmodule OpenTelemetry.SemConv do :custom ``` - #### Incubating Attributes + #### Incubating Attributes & Metrics Incubating attributes are located under the `OpenTelemetry.SemConv.Incubating` - namespace. + and `OpenTelemetry.SemConv.Incubating.Metrics` namespaces. Experimental attributes are considered to be incubating. Attribute groups can contain attributes which are stable, experimental, or both. Experimental diff --git a/apps/opentelemetry_semantic_conventions/mix.exs b/apps/opentelemetry_semantic_conventions/mix.exs index 1e3ad343..360a4e40 100644 --- a/apps/opentelemetry_semantic_conventions/mix.exs +++ b/apps/opentelemetry_semantic_conventions/mix.exs @@ -44,8 +44,20 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do System: Path.wildcard("guides/system/*.md"), URL: Path.wildcard("guides/url/*.md") ], + groups_for_modules: [ + Attributes: + ~r/^OpenTelemetry\.SemConv(?!\.Metrics|\.Incubating)(\.[A-Z][A-Za-z0-9]*)+$/, + "Incubating Attributes": + ~r/^OpenTelemetry\.SemConv\.Incubating(?!\.Metrics)(\.[A-Z][A-Za-z0-9]*)+$/, + Metrics: ~r/OpenTelemetry.SemConv.Metrics/, + "Incubating Metrics": ~r/OpenTelemetry.SemConv.Incubating.Metrics/, + Deprecated: ~r/OpenTelemetry.SemanticConventions(\.[A-Z][A-Za-z0-9]*)+$/ + ], nest_modules_by_prefix: [ OpenTelemetry.SemConv, + OpenTelemetry.SemConv.Metrics, + OpenTelemetry.SemConv.Incubating, + OpenTelemetry.SemConv.Incubating.Metrics, OpenTelemetry.SemanticConventions ] ], From b2e1a618dc4618b4f6754cf67938280edb39496f Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 16 Jul 2024 15:19:19 -0600 Subject: [PATCH 27/57] Clarify version references --- apps/opentelemetry_semantic_conventions/README.md | 2 +- apps/opentelemetry_semantic_conventions/lib/sem_conv.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index d238ce82..0e9aa9be 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -10,7 +10,7 @@ Comprehensive documentation is available on [hexdocs](https://hexdocs.pm/opentel Check out the Guides tab on HexDocs for detailed attribute information and usage. -### Migration from v1.13.0 semantic conventions +### Migration from v1.13.0 (v0.2.0 package version) semantic conventions The structure of OpenTelemetry Semantic Conventions has evolved a great deal since the last version we have published. All attributes now live diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index 3d9d7682..ca3e58da 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv do Check out the Guides tab for detailed attribute information and usage. - ### Migration from v1.13.0 semantic conventions + ### Migration from v1.13.0 (v0.2.0 package version) semantic conventions The structure of OpenTelemetry Semantic Conventions has evolved a great deal since the last version we have published. All attributes now live From f3494631cc33d57456334c02b37899c402117b98 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 19 Jul 2024 14:43:37 -0600 Subject: [PATCH 28/57] Remove java references --- .../templates/registry/elixir/weaver.yaml | 51 ------------------- .../templates/registry/erlang/weaver.yaml | 51 ------------------- 2 files changed, 102 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index 14c99fc9..89b9d97e 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -54,54 +54,3 @@ text_maps: "template[boolean[]]": "[boolean()]" acronyms: ["iOS", "HTTP", "API", "SDK", "CLI", "URL", "JSON", "XML", "HTML", "TLS", "RPC", "OS", "OCI", "GCP", "FAAS", "DNS", "DB", "AWS" ] -# java_generic_type: -# int: Long -# double: Double -# boolean: Boolean -# string: String -# string[]: List -# int[]: List -# double[]: List -# boolean[]: List -# template[int]: Long -# template[double]: Double -# template[boolean]: Boolean -# template[string]: String -# template[string[]]: List -# template[int[]]: List -# template[double[]]: List -# template[boolean[]]: List -# java_key_type: -# int: AttributeKey -# double: AttributeKey -# boolean: AttributeKey -# string: AttributeKey -# string[]: AttributeKey> -# int[]: AttributeKey> -# double[]: AttributeKey> -# boolean[]: AttributeKey> -# template[int]: AttributeKeyTemplate -# template[double]: AttributeKeyTemplate -# template[boolean]: AttributeKeyTemplate -# template[string]: AttributeKeyTemplate -# template[string[]]: AttributeKeyTemplate> -# template[int[]]: AttributeKeyTemplate> -# template[double[]]: AttributeKeyTemplate> -# template[boolean[]]: AttributeKeyTemplate> -# java_key_factory: -# int: longKey -# double: doubleKey -# boolean: booleanKey -# string: stringKey -# string[]: stringArrayKey -# int[]: longArrayKey -# double[]: doubleArrayKey -# boolean[]: booleanArrayKey -# template[int]: longKeyTemplate -# template[double]: doubleKeyTemplate -# template[boolean]: booleanKeyTemplate -# template[string]: stringKeyTemplate -# template[string[]]: stringArrayKeyTemplate -# template[int[]]: longArrayKeyTemplate -# template[double[]]: doubleArrayKeyTemplate -# template[boolean[]]: booleanArrayKeyTemplate diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index b108bc57..99122e77 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -53,54 +53,3 @@ text_maps: "template[int[]]": "[integer()]" "template[double[]]": "[float()]" "template[boolean[]]": "[boolean()]" -# java_generic_type: -# int: Long -# double: Double -# boolean: Boolean -# string: String -# string[]: List -# int[]: List -# double[]: List -# boolean[]: List -# template[int]: Long -# template[double]: Double -# template[boolean]: Boolean -# template[string]: String -# template[string[]]: List -# template[int[]]: List -# template[double[]]: List -# template[boolean[]]: List -# java_key_type: -# int: AttributeKey -# double: AttributeKey -# boolean: AttributeKey -# string: AttributeKey -# string[]: AttributeKey> -# int[]: AttributeKey> -# double[]: AttributeKey> -# boolean[]: AttributeKey> -# template[int]: AttributeKeyTemplate -# template[double]: AttributeKeyTemplate -# template[boolean]: AttributeKeyTemplate -# template[string]: AttributeKeyTemplate -# template[string[]]: AttributeKeyTemplate> -# template[int[]]: AttributeKeyTemplate> -# template[double[]]: AttributeKeyTemplate> -# template[boolean[]]: AttributeKeyTemplate> -# java_key_factory: -# int: longKey -# double: doubleKey -# boolean: booleanKey -# string: stringKey -# string[]: stringArrayKey -# int[]: longArrayKey -# double[]: doubleArrayKey -# boolean[]: booleanArrayKey -# template[int]: longKeyTemplate -# template[double]: doubleKeyTemplate -# template[boolean]: booleanKeyTemplate -# template[string]: stringKeyTemplate -# template[string[]]: stringArrayKeyTemplate -# template[int[]]: longArrayKeyTemplate -# template[double[]]: doubleArrayKeyTemplate -# template[boolean[]]: booleanArrayKeyTemplate From 548da527e4199f62b5f53fd30e5dc1eaf30e9bcd Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Mon, 22 Jul 2024 20:51:10 -0600 Subject: [PATCH 29/57] Add semconv stability opt-in fun --- .../lib/sem_conv.ex | 15 ++++++++++ .../mix.exs | 1 - .../src/opentelemetry_sem_conv.erl | 26 +++++++++++++++++ .../semantic_conventions/sem_conv_test.exs | 29 +++++++++++++++++++ 4 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl create mode 100644 apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index ca3e58da..4211434e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -115,4 +115,19 @@ defmodule OpenTelemetry.SemConv do attributes of both stability levels will have two modules in this case. """ + + @typedoc """ + Stability opt-in value + """ + @type stability_option() :: String.t() + + @doc """ + List of stability opt-ins defined by the `OTEL_SEMCONV_STABILITY_OPT_IN` env var. + + Current valid options: + + * [http](migration-guide.md) + """ + @spec stability_opt_in() :: [stability_option()] + defdelegate stability_opt_in(), to: :opentelemetry_sem_conv end diff --git a/apps/opentelemetry_semantic_conventions/mix.exs b/apps/opentelemetry_semantic_conventions/mix.exs index 360a4e40..bf92ca10 100644 --- a/apps/opentelemetry_semantic_conventions/mix.exs +++ b/apps/opentelemetry_semantic_conventions/mix.exs @@ -100,6 +100,5 @@ defmodule OpenTelemetry.SemanticConventions.MixProject do "guides/attributes-registry/signalr.md" ] ++ Path.wildcard("guides/dotnet/*") ++ Path.wildcard("guides/mobile/*")) end) - |> IO.inspect() end end diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl b/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl new file mode 100644 index 00000000..ae6ae001 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl @@ -0,0 +1,26 @@ +-module(opentelemetry_sem_conv). + +-export([stability_opt_in/0]). + +-export_type([stability_option/0]). + +-type stability_option() :: binary(). + +-spec stability_opt_in() -> [stability_option()]. +stability_opt_in() -> + OptInsList = string:split(os:getenv("OTEL_SEMCONV_STABILITY_OPT_IN", ""), ","), + HttpStability = http_stability(OptInsList), + OptIns = [HttpStability], + lists:filter(fun(Opt) -> (Opt =/= undefined) end, OptIns). + +http_stability(OptIns) -> + Dup = lists:member("http/dup", OptIns), + Http = lists:member("http", OptIns), + case {Dup, Http} of + {true, _} -> + <<"http/dup">>; + {_, true} -> + <<"http">>; + _ -> + undefined + end. diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs new file mode 100644 index 00000000..7620497d --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs @@ -0,0 +1,29 @@ +defmodule OpenTelemetry.SemConvTest do + use ExUnit.Case, async: false + + alias OpenTelemetry.SemConv + + describe "stability_opt_in" do + test "http" do + assert SemConv.stability_opt_in() == [] + + System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "") + assert SemConv.stability_opt_in() == [] + + System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "unsupported") + assert SemConv.stability_opt_in() == [] + + System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http") + assert SemConv.stability_opt_in() == ["http"] + + System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http/dup,http") + assert SemConv.stability_opt_in() == ["http/dup"] + + # dup takes precedence + System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http,http/dup") + assert SemConv.stability_opt_in() == ["http/dup"] + + System.delete_env("OTEL_SEMCONV_STABILITY_OPT_IN") + end + end +end From 0f3ad395bd483b78f980fa6da2e4e889dcef9b03 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 23 Jul 2024 10:43:27 -0600 Subject: [PATCH 30/57] Improve usability of stability opt in lookup --- .../lib/sem_conv.ex | 13 +++++++++---- .../src/opentelemetry_sem_conv.erl | 19 +++++++++++-------- .../semantic_conventions/sem_conv_test.exs | 12 ++++++------ 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index 4211434e..af5a9f3d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -117,17 +117,22 @@ defmodule OpenTelemetry.SemConv do """ @typedoc """ - Stability opt-in value + HTTP stability opt-in """ - @type stability_option() :: String.t() + @type http_stability() :: :http | :http_dup | :unset + + @typedoc """ + Map of stability opt-ins + """ + @type stability_opt_ins() :: %{http: http_stability()} @doc """ - List of stability opt-ins defined by the `OTEL_SEMCONV_STABILITY_OPT_IN` env var. + Map of stability opt-ins defined by the `OTEL_SEMCONV_STABILITY_OPT_IN` env var. Current valid options: * [http](migration-guide.md) """ - @spec stability_opt_in() :: [stability_option()] + @spec stability_opt_in() :: stability_opt_ins() defdelegate stability_opt_in(), to: :opentelemetry_sem_conv end diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl b/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl index ae6ae001..5379ba84 100644 --- a/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl @@ -2,25 +2,28 @@ -export([stability_opt_in/0]). --export_type([stability_option/0]). +-export_type([ + http_stability/0, + stability_opt_ins/0]). --type stability_option() :: binary(). +-type http_stability() :: http | http_dup | unset. +-type stability_opt_ins() :: #{http => http_stability()}. --spec stability_opt_in() -> [stability_option()]. + +-spec stability_opt_in() -> stability_opt_ins(). stability_opt_in() -> OptInsList = string:split(os:getenv("OTEL_SEMCONV_STABILITY_OPT_IN", ""), ","), HttpStability = http_stability(OptInsList), - OptIns = [HttpStability], - lists:filter(fun(Opt) -> (Opt =/= undefined) end, OptIns). + #{http => HttpStability}. http_stability(OptIns) -> Dup = lists:member("http/dup", OptIns), Http = lists:member("http", OptIns), case {Dup, Http} of {true, _} -> - <<"http/dup">>; + http_dup; {_, true} -> - <<"http">>; + http; _ -> - undefined + unset end. diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs index 7620497d..ee84b32e 100644 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs +++ b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs @@ -5,23 +5,23 @@ defmodule OpenTelemetry.SemConvTest do describe "stability_opt_in" do test "http" do - assert SemConv.stability_opt_in() == [] + assert SemConv.stability_opt_in() == %{http: :unset} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "") - assert SemConv.stability_opt_in() == [] + assert SemConv.stability_opt_in() == %{http: :unset} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "unsupported") - assert SemConv.stability_opt_in() == [] + assert SemConv.stability_opt_in() == %{http: :unset} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http") - assert SemConv.stability_opt_in() == ["http"] + assert SemConv.stability_opt_in() == %{http: :http} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http/dup,http") - assert SemConv.stability_opt_in() == ["http/dup"] + assert SemConv.stability_opt_in() == %{http: :http_dup} # dup takes precedence System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http,http/dup") - assert SemConv.stability_opt_in() == ["http/dup"] + assert SemConv.stability_opt_in() == %{http: :http_dup} System.delete_env("OTEL_SEMCONV_STABILITY_OPT_IN") end From bbcb1474748e643fbdad13ffe9397824508103ea Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 23 Jul 2024 16:00:35 -0600 Subject: [PATCH 31/57] Align with python --- apps/opentelemetry_semantic_conventions/lib/sem_conv.ex | 2 +- .../src/opentelemetry_sem_conv.erl | 4 ++-- .../open_telemetry/semantic_conventions/sem_conv_test.exs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index af5a9f3d..64ac5a1d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -119,7 +119,7 @@ defmodule OpenTelemetry.SemConv do @typedoc """ HTTP stability opt-in """ - @type http_stability() :: :http | :http_dup | :unset + @type http_stability() :: :http | :http_dup | :default @typedoc """ Map of stability opt-ins diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl b/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl index 5379ba84..2c5881e0 100644 --- a/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_sem_conv.erl @@ -6,7 +6,7 @@ http_stability/0, stability_opt_ins/0]). --type http_stability() :: http | http_dup | unset. +-type http_stability() :: http | http_dup | default. -type stability_opt_ins() :: #{http => http_stability()}. @@ -25,5 +25,5 @@ http_stability(OptIns) -> {_, true} -> http; _ -> - unset + default end. diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs index ee84b32e..37aeb97e 100644 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs +++ b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs @@ -5,13 +5,13 @@ defmodule OpenTelemetry.SemConvTest do describe "stability_opt_in" do test "http" do - assert SemConv.stability_opt_in() == %{http: :unset} + assert SemConv.stability_opt_in() == %{http: :default} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "") - assert SemConv.stability_opt_in() == %{http: :unset} + assert SemConv.stability_opt_in() == %{http: :default} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "unsupported") - assert SemConv.stability_opt_in() == %{http: :unset} + assert SemConv.stability_opt_in() == %{http: :default} System.put_env("OTEL_SEMCONV_STABILITY_OPT_IN", "http") assert SemConv.stability_opt_in() == %{http: :http} From 11294fe25df40ea25351a074b1037ed11c717a7d Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 24 Jul 2024 20:01:22 -0600 Subject: [PATCH 32/57] Adjust enum approach --- .../README.md | 2 +- .../include/error_attributes.hrl | 5 +- .../include/http_attributes.hrl | 23 +- .../include/incubating/aws_attributes.hrl | 7 +- .../include/incubating/cloud_attributes.hrl | 76 ++-- .../incubating/container_attributes.hrl | 9 +- .../include/incubating/db_attributes.hrl | 186 +++++----- .../include/incubating/disk_attributes.hrl | 7 +- .../include/incubating/faas_attributes.hrl | 35 +- .../include/incubating/gen_ai_attributes.hrl | 5 +- .../include/incubating/graphql_attributes.hrl | 9 +- .../include/incubating/host_attributes.hrl | 19 +- .../include/incubating/http_attributes.hrl | 22 +- .../include/incubating/log_attributes.hrl | 7 +- .../incubating/messaging_attributes.hrl | 65 ++-- .../include/incubating/network_attributes.hrl | 87 ++--- .../incubating/opentracing_attributes.hrl | 7 +- .../include/incubating/os_attributes.hrl | 25 +- .../include/incubating/process_attributes.hrl | 23 +- .../include/incubating/rpc_attributes.hrl | 99 +++--- .../include/incubating/system_attributes.hrl | 124 ++++--- .../include/incubating/tls_attributes.hrl | 7 +- .../include/network_attributes.hrl | 18 +- .../include/otel_attributes.hrl | 7 +- .../include/telemetry_attributes.hrl | 27 +- .../lib/error_attributes.ex | 35 +- .../lib/http_attributes.ex | 35 +- .../lib/incubating/aws_attributes.ex | 35 +- .../lib/incubating/cloud_attributes.ex | 70 +++- .../lib/incubating/container_attributes.ex | 35 +- .../lib/incubating/db_attributes.ex | 190 +++++++--- .../lib/incubating/disk_attributes.ex | 35 +- .../lib/incubating/faas_attributes.ex | 105 ++++-- .../lib/incubating/gen_ai_attributes.ex | 35 +- .../lib/incubating/graphql_attributes.ex | 35 +- .../lib/incubating/host_attributes.ex | 35 +- .../lib/incubating/http_attributes.ex | 50 ++- .../lib/incubating/log_attributes.ex | 35 +- .../lib/incubating/messaging_attributes.ex | 177 +++++++--- .../lib/incubating/network_attributes.ex | 135 +++++-- .../lib/incubating/opentracing_attributes.ex | 35 +- .../lib/incubating/os_attributes.ex | 35 +- .../lib/incubating/process_attributes.ex | 105 ++++-- .../lib/incubating/rpc_attributes.ex | 155 +++++--- .../lib/incubating/system_attributes.ex | 330 +++++++++++++----- .../lib/incubating/tls_attributes.ex | 35 +- .../lib/network_attributes.ex | 70 +++- .../lib/otel_attributes.ex | 35 +- .../lib/sem_conv.ex | 6 +- .../lib/telemetry_attributes.ex | 35 +- .../registry/elixir/semantic_attributes.ex.j2 | 35 +- .../erlang/semantic_attributes.hrl.j2 | 11 +- .../test/opentelemetry_semconv_SUITE.erl | 5 +- 53 files changed, 1901 insertions(+), 934 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 0e9aa9be..6eb2fed1 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -46,7 +46,7 @@ use a custom value, a function macro is provided. ``` -include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). -?db_system("custom"). +?DB_SYSTEM("custom"). ``` #### Incubating Attributes & Metrics diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl index 880406dc..5870cbc2 100644 --- a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -16,7 +16,8 @@ %% Describes a class of error the operation ended with. %% +-define(ERROR_TYPE, 'error.type'). --define('error_type.other', '_OTHER'). +-define('ERROR_TYPE_VALUES.other', '_OTHER'). --define(error_type(Custom), Custom). +-define('ERROR_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index 43b9eef0..4a4c7281 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -20,28 +20,29 @@ %% HTTP request method. +-define(HTTP_REQUEST_METHOD, 'http.request.method'). --define('http_request_method.connect', 'CONNECT'). +-define('HTTP_REQUEST_METHOD_VALUES.connect', 'CONNECT'). --define('http_request_method.delete', 'DELETE'). +-define('HTTP_REQUEST_METHOD_VALUES.delete', 'DELETE'). --define('http_request_method.get', 'GET'). +-define('HTTP_REQUEST_METHOD_VALUES.get', 'GET'). --define('http_request_method.head', 'HEAD'). +-define('HTTP_REQUEST_METHOD_VALUES.head', 'HEAD'). --define('http_request_method.options', 'OPTIONS'). +-define('HTTP_REQUEST_METHOD_VALUES.options', 'OPTIONS'). --define('http_request_method.patch', 'PATCH'). +-define('HTTP_REQUEST_METHOD_VALUES.patch', 'PATCH'). --define('http_request_method.post', 'POST'). +-define('HTTP_REQUEST_METHOD_VALUES.post', 'POST'). --define('http_request_method.put', 'PUT'). +-define('HTTP_REQUEST_METHOD_VALUES.put', 'PUT'). --define('http_request_method.trace', 'TRACE'). +-define('HTTP_REQUEST_METHOD_VALUES.trace', 'TRACE'). --define('http_request_method.other', '_OTHER'). +-define('HTTP_REQUEST_METHOD_VALUES.other', '_OTHER'). --define(http_request_method(Custom), Custom). +-define('HTTP_REQUEST_METHOD_VALUES(Custom), Custom). %% Original HTTP method sent by the client in the request line. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index 3899e0a9..1c800dbc 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -114,12 +114,13 @@ %% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. %% +-define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). --define('aws_ecs_launchtype.ec2', 'ec2'). +-define('AWS_ECS_LAUNCHTYPE_VALUES.ec2', 'ec2'). --define('aws_ecs_launchtype.fargate', 'fargate'). +-define('AWS_ECS_LAUNCHTYPE_VALUES.fargate', 'fargate'). --define(aws_ecs_launchtype(Custom), Custom). +-define('AWS_ECS_LAUNCHTYPE_VALUES(Custom), Custom). %% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index 2ae85c46..6fd1dda2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -26,84 +26,86 @@ %% The cloud platform in use. %% +-define(CLOUD_PLATFORM, 'cloud.platform'). --define('cloud_platform.alibaba_cloud_ecs', 'alibaba_cloud_ecs'). +-define('CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs', 'alibaba_cloud_ecs'). --define('cloud_platform.alibaba_cloud_fc', 'alibaba_cloud_fc'). +-define('CLOUD_PLATFORM_VALUES.alibaba_cloud_fc', 'alibaba_cloud_fc'). --define('cloud_platform.alibaba_cloud_openshift', 'alibaba_cloud_openshift'). +-define('CLOUD_PLATFORM_VALUES.alibaba_cloud_openshift', 'alibaba_cloud_openshift'). --define('cloud_platform.aws_ec2', 'aws_ec2'). +-define('CLOUD_PLATFORM_VALUES.aws_ec2', 'aws_ec2'). --define('cloud_platform.aws_ecs', 'aws_ecs'). +-define('CLOUD_PLATFORM_VALUES.aws_ecs', 'aws_ecs'). --define('cloud_platform.aws_eks', 'aws_eks'). +-define('CLOUD_PLATFORM_VALUES.aws_eks', 'aws_eks'). --define('cloud_platform.aws_lambda', 'aws_lambda'). +-define('CLOUD_PLATFORM_VALUES.aws_lambda', 'aws_lambda'). --define('cloud_platform.aws_elastic_beanstalk', 'aws_elastic_beanstalk'). +-define('CLOUD_PLATFORM_VALUES.aws_elastic_beanstalk', 'aws_elastic_beanstalk'). --define('cloud_platform.aws_app_runner', 'aws_app_runner'). +-define('CLOUD_PLATFORM_VALUES.aws_app_runner', 'aws_app_runner'). --define('cloud_platform.aws_openshift', 'aws_openshift'). +-define('CLOUD_PLATFORM_VALUES.aws_openshift', 'aws_openshift'). --define('cloud_platform.azure_vm', 'azure_vm'). +-define('CLOUD_PLATFORM_VALUES.azure_vm', 'azure_vm'). --define('cloud_platform.azure_container_apps', 'azure_container_apps'). +-define('CLOUD_PLATFORM_VALUES.azure_container_apps', 'azure_container_apps'). --define('cloud_platform.azure_container_instances', 'azure_container_instances'). +-define('CLOUD_PLATFORM_VALUES.azure_container_instances', 'azure_container_instances'). --define('cloud_platform.azure_aks', 'azure_aks'). +-define('CLOUD_PLATFORM_VALUES.azure_aks', 'azure_aks'). --define('cloud_platform.azure_functions', 'azure_functions'). +-define('CLOUD_PLATFORM_VALUES.azure_functions', 'azure_functions'). --define('cloud_platform.azure_app_service', 'azure_app_service'). +-define('CLOUD_PLATFORM_VALUES.azure_app_service', 'azure_app_service'). --define('cloud_platform.azure_openshift', 'azure_openshift'). +-define('CLOUD_PLATFORM_VALUES.azure_openshift', 'azure_openshift'). --define('cloud_platform.gcp_bare_metal_solution', 'gcp_bare_metal_solution'). +-define('CLOUD_PLATFORM_VALUES.gcp_bare_metal_solution', 'gcp_bare_metal_solution'). --define('cloud_platform.gcp_compute_engine', 'gcp_compute_engine'). +-define('CLOUD_PLATFORM_VALUES.gcp_compute_engine', 'gcp_compute_engine'). --define('cloud_platform.gcp_cloud_run', 'gcp_cloud_run'). +-define('CLOUD_PLATFORM_VALUES.gcp_cloud_run', 'gcp_cloud_run'). --define('cloud_platform.gcp_kubernetes_engine', 'gcp_kubernetes_engine'). +-define('CLOUD_PLATFORM_VALUES.gcp_kubernetes_engine', 'gcp_kubernetes_engine'). --define('cloud_platform.gcp_cloud_functions', 'gcp_cloud_functions'). +-define('CLOUD_PLATFORM_VALUES.gcp_cloud_functions', 'gcp_cloud_functions'). --define('cloud_platform.gcp_app_engine', 'gcp_app_engine'). +-define('CLOUD_PLATFORM_VALUES.gcp_app_engine', 'gcp_app_engine'). --define('cloud_platform.gcp_openshift', 'gcp_openshift'). +-define('CLOUD_PLATFORM_VALUES.gcp_openshift', 'gcp_openshift'). --define('cloud_platform.ibm_cloud_openshift', 'ibm_cloud_openshift'). +-define('CLOUD_PLATFORM_VALUES.ibm_cloud_openshift', 'ibm_cloud_openshift'). --define('cloud_platform.tencent_cloud_cvm', 'tencent_cloud_cvm'). +-define('CLOUD_PLATFORM_VALUES.tencent_cloud_cvm', 'tencent_cloud_cvm'). --define('cloud_platform.tencent_cloud_eks', 'tencent_cloud_eks'). +-define('CLOUD_PLATFORM_VALUES.tencent_cloud_eks', 'tencent_cloud_eks'). --define('cloud_platform.tencent_cloud_scf', 'tencent_cloud_scf'). +-define('CLOUD_PLATFORM_VALUES.tencent_cloud_scf', 'tencent_cloud_scf'). --define(cloud_platform(Custom), Custom). +-define('CLOUD_PLATFORM_VALUES(Custom), Custom). %% Name of the cloud provider. %% +-define(CLOUD_PROVIDER, 'cloud.provider'). --define('cloud_provider.alibaba_cloud', 'alibaba_cloud'). +-define('CLOUD_PROVIDER_VALUES.alibaba_cloud', 'alibaba_cloud'). --define('cloud_provider.aws', 'aws'). +-define('CLOUD_PROVIDER_VALUES.aws', 'aws'). --define('cloud_provider.azure', 'azure'). +-define('CLOUD_PROVIDER_VALUES.azure', 'azure'). --define('cloud_provider.gcp', 'gcp'). +-define('CLOUD_PROVIDER_VALUES.gcp', 'gcp'). --define('cloud_provider.heroku', 'heroku'). +-define('CLOUD_PROVIDER_VALUES.heroku', 'heroku'). --define('cloud_provider.ibm_cloud', 'ibm_cloud'). +-define('CLOUD_PROVIDER_VALUES.ibm_cloud', 'ibm_cloud'). --define('cloud_provider.tencent_cloud', 'tencent_cloud'). +-define('CLOUD_PROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). --define(cloud_provider(Custom), Custom). +-define('CLOUD_PROVIDER_VALUES(Custom), Custom). %% The geographical region the resource is running. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index 5bf9f714..59e14820 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -30,14 +30,15 @@ %% The CPU state for this data point. +-define(CONTAINER_CPU_STATE, 'container.cpu.state'). --define('container_cpu_state.user', 'user'). +-define('CONTAINER_CPU_STATE_VALUES.user', 'user'). --define('container_cpu_state.system', 'system'). +-define('CONTAINER_CPU_STATE_VALUES.system', 'system'). --define('container_cpu_state.kernel', 'kernel'). +-define('CONTAINER_CPU_STATE_VALUES.kernel', 'kernel'). --define(container_cpu_state(Custom), Custom). +-define('CONTAINER_CPU_STATE_VALUES(Custom), Custom). %% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index 08e47d15..a3f78404 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -16,30 +16,31 @@ %% 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). %% +-define(DB_CASSANDRA_CONSISTENCYLEVEL, 'db.cassandra.consistency_level'). --define('db_cassandra_consistencylevel.all', 'all'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all', 'all'). --define('db_cassandra_consistencylevel.each_quorum', 'each_quorum'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.each_quorum', 'each_quorum'). --define('db_cassandra_consistencylevel.quorum', 'quorum'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.quorum', 'quorum'). --define('db_cassandra_consistencylevel.local_quorum', 'local_quorum'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_quorum', 'local_quorum'). --define('db_cassandra_consistencylevel.one', 'one'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.one', 'one'). --define('db_cassandra_consistencylevel.two', 'two'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.two', 'two'). --define('db_cassandra_consistencylevel.three', 'three'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.three', 'three'). --define('db_cassandra_consistencylevel.local_one', 'local_one'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_one', 'local_one'). --define('db_cassandra_consistencylevel.any', 'any'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.any', 'any'). --define('db_cassandra_consistencylevel.serial', 'serial'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.serial', 'serial'). --define('db_cassandra_consistencylevel.local_serial', 'local_serial'). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_serial', 'local_serial'). --define(db_cassandra_consistencylevel(Custom), Custom). +-define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES(Custom), Custom). %% The data center of the coordinating node for a query. @@ -77,12 +78,13 @@ %% The state of a connection in the pool +-define(DB_CLIENT_CONNECTIONS_STATE, 'db.client.connections.state'). --define('db_client_connections_state.idle', 'idle'). +-define('DB_CLIENT_CONNECTIONS_STATE_VALUES.idle', 'idle'). --define('db_client_connections_state.used', 'used'). +-define('DB_CLIENT_CONNECTIONS_STATE_VALUES.used', 'used'). --define(db_client_connections_state(Custom), Custom). +-define('DB_CLIENT_CONNECTIONS_STATE_VALUES(Custom), Custom). %% The name of a collection (table, container) within the database. @@ -99,12 +101,13 @@ %% Cosmos client connection mode. +-define(DB_COSMOSDB_CONNECTIONMODE, 'db.cosmosdb.connection_mode'). --define('db_cosmosdb_connectionmode.gateway', 'gateway'). +-define('DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway', 'gateway'). --define('db_cosmosdb_connectionmode.direct', 'direct'). +-define('DB_COSMOSDB_CONNECTIONMODE_VALUES.direct', 'direct'). --define(db_cosmosdb_connectionmode(Custom), Custom). +-define('DB_COSMOSDB_CONNECTIONMODE_VALUES(Custom), Custom). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. @@ -112,38 +115,39 @@ %% CosmosDB Operation Type. +-define(DB_COSMOSDB_OPERATIONTYPE, 'db.cosmosdb.operation_type'). --define('db_cosmosdb_operationtype.invalid', 'Invalid'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid', 'Invalid'). --define('db_cosmosdb_operationtype.create', 'Create'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.create', 'Create'). --define('db_cosmosdb_operationtype.patch', 'Patch'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.patch', 'Patch'). --define('db_cosmosdb_operationtype.read', 'Read'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.read', 'Read'). --define('db_cosmosdb_operationtype.read_feed', 'ReadFeed'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.read_feed', 'ReadFeed'). --define('db_cosmosdb_operationtype.delete', 'Delete'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.delete', 'Delete'). --define('db_cosmosdb_operationtype.replace', 'Replace'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.replace', 'Replace'). --define('db_cosmosdb_operationtype.execute', 'Execute'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.execute', 'Execute'). --define('db_cosmosdb_operationtype.query', 'Query'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.query', 'Query'). --define('db_cosmosdb_operationtype.head', 'Head'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.head', 'Head'). --define('db_cosmosdb_operationtype.head_feed', 'HeadFeed'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.head_feed', 'HeadFeed'). --define('db_cosmosdb_operationtype.upsert', 'Upsert'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.upsert', 'Upsert'). --define('db_cosmosdb_operationtype.batch', 'Batch'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.batch', 'Batch'). --define('db_cosmosdb_operationtype.query_plan', 'QueryPlan'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.query_plan', 'QueryPlan'). --define('db_cosmosdb_operationtype.execute_javascript', 'ExecuteJavaScript'). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES.execute_javascript', 'ExecuteJavaScript'). --define(db_cosmosdb_operationtype(Custom), Custom). +-define('DB_COSMOSDB_OPERATIONTYPE_VALUES(Custom), Custom). %% RU consumed for that operation @@ -234,112 +238,113 @@ %% The database management system (DBMS) product as identified by the client instrumentation. +-define(DB_SYSTEM, 'db.system'). --define('db_system.other_sql', 'other_sql'). +-define('DB_SYSTEM_VALUES.other_sql', 'other_sql'). --define('db_system.mssql', 'mssql'). +-define('DB_SYSTEM_VALUES.mssql', 'mssql'). --define('db_system.mssqlcompact', 'mssqlcompact'). +-define('DB_SYSTEM_VALUES.mssqlcompact', 'mssqlcompact'). --define('db_system.mysql', 'mysql'). +-define('DB_SYSTEM_VALUES.mysql', 'mysql'). --define('db_system.oracle', 'oracle'). +-define('DB_SYSTEM_VALUES.oracle', 'oracle'). --define('db_system.db2', 'db2'). +-define('DB_SYSTEM_VALUES.db2', 'db2'). --define('db_system.postgresql', 'postgresql'). +-define('DB_SYSTEM_VALUES.postgresql', 'postgresql'). --define('db_system.redshift', 'redshift'). +-define('DB_SYSTEM_VALUES.redshift', 'redshift'). --define('db_system.hive', 'hive'). +-define('DB_SYSTEM_VALUES.hive', 'hive'). --define('db_system.cloudscape', 'cloudscape'). +-define('DB_SYSTEM_VALUES.cloudscape', 'cloudscape'). --define('db_system.hsqldb', 'hsqldb'). +-define('DB_SYSTEM_VALUES.hsqldb', 'hsqldb'). --define('db_system.progress', 'progress'). +-define('DB_SYSTEM_VALUES.progress', 'progress'). --define('db_system.maxdb', 'maxdb'). +-define('DB_SYSTEM_VALUES.maxdb', 'maxdb'). --define('db_system.hanadb', 'hanadb'). +-define('DB_SYSTEM_VALUES.hanadb', 'hanadb'). --define('db_system.ingres', 'ingres'). +-define('DB_SYSTEM_VALUES.ingres', 'ingres'). --define('db_system.firstsql', 'firstsql'). +-define('DB_SYSTEM_VALUES.firstsql', 'firstsql'). --define('db_system.edb', 'edb'). +-define('DB_SYSTEM_VALUES.edb', 'edb'). --define('db_system.cache', 'cache'). +-define('DB_SYSTEM_VALUES.cache', 'cache'). --define('db_system.adabas', 'adabas'). +-define('DB_SYSTEM_VALUES.adabas', 'adabas'). --define('db_system.firebird', 'firebird'). +-define('DB_SYSTEM_VALUES.firebird', 'firebird'). --define('db_system.derby', 'derby'). +-define('DB_SYSTEM_VALUES.derby', 'derby'). --define('db_system.filemaker', 'filemaker'). +-define('DB_SYSTEM_VALUES.filemaker', 'filemaker'). --define('db_system.informix', 'informix'). +-define('DB_SYSTEM_VALUES.informix', 'informix'). --define('db_system.instantdb', 'instantdb'). +-define('DB_SYSTEM_VALUES.instantdb', 'instantdb'). --define('db_system.interbase', 'interbase'). +-define('DB_SYSTEM_VALUES.interbase', 'interbase'). --define('db_system.mariadb', 'mariadb'). +-define('DB_SYSTEM_VALUES.mariadb', 'mariadb'). --define('db_system.netezza', 'netezza'). +-define('DB_SYSTEM_VALUES.netezza', 'netezza'). --define('db_system.pervasive', 'pervasive'). +-define('DB_SYSTEM_VALUES.pervasive', 'pervasive'). --define('db_system.pointbase', 'pointbase'). +-define('DB_SYSTEM_VALUES.pointbase', 'pointbase'). --define('db_system.sqlite', 'sqlite'). +-define('DB_SYSTEM_VALUES.sqlite', 'sqlite'). --define('db_system.sybase', 'sybase'). +-define('DB_SYSTEM_VALUES.sybase', 'sybase'). --define('db_system.teradata', 'teradata'). +-define('DB_SYSTEM_VALUES.teradata', 'teradata'). --define('db_system.vertica', 'vertica'). +-define('DB_SYSTEM_VALUES.vertica', 'vertica'). --define('db_system.h2', 'h2'). +-define('DB_SYSTEM_VALUES.h2', 'h2'). --define('db_system.coldfusion', 'coldfusion'). +-define('DB_SYSTEM_VALUES.coldfusion', 'coldfusion'). --define('db_system.cassandra', 'cassandra'). +-define('DB_SYSTEM_VALUES.cassandra', 'cassandra'). --define('db_system.hbase', 'hbase'). +-define('DB_SYSTEM_VALUES.hbase', 'hbase'). --define('db_system.mongodb', 'mongodb'). +-define('DB_SYSTEM_VALUES.mongodb', 'mongodb'). --define('db_system.redis', 'redis'). +-define('DB_SYSTEM_VALUES.redis', 'redis'). --define('db_system.couchbase', 'couchbase'). +-define('DB_SYSTEM_VALUES.couchbase', 'couchbase'). --define('db_system.couchdb', 'couchdb'). +-define('DB_SYSTEM_VALUES.couchdb', 'couchdb'). --define('db_system.cosmosdb', 'cosmosdb'). +-define('DB_SYSTEM_VALUES.cosmosdb', 'cosmosdb'). --define('db_system.dynamodb', 'dynamodb'). +-define('DB_SYSTEM_VALUES.dynamodb', 'dynamodb'). --define('db_system.neo4j', 'neo4j'). +-define('DB_SYSTEM_VALUES.neo4j', 'neo4j'). --define('db_system.geode', 'geode'). +-define('DB_SYSTEM_VALUES.geode', 'geode'). --define('db_system.elasticsearch', 'elasticsearch'). +-define('DB_SYSTEM_VALUES.elasticsearch', 'elasticsearch'). --define('db_system.memcached', 'memcached'). +-define('DB_SYSTEM_VALUES.memcached', 'memcached'). --define('db_system.cockroachdb', 'cockroachdb'). +-define('DB_SYSTEM_VALUES.cockroachdb', 'cockroachdb'). --define('db_system.opensearch', 'opensearch'). +-define('DB_SYSTEM_VALUES.opensearch', 'opensearch'). --define('db_system.clickhouse', 'clickhouse'). +-define('DB_SYSTEM_VALUES.clickhouse', 'clickhouse'). --define('db_system.spanner', 'spanner'). +-define('DB_SYSTEM_VALUES.spanner', 'spanner'). --define('db_system.trino', 'trino'). +-define('DB_SYSTEM_VALUES.trino', 'trino'). --define(db_system(Custom), Custom). +-define('DB_SYSTEM_VALUES(Custom), Custom). %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. @@ -351,9 +356,10 @@ %% @deprecated Replaced by `db.client.connections.state`. %% Deprecated, use `db.client.connections.state` instead. +-define(STATE, 'state'). --define('state.idle', 'idle'). +-define('STATE_VALUES.idle', 'idle'). --define('state.used', 'used'). +-define('STATE_VALUES.used', 'used'). --define(state(Custom), Custom). +-define('STATE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl index 57314318..69806403 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -15,9 +15,10 @@ %%%------------------------------------------------------------------------- %% The disk IO operation direction. +-define(DISK_IO_DIRECTION, 'disk.io.direction'). --define('disk_io_direction.read', 'read'). +-define('DISK_IO_DIRECTION_VALUES.read', 'read'). --define('disk_io_direction.write', 'write'). +-define('DISK_IO_DIRECTION_VALUES.write', 'write'). --define(disk_io_direction(Custom), Custom). +-define('DISK_IO_DIRECTION_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index 0e8f4b46..ec707b48 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -35,14 +35,15 @@ %% Describes the type of the operation that was performed on the data. +-define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). --define('faas_document_operation.insert', 'insert'). +-define('FAAS_DOCUMENT_OPERATION_VALUES.insert', 'insert'). --define('faas_document_operation.edit', 'edit'). +-define('FAAS_DOCUMENT_OPERATION_VALUES.edit', 'edit'). --define('faas_document_operation.delete', 'delete'). +-define('FAAS_DOCUMENT_OPERATION_VALUES.delete', 'delete'). --define(faas_document_operation(Custom), Custom). +-define('FAAS_DOCUMENT_OPERATION_VALUES(Custom), Custom). %% 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). @@ -67,18 +68,19 @@ %% The cloud provider of the invoked function. %% +-define(FAAS_INVOKEDPROVIDER, 'faas.invoked_provider'). --define('faas_invokedprovider.alibaba_cloud', 'alibaba_cloud'). +-define('FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud', 'alibaba_cloud'). --define('faas_invokedprovider.aws', 'aws'). +-define('FAAS_INVOKEDPROVIDER_VALUES.aws', 'aws'). --define('faas_invokedprovider.azure', 'azure'). +-define('FAAS_INVOKEDPROVIDER_VALUES.azure', 'azure'). --define('faas_invokedprovider.gcp', 'gcp'). +-define('FAAS_INVOKEDPROVIDER_VALUES.gcp', 'gcp'). --define('faas_invokedprovider.tencent_cloud', 'tencent_cloud'). +-define('FAAS_INVOKEDPROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). --define(faas_invokedprovider(Custom), Custom). +-define('FAAS_INVOKEDPROVIDER_VALUES(Custom), Custom). %% The cloud region of the invoked function. @@ -103,18 +105,19 @@ %% Type of the trigger which caused this function invocation. %% +-define(FAAS_TRIGGER, 'faas.trigger'). --define('faas_trigger.datasource', 'datasource'). +-define('FAAS_TRIGGER_VALUES.datasource', 'datasource'). --define('faas_trigger.http', 'http'). +-define('FAAS_TRIGGER_VALUES.http', 'http'). --define('faas_trigger.pubsub', 'pubsub'). +-define('FAAS_TRIGGER_VALUES.pubsub', 'pubsub'). --define('faas_trigger.timer', 'timer'). +-define('FAAS_TRIGGER_VALUES.timer', 'timer'). --define('faas_trigger.other', 'other'). +-define('FAAS_TRIGGER_VALUES.other', 'other'). --define(faas_trigger(Custom), Custom). +-define('FAAS_TRIGGER_VALUES(Custom), Custom). %% The immutable version of the function being executed. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl index 26433d2f..fcf2a3cb 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -51,10 +51,11 @@ %% The Generative AI product as identified by the client instrumentation. +-define(GENAI_SYSTEM, 'gen_ai.system'). --define('genai_system.openai', 'openai'). +-define('GENAI_SYSTEM_VALUES.openai', 'openai'). --define(genai_system(Custom), Custom). +-define('GENAI_SYSTEM_VALUES(Custom), Custom). %% The number of tokens used in the LLM response (completion). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl index ffb4668e..c499ac67 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -23,11 +23,12 @@ %% The type of the operation being executed. +-define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). --define('graphql_operation_type.query', 'query'). +-define('GRAPHQL_OPERATION_TYPE_VALUES.query', 'query'). --define('graphql_operation_type.mutation', 'mutation'). +-define('GRAPHQL_OPERATION_TYPE_VALUES.mutation', 'mutation'). --define('graphql_operation_type.subscription', 'subscription'). +-define('GRAPHQL_OPERATION_TYPE_VALUES.subscription', 'subscription'). --define(graphql_operation_type(Custom), Custom). +-define('GRAPHQL_OPERATION_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index af29e697..082026e7 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -16,24 +16,25 @@ %% The CPU architecture the host system is running on. %% +-define(HOST_ARCH, 'host.arch'). --define('host_arch.amd64', 'amd64'). +-define('HOST_ARCH_VALUES.amd64', 'amd64'). --define('host_arch.arm32', 'arm32'). +-define('HOST_ARCH_VALUES.arm32', 'arm32'). --define('host_arch.arm64', 'arm64'). +-define('HOST_ARCH_VALUES.arm64', 'arm64'). --define('host_arch.ia64', 'ia64'). +-define('HOST_ARCH_VALUES.ia64', 'ia64'). --define('host_arch.ppc32', 'ppc32'). +-define('HOST_ARCH_VALUES.ppc32', 'ppc32'). --define('host_arch.ppc64', 'ppc64'). +-define('HOST_ARCH_VALUES.ppc64', 'ppc64'). --define('host_arch.s390x', 's390x'). +-define('HOST_ARCH_VALUES.s390x', 's390x'). --define('host_arch.x86', 'x86'). +-define('HOST_ARCH_VALUES.x86', 'x86'). --define(host_arch(Custom), Custom). +-define('HOST_ARCH_VALUES(Custom), Custom). %% The amount of level 2 memory cache available to the processor (in Bytes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index dde158b2..8584e5dc 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -19,29 +19,31 @@ %% State of the HTTP connection in the HTTP connection pool. +-define(HTTP_CONNECTION_STATE, 'http.connection.state'). --define('http_connection_state.active', 'active'). +-define('HTTP_CONNECTION_STATE_VALUES.active', 'active'). --define('http_connection_state.idle', 'idle'). +-define('HTTP_CONNECTION_STATE_VALUES.idle', 'idle'). --define(http_connection_state(Custom), Custom). +-define('HTTP_CONNECTION_STATE_VALUES(Custom), Custom). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name` instead. +-define(HTTP_FLAVOR, 'http.flavor'). --define('http_flavor.http_1_0', '1.0'). +-define('HTTP_FLAVOR_VALUES.http_1_0', '1.0'). --define('http_flavor.http_1_1', '1.1'). +-define('HTTP_FLAVOR_VALUES.http_1_1', '1.1'). --define('http_flavor.http_2_0', '2.0'). +-define('HTTP_FLAVOR_VALUES.http_2_0', '2.0'). --define('http_flavor.http_3_0', '3.0'). +-define('HTTP_FLAVOR_VALUES.http_3_0', '3.0'). --define('http_flavor.spdy', 'SPDY'). +-define('HTTP_FLAVOR_VALUES.spdy', 'SPDY'). --define('http_flavor.quic', 'QUIC'). +-define('HTTP_FLAVOR_VALUES.quic', 'QUIC'). --define(http_flavor(Custom), Custom). +-define('HTTP_FLAVOR_VALUES(Custom), Custom). %% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. %% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index cac9b33d..31469a76 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -36,12 +36,13 @@ %% The stream associated with the log. See below for a list of well-known values. %% +-define(LOG_IOSTREAM, 'log.iostream'). --define('log_iostream.stdout', 'stdout'). +-define('LOG_IOSTREAM_VALUES.stdout', 'stdout'). --define('log_iostream.stderr', 'stderr'). +-define('LOG_IOSTREAM_VALUES.stderr', 'stderr'). --define(log_iostream(Custom), Custom). +-define('LOG_IOSTREAM_VALUES(Custom), Custom). %% A unique identifier for the Log Record. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index 74fe3b50..adc7895f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -142,18 +142,19 @@ %% A string identifying the type of the messaging operation. %% +-define(MESSAGING_OPERATION_TYPE, 'messaging.operation.type'). --define('messaging_operation_type.publish', 'publish'). +-define('MESSAGING_OPERATION_TYPE_VALUES.publish', 'publish'). --define('messaging_operation_type.create', 'create'). +-define('MESSAGING_OPERATION_TYPE_VALUES.create', 'create'). --define('messaging_operation_type.receive', 'receive'). +-define('MESSAGING_OPERATION_TYPE_VALUES.receive', 'receive'). --define('messaging_operation_type.deliver', 'process'). +-define('MESSAGING_OPERATION_TYPE_VALUES.deliver', 'process'). --define('messaging_operation_type.settle', 'settle'). +-define('MESSAGING_OPERATION_TYPE_VALUES.settle', 'settle'). --define(messaging_operation_type(Custom), Custom). +-define('MESSAGING_OPERATION_TYPE_VALUES(Custom), Custom). %% RabbitMQ message routing key. @@ -173,12 +174,13 @@ %% Model of message consumption. This only applies to consumer spans. %% +-define(MESSAGING_ROCKETMQ_CONSUMPTIONMODEL, 'messaging.rocketmq.consumption_model'). --define('messaging_rocketmq_consumptionmodel.clustering', 'clustering'). +-define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering', 'clustering'). --define('messaging_rocketmq_consumptionmodel.broadcasting', 'broadcasting'). +-define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.broadcasting', 'broadcasting'). --define(messaging_rocketmq_consumptionmodel(Custom), Custom). +-define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES(Custom), Custom). %% The delay time level for delay message, which determines the message delay time. @@ -208,16 +210,17 @@ %% Type of message. %% +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message.type'). --define('messaging_rocketmq_message_type.normal', 'normal'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal', 'normal'). --define('messaging_rocketmq_message_type.fifo', 'fifo'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.fifo', 'fifo'). --define('messaging_rocketmq_message_type.delay', 'delay'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.delay', 'delay'). --define('messaging_rocketmq_message_type.transaction', 'transaction'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.transaction', 'transaction'). --define(messaging_rocketmq_message_type(Custom), Custom). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES(Custom), Custom). %% Namespace of RocketMQ resources, resources in different namespaces are individual. @@ -232,16 +235,17 @@ %% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). %% +-define(MESSAGING_SERVICEBUS_DISPOSITIONSTATUS, 'messaging.servicebus.disposition_status'). --define('messaging_servicebus_dispositionstatus.complete', 'complete'). +-define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete', 'complete'). --define('messaging_servicebus_dispositionstatus.abandon', 'abandon'). +-define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.abandon', 'abandon'). --define('messaging_servicebus_dispositionstatus.dead_letter', 'dead_letter'). +-define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.dead_letter', 'dead_letter'). --define('messaging_servicebus_dispositionstatus.defer', 'defer'). +-define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.defer', 'defer'). --define(messaging_servicebus_dispositionstatus(Custom), Custom). +-define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES(Custom), Custom). %% Number of deliveries that have been attempted for this message. @@ -255,25 +259,26 @@ %% The messaging system as identified by the client instrumentation. +-define(MESSAGING_SYSTEM, 'messaging.system'). --define('messaging_system.activemq', 'activemq'). +-define('MESSAGING_SYSTEM_VALUES.activemq', 'activemq'). --define('messaging_system.aws_sqs', 'aws_sqs'). +-define('MESSAGING_SYSTEM_VALUES.aws_sqs', 'aws_sqs'). --define('messaging_system.eventgrid', 'eventgrid'). +-define('MESSAGING_SYSTEM_VALUES.eventgrid', 'eventgrid'). --define('messaging_system.eventhubs', 'eventhubs'). +-define('MESSAGING_SYSTEM_VALUES.eventhubs', 'eventhubs'). --define('messaging_system.servicebus', 'servicebus'). +-define('MESSAGING_SYSTEM_VALUES.servicebus', 'servicebus'). --define('messaging_system.gcp_pubsub', 'gcp_pubsub'). +-define('MESSAGING_SYSTEM_VALUES.gcp_pubsub', 'gcp_pubsub'). --define('messaging_system.jms', 'jms'). +-define('MESSAGING_SYSTEM_VALUES.jms', 'jms'). --define('messaging_system.kafka', 'kafka'). +-define('MESSAGING_SYSTEM_VALUES.kafka', 'kafka'). --define('messaging_system.rabbitmq', 'rabbitmq'). +-define('MESSAGING_SYSTEM_VALUES.rabbitmq', 'rabbitmq'). --define('messaging_system.rocketmq', 'rocketmq'). +-define('MESSAGING_SYSTEM_VALUES.rocketmq', 'rocketmq'). --define(messaging_system(Custom), Custom). +-define('MESSAGING_SYSTEM_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl index 650c9e02..7328562b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -47,14 +47,15 @@ %% @deprecated Split to `network.transport` and `network.type`. %% Deprecated, use `network.transport` and `network.type`. +-define(NET_SOCK_FAMILY, 'net.sock.family'). --define('net_sock_family.inet', 'inet'). +-define('NET_SOCK_FAMILY_VALUES.inet', 'inet'). --define('net_sock_family.inet6', 'inet6'). +-define('NET_SOCK_FAMILY_VALUES.inet6', 'inet6'). --define('net_sock_family.unix', 'unix'). +-define('NET_SOCK_FAMILY_VALUES.unix', 'unix'). --define(net_sock_family(Custom), Custom). +-define('NET_SOCK_FAMILY_VALUES(Custom), Custom). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. @@ -78,18 +79,19 @@ %% @deprecated Replaced by `network.transport`. %% Deprecated, use `network.transport`. +-define(NET_TRANSPORT, 'net.transport'). --define('net_transport.ip_tcp', 'ip_tcp'). +-define('NET_TRANSPORT_VALUES.ip_tcp', 'ip_tcp'). --define('net_transport.ip_udp', 'ip_udp'). +-define('NET_TRANSPORT_VALUES.ip_udp', 'ip_udp'). --define('net_transport.pipe', 'pipe'). +-define('NET_TRANSPORT_VALUES.pipe', 'pipe'). --define('net_transport.inproc', 'inproc'). +-define('NET_TRANSPORT_VALUES.inproc', 'inproc'). --define('net_transport.other', 'other'). +-define('NET_TRANSPORT_VALUES.other', 'other'). --define(net_transport(Custom), Custom). +-define('NET_TRANSPORT_VALUES(Custom), Custom). %% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. @@ -109,71 +111,74 @@ %% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. +-define(NETWORK_CONNECTION_SUBTYPE, 'network.connection.subtype'). --define('network_connection_subtype.gprs', 'gprs'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.gprs', 'gprs'). --define('network_connection_subtype.edge', 'edge'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.edge', 'edge'). --define('network_connection_subtype.umts', 'umts'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.umts', 'umts'). --define('network_connection_subtype.cdma', 'cdma'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.cdma', 'cdma'). --define('network_connection_subtype.evdo_0', 'evdo_0'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.evdo_0', 'evdo_0'). --define('network_connection_subtype.evdo_a', 'evdo_a'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.evdo_a', 'evdo_a'). --define('network_connection_subtype.cdma2000_1xrtt', 'cdma2000_1xrtt'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.cdma2000_1xrtt', 'cdma2000_1xrtt'). --define('network_connection_subtype.hsdpa', 'hsdpa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.hsdpa', 'hsdpa'). --define('network_connection_subtype.hsupa', 'hsupa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.hsupa', 'hsupa'). --define('network_connection_subtype.hspa', 'hspa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.hspa', 'hspa'). --define('network_connection_subtype.iden', 'iden'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.iden', 'iden'). --define('network_connection_subtype.evdo_b', 'evdo_b'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.evdo_b', 'evdo_b'). --define('network_connection_subtype.lte', 'lte'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.lte', 'lte'). --define('network_connection_subtype.ehrpd', 'ehrpd'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.ehrpd', 'ehrpd'). --define('network_connection_subtype.hspap', 'hspap'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.hspap', 'hspap'). --define('network_connection_subtype.gsm', 'gsm'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.gsm', 'gsm'). --define('network_connection_subtype.td_scdma', 'td_scdma'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.td_scdma', 'td_scdma'). --define('network_connection_subtype.iwlan', 'iwlan'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.iwlan', 'iwlan'). --define('network_connection_subtype.nr', 'nr'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.nr', 'nr'). --define('network_connection_subtype.nrnsa', 'nrnsa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.nrnsa', 'nrnsa'). --define('network_connection_subtype.lte_ca', 'lte_ca'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES.lte_ca', 'lte_ca'). --define(network_connection_subtype(Custom), Custom). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES(Custom), Custom). %% The internet connection type. +-define(NETWORK_CONNECTION_TYPE, 'network.connection.type'). --define('network_connection_type.wifi', 'wifi'). +-define('NETWORK_CONNECTION_TYPE_VALUES.wifi', 'wifi'). --define('network_connection_type.wired', 'wired'). +-define('NETWORK_CONNECTION_TYPE_VALUES.wired', 'wired'). --define('network_connection_type.cell', 'cell'). +-define('NETWORK_CONNECTION_TYPE_VALUES.cell', 'cell'). --define('network_connection_type.unavailable', 'unavailable'). +-define('NETWORK_CONNECTION_TYPE_VALUES.unavailable', 'unavailable'). --define('network_connection_type.unknown', 'unknown'). +-define('NETWORK_CONNECTION_TYPE_VALUES.unknown', 'unknown'). --define(network_connection_type(Custom), Custom). +-define('NETWORK_CONNECTION_TYPE_VALUES(Custom), Custom). %% The network IO operation direction. +-define(NETWORK_IO_DIRECTION, 'network.io.direction'). --define('network_io_direction.transmit', 'transmit'). +-define('NETWORK_IO_DIRECTION_VALUES.transmit', 'transmit'). --define('network_io_direction.receive', 'receive'). +-define('NETWORK_IO_DIRECTION_VALUES.receive', 'receive'). --define(network_io_direction(Custom), Custom). +-define('NETWORK_IO_DIRECTION_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index 49fd7ccc..7b3c1e06 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -15,9 +15,10 @@ %%%------------------------------------------------------------------------- %% Parent-child Reference type +-define(OPENTRACING_REFTYPE, 'opentracing.ref_type'). --define('opentracing_reftype.child_of', 'child_of'). +-define('OPENTRACING_REFTYPE_VALUES.child_of', 'child_of'). --define('opentracing_reftype.follows_from', 'follows_from'). +-define('OPENTRACING_REFTYPE_VALUES.follows_from', 'follows_from'). --define(opentracing_reftype(Custom), Custom). +-define('OPENTRACING_REFTYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index 554dcfaa..ac7ae11a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -29,30 +29,31 @@ %% The operating system type. %% +-define(OS_TYPE, 'os.type'). --define('os_type.windows', 'windows'). +-define('OS_TYPE_VALUES.windows', 'windows'). --define('os_type.linux', 'linux'). +-define('OS_TYPE_VALUES.linux', 'linux'). --define('os_type.darwin', 'darwin'). +-define('OS_TYPE_VALUES.darwin', 'darwin'). --define('os_type.freebsd', 'freebsd'). +-define('OS_TYPE_VALUES.freebsd', 'freebsd'). --define('os_type.netbsd', 'netbsd'). +-define('OS_TYPE_VALUES.netbsd', 'netbsd'). --define('os_type.openbsd', 'openbsd'). +-define('OS_TYPE_VALUES.openbsd', 'openbsd'). --define('os_type.dragonflybsd', 'dragonflybsd'). +-define('OS_TYPE_VALUES.dragonflybsd', 'dragonflybsd'). --define('os_type.hpux', 'hpux'). +-define('OS_TYPE_VALUES.hpux', 'hpux'). --define('os_type.aix', 'aix'). +-define('OS_TYPE_VALUES.aix', 'aix'). --define('os_type.solaris', 'solaris'). +-define('OS_TYPE_VALUES.solaris', 'solaris'). --define('os_type.z_os', 'z_os'). +-define('OS_TYPE_VALUES.z_os', 'z_os'). --define(os_type(Custom), Custom). +-define('OS_TYPE_VALUES(Custom), Custom). %% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index fc451b1b..9a6f2e6a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -30,24 +30,26 @@ %% Specifies whether the context switches for this data point were voluntary or involuntary. +-define(PROCESS_CONTEXTSWITCHTYPE, 'process.context_switch_type'). --define('process_contextswitchtype.voluntary', 'voluntary'). +-define('PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary', 'voluntary'). --define('process_contextswitchtype.involuntary', 'involuntary'). +-define('PROCESS_CONTEXTSWITCHTYPE_VALUES.involuntary', 'involuntary'). --define(process_contextswitchtype(Custom), Custom). +-define('PROCESS_CONTEXTSWITCHTYPE_VALUES(Custom), Custom). %% The CPU state of the process. %% +-define(PROCESS_CPU_STATE, 'process.cpu.state'). --define('process_cpu_state.system', 'system'). +-define('PROCESS_CPU_STATE_VALUES.system', 'system'). --define('process_cpu_state.user', 'user'). +-define('PROCESS_CPU_STATE_VALUES.user', 'user'). --define('process_cpu_state.wait', 'wait'). +-define('PROCESS_CPU_STATE_VALUES.wait', 'wait'). --define(process_cpu_state(Custom), Custom). +-define('PROCESS_CPU_STATE_VALUES(Custom), Custom). %% The date and time the process was created, in ISO 8601 format. @@ -92,12 +94,13 @@ %% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. %% +-define(PROCESS_PAGING_FAULTTYPE, 'process.paging.fault_type'). --define('process_paging_faulttype.major', 'major'). +-define('PROCESS_PAGING_FAULTTYPE_VALUES.major', 'major'). --define('process_paging_faulttype.minor', 'minor'). +-define('PROCESS_PAGING_FAULTTYPE_VALUES.minor', 'minor'). --define(process_paging_faulttype(Custom), Custom). +-define('PROCESS_PAGING_FAULTTYPE_VALUES(Custom), Custom). %% Parent Process identifier (PPID). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index 0e32b826..de355a43 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -23,12 +23,13 @@ %% @deprecated Replaced by `rpc.message.type`. %% Deprecated, use `rpc.message.type` instead. +-define(MESSAGE_TYPE, 'message.type'). --define('message_type.sent', 'SENT'). +-define('MESSAGE_TYPE_VALUES.sent', 'SENT'). --define('message_type.received', 'RECEIVED'). +-define('MESSAGE_TYPE_VALUES.received', 'RECEIVED'). --define(message_type(Custom), Custom). +-define('MESSAGE_TYPE_VALUES(Custom), Custom). %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. @@ -36,40 +37,41 @@ %% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. +-define(RPC_CONNECTRPC_ERRORCODE, 'rpc.connect_rpc.error_code'). --define('rpc_connectrpc_errorcode.cancelled', 'cancelled'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled', 'cancelled'). --define('rpc_connectrpc_errorcode.unknown', 'unknown'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.unknown', 'unknown'). --define('rpc_connectrpc_errorcode.invalid_argument', 'invalid_argument'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.invalid_argument', 'invalid_argument'). --define('rpc_connectrpc_errorcode.deadline_exceeded', 'deadline_exceeded'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.deadline_exceeded', 'deadline_exceeded'). --define('rpc_connectrpc_errorcode.not_found', 'not_found'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.not_found', 'not_found'). --define('rpc_connectrpc_errorcode.already_exists', 'already_exists'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.already_exists', 'already_exists'). --define('rpc_connectrpc_errorcode.permission_denied', 'permission_denied'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.permission_denied', 'permission_denied'). --define('rpc_connectrpc_errorcode.resource_exhausted', 'resource_exhausted'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.resource_exhausted', 'resource_exhausted'). --define('rpc_connectrpc_errorcode.failed_precondition', 'failed_precondition'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.failed_precondition', 'failed_precondition'). --define('rpc_connectrpc_errorcode.aborted', 'aborted'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.aborted', 'aborted'). --define('rpc_connectrpc_errorcode.out_of_range', 'out_of_range'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.out_of_range', 'out_of_range'). --define('rpc_connectrpc_errorcode.unimplemented', 'unimplemented'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.unimplemented', 'unimplemented'). --define('rpc_connectrpc_errorcode.internal', 'internal'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.internal', 'internal'). --define('rpc_connectrpc_errorcode.unavailable', 'unavailable'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.unavailable', 'unavailable'). --define('rpc_connectrpc_errorcode.data_loss', 'data_loss'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.data_loss', 'data_loss'). --define('rpc_connectrpc_errorcode.unauthenticated', 'unauthenticated'). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES.unauthenticated', 'unauthenticated'). --define(rpc_connectrpc_errorcode(Custom), Custom). +-define('RPC_CONNECTRPC_ERRORCODE_VALUES(Custom), Custom). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. @@ -93,42 +95,43 @@ %% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. +-define(RPC_GRPC_STATUSCODE, 'rpc.grpc.status_code'). --define('rpc_grpc_statuscode.ok', '0'). +-define('RPC_GRPC_STATUSCODE_VALUES.ok', '0'). --define('rpc_grpc_statuscode.cancelled', '1'). +-define('RPC_GRPC_STATUSCODE_VALUES.cancelled', '1'). --define('rpc_grpc_statuscode.unknown', '2'). +-define('RPC_GRPC_STATUSCODE_VALUES.unknown', '2'). --define('rpc_grpc_statuscode.invalid_argument', '3'). +-define('RPC_GRPC_STATUSCODE_VALUES.invalid_argument', '3'). --define('rpc_grpc_statuscode.deadline_exceeded', '4'). +-define('RPC_GRPC_STATUSCODE_VALUES.deadline_exceeded', '4'). --define('rpc_grpc_statuscode.not_found', '5'). +-define('RPC_GRPC_STATUSCODE_VALUES.not_found', '5'). --define('rpc_grpc_statuscode.already_exists', '6'). +-define('RPC_GRPC_STATUSCODE_VALUES.already_exists', '6'). --define('rpc_grpc_statuscode.permission_denied', '7'). +-define('RPC_GRPC_STATUSCODE_VALUES.permission_denied', '7'). --define('rpc_grpc_statuscode.resource_exhausted', '8'). +-define('RPC_GRPC_STATUSCODE_VALUES.resource_exhausted', '8'). --define('rpc_grpc_statuscode.failed_precondition', '9'). +-define('RPC_GRPC_STATUSCODE_VALUES.failed_precondition', '9'). --define('rpc_grpc_statuscode.aborted', '10'). +-define('RPC_GRPC_STATUSCODE_VALUES.aborted', '10'). --define('rpc_grpc_statuscode.out_of_range', '11'). +-define('RPC_GRPC_STATUSCODE_VALUES.out_of_range', '11'). --define('rpc_grpc_statuscode.unimplemented', '12'). +-define('RPC_GRPC_STATUSCODE_VALUES.unimplemented', '12'). --define('rpc_grpc_statuscode.internal', '13'). +-define('RPC_GRPC_STATUSCODE_VALUES.internal', '13'). --define('rpc_grpc_statuscode.unavailable', '14'). +-define('RPC_GRPC_STATUSCODE_VALUES.unavailable', '14'). --define('rpc_grpc_statuscode.data_loss', '15'). +-define('RPC_GRPC_STATUSCODE_VALUES.data_loss', '15'). --define('rpc_grpc_statuscode.unauthenticated', '16'). +-define('RPC_GRPC_STATUSCODE_VALUES.unauthenticated', '16'). --define(rpc_grpc_statuscode(Custom), Custom). +-define('RPC_GRPC_STATUSCODE_VALUES(Custom), Custom). %% `error.code` property of response if it is an error response. @@ -157,12 +160,13 @@ %% Whether this is a received or sent message. +-define(RPC_MESSAGE_TYPE, 'rpc.message.type'). --define('rpc_message_type.sent', 'SENT'). +-define('RPC_MESSAGE_TYPE_VALUES.sent', 'SENT'). --define('rpc_message_type.received', 'RECEIVED'). +-define('RPC_MESSAGE_TYPE_VALUES.received', 'RECEIVED'). --define(rpc_message_type(Custom), Custom). +-define('RPC_MESSAGE_TYPE_VALUES(Custom), Custom). %% Uncompressed size of the message in bytes. @@ -178,15 +182,16 @@ %% A string identifying the remoting system. See below for a list of well-known identifiers. +-define(RPC_SYSTEM, 'rpc.system'). --define('rpc_system.grpc', 'grpc'). +-define('RPC_SYSTEM_VALUES.grpc', 'grpc'). --define('rpc_system.java_rmi', 'java_rmi'). +-define('RPC_SYSTEM_VALUES.java_rmi', 'java_rmi'). --define('rpc_system.dotnet_wcf', 'dotnet_wcf'). +-define('RPC_SYSTEM_VALUES.dotnet_wcf', 'dotnet_wcf'). --define('rpc_system.apache_dubbo', 'apache_dubbo'). +-define('RPC_SYSTEM_VALUES.apache_dubbo', 'apache_dubbo'). --define('rpc_system.connect_rpc', 'connect_rpc'). +-define('RPC_SYSTEM_VALUES.connect_rpc', 'connect_rpc'). --define(rpc_system(Custom), Custom). +-define('RPC_SYSTEM_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index f9fdfac1..cd93dfd4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -19,22 +19,23 @@ %% The state of the CPU +-define(SYSTEM_CPU_STATE, 'system.cpu.state'). --define('system_cpu_state.user', 'user'). +-define('SYSTEM_CPU_STATE_VALUES.user', 'user'). --define('system_cpu_state.system', 'system'). +-define('SYSTEM_CPU_STATE_VALUES.system', 'system'). --define('system_cpu_state.nice', 'nice'). +-define('SYSTEM_CPU_STATE_VALUES.nice', 'nice'). --define('system_cpu_state.idle', 'idle'). +-define('SYSTEM_CPU_STATE_VALUES.idle', 'idle'). --define('system_cpu_state.iowait', 'iowait'). +-define('SYSTEM_CPU_STATE_VALUES.iowait', 'iowait'). --define('system_cpu_state.interrupt', 'interrupt'). +-define('SYSTEM_CPU_STATE_VALUES.interrupt', 'interrupt'). --define('system_cpu_state.steal', 'steal'). +-define('SYSTEM_CPU_STATE_VALUES.steal', 'steal'). --define(system_cpu_state(Custom), Custom). +-define('SYSTEM_CPU_STATE_VALUES(Custom), Custom). %% The device identifier @@ -50,126 +51,135 @@ %% The filesystem state +-define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). --define('system_filesystem_state.used', 'used'). +-define('SYSTEM_FILESYSTEM_STATE_VALUES.used', 'used'). --define('system_filesystem_state.free', 'free'). +-define('SYSTEM_FILESYSTEM_STATE_VALUES.free', 'free'). --define('system_filesystem_state.reserved', 'reserved'). +-define('SYSTEM_FILESYSTEM_STATE_VALUES.reserved', 'reserved'). --define(system_filesystem_state(Custom), Custom). +-define('SYSTEM_FILESYSTEM_STATE_VALUES(Custom), Custom). %% The filesystem type +-define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). --define('system_filesystem_type.fat32', 'fat32'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES.fat32', 'fat32'). --define('system_filesystem_type.exfat', 'exfat'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES.exfat', 'exfat'). --define('system_filesystem_type.ntfs', 'ntfs'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES.ntfs', 'ntfs'). --define('system_filesystem_type.refs', 'refs'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES.refs', 'refs'). --define('system_filesystem_type.hfsplus', 'hfsplus'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES.hfsplus', 'hfsplus'). --define('system_filesystem_type.ext4', 'ext4'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES.ext4', 'ext4'). --define(system_filesystem_type(Custom), Custom). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES(Custom), Custom). %% The memory state +-define(SYSTEM_MEMORY_STATE, 'system.memory.state'). --define('system_memory_state.used', 'used'). +-define('SYSTEM_MEMORY_STATE_VALUES.used', 'used'). --define('system_memory_state.free', 'free'). +-define('SYSTEM_MEMORY_STATE_VALUES.free', 'free'). --define('system_memory_state.shared', 'shared'). +-define('SYSTEM_MEMORY_STATE_VALUES.shared', 'shared'). --define('system_memory_state.buffers', 'buffers'). +-define('SYSTEM_MEMORY_STATE_VALUES.buffers', 'buffers'). --define('system_memory_state.cached', 'cached'). +-define('SYSTEM_MEMORY_STATE_VALUES.cached', 'cached'). --define(system_memory_state(Custom), Custom). +-define('SYSTEM_MEMORY_STATE_VALUES(Custom), Custom). %% A stateless protocol MUST NOT set this attribute +-define(SYSTEM_NETWORK_STATE, 'system.network.state'). --define('system_network_state.close', 'close'). +-define('SYSTEM_NETWORK_STATE_VALUES.close', 'close'). --define('system_network_state.close_wait', 'close_wait'). +-define('SYSTEM_NETWORK_STATE_VALUES.close_wait', 'close_wait'). --define('system_network_state.closing', 'closing'). +-define('SYSTEM_NETWORK_STATE_VALUES.closing', 'closing'). --define('system_network_state.delete', 'delete'). +-define('SYSTEM_NETWORK_STATE_VALUES.delete', 'delete'). --define('system_network_state.established', 'established'). +-define('SYSTEM_NETWORK_STATE_VALUES.established', 'established'). --define('system_network_state.fin_wait_1', 'fin_wait_1'). +-define('SYSTEM_NETWORK_STATE_VALUES.fin_wait_1', 'fin_wait_1'). --define('system_network_state.fin_wait_2', 'fin_wait_2'). +-define('SYSTEM_NETWORK_STATE_VALUES.fin_wait_2', 'fin_wait_2'). --define('system_network_state.last_ack', 'last_ack'). +-define('SYSTEM_NETWORK_STATE_VALUES.last_ack', 'last_ack'). --define('system_network_state.listen', 'listen'). +-define('SYSTEM_NETWORK_STATE_VALUES.listen', 'listen'). --define('system_network_state.syn_recv', 'syn_recv'). +-define('SYSTEM_NETWORK_STATE_VALUES.syn_recv', 'syn_recv'). --define('system_network_state.syn_sent', 'syn_sent'). +-define('SYSTEM_NETWORK_STATE_VALUES.syn_sent', 'syn_sent'). --define('system_network_state.time_wait', 'time_wait'). +-define('SYSTEM_NETWORK_STATE_VALUES.time_wait', 'time_wait'). --define(system_network_state(Custom), Custom). +-define('SYSTEM_NETWORK_STATE_VALUES(Custom), Custom). %% The paging access direction +-define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). --define('system_paging_direction.in', 'in'). +-define('SYSTEM_PAGING_DIRECTION_VALUES.in', 'in'). --define('system_paging_direction.out', 'out'). +-define('SYSTEM_PAGING_DIRECTION_VALUES.out', 'out'). --define(system_paging_direction(Custom), Custom). +-define('SYSTEM_PAGING_DIRECTION_VALUES(Custom), Custom). %% The memory paging state +-define(SYSTEM_PAGING_STATE, 'system.paging.state'). --define('system_paging_state.used', 'used'). +-define('SYSTEM_PAGING_STATE_VALUES.used', 'used'). --define('system_paging_state.free', 'free'). +-define('SYSTEM_PAGING_STATE_VALUES.free', 'free'). --define(system_paging_state(Custom), Custom). +-define('SYSTEM_PAGING_STATE_VALUES(Custom), Custom). %% The memory paging type +-define(SYSTEM_PAGING_TYPE, 'system.paging.type'). --define('system_paging_type.major', 'major'). +-define('SYSTEM_PAGING_TYPE_VALUES.major', 'major'). --define('system_paging_type.minor', 'minor'). +-define('SYSTEM_PAGING_TYPE_VALUES.minor', 'minor'). --define(system_paging_type(Custom), Custom). +-define('SYSTEM_PAGING_TYPE_VALUES(Custom), Custom). %% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) %% +-define(SYSTEM_PROCESS_STATUS, 'system.process.status'). --define('system_process_status.running', 'running'). +-define('SYSTEM_PROCESS_STATUS_VALUES.running', 'running'). --define('system_process_status.sleeping', 'sleeping'). +-define('SYSTEM_PROCESS_STATUS_VALUES.sleeping', 'sleeping'). --define('system_process_status.stopped', 'stopped'). +-define('SYSTEM_PROCESS_STATUS_VALUES.stopped', 'stopped'). --define('system_process_status.defunct', 'defunct'). +-define('SYSTEM_PROCESS_STATUS_VALUES.defunct', 'defunct'). --define(system_process_status(Custom), Custom). +-define('SYSTEM_PROCESS_STATUS_VALUES(Custom), Custom). %% @deprecated Replaced by `system.process.status`. %% Deprecated, use `system.process.status` instead. +-define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). --define('system_processes_status.running', 'running'). +-define('SYSTEM_PROCESSES_STATUS_VALUES.running', 'running'). --define('system_processes_status.sleeping', 'sleeping'). +-define('SYSTEM_PROCESSES_STATUS_VALUES.sleeping', 'sleeping'). --define('system_processes_status.stopped', 'stopped'). +-define('SYSTEM_PROCESSES_STATUS_VALUES.stopped', 'stopped'). --define('system_processes_status.defunct', 'defunct'). +-define('SYSTEM_PROCESSES_STATUS_VALUES.defunct', 'defunct'). --define(system_processes_status(Custom), Custom). +-define('SYSTEM_PROCESSES_STATUS_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index 08c08a63..6f9fccc9 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -87,12 +87,13 @@ %% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) %% +-define(TLS_PROTOCOL_NAME, 'tls.protocol.name'). --define('tls_protocol_name.ssl', 'ssl'). +-define('TLS_PROTOCOL_NAME_VALUES.ssl', 'ssl'). --define('tls_protocol_name.tls', 'tls'). +-define('TLS_PROTOCOL_NAME_VALUES.tls', 'tls'). --define(tls_protocol_name(Custom), Custom). +-define('TLS_PROTOCOL_NAME_VALUES(Custom), Custom). %% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl index 5997e7c6..0e837510 100644 --- a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -40,22 +40,24 @@ %% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). %% +-define(NETWORK_TRANSPORT, 'network.transport'). --define('network_transport.tcp', 'tcp'). +-define('NETWORK_TRANSPORT_VALUES.tcp', 'tcp'). --define('network_transport.udp', 'udp'). +-define('NETWORK_TRANSPORT_VALUES.udp', 'udp'). --define('network_transport.pipe', 'pipe'). +-define('NETWORK_TRANSPORT_VALUES.pipe', 'pipe'). --define('network_transport.unix', 'unix'). +-define('NETWORK_TRANSPORT_VALUES.unix', 'unix'). --define(network_transport(Custom), Custom). +-define('NETWORK_TRANSPORT_VALUES(Custom), Custom). %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. +-define(NETWORK_TYPE, 'network.type'). --define('network_type.ipv4', 'ipv4'). +-define('NETWORK_TYPE_VALUES.ipv4', 'ipv4'). --define('network_type.ipv6', 'ipv6'). +-define('NETWORK_TYPE_VALUES.ipv6', 'ipv6'). --define(network_type(Custom), Custom). +-define('NETWORK_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index 719149db..a869fbcb 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -23,12 +23,13 @@ %% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. +-define(OTEL_STATUSCODE, 'otel.status_code'). --define('otel_statuscode.ok', 'OK'). +-define('OTEL_STATUSCODE_VALUES.ok', 'OK'). --define('otel_statuscode.error', 'ERROR'). +-define('OTEL_STATUSCODE_VALUES.error', 'ERROR'). --define(otel_statuscode(Custom), Custom). +-define('OTEL_STATUSCODE_VALUES(Custom), Custom). %% Description of the Status if it has a value, otherwise not set. diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl index 2c8ff0d1..0ce1f4ae 100644 --- a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -16,32 +16,33 @@ %% The language of the telemetry SDK. %% +-define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). --define('telemetry_sdk_language.cpp', 'cpp'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.cpp', 'cpp'). --define('telemetry_sdk_language.dotnet', 'dotnet'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.dotnet', 'dotnet'). --define('telemetry_sdk_language.erlang', 'erlang'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.erlang', 'erlang'). --define('telemetry_sdk_language.go', 'go'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.go', 'go'). --define('telemetry_sdk_language.java', 'java'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.java', 'java'). --define('telemetry_sdk_language.nodejs', 'nodejs'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.nodejs', 'nodejs'). --define('telemetry_sdk_language.php', 'php'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.php', 'php'). --define('telemetry_sdk_language.python', 'python'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.python', 'python'). --define('telemetry_sdk_language.ruby', 'ruby'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.ruby', 'ruby'). --define('telemetry_sdk_language.rust', 'rust'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.rust', 'rust'). --define('telemetry_sdk_language.swift', 'swift'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.swift', 'swift'). --define('telemetry_sdk_language.webjs', 'webjs'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES.webjs', 'webjs'). --define(telemetry_sdk_language(Custom), Custom). +-define('TELEMETRY_SDK_LANGUAGE_VALUES(Custom), Custom). %% The name of the telemetry SDK as defined above. diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index e9127e52..8aa41c10 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do * `:other` - A fallback error value to be used when the instrumentation doesn't define a custom value. """ - @type error_type() :: %{ + @type error_type_values() :: %{ :other => :_OTHER } @doc """ @@ -51,33 +51,50 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do ### Elixir - iex> OpenTelemetry.SemConv.ErrorAttributes.error_type().other + iex> OpenTelemetry.SemConv.ErrorAttributes.error_type() + :"error.type" + + iex> OpenTelemetry.SemConv.ErrorAttributes.error_type_values().other :_OTHER - iex> OpenTelemetry.SemConv.ErrorAttributes.error_type(:custom_value) + iex> %{OpenTelemetry.SemConv.ErrorAttributes.error_type() => OpenTelemetry.SemConv.ErrorAttributes.error_type_values().other} + %{:"error.type" => :_OTHER} + + iex> OpenTelemetry.SemConv.ErrorAttributes.error_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'error_type.other'. + ?ERROR_TYPE. + 'error.type' + + \#{?ERROR_TYPE => ?ERROR_TYPE_VALUES.other}. + \#{'error.type' => _OTHER} + + ?'ERROR_TYPE_VALUES.other'. _OTHER - ?error_type(custom_value). + ?ERROR_TYPE_VALUES(custom_value). custom_value ``` """ - @spec error_type() :: error_type() - def error_type() do + @spec error_type :: :"error.type" + def error_type do + :"error.type" + end + + @spec error_type_values() :: error_type_values() + def error_type_values() do %{ :other => :_OTHER } end - @spec error_type(atom() | String.t()) :: atom() | String.t() - def error_type(custom_value) do + @spec error_type_values(atom() | String.t()) :: atom() | String.t() + def error_type_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 308c93e6..8407962d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -58,7 +58,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do * `:trace` - TRACE method. * `:other` - Any HTTP method that the instrumentation has no prior knowledge of. """ - @type http_request_method() :: %{ + @type http_request_method_values() :: %{ :connect => :CONNECT, :delete => :DELETE, :get => :GET, @@ -100,26 +100,43 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method().connect + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method() + :"http.request.method" + + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values().connect :CONNECT - iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method(:custom_value) + iex> %{OpenTelemetry.SemConv.HTTPAttributes.http_request_method() => OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values().connect} + %{:"http.request.method" => :CONNECT} + + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values(:custom_value) :custom_value ### Erlang ```erlang - ?'http_request_method.connect'. + ?HTTP_REQUEST_METHOD. + 'http.request.method' + + \#{?HTTP_REQUEST_METHOD => ?HTTP_REQUEST_METHOD_VALUES.connect}. + \#{'http.request.method' => CONNECT} + + ?'HTTP_REQUEST_METHOD_VALUES.connect'. CONNECT - ?http_request_method(custom_value). + ?HTTP_REQUEST_METHOD_VALUES(custom_value). custom_value ``` """ - @spec http_request_method() :: http_request_method() - def http_request_method() do + @spec http_request_method :: :"http.request.method" + def http_request_method do + :"http.request.method" + end + + @spec http_request_method_values() :: http_request_method_values() + def http_request_method_values() do %{ :connect => :CONNECT, :delete => :DELETE, @@ -134,8 +151,8 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do } end - @spec http_request_method(atom() | String.t()) :: atom() | String.t() - def http_request_method(custom_value) do + @spec http_request_method_values(atom() | String.t()) :: atom() | String.t() + def http_request_method_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex index a9cac1f3..521b79f7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -772,7 +772,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do * `:ec2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:fargate` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type aws_ecs_launchtype() :: %{ + @type aws_ecs_launchtype_values() :: %{ :ec2 => :ec2, :fargate => :fargate } @@ -785,34 +785,51 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype().ec2 + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype() + :"aws.ecs.launchtype" + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values().ec2 :ec2 - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype() => OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values().ec2} + %{:"aws.ecs.launchtype" => :ec2} + + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values(:custom_value) :custom_value ### Erlang ```erlang - ?'aws_ecs_launchtype.ec2'. + ?AWS_ECS_LAUNCHTYPE. + 'aws.ecs.launchtype' + + \#{?AWS_ECS_LAUNCHTYPE => ?AWS_ECS_LAUNCHTYPE_VALUES.ec2}. + \#{'aws.ecs.launchtype' => ec2} + + ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'. ec2 - ?aws_ecs_launchtype(custom_value). + ?AWS_ECS_LAUNCHTYPE_VALUES(custom_value). custom_value ``` """ - @spec aws_ecs_launchtype() :: aws_ecs_launchtype() - def aws_ecs_launchtype() do + @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" + def aws_ecs_launchtype do + :"aws.ecs.launchtype" + end + + @spec aws_ecs_launchtype_values() :: aws_ecs_launchtype_values() + def aws_ecs_launchtype_values() do %{ :ec2 => :ec2, :fargate => :fargate } end - @spec aws_ecs_launchtype(atom() | String.t()) :: atom() | String.t() - def aws_ecs_launchtype(custom_value) do + @spec aws_ecs_launchtype_values(atom() | String.t()) :: atom() | String.t() + def aws_ecs_launchtype_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index 81dc6e7b..e0d131de 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -108,7 +108,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do * `:tencent_cloud_eks` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud Elastic Kubernetes Service (EKS) * `:tencent_cloud_scf` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud Serverless Cloud Function (SCF) """ - @type cloud_platform() :: %{ + @type cloud_platform_values() :: %{ :alibaba_cloud_ecs => :alibaba_cloud_ecs, :alibaba_cloud_fc => :alibaba_cloud_fc, :alibaba_cloud_openshift => :alibaba_cloud_openshift, @@ -151,26 +151,43 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform().alibaba_cloud_ecs + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform() + :"cloud.platform" + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values().alibaba_cloud_ecs :alibaba_cloud_ecs - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform() => OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values().alibaba_cloud_ecs} + %{:"cloud.platform" => :alibaba_cloud_ecs} + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values(:custom_value) :custom_value ### Erlang ```erlang - ?'cloud_platform.alibaba_cloud_ecs'. + ?CLOUD_PLATFORM. + 'cloud.platform' + + \#{?CLOUD_PLATFORM => ?CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs}. + \#{'cloud.platform' => alibaba_cloud_ecs} + + ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'. alibaba_cloud_ecs - ?cloud_platform(custom_value). + ?CLOUD_PLATFORM_VALUES(custom_value). custom_value ``` """ - @spec cloud_platform() :: cloud_platform() - def cloud_platform() do + @spec cloud_platform :: :"cloud.platform" + def cloud_platform do + :"cloud.platform" + end + + @spec cloud_platform_values() :: cloud_platform_values() + def cloud_platform_values() do %{ :alibaba_cloud_ecs => :alibaba_cloud_ecs, :alibaba_cloud_fc => :alibaba_cloud_fc, @@ -203,8 +220,8 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do } end - @spec cloud_platform(atom() | String.t()) :: atom() | String.t() - def cloud_platform(custom_value) do + @spec cloud_platform_values(atom() | String.t()) :: atom() | String.t() + def cloud_platform_values(custom_value) do custom_value end @@ -221,7 +238,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do * `:ibm_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM Cloud * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud """ - @type cloud_provider() :: %{ + @type cloud_provider_values() :: %{ :alibaba_cloud => :alibaba_cloud, :aws => :aws, :azure => :azure, @@ -239,26 +256,43 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider().alibaba_cloud + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider() + :"cloud.provider" + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values().alibaba_cloud :alibaba_cloud - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider() => OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values().alibaba_cloud} + %{:"cloud.provider" => :alibaba_cloud} + + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values(:custom_value) :custom_value ### Erlang ```erlang - ?'cloud_provider.alibaba_cloud'. + ?CLOUD_PROVIDER. + 'cloud.provider' + + \#{?CLOUD_PROVIDER => ?CLOUD_PROVIDER_VALUES.alibaba_cloud}. + \#{'cloud.provider' => alibaba_cloud} + + ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'. alibaba_cloud - ?cloud_provider(custom_value). + ?CLOUD_PROVIDER_VALUES(custom_value). custom_value ``` """ - @spec cloud_provider() :: cloud_provider() - def cloud_provider() do + @spec cloud_provider :: :"cloud.provider" + def cloud_provider do + :"cloud.provider" + end + + @spec cloud_provider_values() :: cloud_provider_values() + def cloud_provider_values() do %{ :alibaba_cloud => :alibaba_cloud, :aws => :aws, @@ -270,8 +304,8 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do } end - @spec cloud_provider(atom() | String.t()) :: atom() | String.t() - def cloud_provider(custom_value) do + @spec cloud_provider_values(atom() | String.t()) :: atom() | String.t() + def cloud_provider_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex index 34aefaa1..f1bfa672 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -115,7 +115,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When CPU is used by the system (host OS) * `:kernel` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). """ - @type container_cpu_state() :: %{ + @type container_cpu_state_values() :: %{ :user => :user, :system => :system, :kernel => :kernel @@ -133,26 +133,43 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state().user + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() + :"container.cpu.state" + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user :user - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() => OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user} + %{:"container.cpu.state" => :user} + + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'container_cpu_state.user'. + ?CONTAINER_CPU_STATE. + 'container.cpu.state' + + \#{?CONTAINER_CPU_STATE => ?CONTAINER_CPU_STATE_VALUES.user}. + \#{'container.cpu.state' => user} + + ?'CONTAINER_CPU_STATE_VALUES.user'. user - ?container_cpu_state(custom_value). + ?CONTAINER_CPU_STATE_VALUES(custom_value). custom_value ``` """ - @spec container_cpu_state() :: container_cpu_state() - def container_cpu_state() do + @spec container_cpu_state :: :"container.cpu.state" + def container_cpu_state do + :"container.cpu.state" + end + + @spec container_cpu_state_values() :: container_cpu_state_values() + def container_cpu_state_values() do %{ :user => :user, :system => :system, @@ -160,8 +177,8 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do } end - @spec container_cpu_state(atom() | String.t()) :: atom() | String.t() - def container_cpu_state(custom_value) do + @spec container_cpu_state_values(atom() | String.t()) :: atom() | String.t() + def container_cpu_state_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index 25fe1645..053cf1e9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -21,7 +21,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:serial` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:local_serial` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type db_cassandra_consistencylevel() :: %{ + @type db_cassandra_consistencylevel_values() :: %{ :all => :all, :each_quorum => :each_quorum, :quorum => :quorum, @@ -43,26 +43,43 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel().all + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel() + :"db.cassandra.consistency_level" + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values().all :all - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values().all} + %{:"db.cassandra.consistency_level" => :all} + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values(:custom_value) :custom_value ### Erlang ```erlang - ?'db_cassandra_consistencylevel.all'. + ?DB_CASSANDRA_CONSISTENCYLEVEL. + 'db.cassandra.consistency_level' + + \#{?DB_CASSANDRA_CONSISTENCYLEVEL => ?DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all}. + \#{'db.cassandra.consistency_level' => all} + + ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'. all - ?db_cassandra_consistencylevel(custom_value). + ?DB_CASSANDRA_CONSISTENCYLEVEL_VALUES(custom_value). custom_value ``` """ - @spec db_cassandra_consistencylevel() :: db_cassandra_consistencylevel() - def db_cassandra_consistencylevel() do + @spec db_cassandra_consistencylevel :: :"db.cassandra.consistency_level" + def db_cassandra_consistencylevel do + :"db.cassandra.consistency_level" + end + + @spec db_cassandra_consistencylevel_values() :: db_cassandra_consistencylevel_values() + def db_cassandra_consistencylevel_values() do %{ :all => :all, :each_quorum => :each_quorum, @@ -78,8 +95,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_cassandra_consistencylevel(atom() | String.t()) :: atom() | String.t() - def db_cassandra_consistencylevel(custom_value) do + @spec db_cassandra_consistencylevel_values(atom() | String.t()) :: atom() | String.t() + def db_cassandra_consistencylevel_values(custom_value) do custom_value end @@ -291,7 +308,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type db_client_connections_state() :: %{ + @type db_client_connections_state_values() :: %{ :idle => :idle, :used => :used } @@ -308,34 +325,51 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state().idle + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() + :"db.client.connections.state" + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle :idle - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle} + %{:"db.client.connections.state" => :idle} + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'db_client_connections_state.idle'. + ?DB_CLIENT_CONNECTIONS_STATE. + 'db.client.connections.state' + + \#{?DB_CLIENT_CONNECTIONS_STATE => ?DB_CLIENT_CONNECTIONS_STATE_VALUES.idle}. + \#{'db.client.connections.state' => idle} + + ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'. idle - ?db_client_connections_state(custom_value). + ?DB_CLIENT_CONNECTIONS_STATE_VALUES(custom_value). custom_value ``` """ - @spec db_client_connections_state() :: db_client_connections_state() - def db_client_connections_state() do + @spec db_client_connections_state :: :"db.client.connections.state" + def db_client_connections_state do + :"db.client.connections.state" + end + + @spec db_client_connections_state_values() :: db_client_connections_state_values() + def db_client_connections_state_values() do %{ :idle => :idle, :used => :used } end - @spec db_client_connections_state(atom() | String.t()) :: atom() | String.t() - def db_client_connections_state(custom_value) do + @spec db_client_connections_state_values(atom() | String.t()) :: atom() | String.t() + def db_client_connections_state_values(custom_value) do custom_value end @@ -424,7 +458,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:gateway` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Gateway (HTTP) connections mode * `:direct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Direct connection. """ - @type db_cosmosdb_connectionmode() :: %{ + @type db_cosmosdb_connectionmode_values() :: %{ :gateway => :gateway, :direct => :direct } @@ -436,34 +470,51 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode().gateway + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode() + :"db.cosmosdb.connection_mode" + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values().gateway :gateway - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values().gateway} + %{:"db.cosmosdb.connection_mode" => :gateway} + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values(:custom_value) :custom_value ### Erlang ```erlang - ?'db_cosmosdb_connectionmode.gateway'. + ?DB_COSMOSDB_CONNECTIONMODE. + 'db.cosmosdb.connection_mode' + + \#{?DB_COSMOSDB_CONNECTIONMODE => ?DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway}. + \#{'db.cosmosdb.connection_mode' => gateway} + + ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'. gateway - ?db_cosmosdb_connectionmode(custom_value). + ?DB_COSMOSDB_CONNECTIONMODE_VALUES(custom_value). custom_value ``` """ - @spec db_cosmosdb_connectionmode() :: db_cosmosdb_connectionmode() - def db_cosmosdb_connectionmode() do + @spec db_cosmosdb_connectionmode :: :"db.cosmosdb.connection_mode" + def db_cosmosdb_connectionmode do + :"db.cosmosdb.connection_mode" + end + + @spec db_cosmosdb_connectionmode_values() :: db_cosmosdb_connectionmode_values() + def db_cosmosdb_connectionmode_values() do %{ :gateway => :gateway, :direct => :direct } end - @spec db_cosmosdb_connectionmode(atom() | String.t()) :: atom() | String.t() - def db_cosmosdb_connectionmode(custom_value) do + @spec db_cosmosdb_connectionmode_values(atom() | String.t()) :: atom() | String.t() + def db_cosmosdb_connectionmode_values(custom_value) do custom_value end @@ -495,7 +546,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:query_plan` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:execute_javascript` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type db_cosmosdb_operationtype() :: %{ + @type db_cosmosdb_operationtype_values() :: %{ :invalid => :Invalid, :create => :Create, :patch => :Patch, @@ -520,26 +571,43 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype().invalid + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype() + :"db.cosmosdb.operation_type" + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values().invalid :Invalid - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values().invalid} + %{:"db.cosmosdb.operation_type" => :Invalid} + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values(:custom_value) :custom_value ### Erlang ```erlang - ?'db_cosmosdb_operationtype.invalid'. + ?DB_COSMOSDB_OPERATIONTYPE. + 'db.cosmosdb.operation_type' + + \#{?DB_COSMOSDB_OPERATIONTYPE => ?DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid}. + \#{'db.cosmosdb.operation_type' => Invalid} + + ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'. Invalid - ?db_cosmosdb_operationtype(custom_value). + ?DB_COSMOSDB_OPERATIONTYPE_VALUES(custom_value). custom_value ``` """ - @spec db_cosmosdb_operationtype() :: db_cosmosdb_operationtype() - def db_cosmosdb_operationtype() do + @spec db_cosmosdb_operationtype :: :"db.cosmosdb.operation_type" + def db_cosmosdb_operationtype do + :"db.cosmosdb.operation_type" + end + + @spec db_cosmosdb_operationtype_values() :: db_cosmosdb_operationtype_values() + def db_cosmosdb_operationtype_values() do %{ :invalid => :Invalid, :create => :Create, @@ -559,8 +627,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_cosmosdb_operationtype(atom() | String.t()) :: atom() | String.t() - def db_cosmosdb_operationtype(custom_value) do + @spec db_cosmosdb_operationtype_values(atom() | String.t()) :: atom() | String.t() + def db_cosmosdb_operationtype_values(custom_value) do custom_value end @@ -1066,7 +1134,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:spanner` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cloud Spanner * `:trino` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Trino """ - @type db_system() :: %{ + @type db_system_values() :: %{ :other_sql => :other_sql, :mssql => :mssql, :mssqlcompact => :mssqlcompact, @@ -1132,26 +1200,43 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().other_sql + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system() + :"db.system" + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().other_sql :other_sql - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_system() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().other_sql} + %{:"db.system" => :other_sql} + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values(:custom_value) :custom_value ### Erlang ```erlang - ?'db_system.other_sql'. + ?DB_SYSTEM. + 'db.system' + + \#{?DB_SYSTEM => ?DB_SYSTEM_VALUES.other_sql}. + \#{'db.system' => other_sql} + + ?'DB_SYSTEM_VALUES.other_sql'. other_sql - ?db_system(custom_value). + ?DB_SYSTEM_VALUES(custom_value). custom_value ``` """ - @spec db_system() :: db_system() - def db_system() do + @spec db_system :: :"db.system" + def db_system do + :"db.system" + end + + @spec db_system_values() :: db_system_values() + def db_system_values() do %{ :other_sql => :other_sql, :mssql => :mssql, @@ -1208,8 +1293,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_system(atom() | String.t()) :: atom() | String.t() - def db_system(custom_value) do + @spec db_system_values(atom() | String.t()) :: atom() | String.t() + def db_system_values(custom_value) do custom_value end @@ -1236,23 +1321,28 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type state() :: %{ + @type state_values() :: %{ :idle => :idle, :used => :used } @deprecated """ Replaced by `db.client.connections.state`. """ - @spec state() :: state() - def state() do + @spec state :: :state + def state do + :state + end + + @spec state_values() :: state_values() + def state_values() do %{ :idle => :idle, :used => :used } end - @spec state(atom() | String.t()) :: atom() | String.t() - def state(custom_value) do + @spec state_values(atom() | String.t()) :: atom() | String.t() + def state_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex index 054d0451..da473868 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex @@ -11,7 +11,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do * `:read` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:write` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type disk_io_direction() :: %{ + @type disk_io_direction_values() :: %{ :read => :read, :write => :write } @@ -28,34 +28,51 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction().read + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() + :"disk.io.direction" + + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read :read - iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() => OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read} + %{:"disk.io.direction" => :read} + + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values(:custom_value) :custom_value ### Erlang ```erlang - ?'disk_io_direction.read'. + ?DISK_IO_DIRECTION. + 'disk.io.direction' + + \#{?DISK_IO_DIRECTION => ?DISK_IO_DIRECTION_VALUES.read}. + \#{'disk.io.direction' => read} + + ?'DISK_IO_DIRECTION_VALUES.read'. read - ?disk_io_direction(custom_value). + ?DISK_IO_DIRECTION_VALUES(custom_value). custom_value ``` """ - @spec disk_io_direction() :: disk_io_direction() - def disk_io_direction() do + @spec disk_io_direction :: :"disk.io.direction" + def disk_io_direction do + :"disk.io.direction" + end + + @spec disk_io_direction_values() :: disk_io_direction_values() + def disk_io_direction_values() do %{ :read => :read, :write => :write } end - @spec disk_io_direction(atom() | String.t()) :: atom() | String.t() - def disk_io_direction(custom_value) do + @spec disk_io_direction_values(atom() | String.t()) :: atom() | String.t() + def disk_io_direction_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index 6d8c43e8..fe469477 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -139,7 +139,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do * `:edit` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When an object is modified. * `:delete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When an object is deleted. """ - @type faas_document_operation() :: %{ + @type faas_document_operation_values() :: %{ :insert => :insert, :edit => :edit, :delete => :delete @@ -152,26 +152,43 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation().insert + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation() + :"faas.document.operation" + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values().insert :insert - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values().insert} + %{:"faas.document.operation" => :insert} + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values(:custom_value) :custom_value ### Erlang ```erlang - ?'faas_document_operation.insert'. + ?FAAS_DOCUMENT_OPERATION. + 'faas.document.operation' + + \#{?FAAS_DOCUMENT_OPERATION => ?FAAS_DOCUMENT_OPERATION_VALUES.insert}. + \#{'faas.document.operation' => insert} + + ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'. insert - ?faas_document_operation(custom_value). + ?FAAS_DOCUMENT_OPERATION_VALUES(custom_value). custom_value ``` """ - @spec faas_document_operation() :: faas_document_operation() - def faas_document_operation() do + @spec faas_document_operation :: :"faas.document.operation" + def faas_document_operation do + :"faas.document.operation" + end + + @spec faas_document_operation_values() :: faas_document_operation_values() + def faas_document_operation_values() do %{ :insert => :insert, :edit => :edit, @@ -179,8 +196,8 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do } end - @spec faas_document_operation(atom() | String.t()) :: atom() | String.t() - def faas_document_operation(custom_value) do + @spec faas_document_operation_values(atom() | String.t()) :: atom() | String.t() + def faas_document_operation_values(custom_value) do custom_value end @@ -335,7 +352,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do * `:gcp` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Platform * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud """ - @type faas_invokedprovider() :: %{ + @type faas_invokedprovider_values() :: %{ :alibaba_cloud => :alibaba_cloud, :aws => :aws, :azure => :azure, @@ -355,26 +372,43 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider().alibaba_cloud + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider() + :"faas.invoked_provider" + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values().alibaba_cloud :alibaba_cloud - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values().alibaba_cloud} + %{:"faas.invoked_provider" => :alibaba_cloud} + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values(:custom_value) :custom_value ### Erlang ```erlang - ?'faas_invokedprovider.alibaba_cloud'. + ?FAAS_INVOKEDPROVIDER. + 'faas.invoked_provider' + + \#{?FAAS_INVOKEDPROVIDER => ?FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud}. + \#{'faas.invoked_provider' => alibaba_cloud} + + ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'. alibaba_cloud - ?faas_invokedprovider(custom_value). + ?FAAS_INVOKEDPROVIDER_VALUES(custom_value). custom_value ``` """ - @spec faas_invokedprovider() :: faas_invokedprovider() - def faas_invokedprovider() do + @spec faas_invokedprovider :: :"faas.invoked_provider" + def faas_invokedprovider do + :"faas.invoked_provider" + end + + @spec faas_invokedprovider_values() :: faas_invokedprovider_values() + def faas_invokedprovider_values() do %{ :alibaba_cloud => :alibaba_cloud, :aws => :aws, @@ -384,8 +418,8 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do } end - @spec faas_invokedprovider(atom() | String.t()) :: atom() | String.t() - def faas_invokedprovider(custom_value) do + @spec faas_invokedprovider_values(atom() | String.t()) :: atom() | String.t() + def faas_invokedprovider_values(custom_value) do custom_value end @@ -559,7 +593,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do * `:timer` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - A function is scheduled to be executed regularly * `:other` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - If none of the others apply """ - @type faas_trigger() :: %{ + @type faas_trigger_values() :: %{ :datasource => :datasource, :http => :http, :pubsub => :pubsub, @@ -575,26 +609,43 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger().datasource + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger() + :"faas.trigger" + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values().datasource :datasource - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values().datasource} + %{:"faas.trigger" => :datasource} + + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values(:custom_value) :custom_value ### Erlang ```erlang - ?'faas_trigger.datasource'. + ?FAAS_TRIGGER. + 'faas.trigger' + + \#{?FAAS_TRIGGER => ?FAAS_TRIGGER_VALUES.datasource}. + \#{'faas.trigger' => datasource} + + ?'FAAS_TRIGGER_VALUES.datasource'. datasource - ?faas_trigger(custom_value). + ?FAAS_TRIGGER_VALUES(custom_value). custom_value ``` """ - @spec faas_trigger() :: faas_trigger() - def faas_trigger() do + @spec faas_trigger :: :"faas.trigger" + def faas_trigger do + :"faas.trigger" + end + + @spec faas_trigger_values() :: faas_trigger_values() + def faas_trigger_values() do %{ :datasource => :datasource, :http => :http, @@ -604,8 +655,8 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do } end - @spec faas_trigger(atom() | String.t()) :: atom() | String.t() - def faas_trigger(custom_value) do + @spec faas_trigger_values(atom() | String.t()) :: atom() | String.t() + def faas_trigger_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex index 189c1de9..ed2cf816 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Enum Values * `:openai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenAI """ - @type genai_system() :: %{ + @type genai_system_values() :: %{ :openai => :openai } @doc """ @@ -324,33 +324,50 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system().openai + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() + :"gen_ai.system" + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai :openai - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai} + %{:"gen_ai.system" => :openai} + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values(:custom_value) :custom_value ### Erlang ```erlang - ?'genai_system.openai'. + ?GENAI_SYSTEM. + 'gen_ai.system' + + \#{?GENAI_SYSTEM => ?GENAI_SYSTEM_VALUES.openai}. + \#{'gen_ai.system' => openai} + + ?'GENAI_SYSTEM_VALUES.openai'. openai - ?genai_system(custom_value). + ?GENAI_SYSTEM_VALUES(custom_value). custom_value ``` """ - @spec genai_system() :: genai_system() - def genai_system() do + @spec genai_system :: :"gen_ai.system" + def genai_system do + :"gen_ai.system" + end + + @spec genai_system_values() :: genai_system_values() + def genai_system_values() do %{ :openai => :openai } end - @spec genai_system(atom() | String.t()) :: atom() | String.t() - def genai_system(custom_value) do + @spec genai_system_values(atom() | String.t()) :: atom() | String.t() + def genai_system_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex index 5edc6398..1d506bb6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex @@ -79,7 +79,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do * `:mutation` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GraphQL mutation * `:subscription` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - GraphQL subscription """ - @type graphql_operation_type() :: %{ + @type graphql_operation_type_values() :: %{ :query => :query, :mutation => :mutation, :subscription => :subscription @@ -97,26 +97,43 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type().query + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type() + :"graphql.operation.type" + + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query :query - iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type() => OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query} + %{:"graphql.operation.type" => :query} + + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'graphql_operation_type.query'. + ?GRAPHQL_OPERATION_TYPE. + 'graphql.operation.type' + + \#{?GRAPHQL_OPERATION_TYPE => ?GRAPHQL_OPERATION_TYPE_VALUES.query}. + \#{'graphql.operation.type' => query} + + ?'GRAPHQL_OPERATION_TYPE_VALUES.query'. query - ?graphql_operation_type(custom_value). + ?GRAPHQL_OPERATION_TYPE_VALUES(custom_value). custom_value ``` """ - @spec graphql_operation_type() :: graphql_operation_type() - def graphql_operation_type() do + @spec graphql_operation_type :: :"graphql.operation.type" + def graphql_operation_type do + :"graphql.operation.type" + end + + @spec graphql_operation_type_values() :: graphql_operation_type_values() + def graphql_operation_type_values() do %{ :query => :query, :mutation => :mutation, @@ -124,8 +141,8 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do } end - @spec graphql_operation_type(atom() | String.t()) :: atom() | String.t() - def graphql_operation_type(custom_value) do + @spec graphql_operation_type_values(atom() | String.t()) :: atom() | String.t() + def graphql_operation_type_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex index d0a53ac2..ebfc060b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do * `:s390x` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM z/Architecture * `:x86` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 32-bit x86 """ - @type host_arch() :: %{ + @type host_arch_values() :: %{ :amd64 => :amd64, :arm32 => :arm32, :arm64 => :arm64, @@ -37,26 +37,43 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch().amd64 + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch() + :"host.arch" + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values().amd64 :amd64 - iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch() => OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values().amd64} + %{:"host.arch" => :amd64} + + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values(:custom_value) :custom_value ### Erlang ```erlang - ?'host_arch.amd64'. + ?HOST_ARCH. + 'host.arch' + + \#{?HOST_ARCH => ?HOST_ARCH_VALUES.amd64}. + \#{'host.arch' => amd64} + + ?'HOST_ARCH_VALUES.amd64'. amd64 - ?host_arch(custom_value). + ?HOST_ARCH_VALUES(custom_value). custom_value ``` """ - @spec host_arch() :: host_arch() - def host_arch() do + @spec host_arch :: :"host.arch" + def host_arch do + :"host.arch" + end + + @spec host_arch_values() :: host_arch_values() + def host_arch_values() do %{ :amd64 => :amd64, :arm32 => :arm32, @@ -69,8 +86,8 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do } end - @spec host_arch(atom() | String.t()) :: atom() | String.t() - def host_arch(custom_value) do + @spec host_arch_values(atom() | String.t()) :: atom() | String.t() + def host_arch_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex index 4060c639..28361cad 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -19,7 +19,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do * `:active` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - active state. * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - idle state. """ - @type http_connection_state() :: %{ + @type http_connection_state_values() :: %{ :active => :active, :idle => :idle } @@ -36,34 +36,51 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state().active + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state() + :"http.connection.state" + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active :active - iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state() => OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active} + %{:"http.connection.state" => :active} + + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'http_connection_state.active'. + ?HTTP_CONNECTION_STATE. + 'http.connection.state' + + \#{?HTTP_CONNECTION_STATE => ?HTTP_CONNECTION_STATE_VALUES.active}. + \#{'http.connection.state' => active} + + ?'HTTP_CONNECTION_STATE_VALUES.active'. active - ?http_connection_state(custom_value). + ?HTTP_CONNECTION_STATE_VALUES(custom_value). custom_value ``` """ - @spec http_connection_state() :: http_connection_state() - def http_connection_state() do + @spec http_connection_state :: :"http.connection.state" + def http_connection_state do + :"http.connection.state" + end + + @spec http_connection_state_values() :: http_connection_state_values() + def http_connection_state_values() do %{ :active => :active, :idle => :idle } end - @spec http_connection_state(atom() | String.t()) :: atom() | String.t() - def http_connection_state(custom_value) do + @spec http_connection_state_values(atom() | String.t()) :: atom() | String.t() + def http_connection_state_values(custom_value) do custom_value end @@ -78,7 +95,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do * `:spdy` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SPDY protocol. * `:quic` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - QUIC protocol. """ - @type http_flavor() :: %{ + @type http_flavor_values() :: %{ :http_1_0 => :"1.0", :http_1_1 => :"1.1", :http_2_0 => :"2.0", @@ -89,8 +106,13 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @deprecated """ Replaced by `network.protocol.name`. """ - @spec http_flavor() :: http_flavor() - def http_flavor() do + @spec http_flavor :: :"http.flavor" + def http_flavor do + :"http.flavor" + end + + @spec http_flavor_values() :: http_flavor_values() + def http_flavor_values() do %{ :http_1_0 => :"1.0", :http_1_1 => :"1.1", @@ -101,8 +123,8 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do } end - @spec http_flavor(atom() | String.t()) :: atom() | String.t() - def http_flavor(custom_value) do + @spec http_flavor_values(atom() | String.t()) :: atom() | String.t() + def http_flavor_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex index e0e59071..6ba9c070 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -144,7 +144,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do * `:stdout` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Logs from stdout stream * `:stderr` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Events from stderr stream """ - @type log_iostream() :: %{ + @type log_iostream_values() :: %{ :stdout => :stdout, :stderr => :stderr } @@ -157,34 +157,51 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream().stdout + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream() + :"log.iostream" + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values().stdout :stdout - iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream() => OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values().stdout} + %{:"log.iostream" => :stdout} + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values(:custom_value) :custom_value ### Erlang ```erlang - ?'log_iostream.stdout'. + ?LOG_IOSTREAM. + 'log.iostream' + + \#{?LOG_IOSTREAM => ?LOG_IOSTREAM_VALUES.stdout}. + \#{'log.iostream' => stdout} + + ?'LOG_IOSTREAM_VALUES.stdout'. stdout - ?log_iostream(custom_value). + ?LOG_IOSTREAM_VALUES(custom_value). custom_value ``` """ - @spec log_iostream() :: log_iostream() - def log_iostream() do + @spec log_iostream :: :"log.iostream" + def log_iostream do + :"log.iostream" + end + + @spec log_iostream_values() :: log_iostream_values() + def log_iostream_values() do %{ :stdout => :stdout, :stderr => :stderr } end - @spec log_iostream(atom() | String.t()) :: atom() | String.t() - def log_iostream(custom_value) do + @spec log_iostream_values(atom() | String.t()) :: atom() | String.t() + def log_iostream_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index 898e4682..ab04697e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -840,7 +840,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:settle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are settled. """ - @type messaging_operation_type() :: %{ + @type messaging_operation_type_values() :: %{ :publish => :publish, :create => :create, :receive => :receive, @@ -859,26 +859,43 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type().publish + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type() + :"messaging.operation.type" + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values().publish :publish - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values().publish} + %{:"messaging.operation.type" => :publish} + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'messaging_operation_type.publish'. + ?MESSAGING_OPERATION_TYPE. + 'messaging.operation.type' + + \#{?MESSAGING_OPERATION_TYPE => ?MESSAGING_OPERATION_TYPE_VALUES.publish}. + \#{'messaging.operation.type' => publish} + + ?'MESSAGING_OPERATION_TYPE_VALUES.publish'. publish - ?messaging_operation_type(custom_value). + ?MESSAGING_OPERATION_TYPE_VALUES(custom_value). custom_value ``` """ - @spec messaging_operation_type() :: messaging_operation_type() - def messaging_operation_type() do + @spec messaging_operation_type :: :"messaging.operation.type" + def messaging_operation_type do + :"messaging.operation.type" + end + + @spec messaging_operation_type_values() :: messaging_operation_type_values() + def messaging_operation_type_values() do %{ :publish => :publish, :create => :create, @@ -888,8 +905,8 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_operation_type(atom() | String.t()) :: atom() | String.t() - def messaging_operation_type(custom_value) do + @spec messaging_operation_type_values(atom() | String.t()) :: atom() | String.t() + def messaging_operation_type_values(custom_value) do custom_value end @@ -1000,7 +1017,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:clustering` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Clustering consumption model * `:broadcasting` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Broadcasting consumption model """ - @type messaging_rocketmq_consumptionmodel() :: %{ + @type messaging_rocketmq_consumptionmodel_values() :: %{ :clustering => :clustering, :broadcasting => :broadcasting } @@ -1013,34 +1030,52 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel().clustering + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel() + :"messaging.rocketmq.consumption_model" + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values().clustering :clustering - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values().clustering} + %{:"messaging.rocketmq.consumption_model" => :clustering} + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values(:custom_value) :custom_value ### Erlang ```erlang - ?'messaging_rocketmq_consumptionmodel.clustering'. + ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL. + 'messaging.rocketmq.consumption_model' + + \#{?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL => ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering}. + \#{'messaging.rocketmq.consumption_model' => clustering} + + ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'. clustering - ?messaging_rocketmq_consumptionmodel(custom_value). + ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES(custom_value). custom_value ``` """ - @spec messaging_rocketmq_consumptionmodel() :: messaging_rocketmq_consumptionmodel() - def messaging_rocketmq_consumptionmodel() do + @spec messaging_rocketmq_consumptionmodel :: :"messaging.rocketmq.consumption_model" + def messaging_rocketmq_consumptionmodel do + :"messaging.rocketmq.consumption_model" + end + + @spec messaging_rocketmq_consumptionmodel_values() :: + messaging_rocketmq_consumptionmodel_values() + def messaging_rocketmq_consumptionmodel_values() do %{ :clustering => :clustering, :broadcasting => :broadcasting } end - @spec messaging_rocketmq_consumptionmodel(atom() | String.t()) :: atom() | String.t() - def messaging_rocketmq_consumptionmodel(custom_value) do + @spec messaging_rocketmq_consumptionmodel_values(atom() | String.t()) :: atom() | String.t() + def messaging_rocketmq_consumptionmodel_values(custom_value) do custom_value end @@ -1221,7 +1256,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:delay` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Delay message * `:transaction` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Transaction message """ - @type messaging_rocketmq_message_type() :: %{ + @type messaging_rocketmq_message_type_values() :: %{ :normal => :normal, :fifo => :fifo, :delay => :delay, @@ -1236,26 +1271,43 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type().normal + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type() + :"messaging.rocketmq.message.type" + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values().normal :normal - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values().normal} + %{:"messaging.rocketmq.message.type" => :normal} + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'messaging_rocketmq_message_type.normal'. + ?MESSAGING_ROCKETMQ_MESSAGE_TYPE. + 'messaging.rocketmq.message.type' + + \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal}. + \#{'messaging.rocketmq.message.type' => normal} + + ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'. normal - ?messaging_rocketmq_message_type(custom_value). + ?MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES(custom_value). custom_value ``` """ - @spec messaging_rocketmq_message_type() :: messaging_rocketmq_message_type() - def messaging_rocketmq_message_type() do + @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message.type" + def messaging_rocketmq_message_type do + :"messaging.rocketmq.message.type" + end + + @spec messaging_rocketmq_message_type_values() :: messaging_rocketmq_message_type_values() + def messaging_rocketmq_message_type_values() do %{ :normal => :normal, :fifo => :fifo, @@ -1264,8 +1316,8 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_rocketmq_message_type(atom() | String.t()) :: atom() | String.t() - def messaging_rocketmq_message_type(custom_value) do + @spec messaging_rocketmq_message_type_values(atom() | String.t()) :: atom() | String.t() + def messaging_rocketmq_message_type_values(custom_value) do custom_value end @@ -1346,7 +1398,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:dead_letter` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is sent to dead letter queue * `:defer` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is deferred """ - @type messaging_servicebus_dispositionstatus() :: %{ + @type messaging_servicebus_dispositionstatus_values() :: %{ :complete => :complete, :abandon => :abandon, :dead_letter => :dead_letter, @@ -1361,26 +1413,44 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus().complete + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus() + :"messaging.servicebus.disposition_status" + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values().complete :complete - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values().complete} + %{:"messaging.servicebus.disposition_status" => :complete} + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values(:custom_value) :custom_value ### Erlang ```erlang - ?'messaging_servicebus_dispositionstatus.complete'. + ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS. + 'messaging.servicebus.disposition_status' + + \#{?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS => ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete}. + \#{'messaging.servicebus.disposition_status' => complete} + + ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'. complete - ?messaging_servicebus_dispositionstatus(custom_value). + ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES(custom_value). custom_value ``` """ - @spec messaging_servicebus_dispositionstatus() :: messaging_servicebus_dispositionstatus() - def messaging_servicebus_dispositionstatus() do + @spec messaging_servicebus_dispositionstatus :: :"messaging.servicebus.disposition_status" + def messaging_servicebus_dispositionstatus do + :"messaging.servicebus.disposition_status" + end + + @spec messaging_servicebus_dispositionstatus_values() :: + messaging_servicebus_dispositionstatus_values() + def messaging_servicebus_dispositionstatus_values() do %{ :complete => :complete, :abandon => :abandon, @@ -1389,8 +1459,8 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_servicebus_dispositionstatus(atom() | String.t()) :: atom() | String.t() - def messaging_servicebus_dispositionstatus(custom_value) do + @spec messaging_servicebus_dispositionstatus_values(atom() | String.t()) :: atom() | String.t() + def messaging_servicebus_dispositionstatus_values(custom_value) do custom_value end @@ -1476,7 +1546,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:rabbitmq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - RabbitMQ * `:rocketmq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache RocketMQ """ - @type messaging_system() :: %{ + @type messaging_system_values() :: %{ :activemq => :activemq, :aws_sqs => :aws_sqs, :eventgrid => :eventgrid, @@ -1500,26 +1570,43 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system().activemq + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system() + :"messaging.system" + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values().activemq :activemq - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values().activemq} + %{:"messaging.system" => :activemq} + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values(:custom_value) :custom_value ### Erlang ```erlang - ?'messaging_system.activemq'. + ?MESSAGING_SYSTEM. + 'messaging.system' + + \#{?MESSAGING_SYSTEM => ?MESSAGING_SYSTEM_VALUES.activemq}. + \#{'messaging.system' => activemq} + + ?'MESSAGING_SYSTEM_VALUES.activemq'. activemq - ?messaging_system(custom_value). + ?MESSAGING_SYSTEM_VALUES(custom_value). custom_value ``` """ - @spec messaging_system() :: messaging_system() - def messaging_system() do + @spec messaging_system :: :"messaging.system" + def messaging_system do + :"messaging.system" + end + + @spec messaging_system_values() :: messaging_system_values() + def messaging_system_values() do %{ :activemq => :activemq, :aws_sqs => :aws_sqs, @@ -1534,8 +1621,8 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_system(atom() | String.t()) :: atom() | String.t() - def messaging_system(custom_value) do + @spec messaging_system_values(atom() | String.t()) :: atom() | String.t() + def messaging_system_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex index c42286e3..de46a353 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex @@ -76,7 +76,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do * `:inet6` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IPv6 address * `:unix` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Unix domain socket path """ - @type net_sock_family() :: %{ + @type net_sock_family_values() :: %{ :inet => :inet, :inet6 => :inet6, :unix => :unix @@ -84,8 +84,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do @deprecated """ Split to `network.transport` and `network.type`. """ - @spec net_sock_family() :: net_sock_family() - def net_sock_family() do + @spec net_sock_family :: :"net.sock.family" + def net_sock_family do + :"net.sock.family" + end + + @spec net_sock_family_values() :: net_sock_family_values() + def net_sock_family_values() do %{ :inet => :inet, :inet6 => :inet6, @@ -93,8 +98,8 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec net_sock_family(atom() | String.t()) :: atom() | String.t() - def net_sock_family(custom_value) do + @spec net_sock_family_values(atom() | String.t()) :: atom() | String.t() + def net_sock_family_values(custom_value) do custom_value end @@ -148,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do * `:inproc` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - In-process communication. * `:other` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Something else (non IP-based). """ - @type net_transport() :: %{ + @type net_transport_values() :: %{ :ip_tcp => :ip_tcp, :ip_udp => :ip_udp, :pipe => :pipe, @@ -158,8 +163,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do @deprecated """ Replaced by `network.transport`. """ - @spec net_transport() :: net_transport() - def net_transport() do + @spec net_transport :: :"net.transport" + def net_transport do + :"net.transport" + end + + @spec net_transport_values() :: net_transport_values() + def net_transport_values() do %{ :ip_tcp => :ip_tcp, :ip_udp => :ip_udp, @@ -169,8 +179,8 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec net_transport(atom() | String.t()) :: atom() | String.t() - def net_transport(custom_value) do + @spec net_transport_values(atom() | String.t()) :: atom() | String.t() + def net_transport_values(custom_value) do custom_value end @@ -328,7 +338,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do * `:nrnsa` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - 5G NRNSA (New Radio Non-Standalone) * `:lte_ca` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - LTE CA """ - @type network_connection_subtype() :: %{ + @type network_connection_subtype_values() :: %{ :gprs => :gprs, :edge => :edge, :umts => :umts, @@ -364,26 +374,43 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype().gprs + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype() + :"network.connection.subtype" + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs :gprs - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs} + %{:"network.connection.subtype" => :gprs} + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values(:custom_value) :custom_value ### Erlang ```erlang - ?'network_connection_subtype.gprs'. + ?NETWORK_CONNECTION_SUBTYPE. + 'network.connection.subtype' + + \#{?NETWORK_CONNECTION_SUBTYPE => ?NETWORK_CONNECTION_SUBTYPE_VALUES.gprs}. + \#{'network.connection.subtype' => gprs} + + ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'. gprs - ?network_connection_subtype(custom_value). + ?NETWORK_CONNECTION_SUBTYPE_VALUES(custom_value). custom_value ``` """ - @spec network_connection_subtype() :: network_connection_subtype() - def network_connection_subtype() do + @spec network_connection_subtype :: :"network.connection.subtype" + def network_connection_subtype do + :"network.connection.subtype" + end + + @spec network_connection_subtype_values() :: network_connection_subtype_values() + def network_connection_subtype_values() do %{ :gprs => :gprs, :edge => :edge, @@ -409,8 +436,8 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec network_connection_subtype(atom() | String.t()) :: atom() | String.t() - def network_connection_subtype(custom_value) do + @spec network_connection_subtype_values(atom() | String.t()) :: atom() | String.t() + def network_connection_subtype_values(custom_value) do custom_value end @@ -424,7 +451,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do * `:unavailable` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:unknown` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type network_connection_type() :: %{ + @type network_connection_type_values() :: %{ :wifi => :wifi, :wired => :wired, :cell => :cell, @@ -444,26 +471,43 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type().wifi + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type() + :"network.connection.type" + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi :wifi - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi} + %{:"network.connection.type" => :wifi} + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'network_connection_type.wifi'. + ?NETWORK_CONNECTION_TYPE. + 'network.connection.type' + + \#{?NETWORK_CONNECTION_TYPE => ?NETWORK_CONNECTION_TYPE_VALUES.wifi}. + \#{'network.connection.type' => wifi} + + ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'. wifi - ?network_connection_type(custom_value). + ?NETWORK_CONNECTION_TYPE_VALUES(custom_value). custom_value ``` """ - @spec network_connection_type() :: network_connection_type() - def network_connection_type() do + @spec network_connection_type :: :"network.connection.type" + def network_connection_type do + :"network.connection.type" + end + + @spec network_connection_type_values() :: network_connection_type_values() + def network_connection_type_values() do %{ :wifi => :wifi, :wired => :wired, @@ -473,8 +517,8 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec network_connection_type(atom() | String.t()) :: atom() | String.t() - def network_connection_type(custom_value) do + @spec network_connection_type_values(atom() | String.t()) :: atom() | String.t() + def network_connection_type_values(custom_value) do custom_value end @@ -485,7 +529,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do * `:transmit` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:receive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type network_io_direction() :: %{ + @type network_io_direction_values() :: %{ :transmit => :transmit, :receive => :receive } @@ -502,34 +546,51 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction().transmit + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction() + :"network.io.direction" + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit :transmit - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit} + %{:"network.io.direction" => :transmit} + + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values(:custom_value) :custom_value ### Erlang ```erlang - ?'network_io_direction.transmit'. + ?NETWORK_IO_DIRECTION. + 'network.io.direction' + + \#{?NETWORK_IO_DIRECTION => ?NETWORK_IO_DIRECTION_VALUES.transmit}. + \#{'network.io.direction' => transmit} + + ?'NETWORK_IO_DIRECTION_VALUES.transmit'. transmit - ?network_io_direction(custom_value). + ?NETWORK_IO_DIRECTION_VALUES(custom_value). custom_value ``` """ - @spec network_io_direction() :: network_io_direction() - def network_io_direction() do + @spec network_io_direction :: :"network.io.direction" + def network_io_direction do + :"network.io.direction" + end + + @spec network_io_direction_values() :: network_io_direction_values() + def network_io_direction_values() do %{ :transmit => :transmit, :receive => :receive } end - @spec network_io_direction(atom() | String.t()) :: atom() | String.t() - def network_io_direction(custom_value) do + @spec network_io_direction_values(atom() | String.t()) :: atom() | String.t() + def network_io_direction_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index 8eb73ba1..c327ebc6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -11,7 +11,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do * `:child_of` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - The parent Span depends on the child Span in some capacity * `:follows_from` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span """ - @type opentracing_reftype() :: %{ + @type opentracing_reftype_values() :: %{ :child_of => :child_of, :follows_from => :follows_from } @@ -27,34 +27,51 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype().child_of + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype() + :"opentracing.ref_type" + + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values().child_of :child_of - iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype() => OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values().child_of} + %{:"opentracing.ref_type" => :child_of} + + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values(:custom_value) :custom_value ### Erlang ```erlang - ?'opentracing_reftype.child_of'. + ?OPENTRACING_REFTYPE. + 'opentracing.ref_type' + + \#{?OPENTRACING_REFTYPE => ?OPENTRACING_REFTYPE_VALUES.child_of}. + \#{'opentracing.ref_type' => child_of} + + ?'OPENTRACING_REFTYPE_VALUES.child_of'. child_of - ?opentracing_reftype(custom_value). + ?OPENTRACING_REFTYPE_VALUES(custom_value). custom_value ``` """ - @spec opentracing_reftype() :: opentracing_reftype() - def opentracing_reftype() do + @spec opentracing_reftype :: :"opentracing.ref_type" + def opentracing_reftype do + :"opentracing.ref_type" + end + + @spec opentracing_reftype_values() :: opentracing_reftype_values() + def opentracing_reftype_values() do %{ :child_of => :child_of, :follows_from => :follows_from } end - @spec opentracing_reftype(atom() | String.t()) :: atom() | String.t() - def opentracing_reftype(custom_value) do + @spec opentracing_reftype_values(atom() | String.t()) :: atom() | String.t() + def opentracing_reftype_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex index d58daaf4..c15e478e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -118,7 +118,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do * `:solaris` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SunOS, Oracle Solaris * `:z_os` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM z/OS """ - @type os_type() :: %{ + @type os_type_values() :: %{ :windows => :windows, :linux => :linux, :darwin => :darwin, @@ -140,26 +140,43 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type().windows + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type() + :"os.type" + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows :windows - iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.OSAttributes.os_type() => OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows} + %{:"os.type" => :windows} + + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'os_type.windows'. + ?OS_TYPE. + 'os.type' + + \#{?OS_TYPE => ?OS_TYPE_VALUES.windows}. + \#{'os.type' => windows} + + ?'OS_TYPE_VALUES.windows'. windows - ?os_type(custom_value). + ?OS_TYPE_VALUES(custom_value). custom_value ``` """ - @spec os_type() :: os_type() - def os_type() do + @spec os_type :: :"os.type" + def os_type do + :"os.type" + end + + @spec os_type_values() :: os_type_values() + def os_type_values() do %{ :windows => :windows, :linux => :linux, @@ -175,8 +192,8 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do } end - @spec os_type(atom() | String.t()) :: atom() | String.t() - def os_type(custom_value) do + @spec os_type_values(atom() | String.t()) :: atom() | String.t() + def os_type_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex index 586cc265..63e7b139 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -110,7 +110,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do * `:voluntary` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:involuntary` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type process_contextswitchtype() :: %{ + @type process_contextswitchtype_values() :: %{ :voluntary => :voluntary, :involuntary => :involuntary } @@ -122,34 +122,51 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype().voluntary + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype() + :"process.context_switch_type" + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values().voluntary :voluntary - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values().voluntary} + %{:"process.context_switch_type" => :voluntary} + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values(:custom_value) :custom_value ### Erlang ```erlang - ?'process_contextswitchtype.voluntary'. + ?PROCESS_CONTEXTSWITCHTYPE. + 'process.context_switch_type' + + \#{?PROCESS_CONTEXTSWITCHTYPE => ?PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary}. + \#{'process.context_switch_type' => voluntary} + + ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'. voluntary - ?process_contextswitchtype(custom_value). + ?PROCESS_CONTEXTSWITCHTYPE_VALUES(custom_value). custom_value ``` """ - @spec process_contextswitchtype() :: process_contextswitchtype() - def process_contextswitchtype() do + @spec process_contextswitchtype :: :"process.context_switch_type" + def process_contextswitchtype do + :"process.context_switch_type" + end + + @spec process_contextswitchtype_values() :: process_contextswitchtype_values() + def process_contextswitchtype_values() do %{ :voluntary => :voluntary, :involuntary => :involuntary } end - @spec process_contextswitchtype(atom() | String.t()) :: atom() | String.t() - def process_contextswitchtype(custom_value) do + @spec process_contextswitchtype_values(atom() | String.t()) :: atom() | String.t() + def process_contextswitchtype_values(custom_value) do custom_value end @@ -162,7 +179,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type process_cpu_state() :: %{ + @type process_cpu_state_values() :: %{ :system => :system, :user => :user, :wait => :wait @@ -176,26 +193,43 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state().system + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() + :"process.cpu.state" + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system :system - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system} + %{:"process.cpu.state" => :system} + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'process_cpu_state.system'. + ?PROCESS_CPU_STATE. + 'process.cpu.state' + + \#{?PROCESS_CPU_STATE => ?PROCESS_CPU_STATE_VALUES.system}. + \#{'process.cpu.state' => system} + + ?'PROCESS_CPU_STATE_VALUES.system'. system - ?process_cpu_state(custom_value). + ?PROCESS_CPU_STATE_VALUES(custom_value). custom_value ``` """ - @spec process_cpu_state() :: process_cpu_state() - def process_cpu_state() do + @spec process_cpu_state :: :"process.cpu.state" + def process_cpu_state do + :"process.cpu.state" + end + + @spec process_cpu_state_values() :: process_cpu_state_values() + def process_cpu_state_values() do %{ :system => :system, :user => :user, @@ -203,8 +237,8 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do } end - @spec process_cpu_state(atom() | String.t()) :: atom() | String.t() - def process_cpu_state(custom_value) do + @spec process_cpu_state_values(atom() | String.t()) :: atom() | String.t() + def process_cpu_state_values(custom_value) do custom_value end @@ -475,7 +509,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type process_paging_faulttype() :: %{ + @type process_paging_faulttype_values() :: %{ :major => :major, :minor => :minor } @@ -488,34 +522,51 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype().major + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype() + :"process.paging.fault_type" + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values().major :major - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values().major} + %{:"process.paging.fault_type" => :major} + + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values(:custom_value) :custom_value ### Erlang ```erlang - ?'process_paging_faulttype.major'. + ?PROCESS_PAGING_FAULTTYPE. + 'process.paging.fault_type' + + \#{?PROCESS_PAGING_FAULTTYPE => ?PROCESS_PAGING_FAULTTYPE_VALUES.major}. + \#{'process.paging.fault_type' => major} + + ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'. major - ?process_paging_faulttype(custom_value). + ?PROCESS_PAGING_FAULTTYPE_VALUES(custom_value). custom_value ``` """ - @spec process_paging_faulttype() :: process_paging_faulttype() - def process_paging_faulttype() do + @spec process_paging_faulttype :: :"process.paging.fault_type" + def process_paging_faulttype do + :"process.paging.fault_type" + end + + @spec process_paging_faulttype_values() :: process_paging_faulttype_values() + def process_paging_faulttype_values() do %{ :major => :major, :minor => :minor } end - @spec process_paging_faulttype(atom() | String.t()) :: atom() | String.t() - def process_paging_faulttype(custom_value) do + @spec process_paging_faulttype_values(atom() | String.t()) :: atom() | String.t() + def process_paging_faulttype_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index c9b1d48f..5aa404a9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -27,23 +27,28 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:received` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type message_type() :: %{ + @type message_type_values() :: %{ :sent => :SENT, :received => :RECEIVED } @deprecated """ Replaced by `rpc.message.type`. """ - @spec message_type() :: message_type() - def message_type() do + @spec message_type :: :"message.type" + def message_type do + :"message.type" + end + + @spec message_type_values() :: message_type_values() + def message_type_values() do %{ :sent => :SENT, :received => :RECEIVED } end - @spec message_type(atom() | String.t()) :: atom() | String.t() - def message_type(custom_value) do + @spec message_type_values(atom() | String.t()) :: atom() | String.t() + def message_type_values(custom_value) do custom_value end @@ -76,7 +81,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:data_loss` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:unauthenticated` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type rpc_connectrpc_errorcode() :: %{ + @type rpc_connectrpc_errorcode_values() :: %{ :cancelled => :cancelled, :unknown => :unknown, :invalid_argument => :invalid_argument, @@ -102,26 +107,43 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode().cancelled + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode() + :"rpc.connect_rpc.error_code" + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values().cancelled :cancelled - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values().cancelled} + %{:"rpc.connect_rpc.error_code" => :cancelled} + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values(:custom_value) :custom_value ### Erlang ```erlang - ?'rpc_connectrpc_errorcode.cancelled'. + ?RPC_CONNECTRPC_ERRORCODE. + 'rpc.connect_rpc.error_code' + + \#{?RPC_CONNECTRPC_ERRORCODE => ?RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled}. + \#{'rpc.connect_rpc.error_code' => cancelled} + + ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'. cancelled - ?rpc_connectrpc_errorcode(custom_value). + ?RPC_CONNECTRPC_ERRORCODE_VALUES(custom_value). custom_value ``` """ - @spec rpc_connectrpc_errorcode() :: rpc_connectrpc_errorcode() - def rpc_connectrpc_errorcode() do + @spec rpc_connectrpc_errorcode :: :"rpc.connect_rpc.error_code" + def rpc_connectrpc_errorcode do + :"rpc.connect_rpc.error_code" + end + + @spec rpc_connectrpc_errorcode_values() :: rpc_connectrpc_errorcode_values() + def rpc_connectrpc_errorcode_values() do %{ :cancelled => :cancelled, :unknown => :unknown, @@ -142,8 +164,8 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec rpc_connectrpc_errorcode(atom() | String.t()) :: atom() | String.t() - def rpc_connectrpc_errorcode(custom_value) do + @spec rpc_connectrpc_errorcode_values(atom() | String.t()) :: atom() | String.t() + def rpc_connectrpc_errorcode_values(custom_value) do custom_value end @@ -317,7 +339,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:data_loss` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - DATA_LOSS * `:unauthenticated` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UNAUTHENTICATED """ - @type rpc_grpc_statuscode() :: %{ + @type rpc_grpc_statuscode_values() :: %{ :ok => 0, :cancelled => 1, :unknown => 2, @@ -344,26 +366,43 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode().ok + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode() + :"rpc.grpc.status_code" + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values().ok 0 - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode(27) + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values().ok} + %{:"rpc.grpc.status_code" => 0} + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values(27) 27 ### Erlang ```erlang - ?'rpc_grpc_statuscode.ok'. + ?RPC_GRPC_STATUSCODE. + 'rpc.grpc.status_code' + + \#{?RPC_GRPC_STATUSCODE => ?RPC_GRPC_STATUSCODE_VALUES.ok}. + \#{'rpc.grpc.status_code' => 0} + + ?'RPC_GRPC_STATUSCODE_VALUES.ok'. 0 - ?rpc_grpc_statuscode(27). + ?RPC_GRPC_STATUSCODE_VALUES(27). 27 ``` """ - @spec rpc_grpc_statuscode() :: rpc_grpc_statuscode() - def rpc_grpc_statuscode() do + @spec rpc_grpc_statuscode :: :"rpc.grpc.status_code" + def rpc_grpc_statuscode do + :"rpc.grpc.status_code" + end + + @spec rpc_grpc_statuscode_values() :: rpc_grpc_statuscode_values() + def rpc_grpc_statuscode_values() do %{ :ok => 0, :cancelled => 1, @@ -385,8 +424,8 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec rpc_grpc_statuscode(integer()) :: integer() - def rpc_grpc_statuscode(custom_value) do + @spec rpc_grpc_statuscode_values(integer()) :: integer() + def rpc_grpc_statuscode_values(custom_value) do custom_value end @@ -583,7 +622,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:received` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type rpc_message_type() :: %{ + @type rpc_message_type_values() :: %{ :sent => :SENT, :received => :RECEIVED } @@ -595,34 +634,51 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type().sent + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type() + :"rpc.message.type" + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values().sent :SENT - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values().sent} + %{:"rpc.message.type" => :SENT} + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'rpc_message_type.sent'. + ?RPC_MESSAGE_TYPE. + 'rpc.message.type' + + \#{?RPC_MESSAGE_TYPE => ?RPC_MESSAGE_TYPE_VALUES.sent}. + \#{'rpc.message.type' => SENT} + + ?'RPC_MESSAGE_TYPE_VALUES.sent'. SENT - ?rpc_message_type(custom_value). + ?RPC_MESSAGE_TYPE_VALUES(custom_value). custom_value ``` """ - @spec rpc_message_type() :: rpc_message_type() - def rpc_message_type() do + @spec rpc_message_type :: :"rpc.message.type" + def rpc_message_type do + :"rpc.message.type" + end + + @spec rpc_message_type_values() :: rpc_message_type_values() + def rpc_message_type_values() do %{ :sent => :SENT, :received => :RECEIVED } end - @spec rpc_message_type(atom() | String.t()) :: atom() | String.t() - def rpc_message_type(custom_value) do + @spec rpc_message_type_values(atom() | String.t()) :: atom() | String.t() + def rpc_message_type_values(custom_value) do custom_value end @@ -735,7 +791,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:apache_dubbo` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Dubbo * `:connect_rpc` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Connect RPC """ - @type rpc_system() :: %{ + @type rpc_system_values() :: %{ :grpc => :grpc, :java_rmi => :java_rmi, :dotnet_wcf => :dotnet_wcf, @@ -750,26 +806,43 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system().grpc + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system() + :"rpc.system" + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values().grpc :grpc - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values().grpc} + %{:"rpc.system" => :grpc} + + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values(:custom_value) :custom_value ### Erlang ```erlang - ?'rpc_system.grpc'. + ?RPC_SYSTEM. + 'rpc.system' + + \#{?RPC_SYSTEM => ?RPC_SYSTEM_VALUES.grpc}. + \#{'rpc.system' => grpc} + + ?'RPC_SYSTEM_VALUES.grpc'. grpc - ?rpc_system(custom_value). + ?RPC_SYSTEM_VALUES(custom_value). custom_value ``` """ - @spec rpc_system() :: rpc_system() - def rpc_system() do + @spec rpc_system :: :"rpc.system" + def rpc_system do + :"rpc.system" + end + + @spec rpc_system_values() :: rpc_system_values() + def rpc_system_values() do %{ :grpc => :grpc, :java_rmi => :java_rmi, @@ -779,8 +852,8 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec rpc_system(atom() | String.t()) :: atom() | String.t() - def rpc_system(custom_value) do + @spec rpc_system_values(atom() | String.t()) :: atom() | String.t() + def rpc_system_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index 52e0cc99..64ab953c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -48,7 +48,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:interrupt` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:steal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_cpu_state() :: %{ + @type system_cpu_state_values() :: %{ :user => :user, :system => :system, :nice => :nice, @@ -70,26 +70,43 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state().user + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() + :"system.cpu.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user :user - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user} + %{:"system.cpu.state" => :user} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_cpu_state.user'. + ?SYSTEM_CPU_STATE. + 'system.cpu.state' + + \#{?SYSTEM_CPU_STATE => ?SYSTEM_CPU_STATE_VALUES.user}. + \#{'system.cpu.state' => user} + + ?'SYSTEM_CPU_STATE_VALUES.user'. user - ?system_cpu_state(custom_value). + ?SYSTEM_CPU_STATE_VALUES(custom_value). custom_value ``` """ - @spec system_cpu_state() :: system_cpu_state() - def system_cpu_state() do + @spec system_cpu_state :: :"system.cpu.state" + def system_cpu_state do + :"system.cpu.state" + end + + @spec system_cpu_state_values() :: system_cpu_state_values() + def system_cpu_state_values() do %{ :user => :user, :system => :system, @@ -101,8 +118,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_cpu_state(atom() | String.t()) :: atom() | String.t() - def system_cpu_state(custom_value) do + @spec system_cpu_state_values(atom() | String.t()) :: atom() | String.t() + def system_cpu_state_values(custom_value) do custom_value end @@ -210,7 +227,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:reserved` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_filesystem_state() :: %{ + @type system_filesystem_state_values() :: %{ :used => :used, :free => :free, :reserved => :reserved @@ -228,26 +245,43 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state().used + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() + :"system.filesystem.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used :used - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used} + %{:"system.filesystem.state" => :used} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_filesystem_state.used'. + ?SYSTEM_FILESYSTEM_STATE. + 'system.filesystem.state' + + \#{?SYSTEM_FILESYSTEM_STATE => ?SYSTEM_FILESYSTEM_STATE_VALUES.used}. + \#{'system.filesystem.state' => used} + + ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'. used - ?system_filesystem_state(custom_value). + ?SYSTEM_FILESYSTEM_STATE_VALUES(custom_value). custom_value ``` """ - @spec system_filesystem_state() :: system_filesystem_state() - def system_filesystem_state() do + @spec system_filesystem_state :: :"system.filesystem.state" + def system_filesystem_state do + :"system.filesystem.state" + end + + @spec system_filesystem_state_values() :: system_filesystem_state_values() + def system_filesystem_state_values() do %{ :used => :used, :free => :free, @@ -255,8 +289,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_filesystem_state(atom() | String.t()) :: atom() | String.t() - def system_filesystem_state(custom_value) do + @spec system_filesystem_state_values(atom() | String.t()) :: atom() | String.t() + def system_filesystem_state_values(custom_value) do custom_value end @@ -271,7 +305,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:hfsplus` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:ext4` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_filesystem_type() :: %{ + @type system_filesystem_type_values() :: %{ :fat32 => :fat32, :exfat => :exfat, :ntfs => :ntfs, @@ -292,26 +326,43 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type().fat32 + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() + :"system.filesystem.type" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32 :fat32 - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32} + %{:"system.filesystem.type" => :fat32} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_filesystem_type.fat32'. + ?SYSTEM_FILESYSTEM_TYPE. + 'system.filesystem.type' + + \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES.fat32}. + \#{'system.filesystem.type' => fat32} + + ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'. fat32 - ?system_filesystem_type(custom_value). + ?SYSTEM_FILESYSTEM_TYPE_VALUES(custom_value). custom_value ``` """ - @spec system_filesystem_type() :: system_filesystem_type() - def system_filesystem_type() do + @spec system_filesystem_type :: :"system.filesystem.type" + def system_filesystem_type do + :"system.filesystem.type" + end + + @spec system_filesystem_type_values() :: system_filesystem_type_values() + def system_filesystem_type_values() do %{ :fat32 => :fat32, :exfat => :exfat, @@ -322,8 +373,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_filesystem_type(atom() | String.t()) :: atom() | String.t() - def system_filesystem_type(custom_value) do + @spec system_filesystem_type_values(atom() | String.t()) :: atom() | String.t() + def system_filesystem_type_values(custom_value) do custom_value end @@ -337,7 +388,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:buffers` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:cached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_memory_state() :: %{ + @type system_memory_state_values() :: %{ :used => :used, :free => :free, :shared => :shared, @@ -357,26 +408,43 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state().used + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() + :"system.memory.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used :used - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used} + %{:"system.memory.state" => :used} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_memory_state.used'. + ?SYSTEM_MEMORY_STATE. + 'system.memory.state' + + \#{?SYSTEM_MEMORY_STATE => ?SYSTEM_MEMORY_STATE_VALUES.used}. + \#{'system.memory.state' => used} + + ?'SYSTEM_MEMORY_STATE_VALUES.used'. used - ?system_memory_state(custom_value). + ?SYSTEM_MEMORY_STATE_VALUES(custom_value). custom_value ``` """ - @spec system_memory_state() :: system_memory_state() - def system_memory_state() do + @spec system_memory_state :: :"system.memory.state" + def system_memory_state do + :"system.memory.state" + end + + @spec system_memory_state_values() :: system_memory_state_values() + def system_memory_state_values() do %{ :used => :used, :free => :free, @@ -386,8 +454,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_memory_state(atom() | String.t()) :: atom() | String.t() - def system_memory_state(custom_value) do + @spec system_memory_state_values(atom() | String.t()) :: atom() | String.t() + def system_memory_state_values(custom_value) do custom_value end @@ -408,7 +476,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:syn_sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:time_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_network_state() :: %{ + @type system_network_state_values() :: %{ :close => :close, :close_wait => :close_wait, :closing => :closing, @@ -435,26 +503,43 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state().close + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() + :"system.network.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close :close - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close} + %{:"system.network.state" => :close} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_network_state.close'. + ?SYSTEM_NETWORK_STATE. + 'system.network.state' + + \#{?SYSTEM_NETWORK_STATE => ?SYSTEM_NETWORK_STATE_VALUES.close}. + \#{'system.network.state' => close} + + ?'SYSTEM_NETWORK_STATE_VALUES.close'. close - ?system_network_state(custom_value). + ?SYSTEM_NETWORK_STATE_VALUES(custom_value). custom_value ``` """ - @spec system_network_state() :: system_network_state() - def system_network_state() do + @spec system_network_state :: :"system.network.state" + def system_network_state do + :"system.network.state" + end + + @spec system_network_state_values() :: system_network_state_values() + def system_network_state_values() do %{ :close => :close, :close_wait => :close_wait, @@ -471,8 +556,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_network_state(atom() | String.t()) :: atom() | String.t() - def system_network_state(custom_value) do + @spec system_network_state_values(atom() | String.t()) :: atom() | String.t() + def system_network_state_values(custom_value) do custom_value end @@ -483,7 +568,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:in` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:out` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_paging_direction() :: %{ + @type system_paging_direction_values() :: %{ :in => :in, :out => :out } @@ -500,34 +585,51 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction().in + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() + :"system.paging.direction" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in :in - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in} + %{:"system.paging.direction" => :in} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_paging_direction.in'. + ?SYSTEM_PAGING_DIRECTION. + 'system.paging.direction' + + \#{?SYSTEM_PAGING_DIRECTION => ?SYSTEM_PAGING_DIRECTION_VALUES.in}. + \#{'system.paging.direction' => in} + + ?'SYSTEM_PAGING_DIRECTION_VALUES.in'. in - ?system_paging_direction(custom_value). + ?SYSTEM_PAGING_DIRECTION_VALUES(custom_value). custom_value ``` """ - @spec system_paging_direction() :: system_paging_direction() - def system_paging_direction() do + @spec system_paging_direction :: :"system.paging.direction" + def system_paging_direction do + :"system.paging.direction" + end + + @spec system_paging_direction_values() :: system_paging_direction_values() + def system_paging_direction_values() do %{ :in => :in, :out => :out } end - @spec system_paging_direction(atom() | String.t()) :: atom() | String.t() - def system_paging_direction(custom_value) do + @spec system_paging_direction_values(atom() | String.t()) :: atom() | String.t() + def system_paging_direction_values(custom_value) do custom_value end @@ -538,7 +640,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_paging_state() :: %{ + @type system_paging_state_values() :: %{ :used => :used, :free => :free } @@ -555,34 +657,51 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state().used + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() + :"system.paging.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used :used - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used} + %{:"system.paging.state" => :used} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_paging_state.used'. + ?SYSTEM_PAGING_STATE. + 'system.paging.state' + + \#{?SYSTEM_PAGING_STATE => ?SYSTEM_PAGING_STATE_VALUES.used}. + \#{'system.paging.state' => used} + + ?'SYSTEM_PAGING_STATE_VALUES.used'. used - ?system_paging_state(custom_value). + ?SYSTEM_PAGING_STATE_VALUES(custom_value). custom_value ``` """ - @spec system_paging_state() :: system_paging_state() - def system_paging_state() do + @spec system_paging_state :: :"system.paging.state" + def system_paging_state do + :"system.paging.state" + end + + @spec system_paging_state_values() :: system_paging_state_values() + def system_paging_state_values() do %{ :used => :used, :free => :free } end - @spec system_paging_state(atom() | String.t()) :: atom() | String.t() - def system_paging_state(custom_value) do + @spec system_paging_state_values(atom() | String.t()) :: atom() | String.t() + def system_paging_state_values(custom_value) do custom_value end @@ -593,7 +712,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_paging_type() :: %{ + @type system_paging_type_values() :: %{ :major => :major, :minor => :minor } @@ -610,34 +729,51 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type().major + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() + :"system.paging.type" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major :major - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major} + %{:"system.paging.type" => :major} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_paging_type.major'. + ?SYSTEM_PAGING_TYPE. + 'system.paging.type' + + \#{?SYSTEM_PAGING_TYPE => ?SYSTEM_PAGING_TYPE_VALUES.major}. + \#{'system.paging.type' => major} + + ?'SYSTEM_PAGING_TYPE_VALUES.major'. major - ?system_paging_type(custom_value). + ?SYSTEM_PAGING_TYPE_VALUES(custom_value). custom_value ``` """ - @spec system_paging_type() :: system_paging_type() - def system_paging_type() do + @spec system_paging_type :: :"system.paging.type" + def system_paging_type do + :"system.paging.type" + end + + @spec system_paging_type_values() :: system_paging_type_values() + def system_paging_type_values() do %{ :major => :major, :minor => :minor } end - @spec system_paging_type(atom() | String.t()) :: atom() | String.t() - def system_paging_type(custom_value) do + @spec system_paging_type_values(atom() | String.t()) :: atom() | String.t() + def system_paging_type_values(custom_value) do custom_value end @@ -651,7 +787,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_process_status() :: %{ + @type system_process_status_values() :: %{ :running => :running, :sleeping => :sleeping, :stopped => :stopped, @@ -671,26 +807,43 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status().running + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() + :"system.process.status" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running :running - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running} + %{:"system.process.status" => :running} + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values(:custom_value) :custom_value ### Erlang ```erlang - ?'system_process_status.running'. + ?SYSTEM_PROCESS_STATUS. + 'system.process.status' + + \#{?SYSTEM_PROCESS_STATUS => ?SYSTEM_PROCESS_STATUS_VALUES.running}. + \#{'system.process.status' => running} + + ?'SYSTEM_PROCESS_STATUS_VALUES.running'. running - ?system_process_status(custom_value). + ?SYSTEM_PROCESS_STATUS_VALUES(custom_value). custom_value ``` """ - @spec system_process_status() :: system_process_status() - def system_process_status() do + @spec system_process_status :: :"system.process.status" + def system_process_status do + :"system.process.status" + end + + @spec system_process_status_values() :: system_process_status_values() + def system_process_status_values() do %{ :running => :running, :sleeping => :sleeping, @@ -699,8 +852,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_process_status(atom() | String.t()) :: atom() | String.t() - def system_process_status(custom_value) do + @spec system_process_status_values(atom() | String.t()) :: atom() | String.t() + def system_process_status_values(custom_value) do custom_value end @@ -713,7 +866,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type system_processes_status() :: %{ + @type system_processes_status_values() :: %{ :running => :running, :sleeping => :sleeping, :stopped => :stopped, @@ -722,8 +875,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do @deprecated """ Replaced by `system.process.status`. """ - @spec system_processes_status() :: system_processes_status() - def system_processes_status() do + @spec system_processes_status :: :"system.processes.status" + def system_processes_status do + :"system.processes.status" + end + + @spec system_processes_status_values() :: system_processes_status_values() + def system_processes_status_values() do %{ :running => :running, :sleeping => :sleeping, @@ -732,8 +890,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_processes_status(atom() | String.t()) :: atom() | String.t() - def system_processes_status(custom_value) do + @spec system_processes_status_values(atom() | String.t()) :: atom() | String.t() + def system_processes_status_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex index 3212331b..423ca399 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -535,7 +535,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do * `:ssl` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:tls` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type tls_protocol_name() :: %{ + @type tls_protocol_name_values() :: %{ :ssl => :ssl, :tls => :tls } @@ -548,34 +548,51 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name().ssl + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name() + :"tls.protocol.name" + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values().ssl :ssl - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name(:custom_value) + iex> %{OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name() => OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values().ssl} + %{:"tls.protocol.name" => :ssl} + + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values(:custom_value) :custom_value ### Erlang ```erlang - ?'tls_protocol_name.ssl'. + ?TLS_PROTOCOL_NAME. + 'tls.protocol.name' + + \#{?TLS_PROTOCOL_NAME => ?TLS_PROTOCOL_NAME_VALUES.ssl}. + \#{'tls.protocol.name' => ssl} + + ?'TLS_PROTOCOL_NAME_VALUES.ssl'. ssl - ?tls_protocol_name(custom_value). + ?TLS_PROTOCOL_NAME_VALUES(custom_value). custom_value ``` """ - @spec tls_protocol_name() :: tls_protocol_name() - def tls_protocol_name() do + @spec tls_protocol_name :: :"tls.protocol.name" + def tls_protocol_name do + :"tls.protocol.name" + end + + @spec tls_protocol_name_values() :: tls_protocol_name_values() + def tls_protocol_name_values() do %{ :ssl => :ssl, :tls => :tls } end - @spec tls_protocol_name(atom() | String.t()) :: atom() | String.t() - def tls_protocol_name(custom_value) do + @spec tls_protocol_name_values(atom() | String.t()) :: atom() | String.t() + def tls_protocol_name_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index 821d936c..ed514b15 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -213,7 +213,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do * `:pipe` - Named or anonymous pipe. * `:unix` - Unix domain socket """ - @type network_transport() :: %{ + @type network_transport_values() :: %{ :tcp => :tcp, :udp => :udp, :pipe => :pipe, @@ -241,26 +241,43 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Elixir - iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport().tcp + iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport() + :"network.transport" + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport_values().tcp :tcp - iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport(:custom_value) + iex> %{OpenTelemetry.SemConv.NetworkAttributes.network_transport() => OpenTelemetry.SemConv.NetworkAttributes.network_transport_values().tcp} + %{:"network.transport" => :tcp} + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport_values(:custom_value) :custom_value ### Erlang ```erlang - ?'network_transport.tcp'. + ?NETWORK_TRANSPORT. + 'network.transport' + + \#{?NETWORK_TRANSPORT => ?NETWORK_TRANSPORT_VALUES.tcp}. + \#{'network.transport' => tcp} + + ?'NETWORK_TRANSPORT_VALUES.tcp'. tcp - ?network_transport(custom_value). + ?NETWORK_TRANSPORT_VALUES(custom_value). custom_value ``` """ - @spec network_transport() :: network_transport() - def network_transport() do + @spec network_transport :: :"network.transport" + def network_transport do + :"network.transport" + end + + @spec network_transport_values() :: network_transport_values() + def network_transport_values() do %{ :tcp => :tcp, :udp => :udp, @@ -269,8 +286,8 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do } end - @spec network_transport(atom() | String.t()) :: atom() | String.t() - def network_transport(custom_value) do + @spec network_transport_values(atom() | String.t()) :: atom() | String.t() + def network_transport_values(custom_value) do custom_value end @@ -281,7 +298,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do * `:ipv4` - IPv4 * `:ipv6` - IPv6 """ - @type network_type() :: %{ + @type network_type_values() :: %{ :ipv4 => :ipv4, :ipv6 => :ipv6 } @@ -301,34 +318,51 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Elixir - iex> OpenTelemetry.SemConv.NetworkAttributes.network_type().ipv4 + iex> OpenTelemetry.SemConv.NetworkAttributes.network_type() + :"network.type" + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_type_values().ipv4 :ipv4 - iex> OpenTelemetry.SemConv.NetworkAttributes.network_type(:custom_value) + iex> %{OpenTelemetry.SemConv.NetworkAttributes.network_type() => OpenTelemetry.SemConv.NetworkAttributes.network_type_values().ipv4} + %{:"network.type" => :ipv4} + + iex> OpenTelemetry.SemConv.NetworkAttributes.network_type_values(:custom_value) :custom_value ### Erlang ```erlang - ?'network_type.ipv4'. + ?NETWORK_TYPE. + 'network.type' + + \#{?NETWORK_TYPE => ?NETWORK_TYPE_VALUES.ipv4}. + \#{'network.type' => ipv4} + + ?'NETWORK_TYPE_VALUES.ipv4'. ipv4 - ?network_type(custom_value). + ?NETWORK_TYPE_VALUES(custom_value). custom_value ``` """ - @spec network_type() :: network_type() - def network_type() do + @spec network_type :: :"network.type" + def network_type do + :"network.type" + end + + @spec network_type_values() :: network_type_values() + def network_type_values() do %{ :ipv4 => :ipv4, :ipv6 => :ipv6 } end - @spec network_type(atom() | String.t()) :: atom() | String.t() - def network_type(custom_value) do + @spec network_type_values(atom() | String.t()) :: atom() | String.t() + def network_type_values(custom_value) do custom_value end end diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index 907a1d0d..5d3184ce 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -75,7 +75,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do * `:ok` - The operation has been validated by an Application developer or Operator to have completed successfully. * `:error` - The operation contains an error. """ - @type otel_statuscode() :: %{ + @type otel_statuscode_values() :: %{ :ok => :OK, :error => :ERROR } @@ -87,34 +87,51 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Elixir - iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode().ok + iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode() + :"otel.status_code" + + iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values().ok :OK - iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode(:custom_value) + iex> %{OpenTelemetry.SemConv.OtelAttributes.otel_statuscode() => OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values().ok} + %{:"otel.status_code" => :OK} + + iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values(:custom_value) :custom_value ### Erlang ```erlang - ?'otel_statuscode.ok'. + ?OTEL_STATUSCODE. + 'otel.status_code' + + \#{?OTEL_STATUSCODE => ?OTEL_STATUSCODE_VALUES.ok}. + \#{'otel.status_code' => OK} + + ?'OTEL_STATUSCODE_VALUES.ok'. OK - ?otel_statuscode(custom_value). + ?OTEL_STATUSCODE_VALUES(custom_value). custom_value ``` """ - @spec otel_statuscode() :: otel_statuscode() - def otel_statuscode() do + @spec otel_statuscode :: :"otel.status_code" + def otel_statuscode do + :"otel.status_code" + end + + @spec otel_statuscode_values() :: otel_statuscode_values() + def otel_statuscode_values() do %{ :ok => :OK, :error => :ERROR } end - @spec otel_statuscode(atom() | String.t()) :: atom() | String.t() - def otel_statuscode(custom_value) do + @spec otel_statuscode_values(atom() | String.t()) :: atom() | String.t() + def otel_statuscode_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index 64ac5a1d..f21fd6ae 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -54,7 +54,7 @@ defmodule OpenTelemetry.SemConv do ``` -include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). - ?db_system("custom"). + ?DB_SYSTEM("custom"). ``` #### Incubating Attributes & Metrics @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv do To get a particular value, you can use map dot or access patterns. Enum keys are always atoms. ``` - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().postgresql + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().postgresql :postgresql ``` @@ -100,7 +100,7 @@ defmodule OpenTelemetry.SemConv do use a custom value, a function macro is provided. ``` - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system(:custom) + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values(:custom) :custom ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index 7108c2a0..59eeb8ae 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -22,7 +22,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do * `:swift` * `:webjs` """ - @type telemetry_sdk_language() :: %{ + @type telemetry_sdk_language_values() :: %{ :cpp => :cpp, :dotnet => :dotnet, :erlang => :erlang, @@ -45,26 +45,43 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Elixir - iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language().cpp + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language() + :"telemetry.sdk.language" + + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values().cpp :cpp - iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language(:custom_value) + iex> %{OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language() => OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values().cpp} + %{:"telemetry.sdk.language" => :cpp} + + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values(:custom_value) :custom_value ### Erlang ```erlang - ?'telemetry_sdk_language.cpp'. + ?TELEMETRY_SDK_LANGUAGE. + 'telemetry.sdk.language' + + \#{?TELEMETRY_SDK_LANGUAGE => ?TELEMETRY_SDK_LANGUAGE_VALUES.cpp}. + \#{'telemetry.sdk.language' => cpp} + + ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'. cpp - ?telemetry_sdk_language(custom_value). + ?TELEMETRY_SDK_LANGUAGE_VALUES(custom_value). custom_value ``` """ - @spec telemetry_sdk_language() :: telemetry_sdk_language() - def telemetry_sdk_language() do + @spec telemetry_sdk_language :: :"telemetry.sdk.language" + def telemetry_sdk_language do + :"telemetry.sdk.language" + end + + @spec telemetry_sdk_language_values() :: telemetry_sdk_language_values() + def telemetry_sdk_language_values() do %{ :cpp => :cpp, :dotnet => :dotnet, @@ -81,8 +98,8 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do } end - @spec telemetry_sdk_language(atom() | String.t()) :: atom() | String.t() - def telemetry_sdk_language(custom_value) do + @spec telemetry_sdk_language_values(atom() | String.t()) :: atom() | String.t() + def telemetry_sdk_language_values(custom_value) do custom_value end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 05537652..e749e887 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -31,7 +31,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemConv#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} {% endfor -%} """ - @type {{ attribute.name | snake_case_const }}() :: {{ c.enum_to_map(attribute.type.members) }} + @type {{ attribute.name | snake_case_const }}_values() :: {{ c.enum_to_map(attribute.type.members) }} {%- endif -%} {% if attribute is deprecated %} @@ -66,19 +66,31 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Elixir - iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}().{{ attribute.type.members|first|attr('id') }} + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() + {{ c.to_atom(attribute.name) }} + + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values().{{ attribute.type.members|first|attr('id') }} {{ c.enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} - iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}({{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) + iex> {% raw %}%{{% endraw %}{{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() => {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values().{{ attribute.type.members|first|attr('id') }}{% raw %}}{% endraw %} + {% raw %}%{{% endraw %}{{ c.to_atom(attribute.name) }} => {{ c.enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }}{% raw %}}{% endraw %} + + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values({{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) {{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }} ### Erlang ```erlang - ?'{{ attribute.name | snake_case_const }}.{{ attribute.type.members|first|attr('id') }}'. + ?{{ attribute.name | snake_case_const | upper }}. + '{{ attribute.name }}' + + {% raw %}\#{{% endraw %}?{{ attribute.name | snake_case_const | upper }} => ?{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} + + ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'. {{ attribute.type.members|first|attr('value') }} - ?{{ attribute.name | snake_case_const }}({{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). + ?{{ attribute.name | snake_case_const | upper }}_VALUES({{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). {{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }} ``` {%- else %} @@ -99,20 +111,19 @@ defmodule {{ module_namespace }}.{{ module_name }} do """ {%- endif %} - - {%- if not(attribute.type is mapping) %} @spec {{ c.func_name(attribute.name) }} :: {{ c.to_atom(attribute.name) }} def {{ c.func_name(attribute.name) }} do {{ c.to_atom(attribute.name) }} end - {%- else %} - @spec {{ c.func_name(attribute.name) }}() :: {{ attribute.name | snake_case_const }}() - def {{ c.func_name(attribute.name) }}() do + + {%- if attribute.type is mapping %} + @spec {{ c.func_name(attribute.name) }}_values() :: {{ attribute.name | snake_case_const }}_values() + def {{ c.func_name(attribute.name) }}_values() do {{ c.enum_to_map(attribute.type.members) }} end - @spec {{ c.func_name(attribute.name) }}({{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }}) :: {{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }} - def {{ c.func_name(attribute.name) }}(custom_value) do + @spec {{ c.func_name(attribute.name) }}_values({{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }}) :: {{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }} + def {{ c.func_name(attribute.name) }}_values(custom_value) do custom_value end {%- endif %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index 5896055b..fda972b8 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -20,12 +20,11 @@ %% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ attribute.brief | replace("\n", "\n%% ") }} -{% if attribute.type is mapping -%} -{%- for member in attribute.type.members %} --define('{{ attribute.name | snake_case_const }}.{{ member.id }}', '{{ member.value }}'). -{% endfor %} --define({{ attribute.name | snake_case_const }}(Custom), Custom). -{%- else -%} -define({{ attribute.name | snake_case_const | upper }}, '{{ attribute.name }}'). +{%- if attribute.type is mapping %} +{% for member in attribute.type.members %} +-define('{{ attribute.name | snake_case_const | upper }}_VALUES.{{ member.id }}', '{{ member.value }}'). +{% endfor %} +-define('{{ attribute.name | snake_case_const | upper }}_VALUES(Custom), Custom). {%- endif %} {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl index 2061ed85..89dedb9e 100644 --- a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -11,6 +11,7 @@ all() -> [registry_macros]. registry_macros(_Config) -> - ?assertEqual('postgresql', ?'db_system.postgresql'), - ?assertEqual('custom', ?db_system('custom')), + ?assertEqual('db.system', ?'DB_SYSTEM'), + ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES.postgresql'), + ?assertEqual('custom', ?DB_SYSTEM_VALUES('custom')), ok. From 36c4e4f09b7cd36927e9f21e4a487aad71705575 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 24 Jul 2024 20:06:47 -0600 Subject: [PATCH 33/57] typo --- .../include/error_attributes.hrl | 2 +- .../include/http_attributes.hrl | 2 +- .../include/incubating/aws_attributes.hrl | 2 +- .../include/incubating/cloud_attributes.hrl | 4 ++-- .../incubating/container_attributes.hrl | 2 +- .../include/incubating/db_attributes.hrl | 12 +++++------ .../include/incubating/disk_attributes.hrl | 2 +- .../include/incubating/faas_attributes.hrl | 6 +++--- .../include/incubating/gen_ai_attributes.hrl | 2 +- .../include/incubating/graphql_attributes.hrl | 2 +- .../include/incubating/host_attributes.hrl | 2 +- .../include/incubating/http_attributes.hrl | 4 ++-- .../include/incubating/log_attributes.hrl | 2 +- .../incubating/messaging_attributes.hrl | 10 +++++----- .../include/incubating/network_attributes.hrl | 10 +++++----- .../incubating/opentracing_attributes.hrl | 2 +- .../include/incubating/os_attributes.hrl | 2 +- .../include/incubating/process_attributes.hrl | 6 +++--- .../include/incubating/rpc_attributes.hrl | 10 +++++----- .../include/incubating/system_attributes.hrl | 20 +++++++++---------- .../include/incubating/tls_attributes.hrl | 2 +- .../include/network_attributes.hrl | 4 ++-- .../include/otel_attributes.hrl | 2 +- .../include/telemetry_attributes.hrl | 2 +- .../erlang/semantic_attributes.hrl.j2 | 2 +- 25 files changed, 58 insertions(+), 58 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl index 5870cbc2..1b5f6ed3 100644 --- a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -20,4 +20,4 @@ -define('ERROR_TYPE_VALUES.other', '_OTHER'). --define('ERROR_TYPE_VALUES(Custom), Custom). +-define(ERROR_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index 4a4c7281..abbb6888 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -42,7 +42,7 @@ -define('HTTP_REQUEST_METHOD_VALUES.other', '_OTHER'). --define('HTTP_REQUEST_METHOD_VALUES(Custom), Custom). +-define(HTTP_REQUEST_METHOD_VALUES(Custom), Custom). %% Original HTTP method sent by the client in the request line. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index 1c800dbc..d01dd4af 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -120,7 +120,7 @@ -define('AWS_ECS_LAUNCHTYPE_VALUES.fargate', 'fargate'). --define('AWS_ECS_LAUNCHTYPE_VALUES(Custom), Custom). +-define(AWS_ECS_LAUNCHTYPE_VALUES(Custom), Custom). %% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index 6fd1dda2..08558d46 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -84,7 +84,7 @@ -define('CLOUD_PLATFORM_VALUES.tencent_cloud_scf', 'tencent_cloud_scf'). --define('CLOUD_PLATFORM_VALUES(Custom), Custom). +-define(CLOUD_PLATFORM_VALUES(Custom), Custom). %% Name of the cloud provider. @@ -105,7 +105,7 @@ -define('CLOUD_PROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). --define('CLOUD_PROVIDER_VALUES(Custom), Custom). +-define(CLOUD_PROVIDER_VALUES(Custom), Custom). %% The geographical region the resource is running. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index 59e14820..c639c341 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -38,7 +38,7 @@ -define('CONTAINER_CPU_STATE_VALUES.kernel', 'kernel'). --define('CONTAINER_CPU_STATE_VALUES(Custom), Custom). +-define(CONTAINER_CPU_STATE_VALUES(Custom), Custom). %% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index a3f78404..4af56991 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -40,7 +40,7 @@ -define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_serial', 'local_serial'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES(Custom), Custom). +-define(DB_CASSANDRA_CONSISTENCYLEVEL_VALUES(Custom), Custom). %% The data center of the coordinating node for a query. @@ -84,7 +84,7 @@ -define('DB_CLIENT_CONNECTIONS_STATE_VALUES.used', 'used'). --define('DB_CLIENT_CONNECTIONS_STATE_VALUES(Custom), Custom). +-define(DB_CLIENT_CONNECTIONS_STATE_VALUES(Custom), Custom). %% The name of a collection (table, container) within the database. @@ -107,7 +107,7 @@ -define('DB_COSMOSDB_CONNECTIONMODE_VALUES.direct', 'direct'). --define('DB_COSMOSDB_CONNECTIONMODE_VALUES(Custom), Custom). +-define(DB_COSMOSDB_CONNECTIONMODE_VALUES(Custom), Custom). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. @@ -147,7 +147,7 @@ -define('DB_COSMOSDB_OPERATIONTYPE_VALUES.execute_javascript', 'ExecuteJavaScript'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES(Custom), Custom). +-define(DB_COSMOSDB_OPERATIONTYPE_VALUES(Custom), Custom). %% RU consumed for that operation @@ -344,7 +344,7 @@ -define('DB_SYSTEM_VALUES.trino', 'trino'). --define('DB_SYSTEM_VALUES(Custom), Custom). +-define(DB_SYSTEM_VALUES(Custom), Custom). %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. @@ -362,4 +362,4 @@ -define('STATE_VALUES.used', 'used'). --define('STATE_VALUES(Custom), Custom). +-define(STATE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl index 69806403..59b2d57c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -21,4 +21,4 @@ -define('DISK_IO_DIRECTION_VALUES.write', 'write'). --define('DISK_IO_DIRECTION_VALUES(Custom), Custom). +-define(DISK_IO_DIRECTION_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index ec707b48..905ad3ed 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -43,7 +43,7 @@ -define('FAAS_DOCUMENT_OPERATION_VALUES.delete', 'delete'). --define('FAAS_DOCUMENT_OPERATION_VALUES(Custom), Custom). +-define(FAAS_DOCUMENT_OPERATION_VALUES(Custom), Custom). %% 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). @@ -80,7 +80,7 @@ -define('FAAS_INVOKEDPROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). --define('FAAS_INVOKEDPROVIDER_VALUES(Custom), Custom). +-define(FAAS_INVOKEDPROVIDER_VALUES(Custom), Custom). %% The cloud region of the invoked function. @@ -117,7 +117,7 @@ -define('FAAS_TRIGGER_VALUES.other', 'other'). --define('FAAS_TRIGGER_VALUES(Custom), Custom). +-define(FAAS_TRIGGER_VALUES(Custom), Custom). %% The immutable version of the function being executed. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl index fcf2a3cb..7e10c374 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -55,7 +55,7 @@ -define('GENAI_SYSTEM_VALUES.openai', 'openai'). --define('GENAI_SYSTEM_VALUES(Custom), Custom). +-define(GENAI_SYSTEM_VALUES(Custom), Custom). %% The number of tokens used in the LLM response (completion). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl index c499ac67..241e607a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -31,4 +31,4 @@ -define('GRAPHQL_OPERATION_TYPE_VALUES.subscription', 'subscription'). --define('GRAPHQL_OPERATION_TYPE_VALUES(Custom), Custom). +-define(GRAPHQL_OPERATION_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index 082026e7..b284d429 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -34,7 +34,7 @@ -define('HOST_ARCH_VALUES.x86', 'x86'). --define('HOST_ARCH_VALUES(Custom), Custom). +-define(HOST_ARCH_VALUES(Custom), Custom). %% The amount of level 2 memory cache available to the processor (in Bytes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index 8584e5dc..cfee7158 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -25,7 +25,7 @@ -define('HTTP_CONNECTION_STATE_VALUES.idle', 'idle'). --define('HTTP_CONNECTION_STATE_VALUES(Custom), Custom). +-define(HTTP_CONNECTION_STATE_VALUES(Custom), Custom). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name` instead. @@ -43,7 +43,7 @@ -define('HTTP_FLAVOR_VALUES.quic', 'QUIC'). --define('HTTP_FLAVOR_VALUES(Custom), Custom). +-define(HTTP_FLAVOR_VALUES(Custom), Custom). %% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. %% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index 31469a76..d0ce5ef6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -42,7 +42,7 @@ -define('LOG_IOSTREAM_VALUES.stderr', 'stderr'). --define('LOG_IOSTREAM_VALUES(Custom), Custom). +-define(LOG_IOSTREAM_VALUES(Custom), Custom). %% A unique identifier for the Log Record. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index adc7895f..7b0a8cff 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -154,7 +154,7 @@ -define('MESSAGING_OPERATION_TYPE_VALUES.settle', 'settle'). --define('MESSAGING_OPERATION_TYPE_VALUES(Custom), Custom). +-define(MESSAGING_OPERATION_TYPE_VALUES(Custom), Custom). %% RabbitMQ message routing key. @@ -180,7 +180,7 @@ -define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.broadcasting', 'broadcasting'). --define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES(Custom), Custom). +-define(MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES(Custom), Custom). %% The delay time level for delay message, which determines the message delay time. @@ -220,7 +220,7 @@ -define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.transaction', 'transaction'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES(Custom), Custom). +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES(Custom), Custom). %% Namespace of RocketMQ resources, resources in different namespaces are individual. @@ -245,7 +245,7 @@ -define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.defer', 'defer'). --define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES(Custom), Custom). +-define(MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES(Custom), Custom). %% Number of deliveries that have been attempted for this message. @@ -281,4 +281,4 @@ -define('MESSAGING_SYSTEM_VALUES.rocketmq', 'rocketmq'). --define('MESSAGING_SYSTEM_VALUES(Custom), Custom). +-define(MESSAGING_SYSTEM_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl index 7328562b..825afd56 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -55,7 +55,7 @@ -define('NET_SOCK_FAMILY_VALUES.unix', 'unix'). --define('NET_SOCK_FAMILY_VALUES(Custom), Custom). +-define(NET_SOCK_FAMILY_VALUES(Custom), Custom). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. @@ -91,7 +91,7 @@ -define('NET_TRANSPORT_VALUES.other', 'other'). --define('NET_TRANSPORT_VALUES(Custom), Custom). +-define(NET_TRANSPORT_VALUES(Custom), Custom). %% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. @@ -155,7 +155,7 @@ -define('NETWORK_CONNECTION_SUBTYPE_VALUES.lte_ca', 'lte_ca'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES(Custom), Custom). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES(Custom), Custom). %% The internet connection type. @@ -171,7 +171,7 @@ -define('NETWORK_CONNECTION_TYPE_VALUES.unknown', 'unknown'). --define('NETWORK_CONNECTION_TYPE_VALUES(Custom), Custom). +-define(NETWORK_CONNECTION_TYPE_VALUES(Custom), Custom). %% The network IO operation direction. @@ -181,4 +181,4 @@ -define('NETWORK_IO_DIRECTION_VALUES.receive', 'receive'). --define('NETWORK_IO_DIRECTION_VALUES(Custom), Custom). +-define(NETWORK_IO_DIRECTION_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index 7b3c1e06..c540e906 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -21,4 +21,4 @@ -define('OPENTRACING_REFTYPE_VALUES.follows_from', 'follows_from'). --define('OPENTRACING_REFTYPE_VALUES(Custom), Custom). +-define(OPENTRACING_REFTYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index ac7ae11a..ff9c1eeb 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -53,7 +53,7 @@ -define('OS_TYPE_VALUES.z_os', 'z_os'). --define('OS_TYPE_VALUES(Custom), Custom). +-define(OS_TYPE_VALUES(Custom), Custom). %% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index 9a6f2e6a..66bbd12c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -36,7 +36,7 @@ -define('PROCESS_CONTEXTSWITCHTYPE_VALUES.involuntary', 'involuntary'). --define('PROCESS_CONTEXTSWITCHTYPE_VALUES(Custom), Custom). +-define(PROCESS_CONTEXTSWITCHTYPE_VALUES(Custom), Custom). %% The CPU state of the process. @@ -49,7 +49,7 @@ -define('PROCESS_CPU_STATE_VALUES.wait', 'wait'). --define('PROCESS_CPU_STATE_VALUES(Custom), Custom). +-define(PROCESS_CPU_STATE_VALUES(Custom), Custom). %% The date and time the process was created, in ISO 8601 format. @@ -100,7 +100,7 @@ -define('PROCESS_PAGING_FAULTTYPE_VALUES.minor', 'minor'). --define('PROCESS_PAGING_FAULTTYPE_VALUES(Custom), Custom). +-define(PROCESS_PAGING_FAULTTYPE_VALUES(Custom), Custom). %% Parent Process identifier (PPID). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index de355a43..1c79ebc2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -29,7 +29,7 @@ -define('MESSAGE_TYPE_VALUES.received', 'RECEIVED'). --define('MESSAGE_TYPE_VALUES(Custom), Custom). +-define(MESSAGE_TYPE_VALUES(Custom), Custom). %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. @@ -71,7 +71,7 @@ -define('RPC_CONNECTRPC_ERRORCODE_VALUES.unauthenticated', 'unauthenticated'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES(Custom), Custom). +-define(RPC_CONNECTRPC_ERRORCODE_VALUES(Custom), Custom). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. @@ -131,7 +131,7 @@ -define('RPC_GRPC_STATUSCODE_VALUES.unauthenticated', '16'). --define('RPC_GRPC_STATUSCODE_VALUES(Custom), Custom). +-define(RPC_GRPC_STATUSCODE_VALUES(Custom), Custom). %% `error.code` property of response if it is an error response. @@ -166,7 +166,7 @@ -define('RPC_MESSAGE_TYPE_VALUES.received', 'RECEIVED'). --define('RPC_MESSAGE_TYPE_VALUES(Custom), Custom). +-define(RPC_MESSAGE_TYPE_VALUES(Custom), Custom). %% Uncompressed size of the message in bytes. @@ -194,4 +194,4 @@ -define('RPC_SYSTEM_VALUES.connect_rpc', 'connect_rpc'). --define('RPC_SYSTEM_VALUES(Custom), Custom). +-define(RPC_SYSTEM_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index cd93dfd4..e22e3457 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -35,7 +35,7 @@ -define('SYSTEM_CPU_STATE_VALUES.steal', 'steal'). --define('SYSTEM_CPU_STATE_VALUES(Custom), Custom). +-define(SYSTEM_CPU_STATE_VALUES(Custom), Custom). %% The device identifier @@ -59,7 +59,7 @@ -define('SYSTEM_FILESYSTEM_STATE_VALUES.reserved', 'reserved'). --define('SYSTEM_FILESYSTEM_STATE_VALUES(Custom), Custom). +-define(SYSTEM_FILESYSTEM_STATE_VALUES(Custom), Custom). %% The filesystem type @@ -77,7 +77,7 @@ -define('SYSTEM_FILESYSTEM_TYPE_VALUES.ext4', 'ext4'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES(Custom), Custom). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES(Custom), Custom). %% The memory state @@ -93,7 +93,7 @@ -define('SYSTEM_MEMORY_STATE_VALUES.cached', 'cached'). --define('SYSTEM_MEMORY_STATE_VALUES(Custom), Custom). +-define(SYSTEM_MEMORY_STATE_VALUES(Custom), Custom). %% A stateless protocol MUST NOT set this attribute @@ -123,7 +123,7 @@ -define('SYSTEM_NETWORK_STATE_VALUES.time_wait', 'time_wait'). --define('SYSTEM_NETWORK_STATE_VALUES(Custom), Custom). +-define(SYSTEM_NETWORK_STATE_VALUES(Custom), Custom). %% The paging access direction @@ -133,7 +133,7 @@ -define('SYSTEM_PAGING_DIRECTION_VALUES.out', 'out'). --define('SYSTEM_PAGING_DIRECTION_VALUES(Custom), Custom). +-define(SYSTEM_PAGING_DIRECTION_VALUES(Custom), Custom). %% The memory paging state @@ -143,7 +143,7 @@ -define('SYSTEM_PAGING_STATE_VALUES.free', 'free'). --define('SYSTEM_PAGING_STATE_VALUES(Custom), Custom). +-define(SYSTEM_PAGING_STATE_VALUES(Custom), Custom). %% The memory paging type @@ -153,7 +153,7 @@ -define('SYSTEM_PAGING_TYPE_VALUES.minor', 'minor'). --define('SYSTEM_PAGING_TYPE_VALUES(Custom), Custom). +-define(SYSTEM_PAGING_TYPE_VALUES(Custom), Custom). %% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) @@ -168,7 +168,7 @@ -define('SYSTEM_PROCESS_STATUS_VALUES.defunct', 'defunct'). --define('SYSTEM_PROCESS_STATUS_VALUES(Custom), Custom). +-define(SYSTEM_PROCESS_STATUS_VALUES(Custom), Custom). %% @deprecated Replaced by `system.process.status`. %% Deprecated, use `system.process.status` instead. @@ -182,4 +182,4 @@ -define('SYSTEM_PROCESSES_STATUS_VALUES.defunct', 'defunct'). --define('SYSTEM_PROCESSES_STATUS_VALUES(Custom), Custom). +-define(SYSTEM_PROCESSES_STATUS_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index 6f9fccc9..865406b4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -93,7 +93,7 @@ -define('TLS_PROTOCOL_NAME_VALUES.tls', 'tls'). --define('TLS_PROTOCOL_NAME_VALUES(Custom), Custom). +-define(TLS_PROTOCOL_NAME_VALUES(Custom), Custom). %% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl index 0e837510..6cb35eb8 100644 --- a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -50,7 +50,7 @@ -define('NETWORK_TRANSPORT_VALUES.unix', 'unix'). --define('NETWORK_TRANSPORT_VALUES(Custom), Custom). +-define(NETWORK_TRANSPORT_VALUES(Custom), Custom). %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. @@ -60,4 +60,4 @@ -define('NETWORK_TYPE_VALUES.ipv6', 'ipv6'). --define('NETWORK_TYPE_VALUES(Custom), Custom). +-define(NETWORK_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index a869fbcb..50039a78 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -29,7 +29,7 @@ -define('OTEL_STATUSCODE_VALUES.error', 'ERROR'). --define('OTEL_STATUSCODE_VALUES(Custom), Custom). +-define(OTEL_STATUSCODE_VALUES(Custom), Custom). %% Description of the Status if it has a value, otherwise not set. diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl index 0ce1f4ae..4d514ee0 100644 --- a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -42,7 +42,7 @@ -define('TELEMETRY_SDK_LANGUAGE_VALUES.webjs', 'webjs'). --define('TELEMETRY_SDK_LANGUAGE_VALUES(Custom), Custom). +-define(TELEMETRY_SDK_LANGUAGE_VALUES(Custom), Custom). %% The name of the telemetry SDK as defined above. diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index fda972b8..5a2b6b92 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -25,6 +25,6 @@ {% for member in attribute.type.members %} -define('{{ attribute.name | snake_case_const | upper }}_VALUES.{{ member.id }}', '{{ member.value }}'). {% endfor %} --define('{{ attribute.name | snake_case_const | upper }}_VALUES(Custom), Custom). +-define({{ attribute.name | snake_case_const | upper }}_VALUES(Custom), Custom). {%- endif %} {% endfor %} From 53fe0d3c608722474efe1a5591d86e2b8398e846 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Wed, 24 Jul 2024 20:13:27 -0600 Subject: [PATCH 34/57] Erlang enum value doc typos --- .../lib/error_attributes.ex | 2 +- .../lib/http_attributes.ex | 2 +- .../lib/incubating/aws_attributes.ex | 2 +- .../lib/incubating/cloud_attributes.ex | 4 ++-- .../lib/incubating/container_attributes.ex | 2 +- .../lib/incubating/db_attributes.ex | 10 +++++----- .../lib/incubating/disk_attributes.ex | 2 +- .../lib/incubating/faas_attributes.ex | 6 +++--- .../lib/incubating/gen_ai_attributes.ex | 2 +- .../lib/incubating/graphql_attributes.ex | 2 +- .../lib/incubating/host_attributes.ex | 2 +- .../lib/incubating/http_attributes.ex | 2 +- .../lib/incubating/log_attributes.ex | 2 +- .../lib/incubating/messaging_attributes.ex | 10 +++++----- .../lib/incubating/network_attributes.ex | 6 +++--- .../lib/incubating/opentracing_attributes.ex | 2 +- .../lib/incubating/os_attributes.ex | 2 +- .../lib/incubating/process_attributes.ex | 6 +++--- .../lib/incubating/rpc_attributes.ex | 8 ++++---- .../lib/incubating/system_attributes.ex | 18 +++++++++--------- .../lib/incubating/tls_attributes.ex | 2 +- .../lib/network_attributes.ex | 4 ++-- .../lib/otel_attributes.ex | 2 +- .../lib/telemetry_attributes.ex | 2 +- .../registry/elixir/semantic_attributes.ex.j2 | 2 +- 25 files changed, 52 insertions(+), 52 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index 8aa41c10..5359e5c6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -69,7 +69,7 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do ?ERROR_TYPE. 'error.type' - \#{?ERROR_TYPE => ?ERROR_TYPE_VALUES.other}. + \#{?ERROR_TYPE => ?'ERROR_TYPE_VALUES.other'}. \#{'error.type' => _OTHER} ?'ERROR_TYPE_VALUES.other'. diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 8407962d..7ec77de9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -118,7 +118,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ?HTTP_REQUEST_METHOD. 'http.request.method' - \#{?HTTP_REQUEST_METHOD => ?HTTP_REQUEST_METHOD_VALUES.connect}. + \#{?HTTP_REQUEST_METHOD => ?'HTTP_REQUEST_METHOD_VALUES.connect'}. \#{'http.request.method' => CONNECT} ?'HTTP_REQUEST_METHOD_VALUES.connect'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex index 521b79f7..35bd962b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -803,7 +803,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ?AWS_ECS_LAUNCHTYPE. 'aws.ecs.launchtype' - \#{?AWS_ECS_LAUNCHTYPE => ?AWS_ECS_LAUNCHTYPE_VALUES.ec2}. + \#{?AWS_ECS_LAUNCHTYPE => ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'}. \#{'aws.ecs.launchtype' => ec2} ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index e0d131de..329a2fdd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -169,7 +169,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ?CLOUD_PLATFORM. 'cloud.platform' - \#{?CLOUD_PLATFORM => ?CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs}. + \#{?CLOUD_PLATFORM => ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'}. \#{'cloud.platform' => alibaba_cloud_ecs} ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'. @@ -274,7 +274,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ?CLOUD_PROVIDER. 'cloud.provider' - \#{?CLOUD_PROVIDER => ?CLOUD_PROVIDER_VALUES.alibaba_cloud}. + \#{?CLOUD_PROVIDER => ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'}. \#{'cloud.provider' => alibaba_cloud} ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex index f1bfa672..fcb598cd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -151,7 +151,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ?CONTAINER_CPU_STATE. 'container.cpu.state' - \#{?CONTAINER_CPU_STATE => ?CONTAINER_CPU_STATE_VALUES.user}. + \#{?CONTAINER_CPU_STATE => ?'CONTAINER_CPU_STATE_VALUES.user'}. \#{'container.cpu.state' => user} ?'CONTAINER_CPU_STATE_VALUES.user'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index 053cf1e9..1c3dc96c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -61,7 +61,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_CASSANDRA_CONSISTENCYLEVEL. 'db.cassandra.consistency_level' - \#{?DB_CASSANDRA_CONSISTENCYLEVEL => ?DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all}. + \#{?DB_CASSANDRA_CONSISTENCYLEVEL => ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'}. \#{'db.cassandra.consistency_level' => all} ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'. @@ -343,7 +343,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_CLIENT_CONNECTIONS_STATE. 'db.client.connections.state' - \#{?DB_CLIENT_CONNECTIONS_STATE => ?DB_CLIENT_CONNECTIONS_STATE_VALUES.idle}. + \#{?DB_CLIENT_CONNECTIONS_STATE => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'}. \#{'db.client.connections.state' => idle} ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'. @@ -488,7 +488,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_COSMOSDB_CONNECTIONMODE. 'db.cosmosdb.connection_mode' - \#{?DB_COSMOSDB_CONNECTIONMODE => ?DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway}. + \#{?DB_COSMOSDB_CONNECTIONMODE => ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'}. \#{'db.cosmosdb.connection_mode' => gateway} ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'. @@ -589,7 +589,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_COSMOSDB_OPERATIONTYPE. 'db.cosmosdb.operation_type' - \#{?DB_COSMOSDB_OPERATIONTYPE => ?DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid}. + \#{?DB_COSMOSDB_OPERATIONTYPE => ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'}. \#{'db.cosmosdb.operation_type' => Invalid} ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'. @@ -1218,7 +1218,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_SYSTEM. 'db.system' - \#{?DB_SYSTEM => ?DB_SYSTEM_VALUES.other_sql}. + \#{?DB_SYSTEM => ?'DB_SYSTEM_VALUES.other_sql'}. \#{'db.system' => other_sql} ?'DB_SYSTEM_VALUES.other_sql'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex index da473868..53e29a0a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex @@ -46,7 +46,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do ?DISK_IO_DIRECTION. 'disk.io.direction' - \#{?DISK_IO_DIRECTION => ?DISK_IO_DIRECTION_VALUES.read}. + \#{?DISK_IO_DIRECTION => ?'DISK_IO_DIRECTION_VALUES.read'}. \#{'disk.io.direction' => read} ?'DISK_IO_DIRECTION_VALUES.read'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index fe469477..876f1df4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -170,7 +170,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?FAAS_DOCUMENT_OPERATION. 'faas.document.operation' - \#{?FAAS_DOCUMENT_OPERATION => ?FAAS_DOCUMENT_OPERATION_VALUES.insert}. + \#{?FAAS_DOCUMENT_OPERATION => ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'}. \#{'faas.document.operation' => insert} ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'. @@ -390,7 +390,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?FAAS_INVOKEDPROVIDER. 'faas.invoked_provider' - \#{?FAAS_INVOKEDPROVIDER => ?FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud}. + \#{?FAAS_INVOKEDPROVIDER => ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'}. \#{'faas.invoked_provider' => alibaba_cloud} ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'. @@ -627,7 +627,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?FAAS_TRIGGER. 'faas.trigger' - \#{?FAAS_TRIGGER => ?FAAS_TRIGGER_VALUES.datasource}. + \#{?FAAS_TRIGGER => ?'FAAS_TRIGGER_VALUES.datasource'}. \#{'faas.trigger' => datasource} ?'FAAS_TRIGGER_VALUES.datasource'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex index ed2cf816..9212d275 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex @@ -342,7 +342,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ?GENAI_SYSTEM. 'gen_ai.system' - \#{?GENAI_SYSTEM => ?GENAI_SYSTEM_VALUES.openai}. + \#{?GENAI_SYSTEM => ?'GENAI_SYSTEM_VALUES.openai'}. \#{'gen_ai.system' => openai} ?'GENAI_SYSTEM_VALUES.openai'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex index 1d506bb6..7f29ec48 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex @@ -115,7 +115,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ?GRAPHQL_OPERATION_TYPE. 'graphql.operation.type' - \#{?GRAPHQL_OPERATION_TYPE => ?GRAPHQL_OPERATION_TYPE_VALUES.query}. + \#{?GRAPHQL_OPERATION_TYPE => ?'GRAPHQL_OPERATION_TYPE_VALUES.query'}. \#{'graphql.operation.type' => query} ?'GRAPHQL_OPERATION_TYPE_VALUES.query'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex index ebfc060b..06590668 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -55,7 +55,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ?HOST_ARCH. 'host.arch' - \#{?HOST_ARCH => ?HOST_ARCH_VALUES.amd64}. + \#{?HOST_ARCH => ?'HOST_ARCH_VALUES.amd64'}. \#{'host.arch' => amd64} ?'HOST_ARCH_VALUES.amd64'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex index 28361cad..736c3644 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -54,7 +54,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ?HTTP_CONNECTION_STATE. 'http.connection.state' - \#{?HTTP_CONNECTION_STATE => ?HTTP_CONNECTION_STATE_VALUES.active}. + \#{?HTTP_CONNECTION_STATE => ?'HTTP_CONNECTION_STATE_VALUES.active'}. \#{'http.connection.state' => active} ?'HTTP_CONNECTION_STATE_VALUES.active'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex index 6ba9c070..88a3d97f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -175,7 +175,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ?LOG_IOSTREAM. 'log.iostream' - \#{?LOG_IOSTREAM => ?LOG_IOSTREAM_VALUES.stdout}. + \#{?LOG_IOSTREAM => ?'LOG_IOSTREAM_VALUES.stdout'}. \#{'log.iostream' => stdout} ?'LOG_IOSTREAM_VALUES.stdout'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index ab04697e..ad1104ad 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -877,7 +877,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_OPERATION_TYPE. 'messaging.operation.type' - \#{?MESSAGING_OPERATION_TYPE => ?MESSAGING_OPERATION_TYPE_VALUES.publish}. + \#{?MESSAGING_OPERATION_TYPE => ?'MESSAGING_OPERATION_TYPE_VALUES.publish'}. \#{'messaging.operation.type' => publish} ?'MESSAGING_OPERATION_TYPE_VALUES.publish'. @@ -1048,7 +1048,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL. 'messaging.rocketmq.consumption_model' - \#{?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL => ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering}. + \#{?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'}. \#{'messaging.rocketmq.consumption_model' => clustering} ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'. @@ -1289,7 +1289,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_ROCKETMQ_MESSAGE_TYPE. 'messaging.rocketmq.message.type' - \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal}. + \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'}. \#{'messaging.rocketmq.message.type' => normal} ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'. @@ -1431,7 +1431,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS. 'messaging.servicebus.disposition_status' - \#{?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS => ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete}. + \#{?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS => ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'}. \#{'messaging.servicebus.disposition_status' => complete} ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'. @@ -1588,7 +1588,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_SYSTEM. 'messaging.system' - \#{?MESSAGING_SYSTEM => ?MESSAGING_SYSTEM_VALUES.activemq}. + \#{?MESSAGING_SYSTEM => ?'MESSAGING_SYSTEM_VALUES.activemq'}. \#{'messaging.system' => activemq} ?'MESSAGING_SYSTEM_VALUES.activemq'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex index de46a353..986a4484 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex @@ -392,7 +392,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?NETWORK_CONNECTION_SUBTYPE. 'network.connection.subtype' - \#{?NETWORK_CONNECTION_SUBTYPE => ?NETWORK_CONNECTION_SUBTYPE_VALUES.gprs}. + \#{?NETWORK_CONNECTION_SUBTYPE => ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'}. \#{'network.connection.subtype' => gprs} ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'. @@ -489,7 +489,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?NETWORK_CONNECTION_TYPE. 'network.connection.type' - \#{?NETWORK_CONNECTION_TYPE => ?NETWORK_CONNECTION_TYPE_VALUES.wifi}. + \#{?NETWORK_CONNECTION_TYPE => ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'}. \#{'network.connection.type' => wifi} ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'. @@ -564,7 +564,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?NETWORK_IO_DIRECTION. 'network.io.direction' - \#{?NETWORK_IO_DIRECTION => ?NETWORK_IO_DIRECTION_VALUES.transmit}. + \#{?NETWORK_IO_DIRECTION => ?'NETWORK_IO_DIRECTION_VALUES.transmit'}. \#{'network.io.direction' => transmit} ?'NETWORK_IO_DIRECTION_VALUES.transmit'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index c327ebc6..6c8e1e10 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ?OPENTRACING_REFTYPE. 'opentracing.ref_type' - \#{?OPENTRACING_REFTYPE => ?OPENTRACING_REFTYPE_VALUES.child_of}. + \#{?OPENTRACING_REFTYPE => ?'OPENTRACING_REFTYPE_VALUES.child_of'}. \#{'opentracing.ref_type' => child_of} ?'OPENTRACING_REFTYPE_VALUES.child_of'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex index c15e478e..f3a05b51 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -158,7 +158,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ?OS_TYPE. 'os.type' - \#{?OS_TYPE => ?OS_TYPE_VALUES.windows}. + \#{?OS_TYPE => ?'OS_TYPE_VALUES.windows'}. \#{'os.type' => windows} ?'OS_TYPE_VALUES.windows'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex index 63e7b139..c2dda120 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -140,7 +140,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?PROCESS_CONTEXTSWITCHTYPE. 'process.context_switch_type' - \#{?PROCESS_CONTEXTSWITCHTYPE => ?PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary}. + \#{?PROCESS_CONTEXTSWITCHTYPE => ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'}. \#{'process.context_switch_type' => voluntary} ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'. @@ -211,7 +211,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?PROCESS_CPU_STATE. 'process.cpu.state' - \#{?PROCESS_CPU_STATE => ?PROCESS_CPU_STATE_VALUES.system}. + \#{?PROCESS_CPU_STATE => ?'PROCESS_CPU_STATE_VALUES.system'}. \#{'process.cpu.state' => system} ?'PROCESS_CPU_STATE_VALUES.system'. @@ -540,7 +540,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?PROCESS_PAGING_FAULTTYPE. 'process.paging.fault_type' - \#{?PROCESS_PAGING_FAULTTYPE => ?PROCESS_PAGING_FAULTTYPE_VALUES.major}. + \#{?PROCESS_PAGING_FAULTTYPE => ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'}. \#{'process.paging.fault_type' => major} ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index 5aa404a9..f4c8ce5d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_CONNECTRPC_ERRORCODE. 'rpc.connect_rpc.error_code' - \#{?RPC_CONNECTRPC_ERRORCODE => ?RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled}. + \#{?RPC_CONNECTRPC_ERRORCODE => ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'}. \#{'rpc.connect_rpc.error_code' => cancelled} ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'. @@ -384,7 +384,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_GRPC_STATUSCODE. 'rpc.grpc.status_code' - \#{?RPC_GRPC_STATUSCODE => ?RPC_GRPC_STATUSCODE_VALUES.ok}. + \#{?RPC_GRPC_STATUSCODE => ?'RPC_GRPC_STATUSCODE_VALUES.ok'}. \#{'rpc.grpc.status_code' => 0} ?'RPC_GRPC_STATUSCODE_VALUES.ok'. @@ -652,7 +652,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_MESSAGE_TYPE. 'rpc.message.type' - \#{?RPC_MESSAGE_TYPE => ?RPC_MESSAGE_TYPE_VALUES.sent}. + \#{?RPC_MESSAGE_TYPE => ?'RPC_MESSAGE_TYPE_VALUES.sent'}. \#{'rpc.message.type' => SENT} ?'RPC_MESSAGE_TYPE_VALUES.sent'. @@ -824,7 +824,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_SYSTEM. 'rpc.system' - \#{?RPC_SYSTEM => ?RPC_SYSTEM_VALUES.grpc}. + \#{?RPC_SYSTEM => ?'RPC_SYSTEM_VALUES.grpc'}. \#{'rpc.system' => grpc} ?'RPC_SYSTEM_VALUES.grpc'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index 64ab953c..b30ce092 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -88,7 +88,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_CPU_STATE. 'system.cpu.state' - \#{?SYSTEM_CPU_STATE => ?SYSTEM_CPU_STATE_VALUES.user}. + \#{?SYSTEM_CPU_STATE => ?'SYSTEM_CPU_STATE_VALUES.user'}. \#{'system.cpu.state' => user} ?'SYSTEM_CPU_STATE_VALUES.user'. @@ -263,7 +263,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_FILESYSTEM_STATE. 'system.filesystem.state' - \#{?SYSTEM_FILESYSTEM_STATE => ?SYSTEM_FILESYSTEM_STATE_VALUES.used}. + \#{?SYSTEM_FILESYSTEM_STATE => ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'}. \#{'system.filesystem.state' => used} ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'. @@ -344,7 +344,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_FILESYSTEM_TYPE. 'system.filesystem.type' - \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES.fat32}. + \#{?SYSTEM_FILESYSTEM_TYPE => ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'}. \#{'system.filesystem.type' => fat32} ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'. @@ -426,7 +426,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_MEMORY_STATE. 'system.memory.state' - \#{?SYSTEM_MEMORY_STATE => ?SYSTEM_MEMORY_STATE_VALUES.used}. + \#{?SYSTEM_MEMORY_STATE => ?'SYSTEM_MEMORY_STATE_VALUES.used'}. \#{'system.memory.state' => used} ?'SYSTEM_MEMORY_STATE_VALUES.used'. @@ -521,7 +521,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_NETWORK_STATE. 'system.network.state' - \#{?SYSTEM_NETWORK_STATE => ?SYSTEM_NETWORK_STATE_VALUES.close}. + \#{?SYSTEM_NETWORK_STATE => ?'SYSTEM_NETWORK_STATE_VALUES.close'}. \#{'system.network.state' => close} ?'SYSTEM_NETWORK_STATE_VALUES.close'. @@ -603,7 +603,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PAGING_DIRECTION. 'system.paging.direction' - \#{?SYSTEM_PAGING_DIRECTION => ?SYSTEM_PAGING_DIRECTION_VALUES.in}. + \#{?SYSTEM_PAGING_DIRECTION => ?'SYSTEM_PAGING_DIRECTION_VALUES.in'}. \#{'system.paging.direction' => in} ?'SYSTEM_PAGING_DIRECTION_VALUES.in'. @@ -675,7 +675,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PAGING_STATE. 'system.paging.state' - \#{?SYSTEM_PAGING_STATE => ?SYSTEM_PAGING_STATE_VALUES.used}. + \#{?SYSTEM_PAGING_STATE => ?'SYSTEM_PAGING_STATE_VALUES.used'}. \#{'system.paging.state' => used} ?'SYSTEM_PAGING_STATE_VALUES.used'. @@ -747,7 +747,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PAGING_TYPE. 'system.paging.type' - \#{?SYSTEM_PAGING_TYPE => ?SYSTEM_PAGING_TYPE_VALUES.major}. + \#{?SYSTEM_PAGING_TYPE => ?'SYSTEM_PAGING_TYPE_VALUES.major'}. \#{'system.paging.type' => major} ?'SYSTEM_PAGING_TYPE_VALUES.major'. @@ -825,7 +825,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PROCESS_STATUS. 'system.process.status' - \#{?SYSTEM_PROCESS_STATUS => ?SYSTEM_PROCESS_STATUS_VALUES.running}. + \#{?SYSTEM_PROCESS_STATUS => ?'SYSTEM_PROCESS_STATUS_VALUES.running'}. \#{'system.process.status' => running} ?'SYSTEM_PROCESS_STATUS_VALUES.running'. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex index 423ca399..e726534d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -566,7 +566,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ?TLS_PROTOCOL_NAME. 'tls.protocol.name' - \#{?TLS_PROTOCOL_NAME => ?TLS_PROTOCOL_NAME_VALUES.ssl}. + \#{?TLS_PROTOCOL_NAME => ?'TLS_PROTOCOL_NAME_VALUES.ssl'}. \#{'tls.protocol.name' => ssl} ?'TLS_PROTOCOL_NAME_VALUES.ssl'. diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index ed514b15..d93fd585 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -259,7 +259,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?NETWORK_TRANSPORT. 'network.transport' - \#{?NETWORK_TRANSPORT => ?NETWORK_TRANSPORT_VALUES.tcp}. + \#{?NETWORK_TRANSPORT => ?'NETWORK_TRANSPORT_VALUES.tcp'}. \#{'network.transport' => tcp} ?'NETWORK_TRANSPORT_VALUES.tcp'. @@ -336,7 +336,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?NETWORK_TYPE. 'network.type' - \#{?NETWORK_TYPE => ?NETWORK_TYPE_VALUES.ipv4}. + \#{?NETWORK_TYPE => ?'NETWORK_TYPE_VALUES.ipv4'}. \#{'network.type' => ipv4} ?'NETWORK_TYPE_VALUES.ipv4'. diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index 5d3184ce..b04bce07 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -105,7 +105,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ?OTEL_STATUSCODE. 'otel.status_code' - \#{?OTEL_STATUSCODE => ?OTEL_STATUSCODE_VALUES.ok}. + \#{?OTEL_STATUSCODE => ?'OTEL_STATUSCODE_VALUES.ok'}. \#{'otel.status_code' => OK} ?'OTEL_STATUSCODE_VALUES.ok'. diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index 59eeb8ae..105280cb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ?TELEMETRY_SDK_LANGUAGE. 'telemetry.sdk.language' - \#{?TELEMETRY_SDK_LANGUAGE => ?TELEMETRY_SDK_LANGUAGE_VALUES.cpp}. + \#{?TELEMETRY_SDK_LANGUAGE => ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'}. \#{'telemetry.sdk.language' => cpp} ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'. diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index e749e887..8660f3b7 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -84,7 +84,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ?{{ attribute.name | snake_case_const | upper }}. '{{ attribute.name }}' - {% raw %}\#{{% endraw %}?{{ attribute.name | snake_case_const | upper }} => ?{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}?{{ attribute.name | snake_case_const | upper }} => ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'{% raw %}}{% endraw %}. {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'. From 8504d1629c39100238cd214db25806c4927c01a7 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 11:06:10 -0600 Subject: [PATCH 35/57] Remove custom enum functions --- .../README.md | 14 +- .../include/error_attributes.hrl | 1 - .../include/http_attributes.hrl | 1 - .../include/incubating/aws_attributes.hrl | 1 - .../include/incubating/cloud_attributes.hrl | 2 - .../incubating/container_attributes.hrl | 1 - .../include/incubating/db_attributes.hrl | 6 - .../include/incubating/disk_attributes.hrl | 1 - .../include/incubating/faas_attributes.hrl | 3 - .../include/incubating/gen_ai_attributes.hrl | 1 - .../include/incubating/graphql_attributes.hrl | 1 - .../include/incubating/host_attributes.hrl | 1 - .../include/incubating/http_attributes.hrl | 2 - .../include/incubating/log_attributes.hrl | 1 - .../incubating/messaging_attributes.hrl | 5 - .../include/incubating/network_attributes.hrl | 5 - .../incubating/opentracing_attributes.hrl | 1 - .../include/incubating/os_attributes.hrl | 1 - .../include/incubating/process_attributes.hrl | 3 - .../include/incubating/rpc_attributes.hrl | 5 - .../include/incubating/system_attributes.hrl | 10 -- .../include/incubating/tls_attributes.hrl | 1 - .../include/network_attributes.hrl | 2 - .../include/otel_attributes.hrl | 1 - .../include/telemetry_attributes.hrl | 1 - .../lib/error_attributes.ex | 15 +- .../lib/http_attributes.ex | 15 +- .../lib/incubating/aws_attributes.ex | 15 +- .../lib/incubating/cloud_attributes.ex | 30 +--- .../lib/incubating/container_attributes.ex | 15 +- .../lib/incubating/db_attributes.ex | 80 ++-------- .../lib/incubating/disk_attributes.ex | 15 +- .../lib/incubating/faas_attributes.ex | 45 +----- .../lib/incubating/gen_ai_attributes.ex | 15 +- .../lib/incubating/graphql_attributes.ex | 15 +- .../lib/incubating/host_attributes.ex | 15 +- .../lib/incubating/http_attributes.ex | 20 +-- .../lib/incubating/log_attributes.ex | 15 +- .../lib/incubating/messaging_attributes.ex | 75 ++-------- .../lib/incubating/network_attributes.ex | 55 +------ .../lib/incubating/opentracing_attributes.ex | 15 +- .../lib/incubating/os_attributes.ex | 15 +- .../lib/incubating/process_attributes.ex | 45 +----- .../lib/incubating/rpc_attributes.ex | 65 +------- .../lib/incubating/system_attributes.ex | 140 +++--------------- .../lib/incubating/tls_attributes.ex | 15 +- .../lib/network_attributes.ex | 30 +--- .../lib/otel_attributes.ex | 15 +- .../lib/sem_conv.ex | 19 +-- .../lib/telemetry_attributes.ex | 15 +- .../registry/elixir/semantic_attributes.ex.j2 | 15 +- .../erlang/semantic_attributes.hrl.j2 | 1 - .../test/opentelemetry_semconv_SUITE.erl | 3 +- 53 files changed, 113 insertions(+), 791 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 6eb2fed1..c0d8e873 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -40,14 +40,8 @@ You can then use the macros for the attribute keys: Enum Attribute types define each value in a macro with the attribute name prefixed. -Enum Attributes allow for a user-supplied value when no pre-defined option exists. To -use a custom value, a function macro is provided. - -``` --include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). - -?DB_SYSTEM("custom"). -``` +Enum Attributes allow for a user-supplied value when no pre-defined option exists. Users +may set this value manually while paying attention to the required value type #### Incubating Attributes & Metrics @@ -80,8 +74,8 @@ iex> OpenTelemetry.SemConv.URLAttributes.url_path() #### Enums -Enum Attribute types are defined by a function that returns a map of all defined values. -To get a particular value, you can use map dot or access patterns. Enum keys are always atoms. +Enum Attributes allow for a user-supplied value when no pre-defined option exists. Users +may set this value manually while paying attention to the required value type ``` iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().postgresql diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl index 1b5f6ed3..79c00158 100644 --- a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -20,4 +20,3 @@ -define('ERROR_TYPE_VALUES.other', '_OTHER'). --define(ERROR_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index abbb6888..60a4950d 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -42,7 +42,6 @@ -define('HTTP_REQUEST_METHOD_VALUES.other', '_OTHER'). --define(HTTP_REQUEST_METHOD_VALUES(Custom), Custom). %% Original HTTP method sent by the client in the request line. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index d01dd4af..d628305e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -120,7 +120,6 @@ -define('AWS_ECS_LAUNCHTYPE_VALUES.fargate', 'fargate'). --define(AWS_ECS_LAUNCHTYPE_VALUES(Custom), Custom). %% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index 08558d46..e5b8bd9b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -84,7 +84,6 @@ -define('CLOUD_PLATFORM_VALUES.tencent_cloud_scf', 'tencent_cloud_scf'). --define(CLOUD_PLATFORM_VALUES(Custom), Custom). %% Name of the cloud provider. @@ -105,7 +104,6 @@ -define('CLOUD_PROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). --define(CLOUD_PROVIDER_VALUES(Custom), Custom). %% The geographical region the resource is running. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index c639c341..18708b7c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -38,7 +38,6 @@ -define('CONTAINER_CPU_STATE_VALUES.kernel', 'kernel'). --define(CONTAINER_CPU_STATE_VALUES(Custom), Custom). %% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index 4af56991..e44a6b1f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -40,7 +40,6 @@ -define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_serial', 'local_serial'). --define(DB_CASSANDRA_CONSISTENCYLEVEL_VALUES(Custom), Custom). %% The data center of the coordinating node for a query. @@ -84,7 +83,6 @@ -define('DB_CLIENT_CONNECTIONS_STATE_VALUES.used', 'used'). --define(DB_CLIENT_CONNECTIONS_STATE_VALUES(Custom), Custom). %% The name of a collection (table, container) within the database. @@ -107,7 +105,6 @@ -define('DB_COSMOSDB_CONNECTIONMODE_VALUES.direct', 'direct'). --define(DB_COSMOSDB_CONNECTIONMODE_VALUES(Custom), Custom). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. @@ -147,7 +144,6 @@ -define('DB_COSMOSDB_OPERATIONTYPE_VALUES.execute_javascript', 'ExecuteJavaScript'). --define(DB_COSMOSDB_OPERATIONTYPE_VALUES(Custom), Custom). %% RU consumed for that operation @@ -344,7 +340,6 @@ -define('DB_SYSTEM_VALUES.trino', 'trino'). --define(DB_SYSTEM_VALUES(Custom), Custom). %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. @@ -362,4 +357,3 @@ -define('STATE_VALUES.used', 'used'). --define(STATE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl index 59b2d57c..da694619 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -21,4 +21,3 @@ -define('DISK_IO_DIRECTION_VALUES.write', 'write'). --define(DISK_IO_DIRECTION_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index 905ad3ed..2f597415 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -43,7 +43,6 @@ -define('FAAS_DOCUMENT_OPERATION_VALUES.delete', 'delete'). --define(FAAS_DOCUMENT_OPERATION_VALUES(Custom), Custom). %% 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). @@ -80,7 +79,6 @@ -define('FAAS_INVOKEDPROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). --define(FAAS_INVOKEDPROVIDER_VALUES(Custom), Custom). %% The cloud region of the invoked function. @@ -117,7 +115,6 @@ -define('FAAS_TRIGGER_VALUES.other', 'other'). --define(FAAS_TRIGGER_VALUES(Custom), Custom). %% The immutable version of the function being executed. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl index 7e10c374..ffeda5b7 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -55,7 +55,6 @@ -define('GENAI_SYSTEM_VALUES.openai', 'openai'). --define(GENAI_SYSTEM_VALUES(Custom), Custom). %% The number of tokens used in the LLM response (completion). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl index 241e607a..61f6278f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -31,4 +31,3 @@ -define('GRAPHQL_OPERATION_TYPE_VALUES.subscription', 'subscription'). --define(GRAPHQL_OPERATION_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index b284d429..f149c871 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -34,7 +34,6 @@ -define('HOST_ARCH_VALUES.x86', 'x86'). --define(HOST_ARCH_VALUES(Custom), Custom). %% The amount of level 2 memory cache available to the processor (in Bytes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index cfee7158..9f6d82dd 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -25,7 +25,6 @@ -define('HTTP_CONNECTION_STATE_VALUES.idle', 'idle'). --define(HTTP_CONNECTION_STATE_VALUES(Custom), Custom). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name` instead. @@ -43,7 +42,6 @@ -define('HTTP_FLAVOR_VALUES.quic', 'QUIC'). --define(HTTP_FLAVOR_VALUES(Custom), Custom). %% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. %% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index d0ce5ef6..436fa3fe 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -42,7 +42,6 @@ -define('LOG_IOSTREAM_VALUES.stderr', 'stderr'). --define(LOG_IOSTREAM_VALUES(Custom), Custom). %% A unique identifier for the Log Record. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index 7b0a8cff..9d4b5a84 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -154,7 +154,6 @@ -define('MESSAGING_OPERATION_TYPE_VALUES.settle', 'settle'). --define(MESSAGING_OPERATION_TYPE_VALUES(Custom), Custom). %% RabbitMQ message routing key. @@ -180,7 +179,6 @@ -define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.broadcasting', 'broadcasting'). --define(MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES(Custom), Custom). %% The delay time level for delay message, which determines the message delay time. @@ -220,7 +218,6 @@ -define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.transaction', 'transaction'). --define(MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES(Custom), Custom). %% Namespace of RocketMQ resources, resources in different namespaces are individual. @@ -245,7 +242,6 @@ -define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.defer', 'defer'). --define(MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES(Custom), Custom). %% Number of deliveries that have been attempted for this message. @@ -281,4 +277,3 @@ -define('MESSAGING_SYSTEM_VALUES.rocketmq', 'rocketmq'). --define(MESSAGING_SYSTEM_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl index 825afd56..be0d1a9c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -55,7 +55,6 @@ -define('NET_SOCK_FAMILY_VALUES.unix', 'unix'). --define(NET_SOCK_FAMILY_VALUES(Custom), Custom). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. @@ -91,7 +90,6 @@ -define('NET_TRANSPORT_VALUES.other', 'other'). --define(NET_TRANSPORT_VALUES(Custom), Custom). %% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. @@ -155,7 +153,6 @@ -define('NETWORK_CONNECTION_SUBTYPE_VALUES.lte_ca', 'lte_ca'). --define(NETWORK_CONNECTION_SUBTYPE_VALUES(Custom), Custom). %% The internet connection type. @@ -171,7 +168,6 @@ -define('NETWORK_CONNECTION_TYPE_VALUES.unknown', 'unknown'). --define(NETWORK_CONNECTION_TYPE_VALUES(Custom), Custom). %% The network IO operation direction. @@ -181,4 +177,3 @@ -define('NETWORK_IO_DIRECTION_VALUES.receive', 'receive'). --define(NETWORK_IO_DIRECTION_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index c540e906..f740a1c8 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -21,4 +21,3 @@ -define('OPENTRACING_REFTYPE_VALUES.follows_from', 'follows_from'). --define(OPENTRACING_REFTYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index ff9c1eeb..71f8a150 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -53,7 +53,6 @@ -define('OS_TYPE_VALUES.z_os', 'z_os'). --define(OS_TYPE_VALUES(Custom), Custom). %% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index 66bbd12c..74eef08f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -36,7 +36,6 @@ -define('PROCESS_CONTEXTSWITCHTYPE_VALUES.involuntary', 'involuntary'). --define(PROCESS_CONTEXTSWITCHTYPE_VALUES(Custom), Custom). %% The CPU state of the process. @@ -49,7 +48,6 @@ -define('PROCESS_CPU_STATE_VALUES.wait', 'wait'). --define(PROCESS_CPU_STATE_VALUES(Custom), Custom). %% The date and time the process was created, in ISO 8601 format. @@ -100,7 +98,6 @@ -define('PROCESS_PAGING_FAULTTYPE_VALUES.minor', 'minor'). --define(PROCESS_PAGING_FAULTTYPE_VALUES(Custom), Custom). %% Parent Process identifier (PPID). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index 1c79ebc2..bb711748 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -29,7 +29,6 @@ -define('MESSAGE_TYPE_VALUES.received', 'RECEIVED'). --define(MESSAGE_TYPE_VALUES(Custom), Custom). %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. @@ -71,7 +70,6 @@ -define('RPC_CONNECTRPC_ERRORCODE_VALUES.unauthenticated', 'unauthenticated'). --define(RPC_CONNECTRPC_ERRORCODE_VALUES(Custom), Custom). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. @@ -131,7 +129,6 @@ -define('RPC_GRPC_STATUSCODE_VALUES.unauthenticated', '16'). --define(RPC_GRPC_STATUSCODE_VALUES(Custom), Custom). %% `error.code` property of response if it is an error response. @@ -166,7 +163,6 @@ -define('RPC_MESSAGE_TYPE_VALUES.received', 'RECEIVED'). --define(RPC_MESSAGE_TYPE_VALUES(Custom), Custom). %% Uncompressed size of the message in bytes. @@ -194,4 +190,3 @@ -define('RPC_SYSTEM_VALUES.connect_rpc', 'connect_rpc'). --define(RPC_SYSTEM_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index e22e3457..535a05ff 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -35,7 +35,6 @@ -define('SYSTEM_CPU_STATE_VALUES.steal', 'steal'). --define(SYSTEM_CPU_STATE_VALUES(Custom), Custom). %% The device identifier @@ -59,7 +58,6 @@ -define('SYSTEM_FILESYSTEM_STATE_VALUES.reserved', 'reserved'). --define(SYSTEM_FILESYSTEM_STATE_VALUES(Custom), Custom). %% The filesystem type @@ -77,7 +75,6 @@ -define('SYSTEM_FILESYSTEM_TYPE_VALUES.ext4', 'ext4'). --define(SYSTEM_FILESYSTEM_TYPE_VALUES(Custom), Custom). %% The memory state @@ -93,7 +90,6 @@ -define('SYSTEM_MEMORY_STATE_VALUES.cached', 'cached'). --define(SYSTEM_MEMORY_STATE_VALUES(Custom), Custom). %% A stateless protocol MUST NOT set this attribute @@ -123,7 +119,6 @@ -define('SYSTEM_NETWORK_STATE_VALUES.time_wait', 'time_wait'). --define(SYSTEM_NETWORK_STATE_VALUES(Custom), Custom). %% The paging access direction @@ -133,7 +128,6 @@ -define('SYSTEM_PAGING_DIRECTION_VALUES.out', 'out'). --define(SYSTEM_PAGING_DIRECTION_VALUES(Custom), Custom). %% The memory paging state @@ -143,7 +137,6 @@ -define('SYSTEM_PAGING_STATE_VALUES.free', 'free'). --define(SYSTEM_PAGING_STATE_VALUES(Custom), Custom). %% The memory paging type @@ -153,7 +146,6 @@ -define('SYSTEM_PAGING_TYPE_VALUES.minor', 'minor'). --define(SYSTEM_PAGING_TYPE_VALUES(Custom), Custom). %% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) @@ -168,7 +160,6 @@ -define('SYSTEM_PROCESS_STATUS_VALUES.defunct', 'defunct'). --define(SYSTEM_PROCESS_STATUS_VALUES(Custom), Custom). %% @deprecated Replaced by `system.process.status`. %% Deprecated, use `system.process.status` instead. @@ -182,4 +173,3 @@ -define('SYSTEM_PROCESSES_STATUS_VALUES.defunct', 'defunct'). --define(SYSTEM_PROCESSES_STATUS_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index 865406b4..2560ec33 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -93,7 +93,6 @@ -define('TLS_PROTOCOL_NAME_VALUES.tls', 'tls'). --define(TLS_PROTOCOL_NAME_VALUES(Custom), Custom). %% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl index 6cb35eb8..4e487b28 100644 --- a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -50,7 +50,6 @@ -define('NETWORK_TRANSPORT_VALUES.unix', 'unix'). --define(NETWORK_TRANSPORT_VALUES(Custom), Custom). %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. @@ -60,4 +59,3 @@ -define('NETWORK_TYPE_VALUES.ipv6', 'ipv6'). --define(NETWORK_TYPE_VALUES(Custom), Custom). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index 50039a78..ad6471b3 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -29,7 +29,6 @@ -define('OTEL_STATUSCODE_VALUES.error', 'ERROR'). --define(OTEL_STATUSCODE_VALUES(Custom), Custom). %% Description of the Status if it has a value, otherwise not set. diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl index 4d514ee0..a6a80e4f 100644 --- a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -42,7 +42,6 @@ -define('TELEMETRY_SDK_LANGUAGE_VALUES.webjs', 'webjs'). --define(TELEMETRY_SDK_LANGUAGE_VALUES(Custom), Custom). %% The name of the telemetry SDK as defined above. diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index 5359e5c6..8755277a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -59,9 +59,6 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do iex> %{OpenTelemetry.SemConv.ErrorAttributes.error_type() => OpenTelemetry.SemConv.ErrorAttributes.error_type_values().other} %{:"error.type" => :_OTHER} - - iex> OpenTelemetry.SemConv.ErrorAttributes.error_type_values(:custom_value) - :custom_value ### Erlang @@ -69,14 +66,11 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do ?ERROR_TYPE. 'error.type' - \#{?ERROR_TYPE => ?'ERROR_TYPE_VALUES.other'}. - \#{'error.type' => _OTHER} - ?'ERROR_TYPE_VALUES.other'. _OTHER - ?ERROR_TYPE_VALUES(custom_value). - custom_value + \#{?ERROR_TYPE => ?'ERROR_TYPE_VALUES.other'}. + \#{'error.type' => _OTHER} ``` @@ -92,9 +86,4 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do :other => :_OTHER } end - - @spec error_type_values(atom() | String.t()) :: atom() | String.t() - def error_type_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 7ec77de9..32b9d8e4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -108,9 +108,6 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do iex> %{OpenTelemetry.SemConv.HTTPAttributes.http_request_method() => OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values().connect} %{:"http.request.method" => :CONNECT} - - iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values(:custom_value) - :custom_value ### Erlang @@ -118,14 +115,11 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ?HTTP_REQUEST_METHOD. 'http.request.method' - \#{?HTTP_REQUEST_METHOD => ?'HTTP_REQUEST_METHOD_VALUES.connect'}. - \#{'http.request.method' => CONNECT} - ?'HTTP_REQUEST_METHOD_VALUES.connect'. CONNECT - ?HTTP_REQUEST_METHOD_VALUES(custom_value). - custom_value + \#{?HTTP_REQUEST_METHOD => ?'HTTP_REQUEST_METHOD_VALUES.connect'}. + \#{'http.request.method' => CONNECT} ``` @@ -151,11 +145,6 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do } end - @spec http_request_method_values(atom() | String.t()) :: atom() | String.t() - def http_request_method_values(custom_value) do - custom_value - end - @doc """ Original HTTP method sent by the client in the request line. ### Value type diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex index 35bd962b..5d5828f6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -793,9 +793,6 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do iex> %{OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype() => OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values().ec2} %{:"aws.ecs.launchtype" => :ec2} - - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values(:custom_value) - :custom_value ### Erlang @@ -803,14 +800,11 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ?AWS_ECS_LAUNCHTYPE. 'aws.ecs.launchtype' - \#{?AWS_ECS_LAUNCHTYPE => ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'}. - \#{'aws.ecs.launchtype' => ec2} - ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'. ec2 - ?AWS_ECS_LAUNCHTYPE_VALUES(custom_value). - custom_value + \#{?AWS_ECS_LAUNCHTYPE => ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'}. + \#{'aws.ecs.launchtype' => ec2} ``` @@ -828,11 +822,6 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do } end - @spec aws_ecs_launchtype_values(atom() | String.t()) :: atom() | String.t() - def aws_ecs_launchtype_values(custom_value) do - custom_value - end - @doc """ The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index 329a2fdd..7238dc47 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -159,9 +159,6 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do iex> %{OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform() => OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values().alibaba_cloud_ecs} %{:"cloud.platform" => :alibaba_cloud_ecs} - - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values(:custom_value) - :custom_value ### Erlang @@ -169,14 +166,11 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ?CLOUD_PLATFORM. 'cloud.platform' - \#{?CLOUD_PLATFORM => ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'}. - \#{'cloud.platform' => alibaba_cloud_ecs} - ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'. alibaba_cloud_ecs - ?CLOUD_PLATFORM_VALUES(custom_value). - custom_value + \#{?CLOUD_PLATFORM => ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'}. + \#{'cloud.platform' => alibaba_cloud_ecs} ``` @@ -220,11 +214,6 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do } end - @spec cloud_platform_values(atom() | String.t()) :: atom() | String.t() - def cloud_platform_values(custom_value) do - custom_value - end - @typedoc """ Name of the cloud provider. @@ -264,9 +253,6 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do iex> %{OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider() => OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values().alibaba_cloud} %{:"cloud.provider" => :alibaba_cloud} - - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values(:custom_value) - :custom_value ### Erlang @@ -274,14 +260,11 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ?CLOUD_PROVIDER. 'cloud.provider' - \#{?CLOUD_PROVIDER => ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'}. - \#{'cloud.provider' => alibaba_cloud} - ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'. alibaba_cloud - ?CLOUD_PROVIDER_VALUES(custom_value). - custom_value + \#{?CLOUD_PROVIDER => ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'}. + \#{'cloud.provider' => alibaba_cloud} ``` @@ -304,11 +287,6 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do } end - @spec cloud_provider_values(atom() | String.t()) :: atom() | String.t() - def cloud_provider_values(custom_value) do - custom_value - end - @doc """ The geographical region the resource is running. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex index fcb598cd..6478177f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -141,9 +141,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do iex> %{OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() => OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user} %{:"container.cpu.state" => :user} - - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values(:custom_value) - :custom_value ### Erlang @@ -151,14 +148,11 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ?CONTAINER_CPU_STATE. 'container.cpu.state' - \#{?CONTAINER_CPU_STATE => ?'CONTAINER_CPU_STATE_VALUES.user'}. - \#{'container.cpu.state' => user} - ?'CONTAINER_CPU_STATE_VALUES.user'. user - ?CONTAINER_CPU_STATE_VALUES(custom_value). - custom_value + \#{?CONTAINER_CPU_STATE => ?'CONTAINER_CPU_STATE_VALUES.user'}. + \#{'container.cpu.state' => user} ``` @@ -177,11 +171,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do } end - @spec container_cpu_state_values(atom() | String.t()) :: atom() | String.t() - def container_cpu_state_values(custom_value) do - custom_value - end - @doc """ Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index 1c3dc96c..fe34e1a7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -51,9 +51,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values().all} %{:"db.cassandra.consistency_level" => :all} - - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values(:custom_value) - :custom_value ### Erlang @@ -61,14 +58,11 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_CASSANDRA_CONSISTENCYLEVEL. 'db.cassandra.consistency_level' - \#{?DB_CASSANDRA_CONSISTENCYLEVEL => ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'}. - \#{'db.cassandra.consistency_level' => all} - ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'. all - ?DB_CASSANDRA_CONSISTENCYLEVEL_VALUES(custom_value). - custom_value + \#{?DB_CASSANDRA_CONSISTENCYLEVEL => ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'}. + \#{'db.cassandra.consistency_level' => all} ``` @@ -95,11 +89,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_cassandra_consistencylevel_values(atom() | String.t()) :: atom() | String.t() - def db_cassandra_consistencylevel_values(custom_value) do - custom_value - end - @doc """ The data center of the coordinating node for a query. @@ -333,9 +322,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle} %{:"db.client.connections.state" => :idle} - - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values(:custom_value) - :custom_value ### Erlang @@ -343,14 +329,11 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_CLIENT_CONNECTIONS_STATE. 'db.client.connections.state' - \#{?DB_CLIENT_CONNECTIONS_STATE => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'}. - \#{'db.client.connections.state' => idle} - ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'. idle - ?DB_CLIENT_CONNECTIONS_STATE_VALUES(custom_value). - custom_value + \#{?DB_CLIENT_CONNECTIONS_STATE => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'}. + \#{'db.client.connections.state' => idle} ``` @@ -368,11 +351,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_client_connections_state_values(atom() | String.t()) :: atom() | String.t() - def db_client_connections_state_values(custom_value) do - custom_value - end - @doc """ The name of a collection (table, container) within the database. ### Value type @@ -478,9 +456,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values().gateway} %{:"db.cosmosdb.connection_mode" => :gateway} - - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values(:custom_value) - :custom_value ### Erlang @@ -488,14 +463,11 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_COSMOSDB_CONNECTIONMODE. 'db.cosmosdb.connection_mode' - \#{?DB_COSMOSDB_CONNECTIONMODE => ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'}. - \#{'db.cosmosdb.connection_mode' => gateway} - ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'. gateway - ?DB_COSMOSDB_CONNECTIONMODE_VALUES(custom_value). - custom_value + \#{?DB_COSMOSDB_CONNECTIONMODE => ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'}. + \#{'db.cosmosdb.connection_mode' => gateway} ``` @@ -513,11 +485,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_cosmosdb_connectionmode_values(atom() | String.t()) :: atom() | String.t() - def db_cosmosdb_connectionmode_values(custom_value) do - custom_value - end - @deprecated """ Replaced by `db.collection.name`. """ @@ -579,9 +546,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values().invalid} %{:"db.cosmosdb.operation_type" => :Invalid} - - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values(:custom_value) - :custom_value ### Erlang @@ -589,14 +553,11 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_COSMOSDB_OPERATIONTYPE. 'db.cosmosdb.operation_type' - \#{?DB_COSMOSDB_OPERATIONTYPE => ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'}. - \#{'db.cosmosdb.operation_type' => Invalid} - ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'. Invalid - ?DB_COSMOSDB_OPERATIONTYPE_VALUES(custom_value). - custom_value + \#{?DB_COSMOSDB_OPERATIONTYPE => ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'}. + \#{'db.cosmosdb.operation_type' => Invalid} ``` @@ -627,11 +588,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_cosmosdb_operationtype_values(atom() | String.t()) :: atom() | String.t() - def db_cosmosdb_operationtype_values(custom_value) do - custom_value - end - @doc """ RU consumed for that operation ### Value type @@ -1208,9 +1164,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_system() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().other_sql} %{:"db.system" => :other_sql} - - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values(:custom_value) - :custom_value ### Erlang @@ -1218,14 +1171,11 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ?DB_SYSTEM. 'db.system' - \#{?DB_SYSTEM => ?'DB_SYSTEM_VALUES.other_sql'}. - \#{'db.system' => other_sql} - ?'DB_SYSTEM_VALUES.other_sql'. other_sql - ?DB_SYSTEM_VALUES(custom_value). - custom_value + \#{?DB_SYSTEM => ?'DB_SYSTEM_VALUES.other_sql'}. + \#{'db.system' => other_sql} ``` @@ -1293,11 +1243,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do } end - @spec db_system_values(atom() | String.t()) :: atom() | String.t() - def db_system_values(custom_value) do - custom_value - end - @deprecated """ No replacement at this time. """ @@ -1340,9 +1285,4 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do :used => :used } end - - @spec state_values(atom() | String.t()) :: atom() | String.t() - def state_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex index 53e29a0a..a9451acf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex @@ -36,9 +36,6 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do iex> %{OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() => OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read} %{:"disk.io.direction" => :read} - - iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values(:custom_value) - :custom_value ### Erlang @@ -46,14 +43,11 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do ?DISK_IO_DIRECTION. 'disk.io.direction' - \#{?DISK_IO_DIRECTION => ?'DISK_IO_DIRECTION_VALUES.read'}. - \#{'disk.io.direction' => read} - ?'DISK_IO_DIRECTION_VALUES.read'. read - ?DISK_IO_DIRECTION_VALUES(custom_value). - custom_value + \#{?DISK_IO_DIRECTION => ?'DISK_IO_DIRECTION_VALUES.read'}. + \#{'disk.io.direction' => read} ``` @@ -70,9 +64,4 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do :write => :write } end - - @spec disk_io_direction_values(atom() | String.t()) :: atom() | String.t() - def disk_io_direction_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index 876f1df4..61307323 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -160,9 +160,6 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values().insert} %{:"faas.document.operation" => :insert} - - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values(:custom_value) - :custom_value ### Erlang @@ -170,14 +167,11 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?FAAS_DOCUMENT_OPERATION. 'faas.document.operation' - \#{?FAAS_DOCUMENT_OPERATION => ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'}. - \#{'faas.document.operation' => insert} - ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'. insert - ?FAAS_DOCUMENT_OPERATION_VALUES(custom_value). - custom_value + \#{?FAAS_DOCUMENT_OPERATION => ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'}. + \#{'faas.document.operation' => insert} ``` @@ -196,11 +190,6 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do } end - @spec faas_document_operation_values(atom() | String.t()) :: atom() | String.t() - def faas_document_operation_values(custom_value) do - custom_value - end - @doc """ 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). @@ -380,9 +369,6 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values().alibaba_cloud} %{:"faas.invoked_provider" => :alibaba_cloud} - - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values(:custom_value) - :custom_value ### Erlang @@ -390,14 +376,11 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?FAAS_INVOKEDPROVIDER. 'faas.invoked_provider' - \#{?FAAS_INVOKEDPROVIDER => ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'}. - \#{'faas.invoked_provider' => alibaba_cloud} - ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'. alibaba_cloud - ?FAAS_INVOKEDPROVIDER_VALUES(custom_value). - custom_value + \#{?FAAS_INVOKEDPROVIDER => ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'}. + \#{'faas.invoked_provider' => alibaba_cloud} ``` @@ -418,11 +401,6 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do } end - @spec faas_invokedprovider_values(atom() | String.t()) :: atom() | String.t() - def faas_invokedprovider_values(custom_value) do - custom_value - end - @doc """ The cloud region of the invoked function. @@ -617,9 +595,6 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values().datasource} %{:"faas.trigger" => :datasource} - - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values(:custom_value) - :custom_value ### Erlang @@ -627,14 +602,11 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ?FAAS_TRIGGER. 'faas.trigger' - \#{?FAAS_TRIGGER => ?'FAAS_TRIGGER_VALUES.datasource'}. - \#{'faas.trigger' => datasource} - ?'FAAS_TRIGGER_VALUES.datasource'. datasource - ?FAAS_TRIGGER_VALUES(custom_value). - custom_value + \#{?FAAS_TRIGGER => ?'FAAS_TRIGGER_VALUES.datasource'}. + \#{'faas.trigger' => datasource} ``` @@ -655,11 +627,6 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do } end - @spec faas_trigger_values(atom() | String.t()) :: atom() | String.t() - def faas_trigger_values(custom_value) do - custom_value - end - @doc """ The immutable version of the function being executed. ### Value type diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex index 9212d275..fc210c65 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex @@ -332,9 +332,6 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai} %{:"gen_ai.system" => :openai} - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values(:custom_value) - :custom_value ### Erlang @@ -342,14 +339,11 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ?GENAI_SYSTEM. 'gen_ai.system' - \#{?GENAI_SYSTEM => ?'GENAI_SYSTEM_VALUES.openai'}. - \#{'gen_ai.system' => openai} - ?'GENAI_SYSTEM_VALUES.openai'. openai - ?GENAI_SYSTEM_VALUES(custom_value). - custom_value + \#{?GENAI_SYSTEM => ?'GENAI_SYSTEM_VALUES.openai'}. + \#{'gen_ai.system' => openai} ``` @@ -366,11 +360,6 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do } end - @spec genai_system_values(atom() | String.t()) :: atom() | String.t() - def genai_system_values(custom_value) do - custom_value - end - @doc """ The number of tokens used in the LLM response (completion). ### Value type diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex index 7f29ec48..b8cfea1d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex @@ -105,9 +105,6 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do iex> %{OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type() => OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query} %{:"graphql.operation.type" => :query} - - iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values(:custom_value) - :custom_value ### Erlang @@ -115,14 +112,11 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ?GRAPHQL_OPERATION_TYPE. 'graphql.operation.type' - \#{?GRAPHQL_OPERATION_TYPE => ?'GRAPHQL_OPERATION_TYPE_VALUES.query'}. - \#{'graphql.operation.type' => query} - ?'GRAPHQL_OPERATION_TYPE_VALUES.query'. query - ?GRAPHQL_OPERATION_TYPE_VALUES(custom_value). - custom_value + \#{?GRAPHQL_OPERATION_TYPE => ?'GRAPHQL_OPERATION_TYPE_VALUES.query'}. + \#{'graphql.operation.type' => query} ``` @@ -140,9 +134,4 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do :subscription => :subscription } end - - @spec graphql_operation_type_values(atom() | String.t()) :: atom() | String.t() - def graphql_operation_type_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex index 06590668..eabe46c6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -45,9 +45,6 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do iex> %{OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch() => OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values().amd64} %{:"host.arch" => :amd64} - - iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values(:custom_value) - :custom_value ### Erlang @@ -55,14 +52,11 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ?HOST_ARCH. 'host.arch' - \#{?HOST_ARCH => ?'HOST_ARCH_VALUES.amd64'}. - \#{'host.arch' => amd64} - ?'HOST_ARCH_VALUES.amd64'. amd64 - ?HOST_ARCH_VALUES(custom_value). - custom_value + \#{?HOST_ARCH => ?'HOST_ARCH_VALUES.amd64'}. + \#{'host.arch' => amd64} ``` @@ -86,11 +80,6 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do } end - @spec host_arch_values(atom() | String.t()) :: atom() | String.t() - def host_arch_values(custom_value) do - custom_value - end - @doc """ The amount of level 2 memory cache available to the processor (in Bytes). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex index 736c3644..972676ee 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -44,9 +44,6 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do iex> %{OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state() => OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active} %{:"http.connection.state" => :active} - - iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values(:custom_value) - :custom_value ### Erlang @@ -54,14 +51,11 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ?HTTP_CONNECTION_STATE. 'http.connection.state' - \#{?HTTP_CONNECTION_STATE => ?'HTTP_CONNECTION_STATE_VALUES.active'}. - \#{'http.connection.state' => active} - ?'HTTP_CONNECTION_STATE_VALUES.active'. active - ?HTTP_CONNECTION_STATE_VALUES(custom_value). - custom_value + \#{?HTTP_CONNECTION_STATE => ?'HTTP_CONNECTION_STATE_VALUES.active'}. + \#{'http.connection.state' => active} ``` @@ -79,11 +73,6 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do } end - @spec http_connection_state_values(atom() | String.t()) :: atom() | String.t() - def http_connection_state_values(custom_value) do - custom_value - end - @typedoc """ Deprecated, use `network.protocol.name` instead. @@ -123,11 +112,6 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do } end - @spec http_flavor_values(atom() | String.t()) :: atom() | String.t() - def http_flavor_values(custom_value) do - custom_value - end - @deprecated """ Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. """ diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex index 88a3d97f..d8b0cd2e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -165,9 +165,6 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do iex> %{OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream() => OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values().stdout} %{:"log.iostream" => :stdout} - - iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values(:custom_value) - :custom_value ### Erlang @@ -175,14 +172,11 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ?LOG_IOSTREAM. 'log.iostream' - \#{?LOG_IOSTREAM => ?'LOG_IOSTREAM_VALUES.stdout'}. - \#{'log.iostream' => stdout} - ?'LOG_IOSTREAM_VALUES.stdout'. stdout - ?LOG_IOSTREAM_VALUES(custom_value). - custom_value + \#{?LOG_IOSTREAM => ?'LOG_IOSTREAM_VALUES.stdout'}. + \#{'log.iostream' => stdout} ``` @@ -200,11 +194,6 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do } end - @spec log_iostream_values(atom() | String.t()) :: atom() | String.t() - def log_iostream_values(custom_value) do - custom_value - end - @doc """ A unique identifier for the Log Record. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index ad1104ad..9c5e435d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -867,9 +867,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values().publish} %{:"messaging.operation.type" => :publish} - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values(:custom_value) - :custom_value ### Erlang @@ -877,14 +874,11 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_OPERATION_TYPE. 'messaging.operation.type' - \#{?MESSAGING_OPERATION_TYPE => ?'MESSAGING_OPERATION_TYPE_VALUES.publish'}. - \#{'messaging.operation.type' => publish} - ?'MESSAGING_OPERATION_TYPE_VALUES.publish'. publish - ?MESSAGING_OPERATION_TYPE_VALUES(custom_value). - custom_value + \#{?MESSAGING_OPERATION_TYPE => ?'MESSAGING_OPERATION_TYPE_VALUES.publish'}. + \#{'messaging.operation.type' => publish} ``` @@ -905,11 +899,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_operation_type_values(atom() | String.t()) :: atom() | String.t() - def messaging_operation_type_values(custom_value) do - custom_value - end - @doc """ RabbitMQ message routing key. @@ -1038,9 +1027,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values().clustering} %{:"messaging.rocketmq.consumption_model" => :clustering} - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values(:custom_value) - :custom_value ### Erlang @@ -1048,14 +1034,11 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL. 'messaging.rocketmq.consumption_model' - \#{?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'}. - \#{'messaging.rocketmq.consumption_model' => clustering} - ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'. clustering - ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES(custom_value). - custom_value + \#{?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'}. + \#{'messaging.rocketmq.consumption_model' => clustering} ``` @@ -1074,11 +1057,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_rocketmq_consumptionmodel_values(atom() | String.t()) :: atom() | String.t() - def messaging_rocketmq_consumptionmodel_values(custom_value) do - custom_value - end - @doc """ The delay time level for delay message, which determines the message delay time. @@ -1279,9 +1257,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values().normal} %{:"messaging.rocketmq.message.type" => :normal} - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values(:custom_value) - :custom_value ### Erlang @@ -1289,14 +1264,11 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_ROCKETMQ_MESSAGE_TYPE. 'messaging.rocketmq.message.type' - \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'}. - \#{'messaging.rocketmq.message.type' => normal} - ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'. normal - ?MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES(custom_value). - custom_value + \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'}. + \#{'messaging.rocketmq.message.type' => normal} ``` @@ -1316,11 +1288,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_rocketmq_message_type_values(atom() | String.t()) :: atom() | String.t() - def messaging_rocketmq_message_type_values(custom_value) do - custom_value - end - @doc """ Namespace of RocketMQ resources, resources in different namespaces are individual. @@ -1421,9 +1388,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values().complete} %{:"messaging.servicebus.disposition_status" => :complete} - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values(:custom_value) - :custom_value ### Erlang @@ -1431,14 +1395,11 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS. 'messaging.servicebus.disposition_status' - \#{?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS => ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'}. - \#{'messaging.servicebus.disposition_status' => complete} - ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'. complete - ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES(custom_value). - custom_value + \#{?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS => ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'}. + \#{'messaging.servicebus.disposition_status' => complete} ``` @@ -1459,11 +1420,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do } end - @spec messaging_servicebus_dispositionstatus_values(atom() | String.t()) :: atom() | String.t() - def messaging_servicebus_dispositionstatus_values(custom_value) do - custom_value - end - @doc """ Number of deliveries that have been attempted for this message. @@ -1578,9 +1534,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values().activemq} %{:"messaging.system" => :activemq} - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values(:custom_value) - :custom_value ### Erlang @@ -1588,14 +1541,11 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ?MESSAGING_SYSTEM. 'messaging.system' - \#{?MESSAGING_SYSTEM => ?'MESSAGING_SYSTEM_VALUES.activemq'}. - \#{'messaging.system' => activemq} - ?'MESSAGING_SYSTEM_VALUES.activemq'. activemq - ?MESSAGING_SYSTEM_VALUES(custom_value). - custom_value + \#{?MESSAGING_SYSTEM => ?'MESSAGING_SYSTEM_VALUES.activemq'}. + \#{'messaging.system' => activemq} ``` @@ -1620,9 +1570,4 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :rocketmq => :rocketmq } end - - @spec messaging_system_values(atom() | String.t()) :: atom() | String.t() - def messaging_system_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex index 986a4484..bbf95825 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex @@ -98,11 +98,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec net_sock_family_values(atom() | String.t()) :: atom() | String.t() - def net_sock_family_values(custom_value) do - custom_value - end - @deprecated """ Replaced by `network.local.address`. """ @@ -179,11 +174,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec net_transport_values(atom() | String.t()) :: atom() | String.t() - def net_transport_values(custom_value) do - custom_value - end - @doc """ The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. ### Value type @@ -382,9 +372,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs} %{:"network.connection.subtype" => :gprs} - - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values(:custom_value) - :custom_value ### Erlang @@ -392,14 +379,11 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?NETWORK_CONNECTION_SUBTYPE. 'network.connection.subtype' - \#{?NETWORK_CONNECTION_SUBTYPE => ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'}. - \#{'network.connection.subtype' => gprs} - ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'. gprs - ?NETWORK_CONNECTION_SUBTYPE_VALUES(custom_value). - custom_value + \#{?NETWORK_CONNECTION_SUBTYPE => ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'}. + \#{'network.connection.subtype' => gprs} ``` @@ -436,11 +420,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec network_connection_subtype_values(atom() | String.t()) :: atom() | String.t() - def network_connection_subtype_values(custom_value) do - custom_value - end - @typedoc """ The internet connection type. @@ -479,9 +458,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi} %{:"network.connection.type" => :wifi} - - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values(:custom_value) - :custom_value ### Erlang @@ -489,14 +465,11 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?NETWORK_CONNECTION_TYPE. 'network.connection.type' - \#{?NETWORK_CONNECTION_TYPE => ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'}. - \#{'network.connection.type' => wifi} - ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'. wifi - ?NETWORK_CONNECTION_TYPE_VALUES(custom_value). - custom_value + \#{?NETWORK_CONNECTION_TYPE => ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'}. + \#{'network.connection.type' => wifi} ``` @@ -517,11 +490,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do } end - @spec network_connection_type_values(atom() | String.t()) :: atom() | String.t() - def network_connection_type_values(custom_value) do - custom_value - end - @typedoc """ The network IO operation direction. @@ -554,9 +522,6 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit} %{:"network.io.direction" => :transmit} - - iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values(:custom_value) - :custom_value ### Erlang @@ -564,14 +529,11 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ?NETWORK_IO_DIRECTION. 'network.io.direction' - \#{?NETWORK_IO_DIRECTION => ?'NETWORK_IO_DIRECTION_VALUES.transmit'}. - \#{'network.io.direction' => transmit} - ?'NETWORK_IO_DIRECTION_VALUES.transmit'. transmit - ?NETWORK_IO_DIRECTION_VALUES(custom_value). - custom_value + \#{?NETWORK_IO_DIRECTION => ?'NETWORK_IO_DIRECTION_VALUES.transmit'}. + \#{'network.io.direction' => transmit} ``` @@ -588,9 +550,4 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do :receive => :receive } end - - @spec network_io_direction_values(atom() | String.t()) :: atom() | String.t() - def network_io_direction_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index 6c8e1e10..3e49bda1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -35,9 +35,6 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do iex> %{OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype() => OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values().child_of} %{:"opentracing.ref_type" => :child_of} - - iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values(:custom_value) - :custom_value ### Erlang @@ -45,14 +42,11 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ?OPENTRACING_REFTYPE. 'opentracing.ref_type' - \#{?OPENTRACING_REFTYPE => ?'OPENTRACING_REFTYPE_VALUES.child_of'}. - \#{'opentracing.ref_type' => child_of} - ?'OPENTRACING_REFTYPE_VALUES.child_of'. child_of - ?OPENTRACING_REFTYPE_VALUES(custom_value). - custom_value + \#{?OPENTRACING_REFTYPE => ?'OPENTRACING_REFTYPE_VALUES.child_of'}. + \#{'opentracing.ref_type' => child_of} ``` @@ -69,9 +63,4 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do :follows_from => :follows_from } end - - @spec opentracing_reftype_values(atom() | String.t()) :: atom() | String.t() - def opentracing_reftype_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex index f3a05b51..fa836224 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -148,9 +148,6 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do iex> %{OpenTelemetry.SemConv.Incubating.OSAttributes.os_type() => OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows} %{:"os.type" => :windows} - - iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values(:custom_value) - :custom_value ### Erlang @@ -158,14 +155,11 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ?OS_TYPE. 'os.type' - \#{?OS_TYPE => ?'OS_TYPE_VALUES.windows'}. - \#{'os.type' => windows} - ?'OS_TYPE_VALUES.windows'. windows - ?OS_TYPE_VALUES(custom_value). - custom_value + \#{?OS_TYPE => ?'OS_TYPE_VALUES.windows'}. + \#{'os.type' => windows} ``` @@ -192,11 +186,6 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do } end - @spec os_type_values(atom() | String.t()) :: atom() | String.t() - def os_type_values(custom_value) do - custom_value - end - @doc """ The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex index c2dda120..f8dc9c1c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -130,9 +130,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values().voluntary} %{:"process.context_switch_type" => :voluntary} - - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values(:custom_value) - :custom_value ### Erlang @@ -140,14 +137,11 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?PROCESS_CONTEXTSWITCHTYPE. 'process.context_switch_type' - \#{?PROCESS_CONTEXTSWITCHTYPE => ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'}. - \#{'process.context_switch_type' => voluntary} - ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'. voluntary - ?PROCESS_CONTEXTSWITCHTYPE_VALUES(custom_value). - custom_value + \#{?PROCESS_CONTEXTSWITCHTYPE => ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'}. + \#{'process.context_switch_type' => voluntary} ``` @@ -165,11 +159,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do } end - @spec process_contextswitchtype_values(atom() | String.t()) :: atom() | String.t() - def process_contextswitchtype_values(custom_value) do - custom_value - end - @typedoc """ The CPU state of the process. @@ -201,9 +190,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system} %{:"process.cpu.state" => :system} - - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values(:custom_value) - :custom_value ### Erlang @@ -211,14 +197,11 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?PROCESS_CPU_STATE. 'process.cpu.state' - \#{?PROCESS_CPU_STATE => ?'PROCESS_CPU_STATE_VALUES.system'}. - \#{'process.cpu.state' => system} - ?'PROCESS_CPU_STATE_VALUES.system'. system - ?PROCESS_CPU_STATE_VALUES(custom_value). - custom_value + \#{?PROCESS_CPU_STATE => ?'PROCESS_CPU_STATE_VALUES.system'}. + \#{'process.cpu.state' => system} ``` @@ -237,11 +220,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do } end - @spec process_cpu_state_values(atom() | String.t()) :: atom() | String.t() - def process_cpu_state_values(custom_value) do - custom_value - end - @doc """ The date and time the process was created, in ISO 8601 format. @@ -530,9 +508,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values().major} %{:"process.paging.fault_type" => :major} - - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values(:custom_value) - :custom_value ### Erlang @@ -540,14 +515,11 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ?PROCESS_PAGING_FAULTTYPE. 'process.paging.fault_type' - \#{?PROCESS_PAGING_FAULTTYPE => ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'}. - \#{'process.paging.fault_type' => major} - ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'. major - ?PROCESS_PAGING_FAULTTYPE_VALUES(custom_value). - custom_value + \#{?PROCESS_PAGING_FAULTTYPE => ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'}. + \#{'process.paging.fault_type' => major} ``` @@ -565,11 +537,6 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do } end - @spec process_paging_faulttype_values(atom() | String.t()) :: atom() | String.t() - def process_paging_faulttype_values(custom_value) do - custom_value - end - @doc """ Parent Process identifier (PPID). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index f4c8ce5d..7a4c85dc 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -47,11 +47,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec message_type_values(atom() | String.t()) :: atom() | String.t() - def message_type_values(custom_value) do - custom_value - end - @deprecated """ Replaced by `rpc.message.uncompressed_size`. """ @@ -115,9 +110,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values().cancelled} %{:"rpc.connect_rpc.error_code" => :cancelled} - - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values(:custom_value) - :custom_value ### Erlang @@ -125,14 +117,11 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_CONNECTRPC_ERRORCODE. 'rpc.connect_rpc.error_code' - \#{?RPC_CONNECTRPC_ERRORCODE => ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'}. - \#{'rpc.connect_rpc.error_code' => cancelled} - ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'. cancelled - ?RPC_CONNECTRPC_ERRORCODE_VALUES(custom_value). - custom_value + \#{?RPC_CONNECTRPC_ERRORCODE => ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'}. + \#{'rpc.connect_rpc.error_code' => cancelled} ``` @@ -164,11 +153,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec rpc_connectrpc_errorcode_values(atom() | String.t()) :: atom() | String.t() - def rpc_connectrpc_errorcode_values(custom_value) do - custom_value - end - @doc """ Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. @@ -374,9 +358,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values().ok} %{:"rpc.grpc.status_code" => 0} - - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values(27) - 27 ### Erlang @@ -384,14 +365,11 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_GRPC_STATUSCODE. 'rpc.grpc.status_code' - \#{?RPC_GRPC_STATUSCODE => ?'RPC_GRPC_STATUSCODE_VALUES.ok'}. - \#{'rpc.grpc.status_code' => 0} - ?'RPC_GRPC_STATUSCODE_VALUES.ok'. 0 - ?RPC_GRPC_STATUSCODE_VALUES(27). - 27 + \#{?RPC_GRPC_STATUSCODE => ?'RPC_GRPC_STATUSCODE_VALUES.ok'}. + \#{'rpc.grpc.status_code' => 0} ``` @@ -424,11 +402,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec rpc_grpc_statuscode_values(integer()) :: integer() - def rpc_grpc_statuscode_values(custom_value) do - custom_value - end - @doc """ `error.code` property of response if it is an error response. ### Value type @@ -642,9 +615,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values().sent} %{:"rpc.message.type" => :SENT} - - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values(:custom_value) - :custom_value ### Erlang @@ -652,14 +622,11 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_MESSAGE_TYPE. 'rpc.message.type' - \#{?RPC_MESSAGE_TYPE => ?'RPC_MESSAGE_TYPE_VALUES.sent'}. - \#{'rpc.message.type' => SENT} - ?'RPC_MESSAGE_TYPE_VALUES.sent'. SENT - ?RPC_MESSAGE_TYPE_VALUES(custom_value). - custom_value + \#{?RPC_MESSAGE_TYPE => ?'RPC_MESSAGE_TYPE_VALUES.sent'}. + \#{'rpc.message.type' => SENT} ``` @@ -677,11 +644,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do } end - @spec rpc_message_type_values(atom() | String.t()) :: atom() | String.t() - def rpc_message_type_values(custom_value) do - custom_value - end - @doc """ Uncompressed size of the message in bytes. ### Value type @@ -814,9 +776,6 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values().grpc} %{:"rpc.system" => :grpc} - - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values(:custom_value) - :custom_value ### Erlang @@ -824,14 +783,11 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ?RPC_SYSTEM. 'rpc.system' - \#{?RPC_SYSTEM => ?'RPC_SYSTEM_VALUES.grpc'}. - \#{'rpc.system' => grpc} - ?'RPC_SYSTEM_VALUES.grpc'. grpc - ?RPC_SYSTEM_VALUES(custom_value). - custom_value + \#{?RPC_SYSTEM => ?'RPC_SYSTEM_VALUES.grpc'}. + \#{'rpc.system' => grpc} ``` @@ -851,9 +807,4 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do :connect_rpc => :connect_rpc } end - - @spec rpc_system_values(atom() | String.t()) :: atom() | String.t() - def rpc_system_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index b30ce092..259ff01c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -78,9 +78,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user} %{:"system.cpu.state" => :user} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values(:custom_value) - :custom_value ### Erlang @@ -88,14 +85,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_CPU_STATE. 'system.cpu.state' - \#{?SYSTEM_CPU_STATE => ?'SYSTEM_CPU_STATE_VALUES.user'}. - \#{'system.cpu.state' => user} - ?'SYSTEM_CPU_STATE_VALUES.user'. user - ?SYSTEM_CPU_STATE_VALUES(custom_value). - custom_value + \#{?SYSTEM_CPU_STATE => ?'SYSTEM_CPU_STATE_VALUES.user'}. + \#{'system.cpu.state' => user} ``` @@ -118,11 +112,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_cpu_state_values(atom() | String.t()) :: atom() | String.t() - def system_cpu_state_values(custom_value) do - custom_value - end - @doc """ The device identifier ### Value type @@ -253,9 +242,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used} %{:"system.filesystem.state" => :used} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values(:custom_value) - :custom_value ### Erlang @@ -263,14 +249,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_FILESYSTEM_STATE. 'system.filesystem.state' - \#{?SYSTEM_FILESYSTEM_STATE => ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'}. - \#{'system.filesystem.state' => used} - ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'. used - ?SYSTEM_FILESYSTEM_STATE_VALUES(custom_value). - custom_value + \#{?SYSTEM_FILESYSTEM_STATE => ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'}. + \#{'system.filesystem.state' => used} ``` @@ -289,11 +272,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_filesystem_state_values(atom() | String.t()) :: atom() | String.t() - def system_filesystem_state_values(custom_value) do - custom_value - end - @typedoc """ The filesystem type @@ -334,9 +312,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32} %{:"system.filesystem.type" => :fat32} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values(:custom_value) - :custom_value ### Erlang @@ -344,14 +319,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_FILESYSTEM_TYPE. 'system.filesystem.type' - \#{?SYSTEM_FILESYSTEM_TYPE => ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'}. - \#{'system.filesystem.type' => fat32} - ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'. fat32 - ?SYSTEM_FILESYSTEM_TYPE_VALUES(custom_value). - custom_value + \#{?SYSTEM_FILESYSTEM_TYPE => ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'}. + \#{'system.filesystem.type' => fat32} ``` @@ -373,11 +345,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_filesystem_type_values(atom() | String.t()) :: atom() | String.t() - def system_filesystem_type_values(custom_value) do - custom_value - end - @typedoc """ The memory state @@ -416,9 +383,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used} %{:"system.memory.state" => :used} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values(:custom_value) - :custom_value ### Erlang @@ -426,14 +390,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_MEMORY_STATE. 'system.memory.state' - \#{?SYSTEM_MEMORY_STATE => ?'SYSTEM_MEMORY_STATE_VALUES.used'}. - \#{'system.memory.state' => used} - ?'SYSTEM_MEMORY_STATE_VALUES.used'. used - ?SYSTEM_MEMORY_STATE_VALUES(custom_value). - custom_value + \#{?SYSTEM_MEMORY_STATE => ?'SYSTEM_MEMORY_STATE_VALUES.used'}. + \#{'system.memory.state' => used} ``` @@ -454,11 +415,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_memory_state_values(atom() | String.t()) :: atom() | String.t() - def system_memory_state_values(custom_value) do - custom_value - end - @typedoc """ A stateless protocol **MUST** **NOT** set this attribute @@ -511,9 +467,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close} %{:"system.network.state" => :close} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values(:custom_value) - :custom_value ### Erlang @@ -521,14 +474,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_NETWORK_STATE. 'system.network.state' - \#{?SYSTEM_NETWORK_STATE => ?'SYSTEM_NETWORK_STATE_VALUES.close'}. - \#{'system.network.state' => close} - ?'SYSTEM_NETWORK_STATE_VALUES.close'. close - ?SYSTEM_NETWORK_STATE_VALUES(custom_value). - custom_value + \#{?SYSTEM_NETWORK_STATE => ?'SYSTEM_NETWORK_STATE_VALUES.close'}. + \#{'system.network.state' => close} ``` @@ -556,11 +506,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_network_state_values(atom() | String.t()) :: atom() | String.t() - def system_network_state_values(custom_value) do - custom_value - end - @typedoc """ The paging access direction @@ -593,9 +538,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in} %{:"system.paging.direction" => :in} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values(:custom_value) - :custom_value ### Erlang @@ -603,14 +545,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PAGING_DIRECTION. 'system.paging.direction' - \#{?SYSTEM_PAGING_DIRECTION => ?'SYSTEM_PAGING_DIRECTION_VALUES.in'}. - \#{'system.paging.direction' => in} - ?'SYSTEM_PAGING_DIRECTION_VALUES.in'. in - ?SYSTEM_PAGING_DIRECTION_VALUES(custom_value). - custom_value + \#{?SYSTEM_PAGING_DIRECTION => ?'SYSTEM_PAGING_DIRECTION_VALUES.in'}. + \#{'system.paging.direction' => in} ``` @@ -628,11 +567,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_paging_direction_values(atom() | String.t()) :: atom() | String.t() - def system_paging_direction_values(custom_value) do - custom_value - end - @typedoc """ The memory paging state @@ -665,9 +599,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used} %{:"system.paging.state" => :used} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values(:custom_value) - :custom_value ### Erlang @@ -675,14 +606,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PAGING_STATE. 'system.paging.state' - \#{?SYSTEM_PAGING_STATE => ?'SYSTEM_PAGING_STATE_VALUES.used'}. - \#{'system.paging.state' => used} - ?'SYSTEM_PAGING_STATE_VALUES.used'. used - ?SYSTEM_PAGING_STATE_VALUES(custom_value). - custom_value + \#{?SYSTEM_PAGING_STATE => ?'SYSTEM_PAGING_STATE_VALUES.used'}. + \#{'system.paging.state' => used} ``` @@ -700,11 +628,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_paging_state_values(atom() | String.t()) :: atom() | String.t() - def system_paging_state_values(custom_value) do - custom_value - end - @typedoc """ The memory paging type @@ -737,9 +660,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major} %{:"system.paging.type" => :major} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values(:custom_value) - :custom_value ### Erlang @@ -747,14 +667,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PAGING_TYPE. 'system.paging.type' - \#{?SYSTEM_PAGING_TYPE => ?'SYSTEM_PAGING_TYPE_VALUES.major'}. - \#{'system.paging.type' => major} - ?'SYSTEM_PAGING_TYPE_VALUES.major'. major - ?SYSTEM_PAGING_TYPE_VALUES(custom_value). - custom_value + \#{?SYSTEM_PAGING_TYPE => ?'SYSTEM_PAGING_TYPE_VALUES.major'}. + \#{'system.paging.type' => major} ``` @@ -772,11 +689,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_paging_type_values(atom() | String.t()) :: atom() | String.t() - def system_paging_type_values(custom_value) do - custom_value - end - @typedoc """ The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) @@ -815,9 +727,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running} %{:"system.process.status" => :running} - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values(:custom_value) - :custom_value ### Erlang @@ -825,14 +734,11 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_PROCESS_STATUS. 'system.process.status' - \#{?SYSTEM_PROCESS_STATUS => ?'SYSTEM_PROCESS_STATUS_VALUES.running'}. - \#{'system.process.status' => running} - ?'SYSTEM_PROCESS_STATUS_VALUES.running'. running - ?SYSTEM_PROCESS_STATUS_VALUES(custom_value). - custom_value + \#{?SYSTEM_PROCESS_STATUS => ?'SYSTEM_PROCESS_STATUS_VALUES.running'}. + \#{'system.process.status' => running} ``` @@ -852,11 +758,6 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do } end - @spec system_process_status_values(atom() | String.t()) :: atom() | String.t() - def system_process_status_values(custom_value) do - custom_value - end - @typedoc """ Deprecated, use `system.process.status` instead. @@ -889,9 +790,4 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do :defunct => :defunct } end - - @spec system_processes_status_values(atom() | String.t()) :: atom() | String.t() - def system_processes_status_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex index e726534d..1d6fcd0f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -556,9 +556,6 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do iex> %{OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name() => OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values().ssl} %{:"tls.protocol.name" => :ssl} - - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values(:custom_value) - :custom_value ### Erlang @@ -566,14 +563,11 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ?TLS_PROTOCOL_NAME. 'tls.protocol.name' - \#{?TLS_PROTOCOL_NAME => ?'TLS_PROTOCOL_NAME_VALUES.ssl'}. - \#{'tls.protocol.name' => ssl} - ?'TLS_PROTOCOL_NAME_VALUES.ssl'. ssl - ?TLS_PROTOCOL_NAME_VALUES(custom_value). - custom_value + \#{?TLS_PROTOCOL_NAME => ?'TLS_PROTOCOL_NAME_VALUES.ssl'}. + \#{'tls.protocol.name' => ssl} ``` @@ -591,11 +585,6 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do } end - @spec tls_protocol_name_values(atom() | String.t()) :: atom() | String.t() - def tls_protocol_name_values(custom_value) do - custom_value - end - @doc """ Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index d93fd585..2be17a07 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -249,9 +249,6 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do iex> %{OpenTelemetry.SemConv.NetworkAttributes.network_transport() => OpenTelemetry.SemConv.NetworkAttributes.network_transport_values().tcp} %{:"network.transport" => :tcp} - - iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport_values(:custom_value) - :custom_value ### Erlang @@ -259,14 +256,11 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?NETWORK_TRANSPORT. 'network.transport' - \#{?NETWORK_TRANSPORT => ?'NETWORK_TRANSPORT_VALUES.tcp'}. - \#{'network.transport' => tcp} - ?'NETWORK_TRANSPORT_VALUES.tcp'. tcp - ?NETWORK_TRANSPORT_VALUES(custom_value). - custom_value + \#{?NETWORK_TRANSPORT => ?'NETWORK_TRANSPORT_VALUES.tcp'}. + \#{'network.transport' => tcp} ``` @@ -286,11 +280,6 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do } end - @spec network_transport_values(atom() | String.t()) :: atom() | String.t() - def network_transport_values(custom_value) do - custom_value - end - @typedoc """ [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. @@ -326,9 +315,6 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do iex> %{OpenTelemetry.SemConv.NetworkAttributes.network_type() => OpenTelemetry.SemConv.NetworkAttributes.network_type_values().ipv4} %{:"network.type" => :ipv4} - - iex> OpenTelemetry.SemConv.NetworkAttributes.network_type_values(:custom_value) - :custom_value ### Erlang @@ -336,14 +322,11 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?NETWORK_TYPE. 'network.type' - \#{?NETWORK_TYPE => ?'NETWORK_TYPE_VALUES.ipv4'}. - \#{'network.type' => ipv4} - ?'NETWORK_TYPE_VALUES.ipv4'. ipv4 - ?NETWORK_TYPE_VALUES(custom_value). - custom_value + \#{?NETWORK_TYPE => ?'NETWORK_TYPE_VALUES.ipv4'}. + \#{'network.type' => ipv4} ``` @@ -360,9 +343,4 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do :ipv6 => :ipv6 } end - - @spec network_type_values(atom() | String.t()) :: atom() | String.t() - def network_type_values(custom_value) do - custom_value - end end diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index b04bce07..aff665a4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -95,9 +95,6 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do iex> %{OpenTelemetry.SemConv.OtelAttributes.otel_statuscode() => OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values().ok} %{:"otel.status_code" => :OK} - - iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values(:custom_value) - :custom_value ### Erlang @@ -105,14 +102,11 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ?OTEL_STATUSCODE. 'otel.status_code' - \#{?OTEL_STATUSCODE => ?'OTEL_STATUSCODE_VALUES.ok'}. - \#{'otel.status_code' => OK} - ?'OTEL_STATUSCODE_VALUES.ok'. OK - ?OTEL_STATUSCODE_VALUES(custom_value). - custom_value + \#{?OTEL_STATUSCODE => ?'OTEL_STATUSCODE_VALUES.ok'}. + \#{'otel.status_code' => OK} ``` @@ -130,11 +124,6 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do } end - @spec otel_statuscode_values(atom() | String.t()) :: atom() | String.t() - def otel_statuscode_values(custom_value) do - custom_value - end - @doc """ Description of the Status if it has a value, otherwise not set. ### Value type diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index f21fd6ae..f5737841 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -48,14 +48,8 @@ defmodule OpenTelemetry.SemConv do Enum Attribute types define each value in a macro with the attribute name prefixed. - Enum Attributes allow for a user-supplied value when no pre-defined option exists. To - use a custom value, a function macro is provided. - - ``` - -include_lib("opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl"). - - ?DB_SYSTEM("custom"). - ``` + Enum Attributes allow for a user-supplied value when no pre-defined option exists. Users + may set this value manually while paying attention to the required value type #### Incubating Attributes & Metrics @@ -96,13 +90,8 @@ defmodule OpenTelemetry.SemConv do :postgresql ``` - Enum Attributes allow for a user-supplied value when no pre-defined option exists. To - use a custom value, a function macro is provided. - - ``` - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values(:custom) - :custom - ``` + Enum Attributes allow for a user-supplied value when no pre-defined option exists. Users + may set this value manually while paying attention to the required value type #### Incubating Attributes & Metrics diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index 105280cb..bab61f32 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -53,9 +53,6 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do iex> %{OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language() => OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values().cpp} %{:"telemetry.sdk.language" => :cpp} - - iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values(:custom_value) - :custom_value ### Erlang @@ -63,14 +60,11 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ?TELEMETRY_SDK_LANGUAGE. 'telemetry.sdk.language' - \#{?TELEMETRY_SDK_LANGUAGE => ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'}. - \#{'telemetry.sdk.language' => cpp} - ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'. cpp - ?TELEMETRY_SDK_LANGUAGE_VALUES(custom_value). - custom_value + \#{?TELEMETRY_SDK_LANGUAGE => ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'}. + \#{'telemetry.sdk.language' => cpp} ``` @@ -98,11 +92,6 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do } end - @spec telemetry_sdk_language_values(atom() | String.t()) :: atom() | String.t() - def telemetry_sdk_language_values(custom_value) do - custom_value - end - @doc """ The name of the telemetry SDK as defined above. diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 8660f3b7..fbc50552 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -74,9 +74,6 @@ defmodule {{ module_namespace }}.{{ module_name }} do iex> {% raw %}%{{% endraw %}{{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() => {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values().{{ attribute.type.members|first|attr('id') }}{% raw %}}{% endraw %} {% raw %}%{{% endraw %}{{ c.to_atom(attribute.name) }} => {{ c.enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }}{% raw %}}{% endraw %} - - iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values({{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }}) - {{ c.enum_value_return_type_example(attribute.type.members|first|attr('value')) }} ### Erlang @@ -84,14 +81,11 @@ defmodule {{ module_namespace }}.{{ module_name }} do ?{{ attribute.name | snake_case_const | upper }}. '{{ attribute.name }}' - {% raw %}\#{{% endraw %}?{{ attribute.name | snake_case_const | upper }} => ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'{% raw %}}{% endraw %}. - {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} - ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'. {{ attribute.type.members|first|attr('value') }} - ?{{ attribute.name | snake_case_const | upper }}_VALUES({{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }}). - {{ c.erlang_enum_value_return_type_example(attribute.type.members|first|attr('value')) }} + {% raw %}\#{{% endraw %}?{{ attribute.name | snake_case_const | upper }} => ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} ``` {%- else %} @@ -121,11 +115,6 @@ defmodule {{ module_namespace }}.{{ module_name }} do def {{ c.func_name(attribute.name) }}_values() do {{ c.enum_to_map(attribute.type.members) }} end - - @spec {{ c.func_name(attribute.name) }}_values({{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }}) :: {{ c.enum_value_return_type(attribute.type.members|first|attr('value')) }} - def {{ c.func_name(attribute.name) }}_values(custom_value) do - custom_value - end {%- endif %} {% endfor %} end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index 5a2b6b92..bc30d330 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -25,6 +25,5 @@ {% for member in attribute.type.members %} -define('{{ attribute.name | snake_case_const | upper }}_VALUES.{{ member.id }}', '{{ member.value }}'). {% endfor %} --define({{ attribute.name | snake_case_const | upper }}_VALUES(Custom), Custom). {%- endif %} {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl index 89dedb9e..a28efa63 100644 --- a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -12,6 +12,5 @@ all() -> registry_macros(_Config) -> ?assertEqual('db.system', ?'DB_SYSTEM'), - ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES.postgresql'), - ?assertEqual('custom', ?DB_SYSTEM_VALUES('custom')), + ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES.postgresql') ok. From 8749795b6afffdeb90a1c173b1eb2e0217dc94f2 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 12:01:50 -0600 Subject: [PATCH 36/57] Run filenames through attributes filters --- .../incubating/feature_flag_attributes.hrl | 27 - .../include/incubating/gen_ai_attributes.hrl | 65 -- .../include/incubating/k_8_s_attributes.hrl | 138 --- .../incubating/user_agent_attributes.hrl | 24 - .../include/user_agent_attributes.hrl | 19 - .../lib/incubating/feature_flag_attributes.ex | 113 --- .../lib/incubating/gen_ai_attributes.ex | 426 --------- .../lib/incubating/k_8_s_attributes.ex | 827 ------------------ .../lib/incubating/user_agent_attributes.ex | 80 -- .../lib/user_agent_attributes.ex | 39 - .../registry/elixir/semantic_attributes.ex.j2 | 3 +- .../registry/elixir/semantic_metrics.ex.j2 | 3 +- .../erlang/semantic_attributes.hrl.j2 | 4 +- .../registry/erlang/semantic_metrics.hrl.j2 | 4 +- 14 files changed, 8 insertions(+), 1764 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl deleted file mode 100644 index d931d3a0..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl +++ /dev/null @@ -1,27 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% The unique identifier of the feature flag. --define(FEATUREFLAG_KEY, 'feature_flag.key'). - - -%% The name of the service provider that performs the flag evaluation. --define(FEATUREFLAG_PROVIDERNAME, 'feature_flag.provider_name'). - - -%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. -%% --define(FEATUREFLAG_VARIANT, 'feature_flag.variant'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl deleted file mode 100644 index ffeda5b7..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ /dev/null @@ -1,65 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% The full response received from the LLM. --define(GENAI_COMPLETION, 'gen_ai.completion'). - - -%% The full prompt sent to an LLM. --define(GENAI_PROMPT, 'gen_ai.prompt'). - - -%% The maximum number of tokens the LLM generates for a request. --define(GENAI_REQUEST_MAXTOKENS, 'gen_ai.request.max_tokens'). - - -%% The name of the LLM a request is being made to. --define(GENAI_REQUEST_MODEL, 'gen_ai.request.model'). - - -%% The temperature setting for the LLM request. --define(GENAI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). - - -%% The top_p sampling setting for the LLM request. --define(GENAI_REQUEST_TOPP, 'gen_ai.request.top_p'). - - -%% Array of reasons the model stopped generating tokens, corresponding to each generation received. --define(GENAI_RESPONSE_FINISHREASONS, 'gen_ai.response.finish_reasons'). - - -%% The unique identifier for the completion. --define(GENAI_RESPONSE_ID, 'gen_ai.response.id'). - - -%% The name of the LLM a response was generated from. --define(GENAI_RESPONSE_MODEL, 'gen_ai.response.model'). - - -%% The Generative AI product as identified by the client instrumentation. --define(GENAI_SYSTEM, 'gen_ai.system'). - --define('GENAI_SYSTEM_VALUES.openai', 'openai'). - - - -%% The number of tokens used in the LLM response (completion). --define(GENAI_USAGE_COMPLETIONTOKENS, 'gen_ai.usage.completion_tokens'). - - -%% The number of tokens used in the LLM prompt. --define(GENAI_USAGE_PROMPTTOKENS, 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl deleted file mode 100644 index d897794c..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/k_8_s_attributes.hrl +++ /dev/null @@ -1,138 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% The name of the cluster. -%% --define(K_8_S_CLUSTER_NAME, 'k8s.cluster.name'). - - -%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. -%% --define(K_8_S_CLUSTER_UID, 'k8s.cluster.uid'). - - -%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). -%% --define(K_8_S_CONTAINER_NAME, 'k8s.container.name'). - - -%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. -%% --define(K_8_S_CONTAINER_RESTARTCOUNT, 'k8s.container.restart_count'). - - -%% Last terminated reason of the Container. -%% --define(K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON, 'k8s.container.status.last_terminated_reason'). - - -%% The name of the CronJob. -%% --define(K_8_S_CRONJOB_NAME, 'k8s.cronjob.name'). - - -%% The UID of the CronJob. -%% --define(K_8_S_CRONJOB_UID, 'k8s.cronjob.uid'). - - -%% The name of the DaemonSet. -%% --define(K_8_S_DAEMONSET_NAME, 'k8s.daemonset.name'). - - -%% The UID of the DaemonSet. -%% --define(K_8_S_DAEMONSET_UID, 'k8s.daemonset.uid'). - - -%% The name of the Deployment. -%% --define(K_8_S_DEPLOYMENT_NAME, 'k8s.deployment.name'). - - -%% The UID of the Deployment. -%% --define(K_8_S_DEPLOYMENT_UID, 'k8s.deployment.uid'). - - -%% The name of the Job. -%% --define(K_8_S_JOB_NAME, 'k8s.job.name'). - - -%% The UID of the Job. -%% --define(K_8_S_JOB_UID, 'k8s.job.uid'). - - -%% The name of the namespace that the pod is running in. -%% --define(K_8_S_NAMESPACE_NAME, 'k8s.namespace.name'). - - -%% The name of the Node. -%% --define(K_8_S_NODE_NAME, 'k8s.node.name'). - - -%% The UID of the Node. -%% --define(K_8_S_NODE_UID, 'k8s.node.uid'). - - -%% The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. -%% --define(K_8_S_POD_ANNOTATION, 'k8s.pod.annotation'). - - -%% The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. -%% --define(K_8_S_POD_LABEL, 'k8s.pod.label'). - -%% @deprecated Replaced by `k8s.pod.label`. -%% Deprecated, use `k8s.pod.label` instead. --define(K_8_S_POD_LABELS, 'k8s.pod.labels'). - - -%% The name of the Pod. -%% --define(K_8_S_POD_NAME, 'k8s.pod.name'). - - -%% The UID of the Pod. -%% --define(K_8_S_POD_UID, 'k8s.pod.uid'). - - -%% The name of the ReplicaSet. -%% --define(K_8_S_REPLICASET_NAME, 'k8s.replicaset.name'). - - -%% The UID of the ReplicaSet. -%% --define(K_8_S_REPLICASET_UID, 'k8s.replicaset.uid'). - - -%% The name of the StatefulSet. -%% --define(K_8_S_STATEFULSET_NAME, 'k8s.statefulset.name'). - - -%% The UID of the StatefulSet. -%% --define(K_8_S_STATEFULSET_UID, 'k8s.statefulset.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl deleted file mode 100644 index 5e35719e..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl +++ /dev/null @@ -1,24 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% Name of the user-agent extracted from original. Usually refers to the browser's name. -%% --define(USERAGENT_NAME, 'user_agent.name'). - - -%% Version of the user-agent extracted from original. Usually refers to the browser's version -%% --define(USERAGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl deleted file mode 100644 index c55e0ea2..00000000 --- a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl +++ /dev/null @@ -1,19 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. -%% --define(USERAGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex deleted file mode 100644 index cde207c0..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex +++ /dev/null @@ -1,113 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Feature_Flag attributes. - """ - - @doc """ - The unique identifier of the feature flag. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["logo-color"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_key() - :"feature_flag.key" - - ### Erlang - - ```erlang - ?FEATUREFLAG_KEY. - 'feature_flag.key' - ``` - - - """ - @spec featureflag_key :: :"feature_flag.key" - def featureflag_key do - :"feature_flag.key" - end - - @doc """ - The name of the service provider that performs the flag evaluation. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["Flag Manager"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_providername() - :"feature_flag.provider_name" - - ### Erlang - - ```erlang - ?FEATUREFLAG_PROVIDERNAME. - 'feature_flag.provider_name' - ``` - - - """ - @spec featureflag_providername :: :"feature_flag.provider_name" - def featureflag_providername do - :"feature_flag.provider_name" - end - - @doc """ - SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - 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`. - - A stringified version of the value can be used in situations where a - semantic identifier is unavailable. String representation of the value - should be determined by the implementer. - ### Examples - - ``` - ["red", "true", "on"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_variant() - :"feature_flag.variant" - - ### Erlang - - ```erlang - ?FEATUREFLAG_VARIANT. - 'feature_flag.variant' - ``` - - - """ - @spec featureflag_variant :: :"feature_flag.variant" - def featureflag_variant do - :"feature_flag.variant" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex deleted file mode 100644 index fc210c65..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex +++ /dev/null @@ -1,426 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Gen_Ai attributes. - """ - - @doc """ - The full response received from the LLM. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) - ### Examples - - ``` - ["[{'role': 'assistant', 'content': 'The capital of France is Paris.'}]"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_completion() - :"gen_ai.completion" - - ### Erlang - - ```erlang - ?GENAI_COMPLETION. - 'gen_ai.completion' - ``` - - - """ - @spec genai_completion :: :"gen_ai.completion" - def genai_completion do - :"gen_ai.completion" - end - - @doc """ - The full prompt sent to an LLM. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) - ### Examples - - ``` - ["[{'role': 'user', 'content': 'What is the capital of France?'}]"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_prompt() - :"gen_ai.prompt" - - ### Erlang - - ```erlang - ?GENAI_PROMPT. - 'gen_ai.prompt' - ``` - - - """ - @spec genai_prompt :: :"gen_ai.prompt" - def genai_prompt do - :"gen_ai.prompt" - end - - @doc """ - The maximum number of tokens the LLM generates for a request. - ### Value type - - Value must be of type `integer()`. - ### Examples - - ``` - [100] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_maxtokens() - :"gen_ai.request.max_tokens" - - ### Erlang - - ```erlang - ?GENAI_REQUEST_MAXTOKENS. - 'gen_ai.request.max_tokens' - ``` - - - """ - @spec genai_request_maxtokens :: :"gen_ai.request.max_tokens" - def genai_request_maxtokens do - :"gen_ai.request.max_tokens" - end - - @doc """ - The name of the LLM a request is being made to. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - gpt-4 - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_model() - :"gen_ai.request.model" - - ### Erlang - - ```erlang - ?GENAI_REQUEST_MODEL. - 'gen_ai.request.model' - ``` - - - """ - @spec genai_request_model :: :"gen_ai.request.model" - def genai_request_model do - :"gen_ai.request.model" - end - - @doc """ - The temperature setting for the LLM request. - ### Value type - - Value must be of type `float()`. - ### Examples - - ``` - [0.0] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_temperature() - :"gen_ai.request.temperature" - - ### Erlang - - ```erlang - ?GENAI_REQUEST_TEMPERATURE. - 'gen_ai.request.temperature' - ``` - - - """ - @spec genai_request_temperature :: :"gen_ai.request.temperature" - def genai_request_temperature do - :"gen_ai.request.temperature" - end - - @doc """ - The top_p sampling setting for the LLM request. - ### Value type - - Value must be of type `float()`. - ### Examples - - ``` - [1.0] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_topp() - :"gen_ai.request.top_p" - - ### Erlang - - ```erlang - ?GENAI_REQUEST_TOPP. - 'gen_ai.request.top_p' - ``` - - - """ - @spec genai_request_topp :: :"gen_ai.request.top_p" - def genai_request_topp do - :"gen_ai.request.top_p" - end - - @doc """ - Array of reasons the model stopped generating tokens, corresponding to each generation received. - ### Value type - - Value must be of type `[atom() | String.t()]`. - ### Examples - - ``` - ["stop"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_finishreasons() - :"gen_ai.response.finish_reasons" - - ### Erlang - - ```erlang - ?GENAI_RESPONSE_FINISHREASONS. - 'gen_ai.response.finish_reasons' - ``` - - - """ - @spec genai_response_finishreasons :: :"gen_ai.response.finish_reasons" - def genai_response_finishreasons do - :"gen_ai.response.finish_reasons" - end - - @doc """ - The unique identifier for the completion. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["chatcmpl-123"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_id() - :"gen_ai.response.id" - - ### Erlang - - ```erlang - ?GENAI_RESPONSE_ID. - 'gen_ai.response.id' - ``` - - - """ - @spec genai_response_id :: :"gen_ai.response.id" - def genai_response_id do - :"gen_ai.response.id" - end - - @doc """ - The name of the LLM a response was generated from. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["gpt-4-0613"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_model() - :"gen_ai.response.model" - - ### Erlang - - ```erlang - ?GENAI_RESPONSE_MODEL. - 'gen_ai.response.model' - ``` - - - """ - @spec genai_response_model :: :"gen_ai.response.model" - def genai_response_model do - :"gen_ai.response.model" - end - - @typedoc """ - The Generative AI product as identified by the client instrumentation. - - ### Enum Values - * `:openai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenAI - """ - @type genai_system_values() :: %{ - :openai => :openai - } - @doc """ - The Generative AI product as identified by the client instrumentation. - - ### Notes - - The actual GenAI product may differ from the one identified by the client. For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` is set to `openai` based on the instrumentation's best knowledge. - - ### Examples - - ``` - openai - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() - :"gen_ai.system" - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai - :openai - - iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai} - %{:"gen_ai.system" => :openai} - - ### Erlang - - ```erlang - ?GENAI_SYSTEM. - 'gen_ai.system' - - ?'GENAI_SYSTEM_VALUES.openai'. - openai - - \#{?GENAI_SYSTEM => ?'GENAI_SYSTEM_VALUES.openai'}. - \#{'gen_ai.system' => openai} - ``` - - - """ - @spec genai_system :: :"gen_ai.system" - def genai_system do - :"gen_ai.system" - end - - @spec genai_system_values() :: genai_system_values() - def genai_system_values() do - %{ - :openai => :openai - } - end - - @doc """ - The number of tokens used in the LLM response (completion). - ### Value type - - Value must be of type `integer()`. - ### Examples - - ``` - [180] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_completiontokens() - :"gen_ai.usage.completion_tokens" - - ### Erlang - - ```erlang - ?GENAI_USAGE_COMPLETIONTOKENS. - 'gen_ai.usage.completion_tokens' - ``` - - - """ - @spec genai_usage_completiontokens :: :"gen_ai.usage.completion_tokens" - def genai_usage_completiontokens do - :"gen_ai.usage.completion_tokens" - end - - @doc """ - The number of tokens used in the LLM prompt. - ### Value type - - Value must be of type `integer()`. - ### Examples - - ``` - [100] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_prompttokens() - :"gen_ai.usage.prompt_tokens" - - ### Erlang - - ```erlang - ?GENAI_USAGE_PROMPTTOKENS. - 'gen_ai.usage.prompt_tokens' - ``` - - - """ - @spec genai_usage_prompttokens :: :"gen_ai.usage.prompt_tokens" - def genai_usage_prompttokens do - :"gen_ai.usage.prompt_tokens" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex deleted file mode 100644 index 8c2cae73..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/k_8_s_attributes.ex +++ /dev/null @@ -1,827 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for K8s attributes. - """ - - @doc """ - The name of the cluster. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry-cluster"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_name() - :"k8s.cluster.name" - - ### Erlang - - ```erlang - ?K_8_S_CLUSTER_NAME. - 'k8s.cluster.name' - ``` - - - """ - @spec k_8_s_cluster_name :: :"k8s.cluster.name" - def k_8_s_cluster_name do - :"k8s.cluster.name" - end - - @doc """ - A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - K8s doesn't have support for obtaining a cluster ID. If this is ever - added, we will recommend collecting the `k8s.cluster.uid` through the - official APIs. In the meantime, we are able to use the `uid` of the - `kube-system` namespace as a proxy for cluster ID. Read on for the - rationale. - - Every object created in a K8s cluster is assigned a distinct UID. The - `kube-system` namespace is used by Kubernetes itself and will exist - for the lifetime of the cluster. Using the `uid` of the `kube-system` - namespace is a reasonable proxy for the K8s ClusterID as it will only - change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are - UUIDs as standardized by - [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). - Which states: - - > If generated according to one of the mechanisms defined in Rec. - ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be - different from all other UUIDs generated before 3603 A.D., or is - extremely likely to be different (depending on the mechanism chosen). - - Therefore, UIDs between clusters should be extremely unlikely to - conflict. - - ### Examples - - ``` - ["218fc5a9-a5f1-4b54-aa05-46717d0ab26d"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_uid() - :"k8s.cluster.uid" - - ### Erlang - - ```erlang - ?K_8_S_CLUSTER_UID. - 'k8s.cluster.uid' - ``` - - - """ - @spec k_8_s_cluster_uid :: :"k8s.cluster.uid" - def k_8_s_cluster_uid do - :"k8s.cluster.uid" - end - - @doc """ - The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["redis"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_name() - :"k8s.container.name" - - ### Erlang - - ```erlang - ?K_8_S_CONTAINER_NAME. - 'k8s.container.name' - ``` - - - """ - @spec k_8_s_container_name :: :"k8s.container.name" - def k_8_s_container_name do - :"k8s.container.name" - end - - @doc """ - Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. - - ### Value type - - Value must be of type `integer()`. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_restartcount() - :"k8s.container.restart_count" - - ### Erlang - - ```erlang - ?K_8_S_CONTAINER_RESTARTCOUNT. - 'k8s.container.restart_count' - ``` - - - """ - @spec k_8_s_container_restartcount :: :"k8s.container.restart_count" - def k_8_s_container_restartcount do - :"k8s.container.restart_count" - end - - @doc """ - Last terminated reason of the Container. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["Evicted", "Error"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_status_lastterminatedreason() - :"k8s.container.status.last_terminated_reason" - - ### Erlang - - ```erlang - ?K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON. - 'k8s.container.status.last_terminated_reason' - ``` - - - """ - @spec k_8_s_container_status_lastterminatedreason :: - :"k8s.container.status.last_terminated_reason" - def k_8_s_container_status_lastterminatedreason do - :"k8s.container.status.last_terminated_reason" - end - - @doc """ - The name of the CronJob. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_name() - :"k8s.cronjob.name" - - ### Erlang - - ```erlang - ?K_8_S_CRONJOB_NAME. - 'k8s.cronjob.name' - ``` - - - """ - @spec k_8_s_cronjob_name :: :"k8s.cronjob.name" - def k_8_s_cronjob_name do - :"k8s.cronjob.name" - end - - @doc """ - The UID of the CronJob. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_uid() - :"k8s.cronjob.uid" - - ### Erlang - - ```erlang - ?K_8_S_CRONJOB_UID. - 'k8s.cronjob.uid' - ``` - - - """ - @spec k_8_s_cronjob_uid :: :"k8s.cronjob.uid" - def k_8_s_cronjob_uid do - :"k8s.cronjob.uid" - end - - @doc """ - The name of the DaemonSet. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_name() - :"k8s.daemonset.name" - - ### Erlang - - ```erlang - ?K_8_S_DAEMONSET_NAME. - 'k8s.daemonset.name' - ``` - - - """ - @spec k_8_s_daemonset_name :: :"k8s.daemonset.name" - def k_8_s_daemonset_name do - :"k8s.daemonset.name" - end - - @doc """ - The UID of the DaemonSet. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_uid() - :"k8s.daemonset.uid" - - ### Erlang - - ```erlang - ?K_8_S_DAEMONSET_UID. - 'k8s.daemonset.uid' - ``` - - - """ - @spec k_8_s_daemonset_uid :: :"k8s.daemonset.uid" - def k_8_s_daemonset_uid do - :"k8s.daemonset.uid" - end - - @doc """ - The name of the Deployment. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_name() - :"k8s.deployment.name" - - ### Erlang - - ```erlang - ?K_8_S_DEPLOYMENT_NAME. - 'k8s.deployment.name' - ``` - - - """ - @spec k_8_s_deployment_name :: :"k8s.deployment.name" - def k_8_s_deployment_name do - :"k8s.deployment.name" - end - - @doc """ - The UID of the Deployment. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_uid() - :"k8s.deployment.uid" - - ### Erlang - - ```erlang - ?K_8_S_DEPLOYMENT_UID. - 'k8s.deployment.uid' - ``` - - - """ - @spec k_8_s_deployment_uid :: :"k8s.deployment.uid" - def k_8_s_deployment_uid do - :"k8s.deployment.uid" - end - - @doc """ - The name of the Job. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_name() - :"k8s.job.name" - - ### Erlang - - ```erlang - ?K_8_S_JOB_NAME. - 'k8s.job.name' - ``` - - - """ - @spec k_8_s_job_name :: :"k8s.job.name" - def k_8_s_job_name do - :"k8s.job.name" - end - - @doc """ - The UID of the Job. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_uid() - :"k8s.job.uid" - - ### Erlang - - ```erlang - ?K_8_S_JOB_UID. - 'k8s.job.uid' - ``` - - - """ - @spec k_8_s_job_uid :: :"k8s.job.uid" - def k_8_s_job_uid do - :"k8s.job.uid" - end - - @doc """ - The name of the namespace that the pod is running in. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["default"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_namespace_name() - :"k8s.namespace.name" - - ### Erlang - - ```erlang - ?K_8_S_NAMESPACE_NAME. - 'k8s.namespace.name' - ``` - - - """ - @spec k_8_s_namespace_name :: :"k8s.namespace.name" - def k_8_s_namespace_name do - :"k8s.namespace.name" - end - - @doc """ - The name of the Node. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["node-1"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_name() - :"k8s.node.name" - - ### Erlang - - ```erlang - ?K_8_S_NODE_NAME. - 'k8s.node.name' - ``` - - - """ - @spec k_8_s_node_name :: :"k8s.node.name" - def k_8_s_node_name do - :"k8s.node.name" - end - - @doc """ - The UID of the Node. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_uid() - :"k8s.node.uid" - - ### Erlang - - ```erlang - ?K_8_S_NODE_UID. - 'k8s.node.uid' - ``` - - - """ - @spec k_8_s_node_uid :: :"k8s.node.uid" - def k_8_s_node_uid do - :"k8s.node.uid" - end - - @doc """ - The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets=true", "k8s.pod.annotation.mycompany.io/arch=x64", "k8s.pod.annotation.data="] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_annotation() - :"k8s.pod.annotation" - - ### Erlang - - ```erlang - ?K_8_S_POD_ANNOTATION. - 'k8s.pod.annotation' - ``` - - - """ - @spec k_8_s_pod_annotation :: :"k8s.pod.annotation" - def k_8_s_pod_annotation do - :"k8s.pod.annotation" - end - - @doc """ - The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["k8s.pod.label.app=my-app", "k8s.pod.label.mycompany.io/arch=x64", "k8s.pod.label.data="] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_label() - :"k8s.pod.label" - - ### Erlang - - ```erlang - ?K_8_S_POD_LABEL. - 'k8s.pod.label' - ``` - - - """ - @spec k_8_s_pod_label :: :"k8s.pod.label" - def k_8_s_pod_label do - :"k8s.pod.label" - end - - @deprecated """ - Replaced by `k8s.pod.label`. - """ - @spec k_8_s_pod_labels :: :"k8s.pod.labels" - def k_8_s_pod_labels do - :"k8s.pod.labels" - end - - @doc """ - The name of the Pod. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry-pod-autoconf"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_name() - :"k8s.pod.name" - - ### Erlang - - ```erlang - ?K_8_S_POD_NAME. - 'k8s.pod.name' - ``` - - - """ - @spec k_8_s_pod_name :: :"k8s.pod.name" - def k_8_s_pod_name do - :"k8s.pod.name" - end - - @doc """ - The UID of the Pod. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_uid() - :"k8s.pod.uid" - - ### Erlang - - ```erlang - ?K_8_S_POD_UID. - 'k8s.pod.uid' - ``` - - - """ - @spec k_8_s_pod_uid :: :"k8s.pod.uid" - def k_8_s_pod_uid do - :"k8s.pod.uid" - end - - @doc """ - The name of the ReplicaSet. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_name() - :"k8s.replicaset.name" - - ### Erlang - - ```erlang - ?K_8_S_REPLICASET_NAME. - 'k8s.replicaset.name' - ``` - - - """ - @spec k_8_s_replicaset_name :: :"k8s.replicaset.name" - def k_8_s_replicaset_name do - :"k8s.replicaset.name" - end - - @doc """ - The UID of the ReplicaSet. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_uid() - :"k8s.replicaset.uid" - - ### Erlang - - ```erlang - ?K_8_S_REPLICASET_UID. - 'k8s.replicaset.uid' - ``` - - - """ - @spec k_8_s_replicaset_uid :: :"k8s.replicaset.uid" - def k_8_s_replicaset_uid do - :"k8s.replicaset.uid" - end - - @doc """ - The name of the StatefulSet. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_name() - :"k8s.statefulset.name" - - ### Erlang - - ```erlang - ?K_8_S_STATEFULSET_NAME. - 'k8s.statefulset.name' - ``` - - - """ - @spec k_8_s_statefulset_name :: :"k8s.statefulset.name" - def k_8_s_statefulset_name do - :"k8s.statefulset.name" - end - - @doc """ - The UID of the StatefulSet. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_uid() - :"k8s.statefulset.uid" - - ### Erlang - - ```erlang - ?K_8_S_STATEFULSET_UID. - 'k8s.statefulset.uid' - ``` - - - """ - @spec k_8_s_statefulset_uid :: :"k8s.statefulset.uid" - def k_8_s_statefulset_uid do - :"k8s.statefulset.uid" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex deleted file mode 100644 index d057d172..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex +++ /dev/null @@ -1,80 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for User_Agent attributes. - """ - - @doc """ - Name of the user-agent extracted from original. Usually refers to the browser's name. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` - - ### Examples - - ``` - ["Safari", "YourApp"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_name() - :"user_agent.name" - - ### Erlang - - ```erlang - ?USERAGENT_NAME. - 'user_agent.name' - ``` - - - """ - @spec useragent_name :: :"user_agent.name" - def useragent_name do - :"user_agent.name" - end - - @doc """ - Version of the user-agent extracted from original. Usually refers to the browser's version - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` - - ### Examples - - ``` - ["14.1.2", "1.0.0"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_version() - :"user_agent.version" - - ### Erlang - - ```erlang - ?USERAGENT_VERSION. - 'user_agent.version' - ``` - - - """ - @spec useragent_version :: :"user_agent.version" - def useragent_version do - :"user_agent.version" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex deleted file mode 100644 index 4587815f..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex +++ /dev/null @@ -1,39 +0,0 @@ -defmodule OpenTelemetry.SemConv.UserAgentAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for User_Agent attributes. - """ - - @doc """ - Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["CERN-LineMode/2.15 libwww/2.17b3", "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", "YourApp/1.0.0 grpc-java-okhttp/1.27.2"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.UserAgentAttributes.useragent_original() - :"user_agent.original" - - ### Erlang - - ```erlang - ?USERAGENT_ORIGINAL. - 'user_agent.original' - ``` - - - """ - @spec useragent_original :: :"user_agent.original" - def useragent_original do - :"user_agent.original" - end -end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index fbc50552..b6eea827 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -5,8 +5,7 @@ {%- import 'common.j2' as c %} {%- set acronyms = c.acronyms() -%} -{%- set file_name = ctx.output + ctx.id | snake_case ~ "_attributes.ex" -%} -{%- set module_name = (ctx.id | pascal_case) -%} +{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_attributes.ex" -%} {{ template.set_file_name(file_name) }} {%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Attributes" -%} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index 5ab68561..481053d4 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -4,8 +4,7 @@ {%- import 'common.j2' as c %} {%- set acronyms = c.acronyms() -%} -{%- set file_name = ctx.output ~ ctx.id | snake_case ~ "_metrics.ex" -%} -{%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Metrics" -%} +{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_metrics.ex" -%} {%- set trim_blocks = true %} {%- set trim_lstrip_blocks = true %} {{ template.set_file_name(file_name) }} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index bc30d330..64a3b1be 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -1,4 +1,6 @@ -{%- set file_name = ctx.output + ctx.id | snake_case ~ "_attributes.hrl" -%} +{%- import 'common.j2' as c %} +{%- set acronyms = c.acronyms() -%} +{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_attributes.hrl" -%} {{ template.set_file_name(file_name) }} %%%------------------------------------------------------------------------ %% Copyright The OpenTelemetry Authors diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 index f37188fe..bcc72d97 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 @@ -1,4 +1,6 @@ -{%- set file_name = ctx.output + ctx.id | snake_case ~ "_metrics.hrl" -%} +{%- import 'common.j2' as c %} +{%- set acronyms = c.acronyms() -%} +{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_metrics.hrl" -%} {{ template.set_file_name(file_name) }} %%%------------------------------------------------------------------------ %% Copyright The OpenTelemetry Authors From 2c91bfeb845073469208a8b2f5249c4dbf5a3260 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 14:11:31 -0600 Subject: [PATCH 37/57] Add renamed files --- .../incubating/featureflag_attributes.hrl | 27 + .../include/incubating/genai_attributes.hrl | 65 ++ .../include/incubating/k8s_attributes.hrl | 138 +++ .../incubating/useragent_attributes.hrl | 24 + .../include/useragent_attributes.hrl | 19 + .../lib/incubating/featureflag_attributes.ex | 113 +++ .../lib/incubating/genai_attributes.ex | 426 +++++++++ .../lib/incubating/k8s_attributes.ex | 827 ++++++++++++++++++ .../lib/incubating/useragent_attributes.ex | 80 ++ .../lib/useragent_attributes.ex | 39 + .../templates/registry/erlang/common.j2 | 74 ++ 11 files changed, 1832 insertions(+) create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl new file mode 100644 index 00000000..d931d3a0 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl @@ -0,0 +1,27 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The unique identifier of the feature flag. +-define(FEATUREFLAG_KEY, 'feature_flag.key'). + + +%% The name of the service provider that performs the flag evaluation. +-define(FEATUREFLAG_PROVIDERNAME, 'feature_flag.provider_name'). + + +%% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. +%% +-define(FEATUREFLAG_VARIANT, 'feature_flag.variant'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl new file mode 100644 index 00000000..ffeda5b7 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl @@ -0,0 +1,65 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The full response received from the LLM. +-define(GENAI_COMPLETION, 'gen_ai.completion'). + + +%% The full prompt sent to an LLM. +-define(GENAI_PROMPT, 'gen_ai.prompt'). + + +%% The maximum number of tokens the LLM generates for a request. +-define(GENAI_REQUEST_MAXTOKENS, 'gen_ai.request.max_tokens'). + + +%% The name of the LLM a request is being made to. +-define(GENAI_REQUEST_MODEL, 'gen_ai.request.model'). + + +%% The temperature setting for the LLM request. +-define(GENAI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). + + +%% The top_p sampling setting for the LLM request. +-define(GENAI_REQUEST_TOPP, 'gen_ai.request.top_p'). + + +%% Array of reasons the model stopped generating tokens, corresponding to each generation received. +-define(GENAI_RESPONSE_FINISHREASONS, 'gen_ai.response.finish_reasons'). + + +%% The unique identifier for the completion. +-define(GENAI_RESPONSE_ID, 'gen_ai.response.id'). + + +%% The name of the LLM a response was generated from. +-define(GENAI_RESPONSE_MODEL, 'gen_ai.response.model'). + + +%% The Generative AI product as identified by the client instrumentation. +-define(GENAI_SYSTEM, 'gen_ai.system'). + +-define('GENAI_SYSTEM_VALUES.openai', 'openai'). + + + +%% The number of tokens used in the LLM response (completion). +-define(GENAI_USAGE_COMPLETIONTOKENS, 'gen_ai.usage.completion_tokens'). + + +%% The number of tokens used in the LLM prompt. +-define(GENAI_USAGE_PROMPTTOKENS, 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl new file mode 100644 index 00000000..d897794c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl @@ -0,0 +1,138 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The name of the cluster. +%% +-define(K_8_S_CLUSTER_NAME, 'k8s.cluster.name'). + + +%% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. +%% +-define(K_8_S_CLUSTER_UID, 'k8s.cluster.uid'). + + +%% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). +%% +-define(K_8_S_CONTAINER_NAME, 'k8s.container.name'). + + +%% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. +%% +-define(K_8_S_CONTAINER_RESTARTCOUNT, 'k8s.container.restart_count'). + + +%% Last terminated reason of the Container. +%% +-define(K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON, 'k8s.container.status.last_terminated_reason'). + + +%% The name of the CronJob. +%% +-define(K_8_S_CRONJOB_NAME, 'k8s.cronjob.name'). + + +%% The UID of the CronJob. +%% +-define(K_8_S_CRONJOB_UID, 'k8s.cronjob.uid'). + + +%% The name of the DaemonSet. +%% +-define(K_8_S_DAEMONSET_NAME, 'k8s.daemonset.name'). + + +%% The UID of the DaemonSet. +%% +-define(K_8_S_DAEMONSET_UID, 'k8s.daemonset.uid'). + + +%% The name of the Deployment. +%% +-define(K_8_S_DEPLOYMENT_NAME, 'k8s.deployment.name'). + + +%% The UID of the Deployment. +%% +-define(K_8_S_DEPLOYMENT_UID, 'k8s.deployment.uid'). + + +%% The name of the Job. +%% +-define(K_8_S_JOB_NAME, 'k8s.job.name'). + + +%% The UID of the Job. +%% +-define(K_8_S_JOB_UID, 'k8s.job.uid'). + + +%% The name of the namespace that the pod is running in. +%% +-define(K_8_S_NAMESPACE_NAME, 'k8s.namespace.name'). + + +%% The name of the Node. +%% +-define(K_8_S_NODE_NAME, 'k8s.node.name'). + + +%% The UID of the Node. +%% +-define(K_8_S_NODE_UID, 'k8s.node.uid'). + + +%% The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. +%% +-define(K_8_S_POD_ANNOTATION, 'k8s.pod.annotation'). + + +%% The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. +%% +-define(K_8_S_POD_LABEL, 'k8s.pod.label'). + +%% @deprecated Replaced by `k8s.pod.label`. +%% Deprecated, use `k8s.pod.label` instead. +-define(K_8_S_POD_LABELS, 'k8s.pod.labels'). + + +%% The name of the Pod. +%% +-define(K_8_S_POD_NAME, 'k8s.pod.name'). + + +%% The UID of the Pod. +%% +-define(K_8_S_POD_UID, 'k8s.pod.uid'). + + +%% The name of the ReplicaSet. +%% +-define(K_8_S_REPLICASET_NAME, 'k8s.replicaset.name'). + + +%% The UID of the ReplicaSet. +%% +-define(K_8_S_REPLICASET_UID, 'k8s.replicaset.uid'). + + +%% The name of the StatefulSet. +%% +-define(K_8_S_STATEFULSET_NAME, 'k8s.statefulset.name'). + + +%% The UID of the StatefulSet. +%% +-define(K_8_S_STATEFULSET_UID, 'k8s.statefulset.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl new file mode 100644 index 00000000..5e35719e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl @@ -0,0 +1,24 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Name of the user-agent extracted from original. Usually refers to the browser's name. +%% +-define(USERAGENT_NAME, 'user_agent.name'). + + +%% Version of the user-agent extracted from original. Usually refers to the browser's version +%% +-define(USERAGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl new file mode 100644 index 00000000..c55e0ea2 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl @@ -0,0 +1,19 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. +%% +-define(USERAGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex new file mode 100644 index 00000000..cde207c0 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex @@ -0,0 +1,113 @@ +defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Feature_Flag attributes. + """ + + @doc """ + The unique identifier of the feature flag. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["logo-color"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_key() + :"feature_flag.key" + + ### Erlang + + ```erlang + ?FEATUREFLAG_KEY. + 'feature_flag.key' + ``` + + + """ + @spec featureflag_key :: :"feature_flag.key" + def featureflag_key do + :"feature_flag.key" + end + + @doc """ + The name of the service provider that performs the flag evaluation. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Flag Manager"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_providername() + :"feature_flag.provider_name" + + ### Erlang + + ```erlang + ?FEATUREFLAG_PROVIDERNAME. + 'feature_flag.provider_name' + ``` + + + """ + @spec featureflag_providername :: :"feature_flag.provider_name" + def featureflag_providername do + :"feature_flag.provider_name" + end + + @doc """ + SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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`. + + A stringified version of the value can be used in situations where a + semantic identifier is unavailable. String representation of the value + should be determined by the implementer. + ### Examples + + ``` + ["red", "true", "on"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_variant() + :"feature_flag.variant" + + ### Erlang + + ```erlang + ?FEATUREFLAG_VARIANT. + 'feature_flag.variant' + ``` + + + """ + @spec featureflag_variant :: :"feature_flag.variant" + def featureflag_variant do + :"feature_flag.variant" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex new file mode 100644 index 00000000..fc210c65 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex @@ -0,0 +1,426 @@ +defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Gen_Ai attributes. + """ + + @doc """ + The full response received from the LLM. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) + ### Examples + + ``` + ["[{'role': 'assistant', 'content': 'The capital of France is Paris.'}]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_completion() + :"gen_ai.completion" + + ### Erlang + + ```erlang + ?GENAI_COMPLETION. + 'gen_ai.completion' + ``` + + + """ + @spec genai_completion :: :"gen_ai.completion" + def genai_completion do + :"gen_ai.completion" + end + + @doc """ + The full prompt sent to an LLM. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) + ### Examples + + ``` + ["[{'role': 'user', 'content': 'What is the capital of France?'}]"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_prompt() + :"gen_ai.prompt" + + ### Erlang + + ```erlang + ?GENAI_PROMPT. + 'gen_ai.prompt' + ``` + + + """ + @spec genai_prompt :: :"gen_ai.prompt" + def genai_prompt do + :"gen_ai.prompt" + end + + @doc """ + The maximum number of tokens the LLM generates for a request. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [100] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_maxtokens() + :"gen_ai.request.max_tokens" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_MAXTOKENS. + 'gen_ai.request.max_tokens' + ``` + + + """ + @spec genai_request_maxtokens :: :"gen_ai.request.max_tokens" + def genai_request_maxtokens do + :"gen_ai.request.max_tokens" + end + + @doc """ + The name of the LLM a request is being made to. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + gpt-4 + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_model() + :"gen_ai.request.model" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_MODEL. + 'gen_ai.request.model' + ``` + + + """ + @spec genai_request_model :: :"gen_ai.request.model" + def genai_request_model do + :"gen_ai.request.model" + end + + @doc """ + The temperature setting for the LLM request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [0.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_temperature() + :"gen_ai.request.temperature" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_TEMPERATURE. + 'gen_ai.request.temperature' + ``` + + + """ + @spec genai_request_temperature :: :"gen_ai.request.temperature" + def genai_request_temperature do + :"gen_ai.request.temperature" + end + + @doc """ + The top_p sampling setting for the LLM request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [1.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_topp() + :"gen_ai.request.top_p" + + ### Erlang + + ```erlang + ?GENAI_REQUEST_TOPP. + 'gen_ai.request.top_p' + ``` + + + """ + @spec genai_request_topp :: :"gen_ai.request.top_p" + def genai_request_topp do + :"gen_ai.request.top_p" + end + + @doc """ + Array of reasons the model stopped generating tokens, corresponding to each generation received. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["stop"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_finishreasons() + :"gen_ai.response.finish_reasons" + + ### Erlang + + ```erlang + ?GENAI_RESPONSE_FINISHREASONS. + 'gen_ai.response.finish_reasons' + ``` + + + """ + @spec genai_response_finishreasons :: :"gen_ai.response.finish_reasons" + def genai_response_finishreasons do + :"gen_ai.response.finish_reasons" + end + + @doc """ + The unique identifier for the completion. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["chatcmpl-123"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_id() + :"gen_ai.response.id" + + ### Erlang + + ```erlang + ?GENAI_RESPONSE_ID. + 'gen_ai.response.id' + ``` + + + """ + @spec genai_response_id :: :"gen_ai.response.id" + def genai_response_id do + :"gen_ai.response.id" + end + + @doc """ + The name of the LLM a response was generated from. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["gpt-4-0613"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_model() + :"gen_ai.response.model" + + ### Erlang + + ```erlang + ?GENAI_RESPONSE_MODEL. + 'gen_ai.response.model' + ``` + + + """ + @spec genai_response_model :: :"gen_ai.response.model" + def genai_response_model do + :"gen_ai.response.model" + end + + @typedoc """ + The Generative AI product as identified by the client instrumentation. + + ### Enum Values + * `:openai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenAI + """ + @type genai_system_values() :: %{ + :openai => :openai + } + @doc """ + The Generative AI product as identified by the client instrumentation. + + ### Notes + + The actual GenAI product may differ from the one identified by the client. For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` is set to `openai` based on the instrumentation's best knowledge. + + ### Examples + + ``` + openai + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() + :"gen_ai.system" + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai + :openai + + iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai} + %{:"gen_ai.system" => :openai} + + ### Erlang + + ```erlang + ?GENAI_SYSTEM. + 'gen_ai.system' + + ?'GENAI_SYSTEM_VALUES.openai'. + openai + + \#{?GENAI_SYSTEM => ?'GENAI_SYSTEM_VALUES.openai'}. + \#{'gen_ai.system' => openai} + ``` + + + """ + @spec genai_system :: :"gen_ai.system" + def genai_system do + :"gen_ai.system" + end + + @spec genai_system_values() :: genai_system_values() + def genai_system_values() do + %{ + :openai => :openai + } + end + + @doc """ + The number of tokens used in the LLM response (completion). + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [180] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_completiontokens() + :"gen_ai.usage.completion_tokens" + + ### Erlang + + ```erlang + ?GENAI_USAGE_COMPLETIONTOKENS. + 'gen_ai.usage.completion_tokens' + ``` + + + """ + @spec genai_usage_completiontokens :: :"gen_ai.usage.completion_tokens" + def genai_usage_completiontokens do + :"gen_ai.usage.completion_tokens" + end + + @doc """ + The number of tokens used in the LLM prompt. + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [100] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_prompttokens() + :"gen_ai.usage.prompt_tokens" + + ### Erlang + + ```erlang + ?GENAI_USAGE_PROMPTTOKENS. + 'gen_ai.usage.prompt_tokens' + ``` + + + """ + @spec genai_usage_prompttokens :: :"gen_ai.usage.prompt_tokens" + def genai_usage_prompttokens do + :"gen_ai.usage.prompt_tokens" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex new file mode 100644 index 00000000..8c2cae73 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex @@ -0,0 +1,827 @@ +defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for K8s attributes. + """ + + @doc """ + The name of the cluster. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-cluster"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_name() + :"k8s.cluster.name" + + ### Erlang + + ```erlang + ?K_8_S_CLUSTER_NAME. + 'k8s.cluster.name' + ``` + + + """ + @spec k_8_s_cluster_name :: :"k8s.cluster.name" + def k_8_s_cluster_name do + :"k8s.cluster.name" + end + + @doc """ + A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + K8s doesn't have support for obtaining a cluster ID. If this is ever + added, we will recommend collecting the `k8s.cluster.uid` through the + official APIs. In the meantime, we are able to use the `uid` of the + `kube-system` namespace as a proxy for cluster ID. Read on for the + rationale. + + Every object created in a K8s cluster is assigned a distinct UID. The + `kube-system` namespace is used by Kubernetes itself and will exist + for the lifetime of the cluster. Using the `uid` of the `kube-system` + namespace is a reasonable proxy for the K8s ClusterID as it will only + change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are + UUIDs as standardized by + [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html). + Which states: + + > If generated according to one of the mechanisms defined in Rec. + ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be + different from all other UUIDs generated before 3603 A.D., or is + extremely likely to be different (depending on the mechanism chosen). + + Therefore, UIDs between clusters should be extremely unlikely to + conflict. + + ### Examples + + ``` + ["218fc5a9-a5f1-4b54-aa05-46717d0ab26d"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_uid() + :"k8s.cluster.uid" + + ### Erlang + + ```erlang + ?K_8_S_CLUSTER_UID. + 'k8s.cluster.uid' + ``` + + + """ + @spec k_8_s_cluster_uid :: :"k8s.cluster.uid" + def k_8_s_cluster_uid do + :"k8s.cluster.uid" + end + + @doc """ + The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["redis"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_name() + :"k8s.container.name" + + ### Erlang + + ```erlang + ?K_8_S_CONTAINER_NAME. + 'k8s.container.name' + ``` + + + """ + @spec k_8_s_container_name :: :"k8s.container.name" + def k_8_s_container_name do + :"k8s.container.name" + end + + @doc """ + Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. + + ### Value type + + Value must be of type `integer()`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_restartcount() + :"k8s.container.restart_count" + + ### Erlang + + ```erlang + ?K_8_S_CONTAINER_RESTARTCOUNT. + 'k8s.container.restart_count' + ``` + + + """ + @spec k_8_s_container_restartcount :: :"k8s.container.restart_count" + def k_8_s_container_restartcount do + :"k8s.container.restart_count" + end + + @doc """ + Last terminated reason of the Container. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Evicted", "Error"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_status_lastterminatedreason() + :"k8s.container.status.last_terminated_reason" + + ### Erlang + + ```erlang + ?K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON. + 'k8s.container.status.last_terminated_reason' + ``` + + + """ + @spec k_8_s_container_status_lastterminatedreason :: + :"k8s.container.status.last_terminated_reason" + def k_8_s_container_status_lastterminatedreason do + :"k8s.container.status.last_terminated_reason" + end + + @doc """ + The name of the CronJob. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_name() + :"k8s.cronjob.name" + + ### Erlang + + ```erlang + ?K_8_S_CRONJOB_NAME. + 'k8s.cronjob.name' + ``` + + + """ + @spec k_8_s_cronjob_name :: :"k8s.cronjob.name" + def k_8_s_cronjob_name do + :"k8s.cronjob.name" + end + + @doc """ + The UID of the CronJob. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_uid() + :"k8s.cronjob.uid" + + ### Erlang + + ```erlang + ?K_8_S_CRONJOB_UID. + 'k8s.cronjob.uid' + ``` + + + """ + @spec k_8_s_cronjob_uid :: :"k8s.cronjob.uid" + def k_8_s_cronjob_uid do + :"k8s.cronjob.uid" + end + + @doc """ + The name of the DaemonSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_name() + :"k8s.daemonset.name" + + ### Erlang + + ```erlang + ?K_8_S_DAEMONSET_NAME. + 'k8s.daemonset.name' + ``` + + + """ + @spec k_8_s_daemonset_name :: :"k8s.daemonset.name" + def k_8_s_daemonset_name do + :"k8s.daemonset.name" + end + + @doc """ + The UID of the DaemonSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_uid() + :"k8s.daemonset.uid" + + ### Erlang + + ```erlang + ?K_8_S_DAEMONSET_UID. + 'k8s.daemonset.uid' + ``` + + + """ + @spec k_8_s_daemonset_uid :: :"k8s.daemonset.uid" + def k_8_s_daemonset_uid do + :"k8s.daemonset.uid" + end + + @doc """ + The name of the Deployment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_name() + :"k8s.deployment.name" + + ### Erlang + + ```erlang + ?K_8_S_DEPLOYMENT_NAME. + 'k8s.deployment.name' + ``` + + + """ + @spec k_8_s_deployment_name :: :"k8s.deployment.name" + def k_8_s_deployment_name do + :"k8s.deployment.name" + end + + @doc """ + The UID of the Deployment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_uid() + :"k8s.deployment.uid" + + ### Erlang + + ```erlang + ?K_8_S_DEPLOYMENT_UID. + 'k8s.deployment.uid' + ``` + + + """ + @spec k_8_s_deployment_uid :: :"k8s.deployment.uid" + def k_8_s_deployment_uid do + :"k8s.deployment.uid" + end + + @doc """ + The name of the Job. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_name() + :"k8s.job.name" + + ### Erlang + + ```erlang + ?K_8_S_JOB_NAME. + 'k8s.job.name' + ``` + + + """ + @spec k_8_s_job_name :: :"k8s.job.name" + def k_8_s_job_name do + :"k8s.job.name" + end + + @doc """ + The UID of the Job. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_uid() + :"k8s.job.uid" + + ### Erlang + + ```erlang + ?K_8_S_JOB_UID. + 'k8s.job.uid' + ``` + + + """ + @spec k_8_s_job_uid :: :"k8s.job.uid" + def k_8_s_job_uid do + :"k8s.job.uid" + end + + @doc """ + The name of the namespace that the pod is running in. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["default"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_namespace_name() + :"k8s.namespace.name" + + ### Erlang + + ```erlang + ?K_8_S_NAMESPACE_NAME. + 'k8s.namespace.name' + ``` + + + """ + @spec k_8_s_namespace_name :: :"k8s.namespace.name" + def k_8_s_namespace_name do + :"k8s.namespace.name" + end + + @doc """ + The name of the Node. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["node-1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_name() + :"k8s.node.name" + + ### Erlang + + ```erlang + ?K_8_S_NODE_NAME. + 'k8s.node.name' + ``` + + + """ + @spec k_8_s_node_name :: :"k8s.node.name" + def k_8_s_node_name do + :"k8s.node.name" + end + + @doc """ + The UID of the Node. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_uid() + :"k8s.node.uid" + + ### Erlang + + ```erlang + ?K_8_S_NODE_UID. + 'k8s.node.uid' + ``` + + + """ + @spec k_8_s_node_uid :: :"k8s.node.uid" + def k_8_s_node_uid do + :"k8s.node.uid" + end + + @doc """ + The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets=true", "k8s.pod.annotation.mycompany.io/arch=x64", "k8s.pod.annotation.data="] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_annotation() + :"k8s.pod.annotation" + + ### Erlang + + ```erlang + ?K_8_S_POD_ANNOTATION. + 'k8s.pod.annotation' + ``` + + + """ + @spec k_8_s_pod_annotation :: :"k8s.pod.annotation" + def k_8_s_pod_annotation do + :"k8s.pod.annotation" + end + + @doc """ + The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["k8s.pod.label.app=my-app", "k8s.pod.label.mycompany.io/arch=x64", "k8s.pod.label.data="] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_label() + :"k8s.pod.label" + + ### Erlang + + ```erlang + ?K_8_S_POD_LABEL. + 'k8s.pod.label' + ``` + + + """ + @spec k_8_s_pod_label :: :"k8s.pod.label" + def k_8_s_pod_label do + :"k8s.pod.label" + end + + @deprecated """ + Replaced by `k8s.pod.label`. + """ + @spec k_8_s_pod_labels :: :"k8s.pod.labels" + def k_8_s_pod_labels do + :"k8s.pod.labels" + end + + @doc """ + The name of the Pod. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry-pod-autoconf"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_name() + :"k8s.pod.name" + + ### Erlang + + ```erlang + ?K_8_S_POD_NAME. + 'k8s.pod.name' + ``` + + + """ + @spec k_8_s_pod_name :: :"k8s.pod.name" + def k_8_s_pod_name do + :"k8s.pod.name" + end + + @doc """ + The UID of the Pod. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_uid() + :"k8s.pod.uid" + + ### Erlang + + ```erlang + ?K_8_S_POD_UID. + 'k8s.pod.uid' + ``` + + + """ + @spec k_8_s_pod_uid :: :"k8s.pod.uid" + def k_8_s_pod_uid do + :"k8s.pod.uid" + end + + @doc """ + The name of the ReplicaSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_name() + :"k8s.replicaset.name" + + ### Erlang + + ```erlang + ?K_8_S_REPLICASET_NAME. + 'k8s.replicaset.name' + ``` + + + """ + @spec k_8_s_replicaset_name :: :"k8s.replicaset.name" + def k_8_s_replicaset_name do + :"k8s.replicaset.name" + end + + @doc """ + The UID of the ReplicaSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_uid() + :"k8s.replicaset.uid" + + ### Erlang + + ```erlang + ?K_8_S_REPLICASET_UID. + 'k8s.replicaset.uid' + ``` + + + """ + @spec k_8_s_replicaset_uid :: :"k8s.replicaset.uid" + def k_8_s_replicaset_uid do + :"k8s.replicaset.uid" + end + + @doc """ + The name of the StatefulSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["opentelemetry"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_name() + :"k8s.statefulset.name" + + ### Erlang + + ```erlang + ?K_8_S_STATEFULSET_NAME. + 'k8s.statefulset.name' + ``` + + + """ + @spec k_8_s_statefulset_name :: :"k8s.statefulset.name" + def k_8_s_statefulset_name do + :"k8s.statefulset.name" + end + + @doc """ + The UID of the StatefulSet. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["275ecb36-5aa8-4c2a-9c47-d8bb681b9aff"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_uid() + :"k8s.statefulset.uid" + + ### Erlang + + ```erlang + ?K_8_S_STATEFULSET_UID. + 'k8s.statefulset.uid' + ``` + + + """ + @spec k_8_s_statefulset_uid :: :"k8s.statefulset.uid" + def k_8_s_statefulset_uid do + :"k8s.statefulset.uid" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex new file mode 100644 index 00000000..d057d172 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex @@ -0,0 +1,80 @@ +defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for User_Agent attributes. + """ + + @doc """ + Name of the user-agent extracted from original. Usually refers to the browser's name. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's name from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant name **SHOULD** be selected. In such a scenario it should align with `user_agent.version` + + ### Examples + + ``` + ["Safari", "YourApp"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_name() + :"user_agent.name" + + ### Erlang + + ```erlang + ?USERAGENT_NAME. + 'user_agent.name' + ``` + + + """ + @spec useragent_name :: :"user_agent.name" + def useragent_name do + :"user_agent.name" + end + + @doc """ + Version of the user-agent extracted from original. Usually refers to the browser's version + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + [Example](https://www.whatsmyua.info) of extracting browser's version from original string. In the case of using a user-agent for non-browser products, such as microservices with multiple names/versions inside the `user_agent.original`, the most significant version **SHOULD** be selected. In such a scenario it should align with `user_agent.name` + + ### Examples + + ``` + ["14.1.2", "1.0.0"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_version() + :"user_agent.version" + + ### Erlang + + ```erlang + ?USERAGENT_VERSION. + 'user_agent.version' + ``` + + + """ + @spec useragent_version :: :"user_agent.version" + def useragent_version do + :"user_agent.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex new file mode 100644 index 00000000..4587815f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex @@ -0,0 +1,39 @@ +defmodule OpenTelemetry.SemConv.UserAgentAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for User_Agent attributes. + """ + + @doc """ + Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["CERN-LineMode/2.15 libwww/2.17b3", "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", "YourApp/1.0.0 grpc-java-okhttp/1.27.2"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.UserAgentAttributes.useragent_original() + :"user_agent.original" + + ### Erlang + + ```erlang + ?USERAGENT_ORIGINAL. + 'user_agent.original' + ``` + + + """ + @spec useragent_original :: :"user_agent.original" + def useragent_original do + :"user_agent.original" + end +end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 new file mode 100644 index 00000000..8fe2a6db --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 @@ -0,0 +1,74 @@ +{%- macro acronyms() -%} +["http", "url", "tls", "rpc", "os", "oci", "gcp", "faas", "dns", "db", "aws"] +{%- endmacro -%} + +{%- macro func_name(text) -%} + {{ text | snake_case_const }} +{%- endmacro -%} + +{%- macro to_atom(text) -%} +{% if text | split_id | length > 1 -%}:"{{ text }}"{%- else -%}:{{ text }}{%- endif %} +{%- endmacro -%} + +{% macro to_elixir_type(member) -%} + {%- if member.id == member.value -%} + {{ to_atom(member.value) }} + {%- else -%} + {{ member }} + {{ member.type | type_mapping }} + {%- endif -%} +{%- endmacro %} + +{%- macro enum_value_to_elixir_type(value) -%} + {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} +{%- endmacro -%} + +{%- macro enum_value_return_type(value) -%} + {%- if value is string -%} + atom() | String.t() + {%- elif value is integer -%} + integer() + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} + +{%- macro enum_value_return_type_example(value) -%} + {%- if value is string -%} + :custom_value + {%- elif value is integer -%} + 27 + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} + +{%- macro erlang_enum_value_return_type_example(value) -%} + {%- if value is string -%} + custom_value + {%- elif value is integer -%} + 27 + {%- else -%} + NOT_MAPPED + {%- endif -%} +{%- endmacro -%} + +{%- macro enum_to_map(members) -%} + {% raw %}%{{% endraw %} + {% for member in members %} + {{ to_atom(member.id) }} => {{ enum_value_to_elixir_type(member.value) }}{% if not loop.last %},{% endif %} + {% endfor %} + {% raw %}}{% endraw %} +{%- endmacro -%} + +{%- macro strong_reqs(string) -%} + {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} +{%- endmacro -%} + +{%- macro format_acronym(value, acronyms) -%} + {%- if value | lower in acronyms -%} + {{ value | upper }} + {%- else -%} + {{ value }} + {%- endif -%} +{%- endmacro -%} \ No newline at end of file From b7decf43e2033bd55c581c7c11d2299b128f61e0 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 16:10:11 -0600 Subject: [PATCH 38/57] Use built-in acronym func and remove name smooshing --- .../include/http_attributes.hrl | 6 +- .../include/incubating/aws_attributes.hrl | 50 +- .../include/incubating/cloud_attributes.hrl | 4 +- .../incubating/cloudevents_attributes.hrl | 10 +- .../incubating/container_attributes.hrl | 6 +- .../include/incubating/db_attributes.hrl | 86 +- .../include/incubating/faas_attributes.hrl | 20 +- .../incubating/featureflag_attributes.hrl | 6 +- .../include/incubating/gcp_attributes.hrl | 4 +- .../include/incubating/genai_attributes.hrl | 26 +- .../include/incubating/heroku_attributes.hrl | 2 +- .../include/incubating/host_attributes.hrl | 2 +- .../include/incubating/http_attributes.hrl | 16 +- .../include/incubating/k8s_attributes.hrl | 50 +- .../include/incubating/log_attributes.hrl | 4 +- .../incubating/messaging_attributes.hrl | 55 +- .../include/incubating/metrics/db_metrics.hrl | 16 +- .../incubating/metrics/faas_metrics.hrl | 10 +- .../incubating/metrics/http_metrics.hrl | 6 +- .../incubating/metrics/process_metrics.hrl | 4 +- .../incubating/metrics/rpc_metrics.hrl | 8 +- .../incubating/metrics/system_metrics.hrl | 4 +- .../incubating/opentracing_attributes.hrl | 6 +- .../include/incubating/os_attributes.hrl | 2 +- .../include/incubating/process_attributes.hrl | 30 +- .../include/incubating/rpc_attributes.hrl | 88 +- .../include/incubating/session_attributes.hrl | 2 +- .../include/incubating/system_attributes.hrl | 2 +- .../include/incubating/tls_attributes.hrl | 34 +- .../include/incubating/url_attributes.hrl | 4 +- .../incubating/useragent_attributes.hrl | 4 +- .../include/otel_attributes.hrl | 8 +- .../include/user_agent_attributes.hrl | 21 + .../include/useragent_attributes.hrl | 2 +- .../lib/http_attributes.ex | 24 +- .../lib/incubating/aws_attributes.ex | 201 ++--- .../lib/incubating/cloud_attributes.ex | 16 +- .../lib/incubating/cloudevents_attributes.ex | 40 +- .../lib/incubating/container_attributes.ex | 24 +- .../lib/incubating/db_attributes.ex | 146 ++-- .../lib/incubating/faas_attributes.ex | 54 +- .../lib/incubating/featureflag_attributes.ex | 24 +- .../lib/incubating/gcp_attributes.ex | 16 +- .../lib/incubating/genai_attributes.ex | 110 +-- .../lib/incubating/heroku_attributes.ex | 8 +- .../lib/incubating/host_attributes.ex | 8 +- .../lib/incubating/http_attributes.ex | 32 +- .../lib/incubating/k8s_attributes.ex | 198 ++--- .../lib/incubating/log_attributes.ex | 16 +- .../lib/incubating/messaging_attributes.ex | 186 ++-- .../incubating/metrics/container_metrics.hrl | 131 +++ .../lib/incubating/metrics/db_metrics.ex | 48 +- .../lib/incubating/metrics/db_metrics.hrl | 367 ++++++++ .../lib/incubating/metrics/dns_metrics.hrl | 34 + .../lib/incubating/metrics/faas_metrics.ex | 40 +- .../lib/incubating/metrics/faas_metrics.hrl | 250 ++++++ .../lib/incubating/metrics/http_metrics.ex | 24 +- .../lib/incubating/metrics/http_metrics.hrl | 239 +++++ .../incubating/metrics/messaging_metrics.hrl | 169 ++++ .../lib/incubating/metrics/process_metrics.ex | 16 +- .../incubating/metrics/process_metrics.hrl | 277 ++++++ .../lib/incubating/metrics/rpc_metrics.ex | 32 +- .../lib/incubating/metrics/rpc_metrics.hrl | 331 +++++++ .../lib/incubating/metrics/system_metrics.ex | 16 +- .../lib/incubating/metrics/system_metrics.hrl | 817 ++++++++++++++++++ .../lib/incubating/opentracing_attributes.ex | 22 +- .../lib/incubating/os_attributes.ex | 8 +- .../lib/incubating/process_attributes.ex | 116 +-- .../lib/incubating/rpc_attributes.ex | 108 +-- .../lib/incubating/session_attributes.ex | 8 +- .../lib/incubating/system_attributes.ex | 8 +- .../lib/incubating/tls_attributes.ex | 136 +-- .../lib/incubating/url_attributes.ex | 16 +- .../lib/incubating/useragent_attributes.ex | 16 +- .../lib/metrics/http_metrics.hrl | 61 ++ .../lib/otel_attributes.ex | 30 +- .../lib/useragent_attributes.ex | 8 +- .../templates/registry/elixir/common.j2 | 18 +- .../registry/elixir/semantic_attributes.ex.j2 | 21 +- .../registry/elixir/semantic_metrics.ex.j2 | 7 +- .../templates/registry/elixir/weaver.yaml | 2 +- .../templates/registry/erlang/common.j2 | 37 +- .../erlang/semantic_attributes.hrl.j2 | 7 +- .../registry/erlang/semantic_metrics.hrl.j2 | 5 +- .../templates/registry/erlang/weaver.yaml | 2 + 85 files changed, 3894 insertions(+), 1234 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index 60a4950d..e1f3b8b7 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -45,12 +45,12 @@ %% Original HTTP method sent by the client in the request line. --define(HTTP_REQUEST_METHODORIGINAL, 'http.request.method_original'). +-define(HTTP_REQUEST_METHOD_ORIGINAL, 'http.request.method_original'). %% The ordinal number of request resending attempt (for any reason, including redirects). %% --define(HTTP_REQUEST_RESENDCOUNT, 'http.request.resend_count'). +-define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). %% HTTP response headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. @@ -59,7 +59,7 @@ %% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). --define(HTTP_RESPONSE_STATUSCODE, 'http.response.status_code'). +-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). %% The matched route, that is, the path template in the format used by the respective server framework. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index d628305e..3db1b730 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -15,19 +15,19 @@ %%%------------------------------------------------------------------------- %% The JSON-serialized value of each item in the `AttributeDefinitions` request field. --define(AWS_DYNAMODB_ATTRIBUTEDEFINITIONS, 'aws.dynamodb.attribute_definitions'). +-define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). %% The value of the `AttributesToGet` request parameter. --define(AWS_DYNAMODB_ATTRIBUTESTOGET, 'aws.dynamodb.attributes_to_get'). +-define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). %% The value of the `ConsistentRead` request parameter. --define(AWS_DYNAMODB_CONSISTENTREAD, 'aws.dynamodb.consistent_read'). +-define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). %% The JSON-serialized value of each item in the `ConsumedCapacity` response field. --define(AWS_DYNAMODB_CONSUMEDCAPACITY, 'aws.dynamodb.consumed_capacity'). +-define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). %% The value of the `Count` response parameter. @@ -35,23 +35,23 @@ %% The value of the `ExclusiveStartTableName` request parameter. --define(AWS_DYNAMODB_EXCLUSIVESTARTTABLE, 'aws.dynamodb.exclusive_start_table'). +-define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). %% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. --define(AWS_DYNAMODB_GLOBALSECONDARYINDEXUPDATES, 'aws.dynamodb.global_secondary_index_updates'). +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). %% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field --define(AWS_DYNAMODB_GLOBALSECONDARYINDEXES, 'aws.dynamodb.global_secondary_indexes'). +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). %% The value of the `IndexName` request parameter. --define(AWS_DYNAMODB_INDEXNAME, 'aws.dynamodb.index_name'). +-define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). %% The JSON-serialized value of the `ItemCollectionMetrics` response field. --define(AWS_DYNAMODB_ITEMCOLLECTIONMETRICS, 'aws.dynamodb.item_collection_metrics'). +-define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). %% The value of the `Limit` request parameter. @@ -59,7 +59,7 @@ %% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. --define(AWS_DYNAMODB_LOCALSECONDARYINDEXES, 'aws.dynamodb.local_secondary_indexes'). +-define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). %% The value of the `ProjectionExpression` request parameter. @@ -67,19 +67,19 @@ %% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. --define(AWS_DYNAMODB_PROVISIONEDREADCAPACITY, 'aws.dynamodb.provisioned_read_capacity'). +-define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). %% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. --define(AWS_DYNAMODB_PROVISIONEDWRITECAPACITY, 'aws.dynamodb.provisioned_write_capacity'). +-define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). %% The value of the `ScanIndexForward` request parameter. --define(AWS_DYNAMODB_SCANFORWARD, 'aws.dynamodb.scan_forward'). +-define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). %% The value of the `ScannedCount` response parameter. --define(AWS_DYNAMODB_SCANNEDCOUNT, 'aws.dynamodb.scanned_count'). +-define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). %% The value of the `Segment` request parameter. @@ -91,15 +91,15 @@ %% The number of items in the `TableNames` response parameter. --define(AWS_DYNAMODB_TABLECOUNT, 'aws.dynamodb.table_count'). +-define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). %% The keys in the `RequestItems` object field. --define(AWS_DYNAMODB_TABLENAMES, 'aws.dynamodb.table_names'). +-define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). %% The value of the `TotalSegments` request parameter. --define(AWS_DYNAMODB_TOTALSEGMENTS, 'aws.dynamodb.total_segments'). +-define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). %% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). @@ -149,7 +149,7 @@ %% 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). %% --define(AWS_LAMBDA_INVOKEDARN, 'aws.lambda.invoked_arn'). +-define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). %% The Amazon Resource Name(s) (ARN) of the AWS log group(s). @@ -173,28 +173,28 @@ %% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. --define(AWS_REQUESTID, 'aws.request_id'). +-define(AWS_REQUEST_ID, 'aws.request_id'). %% 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. --define(AWS_S_3_BUCKET, 'aws.s3.bucket'). +-define(AWS_S3_BUCKET, 'aws.s3.bucket'). %% The source object (in the form `bucket`/`key`) for the copy operation. --define(AWS_S_3_COPYSOURCE, 'aws.s3.copy_source'). +-define(AWS_S3_COPY_SOURCE, 'aws.s3.copy_source'). %% The delete request container that specifies the objects to be deleted. --define(AWS_S_3_DELETE, 'aws.s3.delete'). +-define(AWS_S3_DELETE, 'aws.s3.delete'). %% 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. --define(AWS_S_3_KEY, 'aws.s3.key'). +-define(AWS_S3_KEY, 'aws.s3.key'). %% The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. --define(AWS_S_3_PARTNUMBER, 'aws.s3.part_number'). +-define(AWS_S3_PART_NUMBER, 'aws.s3.part_number'). %% Upload ID that identifies the multipart upload. --define(AWS_S_3_UPLOADID, 'aws.s3.upload_id'). +-define(AWS_S3_UPLOAD_ID, 'aws.s3.upload_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index e5b8bd9b..825cd9f7 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -21,7 +21,7 @@ %% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. %% --define(CLOUD_AVAILABILITYZONE, 'cloud.availability_zone'). +-define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). %% The cloud platform in use. @@ -113,4 +113,4 @@ %% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) %% --define(CLOUD_RESOURCEID, 'cloud.resource_id'). +-define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl index 842b4638..97ef4a27 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl @@ -16,24 +16,24 @@ %% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. %% --define(CLOUDEVENTS_EVENTID, 'cloudevents.event_id'). +-define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). %% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. %% --define(CLOUDEVENTS_EVENTSOURCE, 'cloudevents.event_source'). +-define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). %% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. %% --define(CLOUDEVENTS_EVENTSPECVERSION, 'cloudevents.event_spec_version'). +-define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). %% 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). %% --define(CLOUDEVENTS_EVENTSUBJECT, 'cloudevents.event_subject'). +-define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). %% 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. %% --define(CLOUDEVENTS_EVENTTYPE, 'cloudevents.event_type'). +-define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index 18708b7c..b741bac4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -21,12 +21,12 @@ %% All the command arguments (including the command/executable itself) run by the container. [2] %% --define(CONTAINER_COMMANDARGS, 'container.command_args'). +-define(CONTAINER_COMMAND_ARGS, 'container.command_args'). %% The full command run by the container as a single string representing the full command. [2] %% --define(CONTAINER_COMMANDLINE, 'container.command_line'). +-define(CONTAINER_COMMAND_LINE, 'container.command_line'). %% The CPU state for this data point. @@ -57,7 +57,7 @@ %% Repo digests of the container image as provided by the container runtime. %% --define(CONTAINER_IMAGE_REPODIGESTS, 'container.image.repo_digests'). +-define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). %% 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:`. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index e44a6b1f..b406a78b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -16,29 +16,29 @@ %% 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). %% --define(DB_CASSANDRA_CONSISTENCYLEVEL, 'db.cassandra.consistency_level'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all', 'all'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.all', 'all'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.each_quorum', 'each_quorum'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.each_quorum', 'each_quorum'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.quorum', 'quorum'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.quorum', 'quorum'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_quorum', 'local_quorum'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.local_quorum', 'local_quorum'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.one', 'one'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.one', 'one'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.two', 'two'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.two', 'two'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.three', 'three'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.three', 'three'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_one', 'local_one'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.local_one', 'local_one'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.any', 'any'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.any', 'any'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.serial', 'serial'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.serial', 'serial'). --define('DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.local_serial', 'local_serial'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.local_serial', 'local_serial'). @@ -59,12 +59,12 @@ %% The fetch size used for paging, i.e. how many rows will be returned at once. %% --define(DB_CASSANDRA_PAGESIZE, 'db.cassandra.page_size'). +-define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). %% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. %% --define(DB_CASSANDRA_SPECULATIVEEXECUTIONCOUNT, 'db.cassandra.speculative_execution_count'). +-define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. @@ -91,19 +91,19 @@ %% @deprecated "Replaced by `server.address` and `server.port`." %% %% Deprecated, use `server.address`, `server.port` attributes instead. --define(DB_CONNECTIONSTRING, 'db.connection_string'). +-define(DB_CONNECTION_STRING, 'db.connection_string'). %% Unique Cosmos client instance id. --define(DB_COSMOSDB_CLIENTID, 'db.cosmosdb.client_id'). +-define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). %% Cosmos client connection mode. --define(DB_COSMOSDB_CONNECTIONMODE, 'db.cosmosdb.connection_mode'). +-define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). --define('DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway', 'gateway'). +-define('DB_COSMOSDB_CONNECTION_MODE_VALUES.gateway', 'gateway'). --define('DB_COSMOSDB_CONNECTIONMODE_VALUES.direct', 'direct'). +-define('DB_COSMOSDB_CONNECTION_MODE_VALUES.direct', 'direct'). %% @deprecated Replaced by `db.collection.name`. @@ -112,54 +112,54 @@ %% CosmosDB Operation Type. --define(DB_COSMOSDB_OPERATIONTYPE, 'db.cosmosdb.operation_type'). +-define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid', 'Invalid'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.invalid', 'Invalid'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.create', 'Create'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.create', 'Create'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.patch', 'Patch'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.patch', 'Patch'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.read', 'Read'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.read', 'Read'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.read_feed', 'ReadFeed'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.read_feed', 'ReadFeed'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.delete', 'Delete'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.delete', 'Delete'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.replace', 'Replace'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.replace', 'Replace'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.execute', 'Execute'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.execute', 'Execute'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.query', 'Query'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.query', 'Query'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.head', 'Head'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.head', 'Head'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.head_feed', 'HeadFeed'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.head_feed', 'HeadFeed'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.upsert', 'Upsert'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.upsert', 'Upsert'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.batch', 'Batch'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.batch', 'Batch'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.query_plan', 'QueryPlan'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.query_plan', 'QueryPlan'). --define('DB_COSMOSDB_OPERATIONTYPE_VALUES.execute_javascript', 'ExecuteJavaScript'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES.execute_javascript', 'ExecuteJavaScript'). %% RU consumed for that operation --define(DB_COSMOSDB_REQUESTCHARGE, 'db.cosmosdb.request_charge'). +-define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). %% Request payload size in bytes --define(DB_COSMOSDB_REQUESTCONTENTLENGTH, 'db.cosmosdb.request_content_length'). +-define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). %% Cosmos DB status code. --define(DB_COSMOSDB_STATUSCODE, 'db.cosmosdb.status_code'). +-define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). %% Cosmos DB sub status code. --define(DB_COSMOSDB_SUBSTATUSCODE, 'db.cosmosdb.sub_status_code'). +-define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). %% Represents the identifier of an Elasticsearch cluster. @@ -174,7 +174,7 @@ %% A dynamic value in the url path. %% --define(DB_ELASTICSEARCH_PATHPARTS, 'db.elasticsearch.path_parts'). +-define(DB_ELASTICSEARCH_PATH_PARTS, 'db.elasticsearch.path_parts'). %% @deprecated Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. %% Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. @@ -182,7 +182,7 @@ %% @deprecated Removed as not used. %% Removed, no replacement at this time. --define(DB_JDBC_DRIVERCLASSNAME, 'db.jdbc.driver_classname'). +-define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. @@ -190,7 +190,7 @@ %% @deprecated Deprecated, no replacement at this time. %% Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. --define(DB_MSSQL_INSTANCENAME, 'db.mssql.instance_name'). +-define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). %% @deprecated Replaced by `db.namespace`. %% Deprecated, use `db.namespace` instead. @@ -222,7 +222,7 @@ %% @deprecated Replaced by `db.namespace`. %% Deprecated, use `db.namespace` instead. --define(DB_REDIS_DATABASEINDEX, 'db.redis.database_index'). +-define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index 2f597415..856fe0b7 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -57,38 +57,38 @@ %% The invocation ID of the current function invocation. %% --define(FAAS_INVOCATIONID, 'faas.invocation_id'). +-define(FAAS_INVOCATION_ID, 'faas.invocation_id'). %% The name of the invoked function. %% --define(FAAS_INVOKEDNAME, 'faas.invoked_name'). +-define(FAAS_INVOKED_NAME, 'faas.invoked_name'). %% The cloud provider of the invoked function. %% --define(FAAS_INVOKEDPROVIDER, 'faas.invoked_provider'). +-define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). --define('FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud', 'alibaba_cloud'). +-define('FAAS_INVOKED_PROVIDER_VALUES.alibaba_cloud', 'alibaba_cloud'). --define('FAAS_INVOKEDPROVIDER_VALUES.aws', 'aws'). +-define('FAAS_INVOKED_PROVIDER_VALUES.aws', 'aws'). --define('FAAS_INVOKEDPROVIDER_VALUES.azure', 'azure'). +-define('FAAS_INVOKED_PROVIDER_VALUES.azure', 'azure'). --define('FAAS_INVOKEDPROVIDER_VALUES.gcp', 'gcp'). +-define('FAAS_INVOKED_PROVIDER_VALUES.gcp', 'gcp'). --define('FAAS_INVOKEDPROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). +-define('FAAS_INVOKED_PROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). %% The cloud region of the invoked function. %% --define(FAAS_INVOKEDREGION, 'faas.invoked_region'). +-define(FAAS_INVOKED_REGION, 'faas.invoked_region'). %% The amount of memory available to the serverless function converted to Bytes. %% --define(FAAS_MAXMEMORY, 'faas.max_memory'). +-define(FAAS_MAX_MEMORY, 'faas.max_memory'). %% The name of the single function that this runtime instance executes. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl index d931d3a0..5b59e448 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl @@ -15,13 +15,13 @@ %%%------------------------------------------------------------------------- %% The unique identifier of the feature flag. --define(FEATUREFLAG_KEY, 'feature_flag.key'). +-define(FEATURE_FLAG_KEY, 'feature_flag.key'). %% The name of the service provider that performs the flag evaluation. --define(FEATUREFLAG_PROVIDERNAME, 'feature_flag.provider_name'). +-define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). %% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. %% --define(FEATUREFLAG_VARIANT, 'feature_flag.variant'). +-define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl index 95a85150..3404be06 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl @@ -16,12 +16,12 @@ %% 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. %% --define(GCP_CLOUDRUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). +-define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). %% 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. %% --define(GCP_CLOUDRUN_JOB_TASKINDEX, 'gcp.cloud_run.job.task_index'). +-define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). %% 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). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl index ffeda5b7..80aaa906 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl @@ -15,51 +15,51 @@ %%%------------------------------------------------------------------------- %% The full response received from the LLM. --define(GENAI_COMPLETION, 'gen_ai.completion'). +-define(GEN_AI_COMPLETION, 'gen_ai.completion'). %% The full prompt sent to an LLM. --define(GENAI_PROMPT, 'gen_ai.prompt'). +-define(GEN_AI_PROMPT, 'gen_ai.prompt'). %% The maximum number of tokens the LLM generates for a request. --define(GENAI_REQUEST_MAXTOKENS, 'gen_ai.request.max_tokens'). +-define(GEN_AI_REQUEST_MAX_TOKENS, 'gen_ai.request.max_tokens'). %% The name of the LLM a request is being made to. --define(GENAI_REQUEST_MODEL, 'gen_ai.request.model'). +-define(GEN_AI_REQUEST_MODEL, 'gen_ai.request.model'). %% The temperature setting for the LLM request. --define(GENAI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). +-define(GEN_AI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). %% The top_p sampling setting for the LLM request. --define(GENAI_REQUEST_TOPP, 'gen_ai.request.top_p'). +-define(GEN_AI_REQUEST_TOP_P, 'gen_ai.request.top_p'). %% Array of reasons the model stopped generating tokens, corresponding to each generation received. --define(GENAI_RESPONSE_FINISHREASONS, 'gen_ai.response.finish_reasons'). +-define(GEN_AI_RESPONSE_FINISH_REASONS, 'gen_ai.response.finish_reasons'). %% The unique identifier for the completion. --define(GENAI_RESPONSE_ID, 'gen_ai.response.id'). +-define(GEN_AI_RESPONSE_ID, 'gen_ai.response.id'). %% The name of the LLM a response was generated from. --define(GENAI_RESPONSE_MODEL, 'gen_ai.response.model'). +-define(GEN_AI_RESPONSE_MODEL, 'gen_ai.response.model'). %% The Generative AI product as identified by the client instrumentation. --define(GENAI_SYSTEM, 'gen_ai.system'). +-define(GEN_AI_SYSTEM, 'gen_ai.system'). --define('GENAI_SYSTEM_VALUES.openai', 'openai'). +-define('GEN_AI_SYSTEM_VALUES.openai', 'openai'). %% The number of tokens used in the LLM response (completion). --define(GENAI_USAGE_COMPLETIONTOKENS, 'gen_ai.usage.completion_tokens'). +-define(GEN_AI_USAGE_COMPLETION_TOKENS, 'gen_ai.usage.completion_tokens'). %% The number of tokens used in the LLM prompt. --define(GENAI_USAGE_PROMPTTOKENS, 'gen_ai.usage.prompt_tokens'). +-define(GEN_AI_USAGE_PROMPT_TOKENS, 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl index 2116a751..96595577 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl @@ -26,4 +26,4 @@ %% Time and date the release was created %% --define(HEROKU_RELEASE_CREATIONTIMESTAMP, 'heroku.release.creation_timestamp'). +-define(HEROKU_RELEASE_CREATION_TIMESTAMP, 'heroku.release.creation_timestamp'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index f149c871..70da0efb 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -38,7 +38,7 @@ %% The amount of level 2 memory cache available to the processor (in Bytes). %% --define(HOST_CPU_CACHE_L_2_SIZE, 'host.cpu.cache.l2.size'). +-define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). %% Family or generation of the CPU. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index 9f6d82dd..f2432c3d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -15,7 +15,7 @@ %%%------------------------------------------------------------------------- %% @deprecated Replaced by `client.address`. %% Deprecated, use `client.address` instead. --define(HTTP_CLIENTIP, 'http.client_ip'). +-define(HTTP_CLIENT_IP, 'http.client_ip'). %% State of the HTTP connection in the HTTP connection pool. @@ -63,11 +63,11 @@ %% @deprecated Replaced by `http.request.header.content-length`. %% Deprecated, use `http.request.header.content-length` instead. --define(HTTP_REQUESTCONTENTLENGTH, 'http.request_content_length'). +-define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). %% @deprecated Replaced by `http.request.body.size`. %% Deprecated, use `http.request.body.size` instead. --define(HTTP_REQUESTCONTENTLENGTHUNCOMPRESSED, 'http.request_content_length_uncompressed'). +-define(HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED, 'http.request_content_length_uncompressed'). %% 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. @@ -81,11 +81,11 @@ %% @deprecated Replaced by `http.response.header.content-length`. %% Deprecated, use `http.response.header.content-length` instead. --define(HTTP_RESPONSECONTENTLENGTH, 'http.response_content_length'). +-define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). %% @deprecated Replace by `http.response.body.size`. %% Deprecated, use `http.response.body.size` instead. --define(HTTP_RESPONSECONTENTLENGTHUNCOMPRESSED, 'http.response_content_length_uncompressed'). +-define(HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED, 'http.response_content_length_uncompressed'). %% @deprecated Replaced by `url.scheme` instead. %% Deprecated, use `url.scheme` instead. @@ -93,11 +93,11 @@ %% @deprecated Replaced by `server.address`. %% Deprecated, use `server.address` instead. --define(HTTP_SERVERNAME, 'http.server_name'). +-define(HTTP_SERVER_NAME, 'http.server_name'). %% @deprecated Replaced by `http.response.status_code`. %% Deprecated, use `http.response.status_code` instead. --define(HTTP_STATUSCODE, 'http.status_code'). +-define(HTTP_STATUS_CODE, 'http.status_code'). %% @deprecated Split to `url.path` and `url.query. %% Deprecated, use `url.path` and `url.query` instead. @@ -109,4 +109,4 @@ %% @deprecated Replaced by `user_agent.original`. %% Deprecated, use `user_agent.original` instead. --define(HTTP_USERAGENT, 'http.user_agent'). +-define(HTTP_USER_AGENT, 'http.user_agent'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl index d897794c..61ccc98d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl @@ -16,123 +16,123 @@ %% The name of the cluster. %% --define(K_8_S_CLUSTER_NAME, 'k8s.cluster.name'). +-define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). %% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. %% --define(K_8_S_CLUSTER_UID, 'k8s.cluster.uid'). +-define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). %% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). %% --define(K_8_S_CONTAINER_NAME, 'k8s.container.name'). +-define(K8S_CONTAINER_NAME, 'k8s.container.name'). %% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. %% --define(K_8_S_CONTAINER_RESTARTCOUNT, 'k8s.container.restart_count'). +-define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). %% Last terminated reason of the Container. %% --define(K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON, 'k8s.container.status.last_terminated_reason'). +-define(K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON, 'k8s.container.status.last_terminated_reason'). %% The name of the CronJob. %% --define(K_8_S_CRONJOB_NAME, 'k8s.cronjob.name'). +-define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). %% The UID of the CronJob. %% --define(K_8_S_CRONJOB_UID, 'k8s.cronjob.uid'). +-define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). %% The name of the DaemonSet. %% --define(K_8_S_DAEMONSET_NAME, 'k8s.daemonset.name'). +-define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). %% The UID of the DaemonSet. %% --define(K_8_S_DAEMONSET_UID, 'k8s.daemonset.uid'). +-define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). %% The name of the Deployment. %% --define(K_8_S_DEPLOYMENT_NAME, 'k8s.deployment.name'). +-define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). %% The UID of the Deployment. %% --define(K_8_S_DEPLOYMENT_UID, 'k8s.deployment.uid'). +-define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). %% The name of the Job. %% --define(K_8_S_JOB_NAME, 'k8s.job.name'). +-define(K8S_JOB_NAME, 'k8s.job.name'). %% The UID of the Job. %% --define(K_8_S_JOB_UID, 'k8s.job.uid'). +-define(K8S_JOB_UID, 'k8s.job.uid'). %% The name of the namespace that the pod is running in. %% --define(K_8_S_NAMESPACE_NAME, 'k8s.namespace.name'). +-define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). %% The name of the Node. %% --define(K_8_S_NODE_NAME, 'k8s.node.name'). +-define(K8S_NODE_NAME, 'k8s.node.name'). %% The UID of the Node. %% --define(K_8_S_NODE_UID, 'k8s.node.uid'). +-define(K8S_NODE_UID, 'k8s.node.uid'). %% The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. %% --define(K_8_S_POD_ANNOTATION, 'k8s.pod.annotation'). +-define(K8S_POD_ANNOTATION, 'k8s.pod.annotation'). %% The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. %% --define(K_8_S_POD_LABEL, 'k8s.pod.label'). +-define(K8S_POD_LABEL, 'k8s.pod.label'). %% @deprecated Replaced by `k8s.pod.label`. %% Deprecated, use `k8s.pod.label` instead. --define(K_8_S_POD_LABELS, 'k8s.pod.labels'). +-define(K8S_POD_LABELS, 'k8s.pod.labels'). %% The name of the Pod. %% --define(K_8_S_POD_NAME, 'k8s.pod.name'). +-define(K8S_POD_NAME, 'k8s.pod.name'). %% The UID of the Pod. %% --define(K_8_S_POD_UID, 'k8s.pod.uid'). +-define(K8S_POD_UID, 'k8s.pod.uid'). %% The name of the ReplicaSet. %% --define(K_8_S_REPLICASET_NAME, 'k8s.replicaset.name'). +-define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). %% The UID of the ReplicaSet. %% --define(K_8_S_REPLICASET_UID, 'k8s.replicaset.uid'). +-define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). %% The name of the StatefulSet. %% --define(K_8_S_STATEFULSET_NAME, 'k8s.statefulset.name'). +-define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). %% The UID of the StatefulSet. %% --define(K_8_S_STATEFULSET_UID, 'k8s.statefulset.uid'). +-define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index 436fa3fe..7ebd9c68 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -21,7 +21,7 @@ %% The basename of the file, with symlinks resolved. %% --define(LOG_FILE_NAMERESOLVED, 'log.file.name_resolved'). +-define(LOG_FILE_NAME_RESOLVED, 'log.file.name_resolved'). %% The full path to the file. @@ -31,7 +31,7 @@ %% The full path to the file, with symlinks resolved. %% --define(LOG_FILE_PATHRESOLVED, 'log.file.path_resolved'). +-define(LOG_FILE_PATH_RESOLVED, 'log.file.path_resolved'). %% The stream associated with the log. See below for a list of well-known values. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index 9d4b5a84..d19303d8 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -15,18 +15,13 @@ %%%------------------------------------------------------------------------- %% The number of messages sent, received, or processed in the scope of the batching operation. --define(MESSAGING_BATCH_MESSAGECOUNT, 'messaging.batch.message_count'). +-define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). %% A unique identifier for the client that consumes or produces a message. %% -define(MESSAGING_CLIENT_ID, 'messaging.client.id'). -%% @deprecated Replaced by `messaging.client.id`. -%% Deprecated, use `messaging.client.id` instead. -%% --define(MESSAGING_CLIENTID, 'messaging.client_id'). - %% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). -define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). @@ -50,11 +45,11 @@ %% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). --define(MESSAGING_DESTINATIONPUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). +-define(MESSAGING_DESTINATION_PUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). %% The name of the original destination the message was published to --define(MESSAGING_DESTINATIONPUBLISH_NAME, 'messaging.destination_publish.name'). +-define(MESSAGING_DESTINATION_PUBLISH_NAME, 'messaging.destination_publish.name'). %% The name of the consumer group the event consumer is associated with. @@ -64,27 +59,27 @@ %% The UTC epoch seconds at which the message has been accepted and stored in the entity. %% --define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUEDTIME, 'messaging.eventhubs.message.enqueued_time'). +-define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME, 'messaging.eventhubs.message.enqueued_time'). %% The ack deadline in seconds set for the modify ack deadline request. %% --define(MESSAGING_GCPPUBSUB_MESSAGE_ACKDEADLINE, 'messaging.gcp_pubsub.message.ack_deadline'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE, 'messaging.gcp_pubsub.message.ack_deadline'). %% The ack id for a given message. %% --define(MESSAGING_GCPPUBSUB_MESSAGE_ACKID, 'messaging.gcp_pubsub.message.ack_id'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID, 'messaging.gcp_pubsub.message.ack_id'). %% The delivery attempt for a given message. %% --define(MESSAGING_GCPPUBSUB_MESSAGE_DELIVERYATTEMPT, 'messaging.gcp_pubsub.message.delivery_attempt'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT, 'messaging.gcp_pubsub.message.delivery_attempt'). %% The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. %% --define(MESSAGING_GCPPUBSUB_MESSAGE_ORDERINGKEY, 'messaging.gcp_pubsub.message.ordering_key'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY, 'messaging.gcp_pubsub.message.ordering_key'). %% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. @@ -118,7 +113,7 @@ %% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". %% --define(MESSAGING_MESSAGE_CONVERSATIONID, 'messaging.message.conversation_id'). +-define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). %% The size of the message body and metadata in bytes. @@ -158,37 +153,37 @@ %% RabbitMQ message routing key. %% --define(MESSAGING_RABBITMQ_DESTINATION_ROUTINGKEY, 'messaging.rabbitmq.destination.routing_key'). +-define(MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY, 'messaging.rabbitmq.destination.routing_key'). %% RabbitMQ message delivery tag %% --define(MESSAGING_RABBITMQ_MESSAGE_DELIVERYTAG, 'messaging.rabbitmq.message.delivery_tag'). +-define(MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG, 'messaging.rabbitmq.message.delivery_tag'). %% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. %% --define(MESSAGING_ROCKETMQ_CLIENTGROUP, 'messaging.rocketmq.client_group'). +-define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). %% Model of message consumption. This only applies to consumer spans. %% --define(MESSAGING_ROCKETMQ_CONSUMPTIONMODEL, 'messaging.rocketmq.consumption_model'). +-define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). --define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering', 'clustering'). +-define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.clustering', 'clustering'). --define('MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.broadcasting', 'broadcasting'). +-define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.broadcasting', 'broadcasting'). %% The delay time level for delay message, which determines the message delay time. %% --define(MESSAGING_ROCKETMQ_MESSAGE_DELAYTIMELEVEL, 'messaging.rocketmq.message.delay_time_level'). +-define(MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL, 'messaging.rocketmq.message.delay_time_level'). %% The timestamp in milliseconds that the delay message is expected to be delivered to consumer. %% --define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERYTIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). +-define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). %% It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. @@ -227,31 +222,31 @@ %% The name of the subscription in the topic messages are received from. %% --define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTIONNAME, 'messaging.servicebus.destination.subscription_name'). +-define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME, 'messaging.servicebus.destination.subscription_name'). %% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). %% --define(MESSAGING_SERVICEBUS_DISPOSITIONSTATUS, 'messaging.servicebus.disposition_status'). +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS, 'messaging.servicebus.disposition_status'). --define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete', 'complete'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.complete', 'complete'). --define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.abandon', 'abandon'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.abandon', 'abandon'). --define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.dead_letter', 'dead_letter'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.dead_letter', 'dead_letter'). --define('MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.defer', 'defer'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.defer', 'defer'). %% Number of deliveries that have been attempted for this message. %% --define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERYCOUNT, 'messaging.servicebus.message.delivery_count'). +-define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT, 'messaging.servicebus.message.delivery_count'). %% The UTC epoch seconds at which the message has been accepted and stored in the entity. %% --define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUEDTIME, 'messaging.servicebus.message.enqueued_time'). +-define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME, 'messaging.servicebus.message.enqueued_time'). %% The messaging system as identified by the client instrumentation. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl index 4aaf0e41..d68836a3 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl @@ -19,7 +19,7 @@ %% The time it took to create a new connection --define(DB_CLIENT_CONNECTION_CREATETIME, 'db.client.connection.create_time'). +-define(DB_CLIENT_CONNECTION_CREATE_TIME, 'db.client.connection.create_time'). %% The maximum number of idle open connections allowed @@ -35,7 +35,7 @@ %% The number of pending requests for an open connection, cumulative for the entire pool --define(DB_CLIENT_CONNECTION_PENDINGREQUESTS, 'db.client.connection.pending_requests'). +-define(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 @@ -43,15 +43,15 @@ %% The time between borrowing a connection and returning it to the pool --define(DB_CLIENT_CONNECTION_USETIME, 'db.client.connection.use_time'). +-define(DB_CLIENT_CONNECTION_USE_TIME, 'db.client.connection.use_time'). %% The time it took to obtain an open connection from the pool --define(DB_CLIENT_CONNECTION_WAITTIME, 'db.client.connection.wait_time'). +-define(DB_CLIENT_CONNECTION_WAIT_TIME, 'db.client.connection.wait_time'). %% @deprecated Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. --define(DB_CLIENT_CONNECTIONS_CREATETIME, 'db.client.connections.create_time'). +-define(DB_CLIENT_CONNECTIONS_CREATE_TIME, 'db.client.connections.create_time'). %% @deprecated Replaced by `db.client.connection.idle.max`. %% Deprecated, use `db.client.connection.idle.max` instead. @@ -67,7 +67,7 @@ %% @deprecated Replaced by `db.client.connection.pending_requests`. %% Deprecated, use `db.client.connection.pending_requests` instead. --define(DB_CLIENT_CONNECTIONS_PENDINGREQUESTS, 'db.client.connections.pending_requests'). +-define(DB_CLIENT_CONNECTIONS_PENDING_REQUESTS, 'db.client.connections.pending_requests'). %% @deprecated Replaced by `db.client.connection.timeouts`. %% Deprecated, use `db.client.connection.timeouts` instead. @@ -79,11 +79,11 @@ %% @deprecated Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. --define(DB_CLIENT_CONNECTIONS_USETIME, 'db.client.connections.use_time'). +-define(DB_CLIENT_CONNECTIONS_USE_TIME, 'db.client.connections.use_time'). %% @deprecated Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. --define(DB_CLIENT_CONNECTIONS_WAITTIME, 'db.client.connections.wait_time'). +-define(DB_CLIENT_CONNECTIONS_WAIT_TIME, 'db.client.connections.wait_time'). %% Duration of database client operations. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl index 8074f61e..3f777ac4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl @@ -19,7 +19,7 @@ %% Distribution of CPU usage per invocation --define(FAAS_CPUUSAGE, 'faas.cpu_usage'). +-define(FAAS_CPU_USAGE, 'faas.cpu_usage'). %% Number of invocation errors @@ -27,7 +27,7 @@ %% Measures the duration of the function's initialization, such as a cold start --define(FAAS_INITDURATION, 'faas.init_duration'). +-define(FAAS_INIT_DURATION, 'faas.init_duration'). %% Number of successful invocations @@ -35,15 +35,15 @@ %% Measures the duration of the function's logic execution --define(FAAS_INVOKEDURATION, 'faas.invoke_duration'). +-define(FAAS_INVOKE_DURATION, 'faas.invoke_duration'). %% Distribution of max memory usage per invocation --define(FAAS_MEMUSAGE, 'faas.mem_usage'). +-define(FAAS_MEM_USAGE, 'faas.mem_usage'). %% Distribution of net I/O usage per invocation --define(FAAS_NETIO, 'faas.net_io'). +-define(FAAS_NET_IO, 'faas.net_io'). %% Number of invocation timeouts diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl index 5552b269..c18cf169 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl @@ -15,7 +15,7 @@ %%%------------------------------------------------------------------------- %% Number of active HTTP requests. --define(HTTP_CLIENT_ACTIVEREQUESTS, 'http.client.active_requests'). +-define(HTTP_CLIENT_ACTIVE_REQUESTS, 'http.client.active_requests'). %% The duration of the successfully established outbound HTTP connections. @@ -23,7 +23,7 @@ %% Number of outbound HTTP connections that are currently active or idle on the client. --define(HTTP_CLIENT_OPENCONNECTIONS, 'http.client.open_connections'). +-define(HTTP_CLIENT_OPEN_CONNECTIONS, 'http.client.open_connections'). %% Size of HTTP client request bodies. @@ -35,7 +35,7 @@ %% Number of active HTTP server requests. --define(HTTP_SERVER_ACTIVEREQUESTS, 'http.server.active_requests'). +-define(HTTP_SERVER_ACTIVE_REQUESTS, 'http.server.active_requests'). %% Size of HTTP server request bodies. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl index 1e921b53..e4dbe3ba 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl @@ -15,7 +15,7 @@ %%%------------------------------------------------------------------------- %% Number of times the process has been context switched. --define(PROCESS_CONTEXTSWITCHES, 'process.context_switches'). +-define(PROCESS_CONTEXT_SWITCHES, 'process.context_switches'). %% Total CPU seconds broken down by different states. @@ -43,7 +43,7 @@ %% Number of file descriptors in use by the process. --define(PROCESS_OPENFILEDESCRIPTOR_COUNT, 'process.open_file_descriptor.count'). +-define(PROCESS_OPEN_FILE_DESCRIPTOR_COUNT, 'process.open_file_descriptor.count'). %% Number of page faults the process has made. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl index c5672692..44ec47ff 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl @@ -23,7 +23,7 @@ %% Measures the number of messages received per RPC. --define(RPC_CLIENT_REQUESTSPERRPC, 'rpc.client.requests_per_rpc'). +-define(RPC_CLIENT_REQUESTS_PER_RPC, 'rpc.client.requests_per_rpc'). %% Measures the size of RPC response messages (uncompressed). @@ -31,7 +31,7 @@ %% Measures the number of messages sent per RPC. --define(RPC_CLIENT_RESPONSESPERRPC, 'rpc.client.responses_per_rpc'). +-define(RPC_CLIENT_RESPONSES_PER_RPC, 'rpc.client.responses_per_rpc'). %% Measures the duration of inbound RPC. @@ -43,7 +43,7 @@ %% Measures the number of messages received per RPC. --define(RPC_SERVER_REQUESTSPERRPC, 'rpc.server.requests_per_rpc'). +-define(RPC_SERVER_REQUESTS_PER_RPC, 'rpc.server.requests_per_rpc'). %% Measures the size of RPC response messages (uncompressed). @@ -51,4 +51,4 @@ %% Measures the number of messages sent per RPC. --define(RPC_SERVER_RESPONSESPERRPC, 'rpc.server.responses_per_rpc'). +-define(RPC_SERVER_RESPONSES_PER_RPC, 'rpc.server.responses_per_rpc'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl index a0f0d737..eb00e9e2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl @@ -39,7 +39,7 @@ %% Time disk spent activated --define(SYSTEM_DISK_IOTIME, 'system.disk.io_time'). +-define(SYSTEM_DISK_IO_TIME, 'system.disk.io_time'). %% none @@ -47,7 +47,7 @@ %% Sum of the time each operation took to complete --define(SYSTEM_DISK_OPERATIONTIME, 'system.disk.operation_time'). +-define(SYSTEM_DISK_OPERATION_TIME, 'system.disk.operation_time'). %% none diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index f740a1c8..d9f56cbd 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -15,9 +15,9 @@ %%%------------------------------------------------------------------------- %% Parent-child Reference type --define(OPENTRACING_REFTYPE, 'opentracing.ref_type'). +-define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). --define('OPENTRACING_REFTYPE_VALUES.child_of', 'child_of'). +-define('OPENTRACING_REF_TYPE_VALUES.child_of', 'child_of'). --define('OPENTRACING_REFTYPE_VALUES.follows_from', 'follows_from'). +-define('OPENTRACING_REF_TYPE_VALUES.follows_from', 'follows_from'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index 71f8a150..b3ea8cfd 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -15,7 +15,7 @@ %%%------------------------------------------------------------------------- %% Unique identifier for a particular build or compilation of the operating system. --define(OS_BUILDID, 'os.build_id'). +-define(OS_BUILD_ID, 'os.build_id'). %% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index 74eef08f..4706a3fc 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -21,20 +21,20 @@ %% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. %% --define(PROCESS_COMMANDARGS, 'process.command_args'). +-define(PROCESS_COMMAND_ARGS, 'process.command_args'). %% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. %% --define(PROCESS_COMMANDLINE, 'process.command_line'). +-define(PROCESS_COMMAND_LINE, 'process.command_line'). %% Specifies whether the context switches for this data point were voluntary or involuntary. --define(PROCESS_CONTEXTSWITCHTYPE, 'process.context_switch_type'). +-define(PROCESS_CONTEXT_SWITCH_TYPE, 'process.context_switch_type'). --define('PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary', 'voluntary'). +-define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES.voluntary', 'voluntary'). --define('PROCESS_CONTEXTSWITCHTYPE_VALUES.involuntary', 'involuntary'). +-define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES.involuntary', 'involuntary'). @@ -77,7 +77,7 @@ %% The PID of the process's group leader. This is also the process group ID (PGID) of the process. %% --define(PROCESS_GROUPLEADER_PID, 'process.group_leader.pid'). +-define(PROCESS_GROUP_LEADER_PID, 'process.group_leader.pid'). %% Whether the process is connected to an interactive shell. @@ -92,17 +92,17 @@ %% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. %% --define(PROCESS_PAGING_FAULTTYPE, 'process.paging.fault_type'). +-define(PROCESS_PAGING_FAULT_TYPE, 'process.paging.fault_type'). --define('PROCESS_PAGING_FAULTTYPE_VALUES.major', 'major'). +-define('PROCESS_PAGING_FAULT_TYPE_VALUES.major', 'major'). --define('PROCESS_PAGING_FAULTTYPE_VALUES.minor', 'minor'). +-define('PROCESS_PAGING_FAULT_TYPE_VALUES.minor', 'minor'). %% Parent Process identifier (PPID). %% --define(PROCESS_PARENTPID, 'process.parent_pid'). +-define(PROCESS_PARENT_PID, 'process.parent_pid'). %% Process identifier (PID). @@ -112,12 +112,12 @@ %% The real user ID (RUID) of the process. %% --define(PROCESS_REALUSER_ID, 'process.real_user.id'). +-define(PROCESS_REAL_USER_ID, 'process.real_user.id'). %% The username of the real user of the process. %% --define(PROCESS_REALUSER_NAME, 'process.real_user.name'). +-define(PROCESS_REAL_USER_NAME, 'process.real_user.name'). %% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. @@ -137,17 +137,17 @@ %% The saved user ID (SUID) of the process. %% --define(PROCESS_SAVEDUSER_ID, 'process.saved_user.id'). +-define(PROCESS_SAVED_USER_ID, 'process.saved_user.id'). %% The username of the saved user. %% --define(PROCESS_SAVEDUSER_NAME, 'process.saved_user.name'). +-define(PROCESS_SAVED_USER_NAME, 'process.saved_user.name'). %% The PID of the process's session leader. This is also the session ID (SID) of the process. %% --define(PROCESS_SESSIONLEADER_PID, 'process.session_leader.pid'). +-define(PROCESS_SESSION_LEADER_PID, 'process.session_leader.pid'). %% The effective user ID (EUID) of the process. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index bb711748..025852ad 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -15,7 +15,7 @@ %%%------------------------------------------------------------------------- %% @deprecated Replaced by `rpc.message.compressed_size`. %% Deprecated, use `rpc.message.compressed_size` instead. --define(MESSAGE_COMPRESSEDSIZE, 'message.compressed_size'). +-define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). %% @deprecated Replaced by `rpc.message.id`. %% Deprecated, use `rpc.message.id` instead. @@ -32,54 +32,54 @@ %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. --define(MESSAGE_UNCOMPRESSEDSIZE, 'message.uncompressed_size'). +-define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). %% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. --define(RPC_CONNECTRPC_ERRORCODE, 'rpc.connect_rpc.error_code'). +-define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled', 'cancelled'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.cancelled', 'cancelled'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.unknown', 'unknown'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unknown', 'unknown'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.invalid_argument', 'invalid_argument'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.invalid_argument', 'invalid_argument'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.deadline_exceeded', 'deadline_exceeded'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.deadline_exceeded', 'deadline_exceeded'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.not_found', 'not_found'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.not_found', 'not_found'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.already_exists', 'already_exists'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.already_exists', 'already_exists'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.permission_denied', 'permission_denied'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.permission_denied', 'permission_denied'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.resource_exhausted', 'resource_exhausted'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.resource_exhausted', 'resource_exhausted'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.failed_precondition', 'failed_precondition'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.failed_precondition', 'failed_precondition'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.aborted', 'aborted'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.aborted', 'aborted'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.out_of_range', 'out_of_range'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.out_of_range', 'out_of_range'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.unimplemented', 'unimplemented'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unimplemented', 'unimplemented'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.internal', 'internal'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.internal', 'internal'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.unavailable', 'unavailable'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unavailable', 'unavailable'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.data_loss', 'data_loss'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.data_loss', 'data_loss'). --define('RPC_CONNECTRPC_ERRORCODE_VALUES.unauthenticated', 'unauthenticated'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unauthenticated', 'unauthenticated'). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. %% --define(RPC_CONNECTRPC_REQUEST_METADATA, 'rpc.connect_rpc.request.metadata'). +-define(RPC_CONNECT_RPC_REQUEST_METADATA, 'rpc.connect_rpc.request.metadata'). %% Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. %% --define(RPC_CONNECTRPC_RESPONSE_METADATA, 'rpc.connect_rpc.response.metadata'). +-define(RPC_CONNECT_RPC_RESPONSE_METADATA, 'rpc.connect_rpc.response.metadata'). %% gRPC request metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. @@ -93,55 +93,55 @@ %% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. --define(RPC_GRPC_STATUSCODE, 'rpc.grpc.status_code'). +-define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). --define('RPC_GRPC_STATUSCODE_VALUES.ok', '0'). +-define('RPC_GRPC_STATUS_CODE_VALUES.ok', '0'). --define('RPC_GRPC_STATUSCODE_VALUES.cancelled', '1'). +-define('RPC_GRPC_STATUS_CODE_VALUES.cancelled', '1'). --define('RPC_GRPC_STATUSCODE_VALUES.unknown', '2'). +-define('RPC_GRPC_STATUS_CODE_VALUES.unknown', '2'). --define('RPC_GRPC_STATUSCODE_VALUES.invalid_argument', '3'). +-define('RPC_GRPC_STATUS_CODE_VALUES.invalid_argument', '3'). --define('RPC_GRPC_STATUSCODE_VALUES.deadline_exceeded', '4'). +-define('RPC_GRPC_STATUS_CODE_VALUES.deadline_exceeded', '4'). --define('RPC_GRPC_STATUSCODE_VALUES.not_found', '5'). +-define('RPC_GRPC_STATUS_CODE_VALUES.not_found', '5'). --define('RPC_GRPC_STATUSCODE_VALUES.already_exists', '6'). +-define('RPC_GRPC_STATUS_CODE_VALUES.already_exists', '6'). --define('RPC_GRPC_STATUSCODE_VALUES.permission_denied', '7'). +-define('RPC_GRPC_STATUS_CODE_VALUES.permission_denied', '7'). --define('RPC_GRPC_STATUSCODE_VALUES.resource_exhausted', '8'). +-define('RPC_GRPC_STATUS_CODE_VALUES.resource_exhausted', '8'). --define('RPC_GRPC_STATUSCODE_VALUES.failed_precondition', '9'). +-define('RPC_GRPC_STATUS_CODE_VALUES.failed_precondition', '9'). --define('RPC_GRPC_STATUSCODE_VALUES.aborted', '10'). +-define('RPC_GRPC_STATUS_CODE_VALUES.aborted', '10'). --define('RPC_GRPC_STATUSCODE_VALUES.out_of_range', '11'). +-define('RPC_GRPC_STATUS_CODE_VALUES.out_of_range', '11'). --define('RPC_GRPC_STATUSCODE_VALUES.unimplemented', '12'). +-define('RPC_GRPC_STATUS_CODE_VALUES.unimplemented', '12'). --define('RPC_GRPC_STATUSCODE_VALUES.internal', '13'). +-define('RPC_GRPC_STATUS_CODE_VALUES.internal', '13'). --define('RPC_GRPC_STATUSCODE_VALUES.unavailable', '14'). +-define('RPC_GRPC_STATUS_CODE_VALUES.unavailable', '14'). --define('RPC_GRPC_STATUSCODE_VALUES.data_loss', '15'). +-define('RPC_GRPC_STATUS_CODE_VALUES.data_loss', '15'). --define('RPC_GRPC_STATUSCODE_VALUES.unauthenticated', '16'). +-define('RPC_GRPC_STATUS_CODE_VALUES.unauthenticated', '16'). %% `error.code` property of response if it is an error response. --define(RPC_JSONRPC_ERRORCODE, 'rpc.jsonrpc.error_code'). +-define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). %% `error.message` property of response if it is an error response. --define(RPC_JSONRPC_ERRORMESSAGE, 'rpc.jsonrpc.error_message'). +-define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). %% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. %% --define(RPC_JSONRPC_REQUESTID, 'rpc.jsonrpc.request_id'). +-define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). %% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. @@ -149,7 +149,7 @@ %% Compressed size of the message in bytes. --define(RPC_MESSAGE_COMPRESSEDSIZE, 'rpc.message.compressed_size'). +-define(RPC_MESSAGE_COMPRESSED_SIZE, 'rpc.message.compressed_size'). %% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. @@ -166,7 +166,7 @@ %% Uncompressed size of the message in bytes. --define(RPC_MESSAGE_UNCOMPRESSEDSIZE, 'rpc.message.uncompressed_size'). +-define(RPC_MESSAGE_UNCOMPRESSED_SIZE, 'rpc.message.uncompressed_size'). %% The name of the (logical) method being called, must be equal to the $method part in the span name. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl index 64c3f7b9..b44e753a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl @@ -19,4 +19,4 @@ %% The previous `session.id` for this user, when known. --define(SESSION_PREVIOUSID, 'session.previous_id'). +-define(SESSION_PREVIOUS_ID, 'session.previous_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index 535a05ff..8001c6fd 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -15,7 +15,7 @@ %%%------------------------------------------------------------------------- %% The logical CPU number [0..n-1] --define(SYSTEM_CPU_LOGICALNUMBER, 'system.cpu.logical_number'). +-define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). %% The state of the CPU diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index 2560ec33..59a00e2c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -26,22 +26,22 @@ %% Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. %% --define(TLS_CLIENT_CERTIFICATECHAIN, 'tls.client.certificate_chain'). +-define(TLS_CLIENT_CERTIFICATE_CHAIN, 'tls.client.certificate_chain'). %% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_CLIENT_HASH_MD_5, 'tls.client.hash.md5'). +-define(TLS_CLIENT_HASH_MD5, 'tls.client.hash.md5'). %% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_CLIENT_HASH_SHA_1, 'tls.client.hash.sha1'). +-define(TLS_CLIENT_HASH_SHA1, 'tls.client.hash.sha1'). %% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_CLIENT_HASH_SHA_256, 'tls.client.hash.sha256'). +-define(TLS_CLIENT_HASH_SHA256, 'tls.client.hash.sha256'). %% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. @@ -49,19 +49,19 @@ %% A hash that identifies clients based on how they perform an SSL/TLS handshake. --define(TLS_CLIENT_JA_3, 'tls.client.ja3'). +-define(TLS_CLIENT_JA3, 'tls.client.ja3'). %% Date/Time indicating when client certificate is no longer considered valid. --define(TLS_CLIENT_NOTAFTER, 'tls.client.not_after'). +-define(TLS_CLIENT_NOT_AFTER, 'tls.client.not_after'). %% Date/Time indicating when client certificate is first considered valid. --define(TLS_CLIENT_NOTBEFORE, 'tls.client.not_before'). +-define(TLS_CLIENT_NOT_BEFORE, 'tls.client.not_before'). %% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. --define(TLS_CLIENT_SERVERNAME, 'tls.client.server_name'). +-define(TLS_CLIENT_SERVER_NAME, 'tls.client.server_name'). %% Distinguished name of subject of the x.509 certificate presented by the client. @@ -69,7 +69,7 @@ %% Array of ciphers offered by the client during the client hello. --define(TLS_CLIENT_SUPPORTEDCIPHERS, 'tls.client.supported_ciphers'). +-define(TLS_CLIENT_SUPPORTED_CIPHERS, 'tls.client.supported_ciphers'). %% String indicating the curve used for the given cipher, when applicable @@ -82,7 +82,7 @@ %% String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. %% --define(TLS_NEXTPROTOCOL, 'tls.next_protocol'). +-define(TLS_NEXT_PROTOCOL, 'tls.next_protocol'). %% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) @@ -111,22 +111,22 @@ %% Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. %% --define(TLS_SERVER_CERTIFICATECHAIN, 'tls.server.certificate_chain'). +-define(TLS_SERVER_CERTIFICATE_CHAIN, 'tls.server.certificate_chain'). %% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_SERVER_HASH_MD_5, 'tls.server.hash.md5'). +-define(TLS_SERVER_HASH_MD5, 'tls.server.hash.md5'). %% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_SERVER_HASH_SHA_1, 'tls.server.hash.sha1'). +-define(TLS_SERVER_HASH_SHA1, 'tls.server.hash.sha1'). %% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_SERVER_HASH_SHA_256, 'tls.server.hash.sha256'). +-define(TLS_SERVER_HASH_SHA256, 'tls.server.hash.sha256'). %% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. @@ -134,15 +134,15 @@ %% A hash that identifies servers based on how they perform an SSL/TLS handshake. --define(TLS_SERVER_JA_3_S, 'tls.server.ja3s'). +-define(TLS_SERVER_JA3S, 'tls.server.ja3s'). %% Date/Time indicating when server certificate is no longer considered valid. --define(TLS_SERVER_NOTAFTER, 'tls.server.not_after'). +-define(TLS_SERVER_NOT_AFTER, 'tls.server.not_after'). %% Date/Time indicating when server certificate is first considered valid. --define(TLS_SERVER_NOTBEFORE, 'tls.server.not_before'). +-define(TLS_SERVER_NOT_BEFORE, 'tls.server.not_before'). %% Distinguished name of subject of the x.509 certificate presented by the server. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl index 0c2a7d35..09a42e50 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl @@ -36,7 +36,7 @@ %% The highest registered url domain, stripped of the subdomain. %% --define(URL_REGISTEREDDOMAIN, 'url.registered_domain'). +-define(URL_REGISTERED_DOMAIN, 'url.registered_domain'). %% The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. @@ -51,4 +51,4 @@ %% The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. %% --define(URL_TOPLEVELDOMAIN, 'url.top_level_domain'). +-define(URL_TOP_LEVEL_DOMAIN, 'url.top_level_domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl index 5e35719e..13b03b5d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl @@ -16,9 +16,9 @@ %% Name of the user-agent extracted from original. Usually refers to the browser's name. %% --define(USERAGENT_NAME, 'user_agent.name'). +-define(USER_AGENT_NAME, 'user_agent.name'). %% Version of the user-agent extracted from original. Usually refers to the browser's version %% --define(USERAGENT_VERSION, 'user_agent.version'). +-define(USER_AGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index ad6471b3..ec96be37 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -23,13 +23,13 @@ %% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. --define(OTEL_STATUSCODE, 'otel.status_code'). +-define(OTEL_STATUS_CODE, 'otel.status_code'). --define('OTEL_STATUSCODE_VALUES.ok', 'OK'). +-define('OTEL_STATUS_CODE_VALUES.ok', 'OK'). --define('OTEL_STATUSCODE_VALUES.error', 'ERROR'). +-define('OTEL_STATUS_CODE_VALUES.error', 'ERROR'). %% Description of the Status if it has a value, otherwise not set. --define(OTEL_STATUSDESCRIPTION, 'otel.status_description'). +-define(OTEL_STATUS_DESCRIPTION, 'otel.status_description'). diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl new file mode 100644 index 00000000..40ec24d9 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl @@ -0,0 +1,21 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. +%% +{"brief": "Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client.\n", "examples": ["CERN-LineMode/2.15 libwww/2.17b3", "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", "YourApp/1.0.0 grpc-java-okhttp/1.27.2"], "name": "user_agent.original", "requirement_level": "recommended", "stability": "stable", "type": "string"} +user_agent_original +-define(USER_AGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl index c55e0ea2..611dee21 100644 --- a/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl @@ -16,4 +16,4 @@ %% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. %% --define(USERAGENT_ORIGINAL, 'user_agent.original'). +-define(USER_AGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index 32b9d8e4..f8b80c8f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -160,20 +160,20 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_methodoriginal() + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method_original() :"http.request.method_original" ### Erlang ```erlang - ?HTTP_REQUEST_METHODORIGINAL. + ?HTTP_REQUEST_METHOD_ORIGINAL. 'http.request.method_original' ``` """ - @spec http_request_methodoriginal :: :"http.request.method_original" - def http_request_methodoriginal do + @spec http_request_method_original :: :"http.request.method_original" + def http_request_method_original do :"http.request.method_original" end @@ -197,20 +197,20 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_resendcount() + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_resend_count() :"http.request.resend_count" ### Erlang ```erlang - ?HTTP_REQUEST_RESENDCOUNT. + ?HTTP_REQUEST_RESEND_COUNT. 'http.request.resend_count' ``` """ - @spec http_request_resendcount :: :"http.request.resend_count" - def http_request_resendcount do + @spec http_request_resend_count :: :"http.request.resend_count" + def http_request_resend_count do :"http.request.resend_count" end @@ -268,20 +268,20 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.HTTPAttributes.http_response_statuscode() + iex> OpenTelemetry.SemConv.HTTPAttributes.http_response_status_code() :"http.response.status_code" ### Erlang ```erlang - ?HTTP_RESPONSE_STATUSCODE. + ?HTTP_RESPONSE_STATUS_CODE. 'http.response.status_code' ``` """ - @spec http_response_statuscode :: :"http.response.status_code" - def http_response_statuscode do + @spec http_response_status_code :: :"http.response.status_code" + def http_response_status_code do :"http.response.status_code" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex index 5d5828f6..468e0dee 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -19,20 +19,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_attributedefinitions() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_attribute_definitions() :"aws.dynamodb.attribute_definitions" ### Erlang ```erlang - ?AWS_DYNAMODB_ATTRIBUTEDEFINITIONS. + ?AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS. 'aws.dynamodb.attribute_definitions' ``` """ - @spec aws_dynamodb_attributedefinitions :: :"aws.dynamodb.attribute_definitions" - def aws_dynamodb_attributedefinitions do + @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" + def aws_dynamodb_attribute_definitions do :"aws.dynamodb.attribute_definitions" end @@ -51,20 +51,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_attributestoget() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_attributes_to_get() :"aws.dynamodb.attributes_to_get" ### Erlang ```erlang - ?AWS_DYNAMODB_ATTRIBUTESTOGET. + ?AWS_DYNAMODB_ATTRIBUTES_TO_GET. 'aws.dynamodb.attributes_to_get' ``` """ - @spec aws_dynamodb_attributestoget :: :"aws.dynamodb.attributes_to_get" - def aws_dynamodb_attributestoget do + @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" + def aws_dynamodb_attributes_to_get do :"aws.dynamodb.attributes_to_get" end @@ -78,20 +78,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_consistentread() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_consistent_read() :"aws.dynamodb.consistent_read" ### Erlang ```erlang - ?AWS_DYNAMODB_CONSISTENTREAD. + ?AWS_DYNAMODB_CONSISTENT_READ. 'aws.dynamodb.consistent_read' ``` """ - @spec aws_dynamodb_consistentread :: :"aws.dynamodb.consistent_read" - def aws_dynamodb_consistentread do + @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" + def aws_dynamodb_consistent_read do :"aws.dynamodb.consistent_read" end @@ -110,20 +110,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_consumedcapacity() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_consumed_capacity() :"aws.dynamodb.consumed_capacity" ### Erlang ```erlang - ?AWS_DYNAMODB_CONSUMEDCAPACITY. + ?AWS_DYNAMODB_CONSUMED_CAPACITY. 'aws.dynamodb.consumed_capacity' ``` """ - @spec aws_dynamodb_consumedcapacity :: :"aws.dynamodb.consumed_capacity" - def aws_dynamodb_consumedcapacity do + @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" + def aws_dynamodb_consumed_capacity do :"aws.dynamodb.consumed_capacity" end @@ -174,20 +174,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_exclusivestarttable() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_exclusive_start_table() :"aws.dynamodb.exclusive_start_table" ### Erlang ```erlang - ?AWS_DYNAMODB_EXCLUSIVESTARTTABLE. + ?AWS_DYNAMODB_EXCLUSIVE_START_TABLE. 'aws.dynamodb.exclusive_start_table' ``` """ - @spec aws_dynamodb_exclusivestarttable :: :"aws.dynamodb.exclusive_start_table" - def aws_dynamodb_exclusivestarttable do + @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" + def aws_dynamodb_exclusive_start_table do :"aws.dynamodb.exclusive_start_table" end @@ -206,20 +206,21 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_globalsecondaryindexupdates() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_global_secondary_index_updates() :"aws.dynamodb.global_secondary_index_updates" ### Erlang ```erlang - ?AWS_DYNAMODB_GLOBALSECONDARYINDEXUPDATES. + ?AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES. 'aws.dynamodb.global_secondary_index_updates' ``` """ - @spec aws_dynamodb_globalsecondaryindexupdates :: :"aws.dynamodb.global_secondary_index_updates" - def aws_dynamodb_globalsecondaryindexupdates do + @spec aws_dynamodb_global_secondary_index_updates :: + :"aws.dynamodb.global_secondary_index_updates" + def aws_dynamodb_global_secondary_index_updates do :"aws.dynamodb.global_secondary_index_updates" end @@ -238,20 +239,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_globalsecondaryindexes() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_global_secondary_indexes() :"aws.dynamodb.global_secondary_indexes" ### Erlang ```erlang - ?AWS_DYNAMODB_GLOBALSECONDARYINDEXES. + ?AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES. 'aws.dynamodb.global_secondary_indexes' ``` """ - @spec aws_dynamodb_globalsecondaryindexes :: :"aws.dynamodb.global_secondary_indexes" - def aws_dynamodb_globalsecondaryindexes do + @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" + def aws_dynamodb_global_secondary_indexes do :"aws.dynamodb.global_secondary_indexes" end @@ -270,20 +271,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_indexname() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_index_name() :"aws.dynamodb.index_name" ### Erlang ```erlang - ?AWS_DYNAMODB_INDEXNAME. + ?AWS_DYNAMODB_INDEX_NAME. 'aws.dynamodb.index_name' ``` """ - @spec aws_dynamodb_indexname :: :"aws.dynamodb.index_name" - def aws_dynamodb_indexname do + @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" + def aws_dynamodb_index_name do :"aws.dynamodb.index_name" end @@ -302,20 +303,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_itemcollectionmetrics() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_item_collection_metrics() :"aws.dynamodb.item_collection_metrics" ### Erlang ```erlang - ?AWS_DYNAMODB_ITEMCOLLECTIONMETRICS. + ?AWS_DYNAMODB_ITEM_COLLECTION_METRICS. 'aws.dynamodb.item_collection_metrics' ``` """ - @spec aws_dynamodb_itemcollectionmetrics :: :"aws.dynamodb.item_collection_metrics" - def aws_dynamodb_itemcollectionmetrics do + @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" + def aws_dynamodb_item_collection_metrics do :"aws.dynamodb.item_collection_metrics" end @@ -366,20 +367,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_localsecondaryindexes() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_local_secondary_indexes() :"aws.dynamodb.local_secondary_indexes" ### Erlang ```erlang - ?AWS_DYNAMODB_LOCALSECONDARYINDEXES. + ?AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES. 'aws.dynamodb.local_secondary_indexes' ``` """ - @spec aws_dynamodb_localsecondaryindexes :: :"aws.dynamodb.local_secondary_indexes" - def aws_dynamodb_localsecondaryindexes do + @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" + def aws_dynamodb_local_secondary_indexes do :"aws.dynamodb.local_secondary_indexes" end @@ -430,20 +431,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_provisionedreadcapacity() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_provisioned_read_capacity() :"aws.dynamodb.provisioned_read_capacity" ### Erlang ```erlang - ?AWS_DYNAMODB_PROVISIONEDREADCAPACITY. + ?AWS_DYNAMODB_PROVISIONED_READ_CAPACITY. 'aws.dynamodb.provisioned_read_capacity' ``` """ - @spec aws_dynamodb_provisionedreadcapacity :: :"aws.dynamodb.provisioned_read_capacity" - def aws_dynamodb_provisionedreadcapacity do + @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" + def aws_dynamodb_provisioned_read_capacity do :"aws.dynamodb.provisioned_read_capacity" end @@ -462,20 +463,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_provisionedwritecapacity() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_provisioned_write_capacity() :"aws.dynamodb.provisioned_write_capacity" ### Erlang ```erlang - ?AWS_DYNAMODB_PROVISIONEDWRITECAPACITY. + ?AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY. 'aws.dynamodb.provisioned_write_capacity' ``` """ - @spec aws_dynamodb_provisionedwritecapacity :: :"aws.dynamodb.provisioned_write_capacity" - def aws_dynamodb_provisionedwritecapacity do + @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" + def aws_dynamodb_provisioned_write_capacity do :"aws.dynamodb.provisioned_write_capacity" end @@ -489,20 +490,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_scanforward() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_scan_forward() :"aws.dynamodb.scan_forward" ### Erlang ```erlang - ?AWS_DYNAMODB_SCANFORWARD. + ?AWS_DYNAMODB_SCAN_FORWARD. 'aws.dynamodb.scan_forward' ``` """ - @spec aws_dynamodb_scanforward :: :"aws.dynamodb.scan_forward" - def aws_dynamodb_scanforward do + @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" + def aws_dynamodb_scan_forward do :"aws.dynamodb.scan_forward" end @@ -521,20 +522,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_scannedcount() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_scanned_count() :"aws.dynamodb.scanned_count" ### Erlang ```erlang - ?AWS_DYNAMODB_SCANNEDCOUNT. + ?AWS_DYNAMODB_SCANNED_COUNT. 'aws.dynamodb.scanned_count' ``` """ - @spec aws_dynamodb_scannedcount :: :"aws.dynamodb.scanned_count" - def aws_dynamodb_scannedcount do + @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" + def aws_dynamodb_scanned_count do :"aws.dynamodb.scanned_count" end @@ -617,20 +618,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_tablecount() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_table_count() :"aws.dynamodb.table_count" ### Erlang ```erlang - ?AWS_DYNAMODB_TABLECOUNT. + ?AWS_DYNAMODB_TABLE_COUNT. 'aws.dynamodb.table_count' ``` """ - @spec aws_dynamodb_tablecount :: :"aws.dynamodb.table_count" - def aws_dynamodb_tablecount do + @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" + def aws_dynamodb_table_count do :"aws.dynamodb.table_count" end @@ -649,20 +650,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_tablenames() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_table_names() :"aws.dynamodb.table_names" ### Erlang ```erlang - ?AWS_DYNAMODB_TABLENAMES. + ?AWS_DYNAMODB_TABLE_NAMES. 'aws.dynamodb.table_names' ``` """ - @spec aws_dynamodb_tablenames :: :"aws.dynamodb.table_names" - def aws_dynamodb_tablenames do + @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" + def aws_dynamodb_table_names do :"aws.dynamodb.table_names" end @@ -681,20 +682,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_totalsegments() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_dynamodb_total_segments() :"aws.dynamodb.total_segments" ### Erlang ```erlang - ?AWS_DYNAMODB_TOTALSEGMENTS. + ?AWS_DYNAMODB_TOTAL_SEGMENTS. 'aws.dynamodb.total_segments' ``` """ - @spec aws_dynamodb_totalsegments :: :"aws.dynamodb.total_segments" - def aws_dynamodb_totalsegments do + @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" + def aws_dynamodb_total_segments do :"aws.dynamodb.total_segments" end @@ -1006,20 +1007,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_lambda_invokedarn() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_lambda_invoked_arn() :"aws.lambda.invoked_arn" ### Erlang ```erlang - ?AWS_LAMBDA_INVOKEDARN. + ?AWS_LAMBDA_INVOKED_ARN. 'aws.lambda.invoked_arn' ``` """ - @spec aws_lambda_invokedarn :: :"aws.lambda.invoked_arn" - def aws_lambda_invokedarn do + @spec aws_lambda_invoked_arn :: :"aws.lambda.invoked_arn" + def aws_lambda_invoked_arn do :"aws.lambda.invoked_arn" end @@ -1182,20 +1183,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_requestid() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_request_id() :"aws.request_id" ### Erlang ```erlang - ?AWS_REQUESTID. + ?AWS_REQUEST_ID. 'aws.request_id' ``` """ - @spec aws_requestid :: :"aws.request_id" - def aws_requestid do + @spec aws_request_id :: :"aws.request_id" + def aws_request_id do :"aws.request_id" end @@ -1219,20 +1220,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_bucket() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s3_bucket() :"aws.s3.bucket" ### Erlang ```erlang - ?AWS_S_3_BUCKET. + ?AWS_S3_BUCKET. 'aws.s3.bucket' ``` """ - @spec aws_s_3_bucket :: :"aws.s3.bucket" - def aws_s_3_bucket do + @spec aws_s3_bucket :: :"aws.s3.bucket" + def aws_s3_bucket do :"aws.s3.bucket" end @@ -1260,20 +1261,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_copysource() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s3_copy_source() :"aws.s3.copy_source" ### Erlang ```erlang - ?AWS_S_3_COPYSOURCE. + ?AWS_S3_COPY_SOURCE. 'aws.s3.copy_source' ``` """ - @spec aws_s_3_copysource :: :"aws.s3.copy_source" - def aws_s_3_copysource do + @spec aws_s3_copy_source :: :"aws.s3.copy_source" + def aws_s3_copy_source do :"aws.s3.copy_source" end @@ -1298,20 +1299,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_delete() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s3_delete() :"aws.s3.delete" ### Erlang ```erlang - ?AWS_S_3_DELETE. + ?AWS_S3_DELETE. 'aws.s3.delete' ``` """ - @spec aws_s_3_delete :: :"aws.s3.delete" - def aws_s_3_delete do + @spec aws_s3_delete :: :"aws.s3.delete" + def aws_s3_delete do :"aws.s3.delete" end @@ -1349,20 +1350,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_key() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s3_key() :"aws.s3.key" ### Erlang ```erlang - ?AWS_S_3_KEY. + ?AWS_S3_KEY. 'aws.s3.key' ``` """ - @spec aws_s_3_key :: :"aws.s3.key" - def aws_s_3_key do + @spec aws_s3_key :: :"aws.s3.key" + def aws_s3_key do :"aws.s3.key" end @@ -1388,20 +1389,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_partnumber() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s3_part_number() :"aws.s3.part_number" ### Erlang ```erlang - ?AWS_S_3_PARTNUMBER. + ?AWS_S3_PART_NUMBER. 'aws.s3.part_number' ``` """ - @spec aws_s_3_partnumber :: :"aws.s3.part_number" - def aws_s_3_partnumber do + @spec aws_s3_part_number :: :"aws.s3.part_number" + def aws_s3_part_number do :"aws.s3.part_number" end @@ -1432,20 +1433,20 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s_3_uploadid() + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_s3_upload_id() :"aws.s3.upload_id" ### Erlang ```erlang - ?AWS_S_3_UPLOADID. + ?AWS_S3_UPLOAD_ID. 'aws.s3.upload_id' ``` """ - @spec aws_s_3_uploadid :: :"aws.s3.upload_id" - def aws_s_3_uploadid do + @spec aws_s3_upload_id :: :"aws.s3.upload_id" + def aws_s3_upload_id do :"aws.s3.upload_id" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index 7238dc47..f0c3b781 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -57,20 +57,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_availabilityzone() + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_availability_zone() :"cloud.availability_zone" ### Erlang ```erlang - ?CLOUD_AVAILABILITYZONE. + ?CLOUD_AVAILABILITY_ZONE. 'cloud.availability_zone' ``` """ - @spec cloud_availabilityzone :: :"cloud.availability_zone" - def cloud_availabilityzone do + @spec cloud_availability_zone :: :"cloud.availability_zone" + def cloud_availability_zone do :"cloud.availability_zone" end @@ -360,20 +360,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_resourceid() + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_resource_id() :"cloud.resource_id" ### Erlang ```erlang - ?CLOUD_RESOURCEID. + ?CLOUD_RESOURCE_ID. 'cloud.resource_id' ``` """ - @spec cloud_resourceid :: :"cloud.resource_id" - def cloud_resourceid do + @spec cloud_resource_id :: :"cloud.resource_id" + def cloud_resource_id do :"cloud.resource_id" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex index 0481e7e4..a4501492 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex @@ -20,20 +20,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventid() + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_event_id() :"cloudevents.event_id" ### Erlang ```erlang - ?CLOUDEVENTS_EVENTID. + ?CLOUDEVENTS_EVENT_ID. 'cloudevents.event_id' ``` """ - @spec cloudevents_eventid :: :"cloudevents.event_id" - def cloudevents_eventid do + @spec cloudevents_event_id :: :"cloudevents.event_id" + def cloudevents_event_id do :"cloudevents.event_id" end @@ -53,20 +53,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventsource() + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_event_source() :"cloudevents.event_source" ### Erlang ```erlang - ?CLOUDEVENTS_EVENTSOURCE. + ?CLOUDEVENTS_EVENT_SOURCE. 'cloudevents.event_source' ``` """ - @spec cloudevents_eventsource :: :"cloudevents.event_source" - def cloudevents_eventsource do + @spec cloudevents_event_source :: :"cloudevents.event_source" + def cloudevents_event_source do :"cloudevents.event_source" end @@ -86,20 +86,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventspecversion() + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_event_spec_version() :"cloudevents.event_spec_version" ### Erlang ```erlang - ?CLOUDEVENTS_EVENTSPECVERSION. + ?CLOUDEVENTS_EVENT_SPEC_VERSION. 'cloudevents.event_spec_version' ``` """ - @spec cloudevents_eventspecversion :: :"cloudevents.event_spec_version" - def cloudevents_eventspecversion do + @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" + def cloudevents_event_spec_version do :"cloudevents.event_spec_version" end @@ -119,20 +119,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventsubject() + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_event_subject() :"cloudevents.event_subject" ### Erlang ```erlang - ?CLOUDEVENTS_EVENTSUBJECT. + ?CLOUDEVENTS_EVENT_SUBJECT. 'cloudevents.event_subject' ``` """ - @spec cloudevents_eventsubject :: :"cloudevents.event_subject" - def cloudevents_eventsubject do + @spec cloudevents_event_subject :: :"cloudevents.event_subject" + def cloudevents_event_subject do :"cloudevents.event_subject" end @@ -152,20 +152,20 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_eventtype() + iex> OpenTelemetry.SemConv.Incubating.CloudeventsAttributes.cloudevents_event_type() :"cloudevents.event_type" ### Erlang ```erlang - ?CLOUDEVENTS_EVENTTYPE. + ?CLOUDEVENTS_EVENT_TYPE. 'cloudevents.event_type' ``` """ - @spec cloudevents_eventtype :: :"cloudevents.event_type" - def cloudevents_eventtype do + @spec cloudevents_event_type :: :"cloudevents.event_type" + def cloudevents_event_type do :"cloudevents.event_type" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex index 6478177f..e4fe80d5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -57,20 +57,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_commandargs() + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_command_args() :"container.command_args" ### Erlang ```erlang - ?CONTAINER_COMMANDARGS. + ?CONTAINER_COMMAND_ARGS. 'container.command_args' ``` """ - @spec container_commandargs :: :"container.command_args" - def container_commandargs do + @spec container_command_args :: :"container.command_args" + def container_command_args do :"container.command_args" end @@ -90,20 +90,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_commandline() + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_command_line() :"container.command_line" ### Erlang ```erlang - ?CONTAINER_COMMANDLINE. + ?CONTAINER_COMMAND_LINE. 'container.command_line' ``` """ - @spec container_commandline :: :"container.command_line" - def container_commandline do + @spec container_command_line :: :"container.command_line" + def container_command_line do :"container.command_line" end @@ -296,20 +296,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_image_repodigests() + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_image_repo_digests() :"container.image.repo_digests" ### Erlang ```erlang - ?CONTAINER_IMAGE_REPODIGESTS. + ?CONTAINER_IMAGE_REPO_DIGESTS. 'container.image.repo_digests' ``` """ - @spec container_image_repodigests :: :"container.image.repo_digests" - def container_image_repodigests do + @spec container_image_repo_digests :: :"container.image.repo_digests" + def container_image_repo_digests do :"container.image.repo_digests" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index fe34e1a7..a0a45605 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -21,7 +21,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:serial` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:local_serial` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type db_cassandra_consistencylevel_values() :: %{ + @type db_cassandra_consistency_level_values() :: %{ :all => :all, :each_quorum => :each_quorum, :quorum => :quorum, @@ -43,37 +43,37 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level() :"db.cassandra.consistency_level" - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values().all + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level_values().all :all - iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistencylevel_values().all} + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level_values().all} %{:"db.cassandra.consistency_level" => :all} ### Erlang ```erlang - ?DB_CASSANDRA_CONSISTENCYLEVEL. + ?DB_CASSANDRA_CONSISTENCY_LEVEL. 'db.cassandra.consistency_level' - ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'. + ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.all'. all - \#{?DB_CASSANDRA_CONSISTENCYLEVEL => ?'DB_CASSANDRA_CONSISTENCYLEVEL_VALUES.all'}. + \#{?DB_CASSANDRA_CONSISTENCY_LEVEL => ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.all'}. \#{'db.cassandra.consistency_level' => all} ``` """ - @spec db_cassandra_consistencylevel :: :"db.cassandra.consistency_level" - def db_cassandra_consistencylevel do + @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" + def db_cassandra_consistency_level do :"db.cassandra.consistency_level" end - @spec db_cassandra_consistencylevel_values() :: db_cassandra_consistencylevel_values() - def db_cassandra_consistencylevel_values() do + @spec db_cassandra_consistency_level_values() :: db_cassandra_consistency_level_values() + def db_cassandra_consistency_level_values() do %{ :all => :all, :each_quorum => :each_quorum, @@ -199,20 +199,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_pagesize() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_page_size() :"db.cassandra.page_size" ### Erlang ```erlang - ?DB_CASSANDRA_PAGESIZE. + ?DB_CASSANDRA_PAGE_SIZE. 'db.cassandra.page_size' ``` """ - @spec db_cassandra_pagesize :: :"db.cassandra.page_size" - def db_cassandra_pagesize do + @spec db_cassandra_page_size :: :"db.cassandra.page_size" + def db_cassandra_page_size do :"db.cassandra.page_size" end @@ -232,20 +232,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_speculativeexecutioncount() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_speculative_execution_count() :"db.cassandra.speculative_execution_count" ### Erlang ```erlang - ?DB_CASSANDRA_SPECULATIVEEXECUTIONCOUNT. + ?DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT. 'db.cassandra.speculative_execution_count' ``` """ - @spec db_cassandra_speculativeexecutioncount :: :"db.cassandra.speculative_execution_count" - def db_cassandra_speculativeexecutioncount do + @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" + def db_cassandra_speculative_execution_count do :"db.cassandra.speculative_execution_count" end @@ -392,8 +392,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do "Replaced by `server.address` and `server.port`." """ - @spec db_connectionstring :: :"db.connection_string" - def db_connectionstring do + @spec db_connection_string :: :"db.connection_string" + def db_connection_string do :"db.connection_string" end @@ -412,20 +412,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_clientid() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_client_id() :"db.cosmosdb.client_id" ### Erlang ```erlang - ?DB_COSMOSDB_CLIENTID. + ?DB_COSMOSDB_CLIENT_ID. 'db.cosmosdb.client_id' ``` """ - @spec db_cosmosdb_clientid :: :"db.cosmosdb.client_id" - def db_cosmosdb_clientid do + @spec db_cosmosdb_client_id :: :"db.cosmosdb.client_id" + def db_cosmosdb_client_id do :"db.cosmosdb.client_id" end @@ -436,7 +436,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:gateway` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Gateway (HTTP) connections mode * `:direct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Direct connection. """ - @type db_cosmosdb_connectionmode_values() :: %{ + @type db_cosmosdb_connection_mode_values() :: %{ :gateway => :gateway, :direct => :direct } @@ -448,37 +448,37 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode() :"db.cosmosdb.connection_mode" - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values().gateway + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode_values().gateway :gateway - iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connectionmode_values().gateway} + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode_values().gateway} %{:"db.cosmosdb.connection_mode" => :gateway} ### Erlang ```erlang - ?DB_COSMOSDB_CONNECTIONMODE. + ?DB_COSMOSDB_CONNECTION_MODE. 'db.cosmosdb.connection_mode' - ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'. + ?'DB_COSMOSDB_CONNECTION_MODE_VALUES.gateway'. gateway - \#{?DB_COSMOSDB_CONNECTIONMODE => ?'DB_COSMOSDB_CONNECTIONMODE_VALUES.gateway'}. + \#{?DB_COSMOSDB_CONNECTION_MODE => ?'DB_COSMOSDB_CONNECTION_MODE_VALUES.gateway'}. \#{'db.cosmosdb.connection_mode' => gateway} ``` """ - @spec db_cosmosdb_connectionmode :: :"db.cosmosdb.connection_mode" - def db_cosmosdb_connectionmode do + @spec db_cosmosdb_connection_mode :: :"db.cosmosdb.connection_mode" + def db_cosmosdb_connection_mode do :"db.cosmosdb.connection_mode" end - @spec db_cosmosdb_connectionmode_values() :: db_cosmosdb_connectionmode_values() - def db_cosmosdb_connectionmode_values() do + @spec db_cosmosdb_connection_mode_values() :: db_cosmosdb_connection_mode_values() + def db_cosmosdb_connection_mode_values() do %{ :gateway => :gateway, :direct => :direct @@ -513,7 +513,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:query_plan` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:execute_javascript` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type db_cosmosdb_operationtype_values() :: %{ + @type db_cosmosdb_operation_type_values() :: %{ :invalid => :Invalid, :create => :Create, :patch => :Patch, @@ -538,37 +538,37 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type() :"db.cosmosdb.operation_type" - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values().invalid + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type_values().invalid :Invalid - iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operationtype_values().invalid} + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type_values().invalid} %{:"db.cosmosdb.operation_type" => :Invalid} ### Erlang ```erlang - ?DB_COSMOSDB_OPERATIONTYPE. + ?DB_COSMOSDB_OPERATION_TYPE. 'db.cosmosdb.operation_type' - ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'. + ?'DB_COSMOSDB_OPERATION_TYPE_VALUES.invalid'. Invalid - \#{?DB_COSMOSDB_OPERATIONTYPE => ?'DB_COSMOSDB_OPERATIONTYPE_VALUES.invalid'}. + \#{?DB_COSMOSDB_OPERATION_TYPE => ?'DB_COSMOSDB_OPERATION_TYPE_VALUES.invalid'}. \#{'db.cosmosdb.operation_type' => Invalid} ``` """ - @spec db_cosmosdb_operationtype :: :"db.cosmosdb.operation_type" - def db_cosmosdb_operationtype do + @spec db_cosmosdb_operation_type :: :"db.cosmosdb.operation_type" + def db_cosmosdb_operation_type do :"db.cosmosdb.operation_type" end - @spec db_cosmosdb_operationtype_values() :: db_cosmosdb_operationtype_values() - def db_cosmosdb_operationtype_values() do + @spec db_cosmosdb_operation_type_values() :: db_cosmosdb_operation_type_values() + def db_cosmosdb_operation_type_values() do %{ :invalid => :Invalid, :create => :Create, @@ -603,20 +603,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_requestcharge() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_request_charge() :"db.cosmosdb.request_charge" ### Erlang ```erlang - ?DB_COSMOSDB_REQUESTCHARGE. + ?DB_COSMOSDB_REQUEST_CHARGE. 'db.cosmosdb.request_charge' ``` """ - @spec db_cosmosdb_requestcharge :: :"db.cosmosdb.request_charge" - def db_cosmosdb_requestcharge do + @spec db_cosmosdb_request_charge :: :"db.cosmosdb.request_charge" + def db_cosmosdb_request_charge do :"db.cosmosdb.request_charge" end @@ -630,20 +630,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_requestcontentlength() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_request_content_length() :"db.cosmosdb.request_content_length" ### Erlang ```erlang - ?DB_COSMOSDB_REQUESTCONTENTLENGTH. + ?DB_COSMOSDB_REQUEST_CONTENT_LENGTH. 'db.cosmosdb.request_content_length' ``` """ - @spec db_cosmosdb_requestcontentlength :: :"db.cosmosdb.request_content_length" - def db_cosmosdb_requestcontentlength do + @spec db_cosmosdb_request_content_length :: :"db.cosmosdb.request_content_length" + def db_cosmosdb_request_content_length do :"db.cosmosdb.request_content_length" end @@ -662,20 +662,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_statuscode() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_status_code() :"db.cosmosdb.status_code" ### Erlang ```erlang - ?DB_COSMOSDB_STATUSCODE. + ?DB_COSMOSDB_STATUS_CODE. 'db.cosmosdb.status_code' ``` """ - @spec db_cosmosdb_statuscode :: :"db.cosmosdb.status_code" - def db_cosmosdb_statuscode do + @spec db_cosmosdb_status_code :: :"db.cosmosdb.status_code" + def db_cosmosdb_status_code do :"db.cosmosdb.status_code" end @@ -694,20 +694,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_substatuscode() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_sub_status_code() :"db.cosmosdb.sub_status_code" ### Erlang ```erlang - ?DB_COSMOSDB_SUBSTATUSCODE. + ?DB_COSMOSDB_SUB_STATUS_CODE. 'db.cosmosdb.sub_status_code' ``` """ - @spec db_cosmosdb_substatuscode :: :"db.cosmosdb.sub_status_code" - def db_cosmosdb_substatuscode do + @spec db_cosmosdb_sub_status_code :: :"db.cosmosdb.sub_status_code" + def db_cosmosdb_sub_status_code do :"db.cosmosdb.sub_status_code" end @@ -797,20 +797,20 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_elasticsearch_pathparts() + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_elasticsearch_path_parts() :"db.elasticsearch.path_parts" ### Erlang ```erlang - ?DB_ELASTICSEARCH_PATHPARTS. + ?DB_ELASTICSEARCH_PATH_PARTS. 'db.elasticsearch.path_parts' ``` """ - @spec db_elasticsearch_pathparts :: :"db.elasticsearch.path_parts" - def db_elasticsearch_pathparts do + @spec db_elasticsearch_path_parts :: :"db.elasticsearch.path_parts" + def db_elasticsearch_path_parts do :"db.elasticsearch.path_parts" end @@ -825,8 +825,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do @deprecated """ Removed as not used. """ - @spec db_jdbc_driverclassname :: :"db.jdbc.driver_classname" - def db_jdbc_driverclassname do + @spec db_jdbc_driver_classname :: :"db.jdbc.driver_classname" + def db_jdbc_driver_classname do :"db.jdbc.driver_classname" end @@ -841,8 +841,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do @deprecated """ Deprecated, no replacement at this time. """ - @spec db_mssql_instancename :: :"db.mssql.instance_name" - def db_mssql_instancename do + @spec db_mssql_instance_name :: :"db.mssql.instance_name" + def db_mssql_instance_name do :"db.mssql.instance_name" end @@ -1012,8 +1012,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do @deprecated """ Replaced by `db.namespace`. """ - @spec db_redis_databaseindex :: :"db.redis.database_index" - def db_redis_databaseindex do + @spec db_redis_database_index :: :"db.redis.database_index" + def db_redis_database_index do :"db.redis.database_index" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index 61307323..ce8a36d6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -276,20 +276,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invocationid() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invocation_id() :"faas.invocation_id" ### Erlang ```erlang - ?FAAS_INVOCATIONID. + ?FAAS_INVOCATION_ID. 'faas.invocation_id' ``` """ - @spec faas_invocationid :: :"faas.invocation_id" - def faas_invocationid do + @spec faas_invocation_id :: :"faas.invocation_id" + def faas_invocation_id do :"faas.invocation_id" end @@ -313,20 +313,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedname() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_name() :"faas.invoked_name" ### Erlang ```erlang - ?FAAS_INVOKEDNAME. + ?FAAS_INVOKED_NAME. 'faas.invoked_name' ``` """ - @spec faas_invokedname :: :"faas.invoked_name" - def faas_invokedname do + @spec faas_invoked_name :: :"faas.invoked_name" + def faas_invoked_name do :"faas.invoked_name" end @@ -341,7 +341,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do * `:gcp` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Google Cloud Platform * `:tencent_cloud` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Tencent Cloud """ - @type faas_invokedprovider_values() :: %{ + @type faas_invoked_provider_values() :: %{ :alibaba_cloud => :alibaba_cloud, :aws => :aws, :azure => :azure, @@ -361,37 +361,37 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider() :"faas.invoked_provider" - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values().alibaba_cloud + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider_values().alibaba_cloud :alibaba_cloud - iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedprovider_values().alibaba_cloud} + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider_values().alibaba_cloud} %{:"faas.invoked_provider" => :alibaba_cloud} ### Erlang ```erlang - ?FAAS_INVOKEDPROVIDER. + ?FAAS_INVOKED_PROVIDER. 'faas.invoked_provider' - ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'. + ?'FAAS_INVOKED_PROVIDER_VALUES.alibaba_cloud'. alibaba_cloud - \#{?FAAS_INVOKEDPROVIDER => ?'FAAS_INVOKEDPROVIDER_VALUES.alibaba_cloud'}. + \#{?FAAS_INVOKED_PROVIDER => ?'FAAS_INVOKED_PROVIDER_VALUES.alibaba_cloud'}. \#{'faas.invoked_provider' => alibaba_cloud} ``` """ - @spec faas_invokedprovider :: :"faas.invoked_provider" - def faas_invokedprovider do + @spec faas_invoked_provider :: :"faas.invoked_provider" + def faas_invoked_provider do :"faas.invoked_provider" end - @spec faas_invokedprovider_values() :: faas_invokedprovider_values() - def faas_invokedprovider_values() do + @spec faas_invoked_provider_values() :: faas_invoked_provider_values() + def faas_invoked_provider_values() do %{ :alibaba_cloud => :alibaba_cloud, :aws => :aws, @@ -421,20 +421,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invokedregion() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_region() :"faas.invoked_region" ### Erlang ```erlang - ?FAAS_INVOKEDREGION. + ?FAAS_INVOKED_REGION. 'faas.invoked_region' ``` """ - @spec faas_invokedregion :: :"faas.invoked_region" - def faas_invokedregion do + @spec faas_invoked_region :: :"faas.invoked_region" + def faas_invoked_region do :"faas.invoked_region" end @@ -458,20 +458,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_maxmemory() + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_max_memory() :"faas.max_memory" ### Erlang ```erlang - ?FAAS_MAXMEMORY. + ?FAAS_MAX_MEMORY. 'faas.max_memory' ``` """ - @spec faas_maxmemory :: :"faas.max_memory" - def faas_maxmemory do + @spec faas_max_memory :: :"faas.max_memory" + def faas_max_memory do :"faas.max_memory" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex index cde207c0..b4a89310 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex @@ -19,20 +19,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_key() + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.feature_flag_key() :"feature_flag.key" ### Erlang ```erlang - ?FEATUREFLAG_KEY. + ?FEATURE_FLAG_KEY. 'feature_flag.key' ``` """ - @spec featureflag_key :: :"feature_flag.key" - def featureflag_key do + @spec feature_flag_key :: :"feature_flag.key" + def feature_flag_key do :"feature_flag.key" end @@ -51,20 +51,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_providername() + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.feature_flag_provider_name() :"feature_flag.provider_name" ### Erlang ```erlang - ?FEATUREFLAG_PROVIDERNAME. + ?FEATURE_FLAG_PROVIDER_NAME. 'feature_flag.provider_name' ``` """ - @spec featureflag_providername :: :"feature_flag.provider_name" - def featureflag_providername do + @spec feature_flag_provider_name :: :"feature_flag.provider_name" + def feature_flag_provider_name do :"feature_flag.provider_name" end @@ -94,20 +94,20 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.featureflag_variant() + iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.feature_flag_variant() :"feature_flag.variant" ### Erlang ```erlang - ?FEATUREFLAG_VARIANT. + ?FEATURE_FLAG_VARIANT. 'feature_flag.variant' ``` """ - @spec featureflag_variant :: :"feature_flag.variant" - def featureflag_variant do + @spec feature_flag_variant :: :"feature_flag.variant" + def feature_flag_variant do :"feature_flag.variant" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex index ecb23f76..cc668ee0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex @@ -20,20 +20,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_cloudrun_job_execution() + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_cloud_run_job_execution() :"gcp.cloud_run.job.execution" ### Erlang ```erlang - ?GCP_CLOUDRUN_JOB_EXECUTION. + ?GCP_CLOUD_RUN_JOB_EXECUTION. 'gcp.cloud_run.job.execution' ``` """ - @spec gcp_cloudrun_job_execution :: :"gcp.cloud_run.job.execution" - def gcp_cloudrun_job_execution do + @spec gcp_cloud_run_job_execution :: :"gcp.cloud_run.job.execution" + def gcp_cloud_run_job_execution do :"gcp.cloud_run.job.execution" end @@ -53,20 +53,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_cloudrun_job_taskindex() + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_cloud_run_job_task_index() :"gcp.cloud_run.job.task_index" ### Erlang ```erlang - ?GCP_CLOUDRUN_JOB_TASKINDEX. + ?GCP_CLOUD_RUN_JOB_TASK_INDEX. 'gcp.cloud_run.job.task_index' ``` """ - @spec gcp_cloudrun_job_taskindex :: :"gcp.cloud_run.job.task_index" - def gcp_cloudrun_job_taskindex do + @spec gcp_cloud_run_job_task_index :: :"gcp.cloud_run.job.task_index" + def gcp_cloud_run_job_task_index do :"gcp.cloud_run.job.task_index" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex index fc210c65..d9d5c299 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex @@ -22,20 +22,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_completion() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_completion() :"gen_ai.completion" ### Erlang ```erlang - ?GENAI_COMPLETION. + ?GEN_AI_COMPLETION. 'gen_ai.completion' ``` """ - @spec genai_completion :: :"gen_ai.completion" - def genai_completion do + @spec gen_ai_completion :: :"gen_ai.completion" + def gen_ai_completion do :"gen_ai.completion" end @@ -57,20 +57,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_prompt() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_prompt() :"gen_ai.prompt" ### Erlang ```erlang - ?GENAI_PROMPT. + ?GEN_AI_PROMPT. 'gen_ai.prompt' ``` """ - @spec genai_prompt :: :"gen_ai.prompt" - def genai_prompt do + @spec gen_ai_prompt :: :"gen_ai.prompt" + def gen_ai_prompt do :"gen_ai.prompt" end @@ -89,20 +89,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_maxtokens() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_max_tokens() :"gen_ai.request.max_tokens" ### Erlang ```erlang - ?GENAI_REQUEST_MAXTOKENS. + ?GEN_AI_REQUEST_MAX_TOKENS. 'gen_ai.request.max_tokens' ``` """ - @spec genai_request_maxtokens :: :"gen_ai.request.max_tokens" - def genai_request_maxtokens do + @spec gen_ai_request_max_tokens :: :"gen_ai.request.max_tokens" + def gen_ai_request_max_tokens do :"gen_ai.request.max_tokens" end @@ -121,20 +121,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_model() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_model() :"gen_ai.request.model" ### Erlang ```erlang - ?GENAI_REQUEST_MODEL. + ?GEN_AI_REQUEST_MODEL. 'gen_ai.request.model' ``` """ - @spec genai_request_model :: :"gen_ai.request.model" - def genai_request_model do + @spec gen_ai_request_model :: :"gen_ai.request.model" + def gen_ai_request_model do :"gen_ai.request.model" end @@ -153,20 +153,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_temperature() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_temperature() :"gen_ai.request.temperature" ### Erlang ```erlang - ?GENAI_REQUEST_TEMPERATURE. + ?GEN_AI_REQUEST_TEMPERATURE. 'gen_ai.request.temperature' ``` """ - @spec genai_request_temperature :: :"gen_ai.request.temperature" - def genai_request_temperature do + @spec gen_ai_request_temperature :: :"gen_ai.request.temperature" + def gen_ai_request_temperature do :"gen_ai.request.temperature" end @@ -185,20 +185,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_request_topp() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_top_p() :"gen_ai.request.top_p" ### Erlang ```erlang - ?GENAI_REQUEST_TOPP. + ?GEN_AI_REQUEST_TOP_P. 'gen_ai.request.top_p' ``` """ - @spec genai_request_topp :: :"gen_ai.request.top_p" - def genai_request_topp do + @spec gen_ai_request_top_p :: :"gen_ai.request.top_p" + def gen_ai_request_top_p do :"gen_ai.request.top_p" end @@ -217,20 +217,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_finishreasons() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_response_finish_reasons() :"gen_ai.response.finish_reasons" ### Erlang ```erlang - ?GENAI_RESPONSE_FINISHREASONS. + ?GEN_AI_RESPONSE_FINISH_REASONS. 'gen_ai.response.finish_reasons' ``` """ - @spec genai_response_finishreasons :: :"gen_ai.response.finish_reasons" - def genai_response_finishreasons do + @spec gen_ai_response_finish_reasons :: :"gen_ai.response.finish_reasons" + def gen_ai_response_finish_reasons do :"gen_ai.response.finish_reasons" end @@ -249,20 +249,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_id() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_response_id() :"gen_ai.response.id" ### Erlang ```erlang - ?GENAI_RESPONSE_ID. + ?GEN_AI_RESPONSE_ID. 'gen_ai.response.id' ``` """ - @spec genai_response_id :: :"gen_ai.response.id" - def genai_response_id do + @spec gen_ai_response_id :: :"gen_ai.response.id" + def gen_ai_response_id do :"gen_ai.response.id" end @@ -281,20 +281,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_response_model() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_response_model() :"gen_ai.response.model" ### Erlang ```erlang - ?GENAI_RESPONSE_MODEL. + ?GEN_AI_RESPONSE_MODEL. 'gen_ai.response.model' ``` """ - @spec genai_response_model :: :"gen_ai.response.model" - def genai_response_model do + @spec gen_ai_response_model :: :"gen_ai.response.model" + def gen_ai_response_model do :"gen_ai.response.model" end @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Enum Values * `:openai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenAI """ - @type genai_system_values() :: %{ + @type gen_ai_system_values() :: %{ :openai => :openai } @doc """ @@ -324,37 +324,37 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system() :"gen_ai.system" - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system_values().openai :openai - iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_system_values().openai} + iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system_values().openai} %{:"gen_ai.system" => :openai} ### Erlang ```erlang - ?GENAI_SYSTEM. + ?GEN_AI_SYSTEM. 'gen_ai.system' - ?'GENAI_SYSTEM_VALUES.openai'. + ?'GEN_AI_SYSTEM_VALUES.openai'. openai - \#{?GENAI_SYSTEM => ?'GENAI_SYSTEM_VALUES.openai'}. + \#{?GEN_AI_SYSTEM => ?'GEN_AI_SYSTEM_VALUES.openai'}. \#{'gen_ai.system' => openai} ``` """ - @spec genai_system :: :"gen_ai.system" - def genai_system do + @spec gen_ai_system :: :"gen_ai.system" + def gen_ai_system do :"gen_ai.system" end - @spec genai_system_values() :: genai_system_values() - def genai_system_values() do + @spec gen_ai_system_values() :: gen_ai_system_values() + def gen_ai_system_values() do %{ :openai => :openai } @@ -375,20 +375,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_completiontokens() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_usage_completion_tokens() :"gen_ai.usage.completion_tokens" ### Erlang ```erlang - ?GENAI_USAGE_COMPLETIONTOKENS. + ?GEN_AI_USAGE_COMPLETION_TOKENS. 'gen_ai.usage.completion_tokens' ``` """ - @spec genai_usage_completiontokens :: :"gen_ai.usage.completion_tokens" - def genai_usage_completiontokens do + @spec gen_ai_usage_completion_tokens :: :"gen_ai.usage.completion_tokens" + def gen_ai_usage_completion_tokens do :"gen_ai.usage.completion_tokens" end @@ -407,20 +407,20 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.genai_usage_prompttokens() + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_usage_prompt_tokens() :"gen_ai.usage.prompt_tokens" ### Erlang ```erlang - ?GENAI_USAGE_PROMPTTOKENS. + ?GEN_AI_USAGE_PROMPT_TOKENS. 'gen_ai.usage.prompt_tokens' ``` """ - @spec genai_usage_prompttokens :: :"gen_ai.usage.prompt_tokens" - def genai_usage_prompttokens do + @spec gen_ai_usage_prompt_tokens :: :"gen_ai.usage.prompt_tokens" + def gen_ai_usage_prompt_tokens do :"gen_ai.usage.prompt_tokens" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex index baf4b526..3f744824 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex @@ -86,20 +86,20 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.HerokuAttributes.heroku_release_creationtimestamp() + iex> OpenTelemetry.SemConv.Incubating.HerokuAttributes.heroku_release_creation_timestamp() :"heroku.release.creation_timestamp" ### Erlang ```erlang - ?HEROKU_RELEASE_CREATIONTIMESTAMP. + ?HEROKU_RELEASE_CREATION_TIMESTAMP. 'heroku.release.creation_timestamp' ``` """ - @spec heroku_release_creationtimestamp :: :"heroku.release.creation_timestamp" - def heroku_release_creationtimestamp do + @spec heroku_release_creation_timestamp :: :"heroku.release.creation_timestamp" + def heroku_release_creation_timestamp do :"heroku.release.creation_timestamp" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex index eabe46c6..9e46a7a3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -96,20 +96,20 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_cache_l_2_size() + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_cpu_cache_l2_size() :"host.cpu.cache.l2.size" ### Erlang ```erlang - ?HOST_CPU_CACHE_L_2_SIZE. + ?HOST_CPU_CACHE_L2_SIZE. 'host.cpu.cache.l2.size' ``` """ - @spec host_cpu_cache_l_2_size :: :"host.cpu.cache.l2.size" - def host_cpu_cache_l_2_size do + @spec host_cpu_cache_l2_size :: :"host.cpu.cache.l2.size" + def host_cpu_cache_l2_size do :"host.cpu.cache.l2.size" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex index 972676ee..80b41bfd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -7,8 +7,8 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @deprecated """ Replaced by `client.address`. """ - @spec http_clientip :: :"http.client_ip" - def http_clientip do + @spec http_client_ip :: :"http.client_ip" + def http_client_ip do :"http.client_ip" end @@ -197,16 +197,16 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @deprecated """ Replaced by `http.request.header.content-length`. """ - @spec http_requestcontentlength :: :"http.request_content_length" - def http_requestcontentlength do + @spec http_request_content_length :: :"http.request_content_length" + def http_request_content_length do :"http.request_content_length" end @deprecated """ Replaced by `http.request.body.size`. """ - @spec http_requestcontentlengthuncompressed :: :"http.request_content_length_uncompressed" - def http_requestcontentlengthuncompressed do + @spec http_request_content_length_uncompressed :: :"http.request_content_length_uncompressed" + def http_request_content_length_uncompressed do :"http.request_content_length_uncompressed" end @@ -279,16 +279,16 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @deprecated """ Replaced by `http.response.header.content-length`. """ - @spec http_responsecontentlength :: :"http.response_content_length" - def http_responsecontentlength do + @spec http_response_content_length :: :"http.response_content_length" + def http_response_content_length do :"http.response_content_length" end @deprecated """ Replace by `http.response.body.size`. """ - @spec http_responsecontentlengthuncompressed :: :"http.response_content_length_uncompressed" - def http_responsecontentlengthuncompressed do + @spec http_response_content_length_uncompressed :: :"http.response_content_length_uncompressed" + def http_response_content_length_uncompressed do :"http.response_content_length_uncompressed" end @@ -303,16 +303,16 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @deprecated """ Replaced by `server.address`. """ - @spec http_servername :: :"http.server_name" - def http_servername do + @spec http_server_name :: :"http.server_name" + def http_server_name do :"http.server_name" end @deprecated """ Replaced by `http.response.status_code`. """ - @spec http_statuscode :: :"http.status_code" - def http_statuscode do + @spec http_status_code :: :"http.status_code" + def http_status_code do :"http.status_code" end @@ -335,8 +335,8 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @deprecated """ Replaced by `user_agent.original`. """ - @spec http_useragent :: :"http.user_agent" - def http_useragent do + @spec http_user_agent :: :"http.user_agent" + def http_user_agent do :"http.user_agent" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex index 8c2cae73..e220fd82 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex @@ -1,7 +1,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for K8s attributes. + OpenTelemetry Semantic Conventions for K8S attributes. """ @doc """ @@ -20,20 +20,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_cluster_name() :"k8s.cluster.name" ### Erlang ```erlang - ?K_8_S_CLUSTER_NAME. + ?K8S_CLUSTER_NAME. 'k8s.cluster.name' ``` """ - @spec k_8_s_cluster_name :: :"k8s.cluster.name" - def k_8_s_cluster_name do + @spec k8s_cluster_name :: :"k8s.cluster.name" + def k8s_cluster_name do :"k8s.cluster.name" end @@ -78,20 +78,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cluster_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_cluster_uid() :"k8s.cluster.uid" ### Erlang ```erlang - ?K_8_S_CLUSTER_UID. + ?K8S_CLUSTER_UID. 'k8s.cluster.uid' ``` """ - @spec k_8_s_cluster_uid :: :"k8s.cluster.uid" - def k_8_s_cluster_uid do + @spec k8s_cluster_uid :: :"k8s.cluster.uid" + def k8s_cluster_uid do :"k8s.cluster.uid" end @@ -111,20 +111,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_container_name() :"k8s.container.name" ### Erlang ```erlang - ?K_8_S_CONTAINER_NAME. + ?K8S_CONTAINER_NAME. 'k8s.container.name' ``` """ - @spec k_8_s_container_name :: :"k8s.container.name" - def k_8_s_container_name do + @spec k8s_container_name :: :"k8s.container.name" + def k8s_container_name do :"k8s.container.name" end @@ -139,20 +139,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_restartcount() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_container_restart_count() :"k8s.container.restart_count" ### Erlang ```erlang - ?K_8_S_CONTAINER_RESTARTCOUNT. + ?K8S_CONTAINER_RESTART_COUNT. 'k8s.container.restart_count' ``` """ - @spec k_8_s_container_restartcount :: :"k8s.container.restart_count" - def k_8_s_container_restartcount do + @spec k8s_container_restart_count :: :"k8s.container.restart_count" + def k8s_container_restart_count do :"k8s.container.restart_count" end @@ -172,21 +172,21 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_container_status_lastterminatedreason() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_container_status_last_terminated_reason() :"k8s.container.status.last_terminated_reason" ### Erlang ```erlang - ?K_8_S_CONTAINER_STATUS_LASTTERMINATEDREASON. + ?K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON. 'k8s.container.status.last_terminated_reason' ``` """ - @spec k_8_s_container_status_lastterminatedreason :: + @spec k8s_container_status_last_terminated_reason :: :"k8s.container.status.last_terminated_reason" - def k_8_s_container_status_lastterminatedreason do + def k8s_container_status_last_terminated_reason do :"k8s.container.status.last_terminated_reason" end @@ -206,20 +206,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_cronjob_name() :"k8s.cronjob.name" ### Erlang ```erlang - ?K_8_S_CRONJOB_NAME. + ?K8S_CRONJOB_NAME. 'k8s.cronjob.name' ``` """ - @spec k_8_s_cronjob_name :: :"k8s.cronjob.name" - def k_8_s_cronjob_name do + @spec k8s_cronjob_name :: :"k8s.cronjob.name" + def k8s_cronjob_name do :"k8s.cronjob.name" end @@ -239,20 +239,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_cronjob_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_cronjob_uid() :"k8s.cronjob.uid" ### Erlang ```erlang - ?K_8_S_CRONJOB_UID. + ?K8S_CRONJOB_UID. 'k8s.cronjob.uid' ``` """ - @spec k_8_s_cronjob_uid :: :"k8s.cronjob.uid" - def k_8_s_cronjob_uid do + @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" + def k8s_cronjob_uid do :"k8s.cronjob.uid" end @@ -272,20 +272,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_daemonset_name() :"k8s.daemonset.name" ### Erlang ```erlang - ?K_8_S_DAEMONSET_NAME. + ?K8S_DAEMONSET_NAME. 'k8s.daemonset.name' ``` """ - @spec k_8_s_daemonset_name :: :"k8s.daemonset.name" - def k_8_s_daemonset_name do + @spec k8s_daemonset_name :: :"k8s.daemonset.name" + def k8s_daemonset_name do :"k8s.daemonset.name" end @@ -305,20 +305,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_daemonset_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_daemonset_uid() :"k8s.daemonset.uid" ### Erlang ```erlang - ?K_8_S_DAEMONSET_UID. + ?K8S_DAEMONSET_UID. 'k8s.daemonset.uid' ``` """ - @spec k_8_s_daemonset_uid :: :"k8s.daemonset.uid" - def k_8_s_daemonset_uid do + @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" + def k8s_daemonset_uid do :"k8s.daemonset.uid" end @@ -338,20 +338,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_deployment_name() :"k8s.deployment.name" ### Erlang ```erlang - ?K_8_S_DEPLOYMENT_NAME. + ?K8S_DEPLOYMENT_NAME. 'k8s.deployment.name' ``` """ - @spec k_8_s_deployment_name :: :"k8s.deployment.name" - def k_8_s_deployment_name do + @spec k8s_deployment_name :: :"k8s.deployment.name" + def k8s_deployment_name do :"k8s.deployment.name" end @@ -371,20 +371,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_deployment_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_deployment_uid() :"k8s.deployment.uid" ### Erlang ```erlang - ?K_8_S_DEPLOYMENT_UID. + ?K8S_DEPLOYMENT_UID. 'k8s.deployment.uid' ``` """ - @spec k_8_s_deployment_uid :: :"k8s.deployment.uid" - def k_8_s_deployment_uid do + @spec k8s_deployment_uid :: :"k8s.deployment.uid" + def k8s_deployment_uid do :"k8s.deployment.uid" end @@ -404,20 +404,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_job_name() :"k8s.job.name" ### Erlang ```erlang - ?K_8_S_JOB_NAME. + ?K8S_JOB_NAME. 'k8s.job.name' ``` """ - @spec k_8_s_job_name :: :"k8s.job.name" - def k_8_s_job_name do + @spec k8s_job_name :: :"k8s.job.name" + def k8s_job_name do :"k8s.job.name" end @@ -437,20 +437,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_job_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_job_uid() :"k8s.job.uid" ### Erlang ```erlang - ?K_8_S_JOB_UID. + ?K8S_JOB_UID. 'k8s.job.uid' ``` """ - @spec k_8_s_job_uid :: :"k8s.job.uid" - def k_8_s_job_uid do + @spec k8s_job_uid :: :"k8s.job.uid" + def k8s_job_uid do :"k8s.job.uid" end @@ -470,20 +470,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_namespace_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_namespace_name() :"k8s.namespace.name" ### Erlang ```erlang - ?K_8_S_NAMESPACE_NAME. + ?K8S_NAMESPACE_NAME. 'k8s.namespace.name' ``` """ - @spec k_8_s_namespace_name :: :"k8s.namespace.name" - def k_8_s_namespace_name do + @spec k8s_namespace_name :: :"k8s.namespace.name" + def k8s_namespace_name do :"k8s.namespace.name" end @@ -503,20 +503,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_node_name() :"k8s.node.name" ### Erlang ```erlang - ?K_8_S_NODE_NAME. + ?K8S_NODE_NAME. 'k8s.node.name' ``` """ - @spec k_8_s_node_name :: :"k8s.node.name" - def k_8_s_node_name do + @spec k8s_node_name :: :"k8s.node.name" + def k8s_node_name do :"k8s.node.name" end @@ -536,20 +536,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_node_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_node_uid() :"k8s.node.uid" ### Erlang ```erlang - ?K_8_S_NODE_UID. + ?K8S_NODE_UID. 'k8s.node.uid' ``` """ - @spec k_8_s_node_uid :: :"k8s.node.uid" - def k_8_s_node_uid do + @spec k8s_node_uid :: :"k8s.node.uid" + def k8s_node_uid do :"k8s.node.uid" end @@ -569,20 +569,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_annotation() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_pod_annotation() :"k8s.pod.annotation" ### Erlang ```erlang - ?K_8_S_POD_ANNOTATION. + ?K8S_POD_ANNOTATION. 'k8s.pod.annotation' ``` """ - @spec k_8_s_pod_annotation :: :"k8s.pod.annotation" - def k_8_s_pod_annotation do + @spec k8s_pod_annotation :: :"k8s.pod.annotation" + def k8s_pod_annotation do :"k8s.pod.annotation" end @@ -602,28 +602,28 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_label() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_pod_label() :"k8s.pod.label" ### Erlang ```erlang - ?K_8_S_POD_LABEL. + ?K8S_POD_LABEL. 'k8s.pod.label' ``` """ - @spec k_8_s_pod_label :: :"k8s.pod.label" - def k_8_s_pod_label do + @spec k8s_pod_label :: :"k8s.pod.label" + def k8s_pod_label do :"k8s.pod.label" end @deprecated """ Replaced by `k8s.pod.label`. """ - @spec k_8_s_pod_labels :: :"k8s.pod.labels" - def k_8_s_pod_labels do + @spec k8s_pod_labels :: :"k8s.pod.labels" + def k8s_pod_labels do :"k8s.pod.labels" end @@ -643,20 +643,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_pod_name() :"k8s.pod.name" ### Erlang ```erlang - ?K_8_S_POD_NAME. + ?K8S_POD_NAME. 'k8s.pod.name' ``` """ - @spec k_8_s_pod_name :: :"k8s.pod.name" - def k_8_s_pod_name do + @spec k8s_pod_name :: :"k8s.pod.name" + def k8s_pod_name do :"k8s.pod.name" end @@ -676,20 +676,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_pod_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_pod_uid() :"k8s.pod.uid" ### Erlang ```erlang - ?K_8_S_POD_UID. + ?K8S_POD_UID. 'k8s.pod.uid' ``` """ - @spec k_8_s_pod_uid :: :"k8s.pod.uid" - def k_8_s_pod_uid do + @spec k8s_pod_uid :: :"k8s.pod.uid" + def k8s_pod_uid do :"k8s.pod.uid" end @@ -709,20 +709,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_replicaset_name() :"k8s.replicaset.name" ### Erlang ```erlang - ?K_8_S_REPLICASET_NAME. + ?K8S_REPLICASET_NAME. 'k8s.replicaset.name' ``` """ - @spec k_8_s_replicaset_name :: :"k8s.replicaset.name" - def k_8_s_replicaset_name do + @spec k8s_replicaset_name :: :"k8s.replicaset.name" + def k8s_replicaset_name do :"k8s.replicaset.name" end @@ -742,20 +742,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_replicaset_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_replicaset_uid() :"k8s.replicaset.uid" ### Erlang ```erlang - ?K_8_S_REPLICASET_UID. + ?K8S_REPLICASET_UID. 'k8s.replicaset.uid' ``` """ - @spec k_8_s_replicaset_uid :: :"k8s.replicaset.uid" - def k_8_s_replicaset_uid do + @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" + def k8s_replicaset_uid do :"k8s.replicaset.uid" end @@ -775,20 +775,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_name() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_statefulset_name() :"k8s.statefulset.name" ### Erlang ```erlang - ?K_8_S_STATEFULSET_NAME. + ?K8S_STATEFULSET_NAME. 'k8s.statefulset.name' ``` """ - @spec k_8_s_statefulset_name :: :"k8s.statefulset.name" - def k_8_s_statefulset_name do + @spec k8s_statefulset_name :: :"k8s.statefulset.name" + def k8s_statefulset_name do :"k8s.statefulset.name" end @@ -808,20 +808,20 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k_8_s_statefulset_uid() + iex> OpenTelemetry.SemConv.Incubating.K8SAttributes.k8s_statefulset_uid() :"k8s.statefulset.uid" ### Erlang ```erlang - ?K_8_S_STATEFULSET_UID. + ?K8S_STATEFULSET_UID. 'k8s.statefulset.uid' ``` """ - @spec k_8_s_statefulset_uid :: :"k8s.statefulset.uid" - def k_8_s_statefulset_uid do + @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" + def k8s_statefulset_uid do :"k8s.statefulset.uid" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex index d8b0cd2e..e00546a9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -53,20 +53,20 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_nameresolved() + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_name_resolved() :"log.file.name_resolved" ### Erlang ```erlang - ?LOG_FILE_NAMERESOLVED. + ?LOG_FILE_NAME_RESOLVED. 'log.file.name_resolved' ``` """ - @spec log_file_nameresolved :: :"log.file.name_resolved" - def log_file_nameresolved do + @spec log_file_name_resolved :: :"log.file.name_resolved" + def log_file_name_resolved do :"log.file.name_resolved" end @@ -119,20 +119,20 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_pathresolved() + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_file_path_resolved() :"log.file.path_resolved" ### Erlang ```erlang - ?LOG_FILE_PATHRESOLVED. + ?LOG_FILE_PATH_RESOLVED. 'log.file.path_resolved' ``` """ - @spec log_file_pathresolved :: :"log.file.path_resolved" - def log_file_pathresolved do + @spec log_file_path_resolved :: :"log.file.path_resolved" + def log_file_path_resolved do :"log.file.path_resolved" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index 9c5e435d..aa02bf89 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -23,20 +23,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_batch_messagecount() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_batch_message_count() :"messaging.batch.message_count" ### Erlang ```erlang - ?MESSAGING_BATCH_MESSAGECOUNT. + ?MESSAGING_BATCH_MESSAGE_COUNT. 'messaging.batch.message_count' ``` """ - @spec messaging_batch_messagecount :: :"messaging.batch.message_count" - def messaging_batch_messagecount do + @spec messaging_batch_message_count :: :"messaging.batch.message_count" + def messaging_batch_message_count do :"messaging.batch.message_count" end @@ -251,20 +251,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destinationpublish_anonymous() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_publish_anonymous() :"messaging.destination_publish.anonymous" ### Erlang ```erlang - ?MESSAGING_DESTINATIONPUBLISH_ANONYMOUS. + ?MESSAGING_DESTINATION_PUBLISH_ANONYMOUS. 'messaging.destination_publish.anonymous' ``` """ - @spec messaging_destinationpublish_anonymous :: :"messaging.destination_publish.anonymous" - def messaging_destinationpublish_anonymous do + @spec messaging_destination_publish_anonymous :: :"messaging.destination_publish.anonymous" + def messaging_destination_publish_anonymous do :"messaging.destination_publish.anonymous" end @@ -288,20 +288,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destinationpublish_name() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_publish_name() :"messaging.destination_publish.name" ### Erlang ```erlang - ?MESSAGING_DESTINATIONPUBLISH_NAME. + ?MESSAGING_DESTINATION_PUBLISH_NAME. 'messaging.destination_publish.name' ``` """ - @spec messaging_destinationpublish_name :: :"messaging.destination_publish.name" - def messaging_destinationpublish_name do + @spec messaging_destination_publish_name :: :"messaging.destination_publish.name" + def messaging_destination_publish_name do :"messaging.destination_publish.name" end @@ -354,20 +354,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_eventhubs_message_enqueuedtime() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_eventhubs_message_enqueued_time() :"messaging.eventhubs.message.enqueued_time" ### Erlang ```erlang - ?MESSAGING_EVENTHUBS_MESSAGE_ENQUEUEDTIME. + ?MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME. 'messaging.eventhubs.message.enqueued_time' ``` """ - @spec messaging_eventhubs_message_enqueuedtime :: :"messaging.eventhubs.message.enqueued_time" - def messaging_eventhubs_message_enqueuedtime do + @spec messaging_eventhubs_message_enqueued_time :: :"messaging.eventhubs.message.enqueued_time" + def messaging_eventhubs_message_enqueued_time do :"messaging.eventhubs.message.enqueued_time" end @@ -387,20 +387,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_ackdeadline() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcp_pubsub_message_ack_deadline() :"messaging.gcp_pubsub.message.ack_deadline" ### Erlang ```erlang - ?MESSAGING_GCPPUBSUB_MESSAGE_ACKDEADLINE. + ?MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE. 'messaging.gcp_pubsub.message.ack_deadline' ``` """ - @spec messaging_gcppubsub_message_ackdeadline :: :"messaging.gcp_pubsub.message.ack_deadline" - def messaging_gcppubsub_message_ackdeadline do + @spec messaging_gcp_pubsub_message_ack_deadline :: :"messaging.gcp_pubsub.message.ack_deadline" + def messaging_gcp_pubsub_message_ack_deadline do :"messaging.gcp_pubsub.message.ack_deadline" end @@ -420,20 +420,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_ackid() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcp_pubsub_message_ack_id() :"messaging.gcp_pubsub.message.ack_id" ### Erlang ```erlang - ?MESSAGING_GCPPUBSUB_MESSAGE_ACKID. + ?MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID. 'messaging.gcp_pubsub.message.ack_id' ``` """ - @spec messaging_gcppubsub_message_ackid :: :"messaging.gcp_pubsub.message.ack_id" - def messaging_gcppubsub_message_ackid do + @spec messaging_gcp_pubsub_message_ack_id :: :"messaging.gcp_pubsub.message.ack_id" + def messaging_gcp_pubsub_message_ack_id do :"messaging.gcp_pubsub.message.ack_id" end @@ -453,21 +453,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_deliveryattempt() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcp_pubsub_message_delivery_attempt() :"messaging.gcp_pubsub.message.delivery_attempt" ### Erlang ```erlang - ?MESSAGING_GCPPUBSUB_MESSAGE_DELIVERYATTEMPT. + ?MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT. 'messaging.gcp_pubsub.message.delivery_attempt' ``` """ - @spec messaging_gcppubsub_message_deliveryattempt :: + @spec messaging_gcp_pubsub_message_delivery_attempt :: :"messaging.gcp_pubsub.message.delivery_attempt" - def messaging_gcppubsub_message_deliveryattempt do + def messaging_gcp_pubsub_message_delivery_attempt do :"messaging.gcp_pubsub.message.delivery_attempt" end @@ -487,20 +487,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcppubsub_message_orderingkey() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_gcp_pubsub_message_ordering_key() :"messaging.gcp_pubsub.message.ordering_key" ### Erlang ```erlang - ?MESSAGING_GCPPUBSUB_MESSAGE_ORDERINGKEY. + ?MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY. 'messaging.gcp_pubsub.message.ordering_key' ``` """ - @spec messaging_gcppubsub_message_orderingkey :: :"messaging.gcp_pubsub.message.ordering_key" - def messaging_gcppubsub_message_orderingkey do + @spec messaging_gcp_pubsub_message_ordering_key :: :"messaging.gcp_pubsub.message.ordering_key" + def messaging_gcp_pubsub_message_ordering_key do :"messaging.gcp_pubsub.message.ordering_key" end @@ -696,20 +696,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_message_conversationid() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_message_conversation_id() :"messaging.message.conversation_id" ### Erlang ```erlang - ?MESSAGING_MESSAGE_CONVERSATIONID. + ?MESSAGING_MESSAGE_CONVERSATION_ID. 'messaging.message.conversation_id' ``` """ - @spec messaging_message_conversationid :: :"messaging.message.conversation_id" - def messaging_message_conversationid do + @spec messaging_message_conversation_id :: :"messaging.message.conversation_id" + def messaging_message_conversation_id do :"messaging.message.conversation_id" end @@ -915,20 +915,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rabbitmq_destination_routingkey() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rabbitmq_destination_routing_key() :"messaging.rabbitmq.destination.routing_key" ### Erlang ```erlang - ?MESSAGING_RABBITMQ_DESTINATION_ROUTINGKEY. + ?MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY. 'messaging.rabbitmq.destination.routing_key' ``` """ - @spec messaging_rabbitmq_destination_routingkey :: :"messaging.rabbitmq.destination.routing_key" - def messaging_rabbitmq_destination_routingkey do + @spec messaging_rabbitmq_destination_routing_key :: + :"messaging.rabbitmq.destination.routing_key" + def messaging_rabbitmq_destination_routing_key do :"messaging.rabbitmq.destination.routing_key" end @@ -948,20 +949,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rabbitmq_message_deliverytag() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rabbitmq_message_delivery_tag() :"messaging.rabbitmq.message.delivery_tag" ### Erlang ```erlang - ?MESSAGING_RABBITMQ_MESSAGE_DELIVERYTAG. + ?MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG. 'messaging.rabbitmq.message.delivery_tag' ``` """ - @spec messaging_rabbitmq_message_deliverytag :: :"messaging.rabbitmq.message.delivery_tag" - def messaging_rabbitmq_message_deliverytag do + @spec messaging_rabbitmq_message_delivery_tag :: :"messaging.rabbitmq.message.delivery_tag" + def messaging_rabbitmq_message_delivery_tag do :"messaging.rabbitmq.message.delivery_tag" end @@ -981,20 +982,20 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_clientgroup() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_client_group() :"messaging.rocketmq.client_group" ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_CLIENTGROUP. + ?MESSAGING_ROCKETMQ_CLIENT_GROUP. 'messaging.rocketmq.client_group' ``` """ - @spec messaging_rocketmq_clientgroup :: :"messaging.rocketmq.client_group" - def messaging_rocketmq_clientgroup do + @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" + def messaging_rocketmq_client_group do :"messaging.rocketmq.client_group" end @@ -1006,7 +1007,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:clustering` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Clustering consumption model * `:broadcasting` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Broadcasting consumption model """ - @type messaging_rocketmq_consumptionmodel_values() :: %{ + @type messaging_rocketmq_consumption_model_values() :: %{ :clustering => :clustering, :broadcasting => :broadcasting } @@ -1019,38 +1020,38 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model() :"messaging.rocketmq.consumption_model" - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values().clustering + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model_values().clustering :clustering - iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumptionmodel_values().clustering} + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model_values().clustering} %{:"messaging.rocketmq.consumption_model" => :clustering} ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL. + ?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL. 'messaging.rocketmq.consumption_model' - ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'. + ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.clustering'. clustering - \#{?MESSAGING_ROCKETMQ_CONSUMPTIONMODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTIONMODEL_VALUES.clustering'}. + \#{?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.clustering'}. \#{'messaging.rocketmq.consumption_model' => clustering} ``` """ - @spec messaging_rocketmq_consumptionmodel :: :"messaging.rocketmq.consumption_model" - def messaging_rocketmq_consumptionmodel do + @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" + def messaging_rocketmq_consumption_model do :"messaging.rocketmq.consumption_model" end - @spec messaging_rocketmq_consumptionmodel_values() :: - messaging_rocketmq_consumptionmodel_values() - def messaging_rocketmq_consumptionmodel_values() do + @spec messaging_rocketmq_consumption_model_values() :: + messaging_rocketmq_consumption_model_values() + def messaging_rocketmq_consumption_model_values() do %{ :clustering => :clustering, :broadcasting => :broadcasting @@ -1073,21 +1074,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_delaytimelevel() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_delay_time_level() :"messaging.rocketmq.message.delay_time_level" ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_DELAYTIMELEVEL. + ?MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL. 'messaging.rocketmq.message.delay_time_level' ``` """ - @spec messaging_rocketmq_message_delaytimelevel :: + @spec messaging_rocketmq_message_delay_time_level :: :"messaging.rocketmq.message.delay_time_level" - def messaging_rocketmq_message_delaytimelevel do + def messaging_rocketmq_message_delay_time_level do :"messaging.rocketmq.message.delay_time_level" end @@ -1107,21 +1108,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_deliverytimestamp() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_delivery_timestamp() :"messaging.rocketmq.message.delivery_timestamp" ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_DELIVERYTIMESTAMP. + ?MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP. 'messaging.rocketmq.message.delivery_timestamp' ``` """ - @spec messaging_rocketmq_message_deliverytimestamp :: + @spec messaging_rocketmq_message_delivery_timestamp :: :"messaging.rocketmq.message.delivery_timestamp" - def messaging_rocketmq_message_deliverytimestamp do + def messaging_rocketmq_message_delivery_timestamp do :"messaging.rocketmq.message.delivery_timestamp" end @@ -1337,21 +1338,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_destination_subscriptionname() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_destination_subscription_name() :"messaging.servicebus.destination.subscription_name" ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTIONNAME. + ?MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME. 'messaging.servicebus.destination.subscription_name' ``` """ - @spec messaging_servicebus_destination_subscriptionname :: + @spec messaging_servicebus_destination_subscription_name :: :"messaging.servicebus.destination.subscription_name" - def messaging_servicebus_destination_subscriptionname do + def messaging_servicebus_destination_subscription_name do :"messaging.servicebus.destination.subscription_name" end @@ -1365,7 +1366,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:dead_letter` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is sent to dead letter queue * `:defer` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Message is deferred """ - @type messaging_servicebus_dispositionstatus_values() :: %{ + @type messaging_servicebus_disposition_status_values() :: %{ :complete => :complete, :abandon => :abandon, :dead_letter => :dead_letter, @@ -1380,38 +1381,38 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status() :"messaging.servicebus.disposition_status" - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values().complete + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status_values().complete :complete - iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_dispositionstatus_values().complete} + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status_values().complete} %{:"messaging.servicebus.disposition_status" => :complete} ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS. + ?MESSAGING_SERVICEBUS_DISPOSITION_STATUS. 'messaging.servicebus.disposition_status' - ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'. + ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.complete'. complete - \#{?MESSAGING_SERVICEBUS_DISPOSITIONSTATUS => ?'MESSAGING_SERVICEBUS_DISPOSITIONSTATUS_VALUES.complete'}. + \#{?MESSAGING_SERVICEBUS_DISPOSITION_STATUS => ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.complete'}. \#{'messaging.servicebus.disposition_status' => complete} ``` """ - @spec messaging_servicebus_dispositionstatus :: :"messaging.servicebus.disposition_status" - def messaging_servicebus_dispositionstatus do + @spec messaging_servicebus_disposition_status :: :"messaging.servicebus.disposition_status" + def messaging_servicebus_disposition_status do :"messaging.servicebus.disposition_status" end - @spec messaging_servicebus_dispositionstatus_values() :: - messaging_servicebus_dispositionstatus_values() - def messaging_servicebus_dispositionstatus_values() do + @spec messaging_servicebus_disposition_status_values() :: + messaging_servicebus_disposition_status_values() + def messaging_servicebus_disposition_status_values() do %{ :complete => :complete, :abandon => :abandon, @@ -1436,21 +1437,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_message_deliverycount() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_message_delivery_count() :"messaging.servicebus.message.delivery_count" ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_MESSAGE_DELIVERYCOUNT. + ?MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT. 'messaging.servicebus.message.delivery_count' ``` """ - @spec messaging_servicebus_message_deliverycount :: + @spec messaging_servicebus_message_delivery_count :: :"messaging.servicebus.message.delivery_count" - def messaging_servicebus_message_deliverycount do + def messaging_servicebus_message_delivery_count do :"messaging.servicebus.message.delivery_count" end @@ -1470,20 +1471,21 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_message_enqueuedtime() + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_message_enqueued_time() :"messaging.servicebus.message.enqueued_time" ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_MESSAGE_ENQUEUEDTIME. + ?MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME. 'messaging.servicebus.message.enqueued_time' ``` """ - @spec messaging_servicebus_message_enqueuedtime :: :"messaging.servicebus.message.enqueued_time" - def messaging_servicebus_message_enqueuedtime do + @spec messaging_servicebus_message_enqueued_time :: + :"messaging.servicebus.message.enqueued_time" + def messaging_servicebus_message_enqueued_time do :"messaging.servicebus.message.enqueued_time" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl new file mode 100644 index 00000000..a9cd4f9d --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl @@ -0,0 +1,131 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Container metrics. + """ + @doc """ + Total CPU time consumed + + Instrument: `counter` + Unit: `s` + ### Notes + + Total CPU time consumed by the specific container on all available CPU cores + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_cpu_time() + :"container.cpu.time" + + ### Erlang + + ```erlang + ?CONTAINER_CPU_TIME. + 'container.cpu.time' + ``` + + + """ + + @spec container_cpu_time :: :"container.cpu.time" + def container_cpu_time do + :"container.cpu.time" + end + + @doc """ + Disk bytes for the container. + + Instrument: `counter` + Unit: `By` + ### Notes + + The total number of bytes read/written successfully (aggregated from all disks). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_disk_io() + :"container.disk.io" + + ### Erlang + + ```erlang + ?CONTAINER_DISK_IO. + 'container.disk.io' + ``` + + + """ + + @spec container_disk_io :: :"container.disk.io" + def container_disk_io do + :"container.disk.io" + end + + @doc """ + Memory usage of the container. + + Instrument: `counter` + Unit: `By` + ### Notes + + Memory usage of the container. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_memory_usage() + :"container.memory.usage" + + ### Erlang + + ```erlang + ?CONTAINER_MEMORY_USAGE. + 'container.memory.usage' + ``` + + + """ + + @spec container_memory_usage :: :"container.memory.usage" + def container_memory_usage do + :"container.memory.usage" + end + + @doc """ + Network bytes for the container. + + Instrument: `counter` + Unit: `By` + ### Notes + + The number of bytes sent/received on all network interfaces by the container. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_network_io() + :"container.network.io" + + ### Erlang + + ```erlang + ?CONTAINER_NETWORK_IO. + 'container.network.io' + ``` + + + """ + + @spec container_network_io :: :"container.network.io" + def container_network_io do + :"container.network.io" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex index 21ed6afd..c0a2e122 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex @@ -39,21 +39,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_createtime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_create_time() :"db.client.connection.create_time" ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_CREATETIME. + ?DB_CLIENT_CONNECTION_CREATE_TIME. 'db.client.connection.create_time' ``` """ - @spec db_client_connection_createtime :: :"db.client.connection.create_time" - def db_client_connection_createtime do + @spec db_client_connection_create_time :: :"db.client.connection.create_time" + def db_client_connection_create_time do :"db.client.connection.create_time" end @@ -147,21 +147,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_pendingrequests() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_pending_requests() :"db.client.connection.pending_requests" ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_PENDINGREQUESTS. + ?DB_CLIENT_CONNECTION_PENDING_REQUESTS. 'db.client.connection.pending_requests' ``` """ - @spec db_client_connection_pendingrequests :: :"db.client.connection.pending_requests" - def db_client_connection_pendingrequests do + @spec db_client_connection_pending_requests :: :"db.client.connection.pending_requests" + def db_client_connection_pending_requests do :"db.client.connection.pending_requests" end @@ -201,21 +201,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_usetime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_use_time() :"db.client.connection.use_time" ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_USETIME. + ?DB_CLIENT_CONNECTION_USE_TIME. 'db.client.connection.use_time' ``` """ - @spec db_client_connection_usetime :: :"db.client.connection.use_time" - def db_client_connection_usetime do + @spec db_client_connection_use_time :: :"db.client.connection.use_time" + def db_client_connection_use_time do :"db.client.connection.use_time" end @@ -228,21 +228,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_waittime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics.db_client_connection_wait_time() :"db.client.connection.wait_time" ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_WAITTIME. + ?DB_CLIENT_CONNECTION_WAIT_TIME. 'db.client.connection.wait_time' ``` """ - @spec db_client_connection_waittime :: :"db.client.connection.wait_time" - def db_client_connection_waittime do + @spec db_client_connection_wait_time :: :"db.client.connection.wait_time" + def db_client_connection_wait_time do :"db.client.connection.wait_time" end @@ -250,8 +250,8 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. """ - @spec db_client_connections_createtime :: :"db.client.connections.create_time" - def db_client_connections_createtime do + @spec db_client_connections_create_time :: :"db.client.connections.create_time" + def db_client_connections_create_time do :"db.client.connections.create_time" end @@ -286,8 +286,8 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do Replaced by `db.client.connection.pending_requests`. """ - @spec db_client_connections_pendingrequests :: :"db.client.connections.pending_requests" - def db_client_connections_pendingrequests do + @spec db_client_connections_pending_requests :: :"db.client.connections.pending_requests" + def db_client_connections_pending_requests do :"db.client.connections.pending_requests" end @@ -313,8 +313,8 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. """ - @spec db_client_connections_usetime :: :"db.client.connections.use_time" - def db_client_connections_usetime do + @spec db_client_connections_use_time :: :"db.client.connections.use_time" + def db_client_connections_use_time do :"db.client.connections.use_time" end @@ -322,8 +322,8 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. """ - @spec db_client_connections_waittime :: :"db.client.connections.wait_time" - def db_client_connections_waittime do + @spec db_client_connections_wait_time :: :"db.client.connections.wait_time" + def db_client_connections_wait_time do :"db.client.connections.wait_time" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl new file mode 100644 index 00000000..0dbb9888 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl @@ -0,0 +1,367 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Db metrics. + """ + @doc """ + The number of connections that are currently in state described by the `state` attribute + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_count() + :"db.client.connection.count" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_COUNT. + 'db.client.connection.count' + ``` + + + """ + + @spec db_client_connection_count :: :"db.client.connection.count" + def db_client_connection_count do + :"db.client.connection.count" + end + + @doc """ + The time it took to create a new connection + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_create_time() + :"db.client.connection.create_time" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_CREATE_TIME. + 'db.client.connection.create_time' + ``` + + + """ + + @spec db_client_connection_create_time :: :"db.client.connection.create_time" + def db_client_connection_create_time do + :"db.client.connection.create_time" + end + + @doc """ + The maximum number of idle open connections allowed + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_max() + :"db.client.connection.idle.max" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_IDLE_MAX. + 'db.client.connection.idle.max' + ``` + + + """ + + @spec db_client_connection_idle_max :: :"db.client.connection.idle.max" + def db_client_connection_idle_max do + :"db.client.connection.idle.max" + end + + @doc """ + The minimum number of idle open connections allowed + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_min() + :"db.client.connection.idle.min" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_IDLE_MIN. + 'db.client.connection.idle.min' + ``` + + + """ + + @spec db_client_connection_idle_min :: :"db.client.connection.idle.min" + def db_client_connection_idle_min do + :"db.client.connection.idle.min" + end + + @doc """ + The maximum number of open connections allowed + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_max() + :"db.client.connection.max" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_MAX. + 'db.client.connection.max' + ``` + + + """ + + @spec db_client_connection_max :: :"db.client.connection.max" + def db_client_connection_max do + :"db.client.connection.max" + end + + @doc """ + The number of pending requests for an open connection, cumulative for the entire pool + + Instrument: `updowncounter` + Unit: `{request}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_pending_requests() + :"db.client.connection.pending_requests" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_PENDING_REQUESTS. + 'db.client.connection.pending_requests' + ``` + + + """ + + @spec db_client_connection_pending_requests :: :"db.client.connection.pending_requests" + def db_client_connection_pending_requests do + :"db.client.connection.pending_requests" + end + + @doc """ + The number of connection timeouts that have occurred trying to obtain a connection from the pool + + Instrument: `counter` + Unit: `{timeout}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_timeouts() + :"db.client.connection.timeouts" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_TIMEOUTS. + 'db.client.connection.timeouts' + ``` + + + """ + + @spec db_client_connection_timeouts :: :"db.client.connection.timeouts" + def db_client_connection_timeouts do + :"db.client.connection.timeouts" + end + + @doc """ + The time between borrowing a connection and returning it to the pool + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_use_time() + :"db.client.connection.use_time" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_USE_TIME. + 'db.client.connection.use_time' + ``` + + + """ + + @spec db_client_connection_use_time :: :"db.client.connection.use_time" + def db_client_connection_use_time do + :"db.client.connection.use_time" + end + + @doc """ + The time it took to obtain an open connection from the pool + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_wait_time() + :"db.client.connection.wait_time" + + ### Erlang + + ```erlang + ?DB_CLIENT_CONNECTION_WAIT_TIME. + 'db.client.connection.wait_time' + ``` + + + """ + + @spec db_client_connection_wait_time :: :"db.client.connection.wait_time" + def db_client_connection_wait_time do + :"db.client.connection.wait_time" + end + + + @deprecated """ + Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. + """ + + @spec db_client_connections_create_time :: :"db.client.connections.create_time" + def db_client_connections_create_time do + :"db.client.connections.create_time" + end + + + @deprecated """ + Replaced by `db.client.connection.idle.max`. + """ + + @spec db_client_connections_idle_max :: :"db.client.connections.idle.max" + def db_client_connections_idle_max do + :"db.client.connections.idle.max" + end + + + @deprecated """ + Replaced by `db.client.connection.idle.min`. + """ + + @spec db_client_connections_idle_min :: :"db.client.connections.idle.min" + def db_client_connections_idle_min do + :"db.client.connections.idle.min" + end + + + @deprecated """ + Replaced by `db.client.connection.max`. + """ + + @spec db_client_connections_max :: :"db.client.connections.max" + def db_client_connections_max do + :"db.client.connections.max" + end + + + @deprecated """ + Replaced by `db.client.connection.pending_requests`. + """ + + @spec db_client_connections_pending_requests :: :"db.client.connections.pending_requests" + def db_client_connections_pending_requests do + :"db.client.connections.pending_requests" + end + + + @deprecated """ + Replaced by `db.client.connection.timeouts`. + """ + + @spec db_client_connections_timeouts :: :"db.client.connections.timeouts" + def db_client_connections_timeouts do + :"db.client.connections.timeouts" + end + + + @deprecated """ + Replaced by `db.client.connection.count`. + """ + + @spec db_client_connections_usage :: :"db.client.connections.usage" + def db_client_connections_usage do + :"db.client.connections.usage" + end + + + @deprecated """ + Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. + """ + + @spec db_client_connections_use_time :: :"db.client.connections.use_time" + def db_client_connections_use_time do + :"db.client.connections.use_time" + end + + + @deprecated """ + Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. + """ + + @spec db_client_connections_wait_time :: :"db.client.connections.wait_time" + def db_client_connections_wait_time do + :"db.client.connections.wait_time" + end + + @doc """ + Duration of database client operations. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_operation_duration() + :"db.client.operation.duration" + + ### Erlang + + ```erlang + ?DB_CLIENT_OPERATION_DURATION. + 'db.client.operation.duration' + ``` + + + """ + + @spec db_client_operation_duration :: :"db.client.operation.duration" + def db_client_operation_duration do + :"db.client.operation.duration" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl new file mode 100644 index 00000000..d4de68cb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl @@ -0,0 +1,34 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Dns metrics. + """ + @doc """ + Measures the time taken to perform a DNS lookup. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics.dns_lookup_duration() + :"dns.lookup.duration" + + ### Erlang + + ```erlang + ?DNS_LOOKUP_DURATION. + 'dns.lookup.duration' + ``` + + + """ + + @spec dns_lookup_duration :: :"dns.lookup.duration" + def dns_lookup_duration do + :"dns.lookup.duration" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex index 33fca123..950c5f9c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex @@ -39,21 +39,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_cpuusage() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_cpu_usage() :"faas.cpu_usage" ### Erlang ```erlang - ?FAAS_CPUUSAGE. + ?FAAS_CPU_USAGE. 'faas.cpu_usage' ``` """ - @spec faas_cpuusage :: :"faas.cpu_usage" - def faas_cpuusage do + @spec faas_cpu_usage :: :"faas.cpu_usage" + def faas_cpu_usage do :"faas.cpu_usage" end @@ -93,21 +93,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_initduration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_init_duration() :"faas.init_duration" ### Erlang ```erlang - ?FAAS_INITDURATION. + ?FAAS_INIT_DURATION. 'faas.init_duration' ``` """ - @spec faas_initduration :: :"faas.init_duration" - def faas_initduration do + @spec faas_init_duration :: :"faas.init_duration" + def faas_init_duration do :"faas.init_duration" end @@ -147,21 +147,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_invokeduration() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_invoke_duration() :"faas.invoke_duration" ### Erlang ```erlang - ?FAAS_INVOKEDURATION. + ?FAAS_INVOKE_DURATION. 'faas.invoke_duration' ``` """ - @spec faas_invokeduration :: :"faas.invoke_duration" - def faas_invokeduration do + @spec faas_invoke_duration :: :"faas.invoke_duration" + def faas_invoke_duration do :"faas.invoke_duration" end @@ -174,21 +174,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_memusage() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_mem_usage() :"faas.mem_usage" ### Erlang ```erlang - ?FAAS_MEMUSAGE. + ?FAAS_MEM_USAGE. 'faas.mem_usage' ``` """ - @spec faas_memusage :: :"faas.mem_usage" - def faas_memusage do + @spec faas_mem_usage :: :"faas.mem_usage" + def faas_mem_usage do :"faas.mem_usage" end @@ -201,21 +201,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_netio() + iex> OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics.faas_net_io() :"faas.net_io" ### Erlang ```erlang - ?FAAS_NETIO. + ?FAAS_NET_IO. 'faas.net_io' ``` """ - @spec faas_netio :: :"faas.net_io" - def faas_netio do + @spec faas_net_io :: :"faas.net_io" + def faas_net_io do :"faas.net_io" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl new file mode 100644 index 00000000..3d4c5bef --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl @@ -0,0 +1,250 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Faas metrics. + """ + @doc """ + Number of invocation cold starts + + Instrument: `counter` + Unit: `{coldstart}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_coldstarts() + :"faas.coldstarts" + + ### Erlang + + ```erlang + ?FAAS_COLDSTARTS. + 'faas.coldstarts' + ``` + + + """ + + @spec faas_coldstarts :: :"faas.coldstarts" + def faas_coldstarts do + :"faas.coldstarts" + end + + @doc """ + Distribution of CPU usage per invocation + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_cpu_usage() + :"faas.cpu_usage" + + ### Erlang + + ```erlang + ?FAAS_CPU_USAGE. + 'faas.cpu_usage' + ``` + + + """ + + @spec faas_cpu_usage :: :"faas.cpu_usage" + def faas_cpu_usage do + :"faas.cpu_usage" + end + + @doc """ + Number of invocation errors + + Instrument: `counter` + Unit: `{error}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_errors() + :"faas.errors" + + ### Erlang + + ```erlang + ?FAAS_ERRORS. + 'faas.errors' + ``` + + + """ + + @spec faas_errors :: :"faas.errors" + def faas_errors do + :"faas.errors" + end + + @doc """ + Measures the duration of the function's initialization, such as a cold start + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_init_duration() + :"faas.init_duration" + + ### Erlang + + ```erlang + ?FAAS_INIT_DURATION. + 'faas.init_duration' + ``` + + + """ + + @spec faas_init_duration :: :"faas.init_duration" + def faas_init_duration do + :"faas.init_duration" + end + + @doc """ + Number of successful invocations + + Instrument: `counter` + Unit: `{invocation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invocations() + :"faas.invocations" + + ### Erlang + + ```erlang + ?FAAS_INVOCATIONS. + 'faas.invocations' + ``` + + + """ + + @spec faas_invocations :: :"faas.invocations" + def faas_invocations do + :"faas.invocations" + end + + @doc """ + Measures the duration of the function's logic execution + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invoke_duration() + :"faas.invoke_duration" + + ### Erlang + + ```erlang + ?FAAS_INVOKE_DURATION. + 'faas.invoke_duration' + ``` + + + """ + + @spec faas_invoke_duration :: :"faas.invoke_duration" + def faas_invoke_duration do + :"faas.invoke_duration" + end + + @doc """ + Distribution of max memory usage per invocation + + Instrument: `histogram` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_mem_usage() + :"faas.mem_usage" + + ### Erlang + + ```erlang + ?FAAS_MEM_USAGE. + 'faas.mem_usage' + ``` + + + """ + + @spec faas_mem_usage :: :"faas.mem_usage" + def faas_mem_usage do + :"faas.mem_usage" + end + + @doc """ + Distribution of net I/O usage per invocation + + Instrument: `histogram` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_net_io() + :"faas.net_io" + + ### Erlang + + ```erlang + ?FAAS_NET_IO. + 'faas.net_io' + ``` + + + """ + + @spec faas_net_io :: :"faas.net_io" + def faas_net_io do + :"faas.net_io" + end + + @doc """ + Number of invocation timeouts + + Instrument: `counter` + Unit: `{timeout}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_timeouts() + :"faas.timeouts" + + ### Erlang + + ```erlang + ?FAAS_TIMEOUTS. + 'faas.timeouts' + ``` + + + """ + + @spec faas_timeouts :: :"faas.timeouts" + def faas_timeouts do + :"faas.timeouts" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex index 97cc21c1..525b8079 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex @@ -12,21 +12,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_activerequests() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_active_requests() :"http.client.active_requests" ### Erlang ```erlang - ?HTTP_CLIENT_ACTIVEREQUESTS. + ?HTTP_CLIENT_ACTIVE_REQUESTS. 'http.client.active_requests' ``` """ - @spec http_client_activerequests :: :"http.client.active_requests" - def http_client_activerequests do + @spec http_client_active_requests :: :"http.client.active_requests" + def http_client_active_requests do :"http.client.active_requests" end @@ -66,21 +66,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_openconnections() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_client_open_connections() :"http.client.open_connections" ### Erlang ```erlang - ?HTTP_CLIENT_OPENCONNECTIONS. + ?HTTP_CLIENT_OPEN_CONNECTIONS. 'http.client.open_connections' ``` """ - @spec http_client_openconnections :: :"http.client.open_connections" - def http_client_openconnections do + @spec http_client_open_connections :: :"http.client.open_connections" + def http_client_open_connections do :"http.client.open_connections" end @@ -155,21 +155,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_activerequests() + iex> OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics.http_server_active_requests() :"http.server.active_requests" ### Erlang ```erlang - ?HTTP_SERVER_ACTIVEREQUESTS. + ?HTTP_SERVER_ACTIVE_REQUESTS. 'http.server.active_requests' ``` """ - @spec http_server_activerequests :: :"http.server.active_requests" - def http_server_activerequests do + @spec http_server_active_requests :: :"http.server.active_requests" + def http_server_active_requests do :"http.server.active_requests" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl new file mode 100644 index 00000000..14a87675 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl @@ -0,0 +1,239 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Http metrics. + """ + @doc """ + Number of active HTTP requests. + + Instrument: `updowncounter` + Unit: `{request}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_active_requests() + :"http.client.active_requests" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_ACTIVE_REQUESTS. + 'http.client.active_requests' + ``` + + + """ + + @spec http_client_active_requests :: :"http.client.active_requests" + def http_client_active_requests do + :"http.client.active_requests" + end + + @doc """ + The duration of the successfully established outbound HTTP connections. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_connection_duration() + :"http.client.connection.duration" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_CONNECTION_DURATION. + 'http.client.connection.duration' + ``` + + + """ + + @spec http_client_connection_duration :: :"http.client.connection.duration" + def http_client_connection_duration do + :"http.client.connection.duration" + end + + @doc """ + Number of outbound HTTP connections that are currently active or idle on the client. + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_open_connections() + :"http.client.open_connections" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_OPEN_CONNECTIONS. + 'http.client.open_connections' + ``` + + + """ + + @spec http_client_open_connections :: :"http.client.open_connections" + def http_client_open_connections do + :"http.client.open_connections" + end + + @doc """ + Size of HTTP client request bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_request_body_size() + :"http.client.request.body.size" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_REQUEST_BODY_SIZE. + 'http.client.request.body.size' + ``` + + + """ + + @spec http_client_request_body_size :: :"http.client.request.body.size" + def http_client_request_body_size do + :"http.client.request.body.size" + end + + @doc """ + Size of HTTP client response bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_response_body_size() + :"http.client.response.body.size" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_RESPONSE_BODY_SIZE. + 'http.client.response.body.size' + ``` + + + """ + + @spec http_client_response_body_size :: :"http.client.response.body.size" + def http_client_response_body_size do + :"http.client.response.body.size" + end + + @doc """ + Number of active HTTP server requests. + + Instrument: `updowncounter` + Unit: `{request}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_active_requests() + :"http.server.active_requests" + + ### Erlang + + ```erlang + ?HTTP_SERVER_ACTIVE_REQUESTS. + 'http.server.active_requests' + ``` + + + """ + + @spec http_server_active_requests :: :"http.server.active_requests" + def http_server_active_requests do + :"http.server.active_requests" + end + + @doc """ + Size of HTTP server request bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_request_body_size() + :"http.server.request.body.size" + + ### Erlang + + ```erlang + ?HTTP_SERVER_REQUEST_BODY_SIZE. + 'http.server.request.body.size' + ``` + + + """ + + @spec http_server_request_body_size :: :"http.server.request.body.size" + def http_server_request_body_size do + :"http.server.request.body.size" + end + + @doc """ + Size of HTTP server response bodies. + + Instrument: `histogram` + Unit: `By` + ### Notes + + 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. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_response_body_size() + :"http.server.response.body.size" + + ### Erlang + + ```erlang + ?HTTP_SERVER_RESPONSE_BODY_SIZE. + 'http.server.response.body.size' + ``` + + + """ + + @spec http_server_response_body_size :: :"http.server.response.body.size" + def http_server_response_body_size do + :"http.server.response.body.size" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl new file mode 100644 index 00000000..6e79461c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl @@ -0,0 +1,169 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Messaging metrics. + """ + @doc """ + Measures the duration of process operation. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_duration() + :"messaging.process.duration" + + ### Erlang + + ```erlang + ?MESSAGING_PROCESS_DURATION. + 'messaging.process.duration' + ``` + + + """ + + @spec messaging_process_duration :: :"messaging.process.duration" + def messaging_process_duration do + :"messaging.process.duration" + end + + @doc """ + Measures the number of processed messages. + + Instrument: `counter` + Unit: `{message}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_messages() + :"messaging.process.messages" + + ### Erlang + + ```erlang + ?MESSAGING_PROCESS_MESSAGES. + 'messaging.process.messages' + ``` + + + """ + + @spec messaging_process_messages :: :"messaging.process.messages" + def messaging_process_messages do + :"messaging.process.messages" + end + + @doc """ + Measures the duration of publish operation. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_duration() + :"messaging.publish.duration" + + ### Erlang + + ```erlang + ?MESSAGING_PUBLISH_DURATION. + 'messaging.publish.duration' + ``` + + + """ + + @spec messaging_publish_duration :: :"messaging.publish.duration" + def messaging_publish_duration do + :"messaging.publish.duration" + end + + @doc """ + Measures the number of published messages. + + Instrument: `counter` + Unit: `{message}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_messages() + :"messaging.publish.messages" + + ### Erlang + + ```erlang + ?MESSAGING_PUBLISH_MESSAGES. + 'messaging.publish.messages' + ``` + + + """ + + @spec messaging_publish_messages :: :"messaging.publish.messages" + def messaging_publish_messages do + :"messaging.publish.messages" + end + + @doc """ + Measures the duration of receive operation. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_duration() + :"messaging.receive.duration" + + ### Erlang + + ```erlang + ?MESSAGING_RECEIVE_DURATION. + 'messaging.receive.duration' + ``` + + + """ + + @spec messaging_receive_duration :: :"messaging.receive.duration" + def messaging_receive_duration do + :"messaging.receive.duration" + end + + @doc """ + Measures the number of received messages. + + Instrument: `counter` + Unit: `{message}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_messages() + :"messaging.receive.messages" + + ### Erlang + + ```erlang + ?MESSAGING_RECEIVE_MESSAGES. + 'messaging.receive.messages' + ``` + + + """ + + @spec messaging_receive_messages :: :"messaging.receive.messages" + def messaging_receive_messages do + :"messaging.receive.messages" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex index 43d85620..07b3f74d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex @@ -12,21 +12,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_contextswitches() + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_context_switches() :"process.context_switches" ### Erlang ```erlang - ?PROCESS_CONTEXTSWITCHES. + ?PROCESS_CONTEXT_SWITCHES. 'process.context_switches' ``` """ - @spec process_contextswitches :: :"process.context_switches" - def process_contextswitches do + @spec process_context_switches :: :"process.context_switches" + def process_context_switches do :"process.context_switches" end @@ -201,21 +201,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_openfiledescriptor_count() + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_open_file_descriptor_count() :"process.open_file_descriptor.count" ### Erlang ```erlang - ?PROCESS_OPENFILEDESCRIPTOR_COUNT. + ?PROCESS_OPEN_FILE_DESCRIPTOR_COUNT. 'process.open_file_descriptor.count' ``` """ - @spec process_openfiledescriptor_count :: :"process.open_file_descriptor.count" - def process_openfiledescriptor_count do + @spec process_open_file_descriptor_count :: :"process.open_file_descriptor.count" + def process_open_file_descriptor_count do :"process.open_file_descriptor.count" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl new file mode 100644 index 00000000..58c342b3 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl @@ -0,0 +1,277 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Process metrics. + """ + @doc """ + Number of times the process has been context switched. + + Instrument: `counter` + Unit: `{count}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_context_switches() + :"process.context_switches" + + ### Erlang + + ```erlang + ?PROCESS_CONTEXT_SWITCHES. + 'process.context_switches' + ``` + + + """ + + @spec process_context_switches :: :"process.context_switches" + def process_context_switches do + :"process.context_switches" + end + + @doc """ + Total CPU seconds broken down by different states. + + Instrument: `counter` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_cpu_time() + :"process.cpu.time" + + ### Erlang + + ```erlang + ?PROCESS_CPU_TIME. + 'process.cpu.time' + ``` + + + """ + + @spec process_cpu_time :: :"process.cpu.time" + def process_cpu_time do + :"process.cpu.time" + end + + @doc """ + Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_cpu_utilization() + :"process.cpu.utilization" + + ### Erlang + + ```erlang + ?PROCESS_CPU_UTILIZATION. + 'process.cpu.utilization' + ``` + + + """ + + @spec process_cpu_utilization :: :"process.cpu.utilization" + def process_cpu_utilization do + :"process.cpu.utilization" + end + + @doc """ + Disk bytes transferred. + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_disk_io() + :"process.disk.io" + + ### Erlang + + ```erlang + ?PROCESS_DISK_IO. + 'process.disk.io' + ``` + + + """ + + @spec process_disk_io :: :"process.disk.io" + def process_disk_io do + :"process.disk.io" + end + + @doc """ + The amount of physical memory in use. + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_memory_usage() + :"process.memory.usage" + + ### Erlang + + ```erlang + ?PROCESS_MEMORY_USAGE. + 'process.memory.usage' + ``` + + + """ + + @spec process_memory_usage :: :"process.memory.usage" + def process_memory_usage do + :"process.memory.usage" + end + + @doc """ + The amount of committed virtual memory. + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_memory_virtual() + :"process.memory.virtual" + + ### Erlang + + ```erlang + ?PROCESS_MEMORY_VIRTUAL. + 'process.memory.virtual' + ``` + + + """ + + @spec process_memory_virtual :: :"process.memory.virtual" + def process_memory_virtual do + :"process.memory.virtual" + end + + @doc """ + Network bytes transferred. + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_network_io() + :"process.network.io" + + ### Erlang + + ```erlang + ?PROCESS_NETWORK_IO. + 'process.network.io' + ``` + + + """ + + @spec process_network_io :: :"process.network.io" + def process_network_io do + :"process.network.io" + end + + @doc """ + Number of file descriptors in use by the process. + + Instrument: `updowncounter` + Unit: `{count}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_open_file_descriptor_count() + :"process.open_file_descriptor.count" + + ### Erlang + + ```erlang + ?PROCESS_OPEN_FILE_DESCRIPTOR_COUNT. + 'process.open_file_descriptor.count' + ``` + + + """ + + @spec process_open_file_descriptor_count :: :"process.open_file_descriptor.count" + def process_open_file_descriptor_count do + :"process.open_file_descriptor.count" + end + + @doc """ + Number of page faults the process has made. + + Instrument: `counter` + Unit: `{fault}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_paging_faults() + :"process.paging.faults" + + ### Erlang + + ```erlang + ?PROCESS_PAGING_FAULTS. + 'process.paging.faults' + ``` + + + """ + + @spec process_paging_faults :: :"process.paging.faults" + def process_paging_faults do + :"process.paging.faults" + end + + @doc """ + Process threads count. + + Instrument: `updowncounter` + Unit: `{thread}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_thread_count() + :"process.thread.count" + + ### Erlang + + ```erlang + ?PROCESS_THREAD_COUNT. + 'process.thread.count' + ``` + + + """ + + @spec process_thread_count :: :"process.thread.count" + def process_thread_count do + :"process.thread.count" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex index b521527e..5b7396f1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex @@ -83,21 +83,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_requestsperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_requests_per_rpc() :"rpc.client.requests_per_rpc" ### Erlang ```erlang - ?RPC_CLIENT_REQUESTSPERRPC. + ?RPC_CLIENT_REQUESTS_PER_RPC. 'rpc.client.requests_per_rpc' ``` """ - @spec rpc_client_requestsperrpc :: :"rpc.client.requests_per_rpc" - def rpc_client_requestsperrpc do + @spec rpc_client_requests_per_rpc :: :"rpc.client.requests_per_rpc" + def rpc_client_requests_per_rpc do :"rpc.client.requests_per_rpc" end @@ -147,21 +147,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_responsesperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_client_responses_per_rpc() :"rpc.client.responses_per_rpc" ### Erlang ```erlang - ?RPC_CLIENT_RESPONSESPERRPC. + ?RPC_CLIENT_RESPONSES_PER_RPC. 'rpc.client.responses_per_rpc' ``` """ - @spec rpc_client_responsesperrpc :: :"rpc.client.responses_per_rpc" - def rpc_client_responsesperrpc do + @spec rpc_client_responses_per_rpc :: :"rpc.client.responses_per_rpc" + def rpc_client_responses_per_rpc do :"rpc.client.responses_per_rpc" end @@ -245,21 +245,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_requestsperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_requests_per_rpc() :"rpc.server.requests_per_rpc" ### Erlang ```erlang - ?RPC_SERVER_REQUESTSPERRPC. + ?RPC_SERVER_REQUESTS_PER_RPC. 'rpc.server.requests_per_rpc' ``` """ - @spec rpc_server_requestsperrpc :: :"rpc.server.requests_per_rpc" - def rpc_server_requestsperrpc do + @spec rpc_server_requests_per_rpc :: :"rpc.server.requests_per_rpc" + def rpc_server_requests_per_rpc do :"rpc.server.requests_per_rpc" end @@ -309,21 +309,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_responsesperrpc() + iex> OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics.rpc_server_responses_per_rpc() :"rpc.server.responses_per_rpc" ### Erlang ```erlang - ?RPC_SERVER_RESPONSESPERRPC. + ?RPC_SERVER_RESPONSES_PER_RPC. 'rpc.server.responses_per_rpc' ``` """ - @spec rpc_server_responsesperrpc :: :"rpc.server.responses_per_rpc" - def rpc_server_responsesperrpc do + @spec rpc_server_responses_per_rpc :: :"rpc.server.responses_per_rpc" + def rpc_server_responses_per_rpc do :"rpc.server.responses_per_rpc" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl new file mode 100644 index 00000000..46200183 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl @@ -0,0 +1,331 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Rpc metrics. + """ + @doc """ + Measures the duration of outbound RPC. + + Instrument: `histogram` + Unit: `ms` + ### Notes + + While streaming RPCs may record this metric as start-of-batch + to end-of-batch, it's hard to interpret in practice. + + **Streaming**: N/A. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_duration() + :"rpc.client.duration" + + ### Erlang + + ```erlang + ?RPC_CLIENT_DURATION. + 'rpc.client.duration' + ``` + + + """ + + @spec rpc_client_duration :: :"rpc.client.duration" + def rpc_client_duration do + :"rpc.client.duration" + end + + @doc """ + Measures the size of RPC request messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per message in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_request_size() + :"rpc.client.request.size" + + ### Erlang + + ```erlang + ?RPC_CLIENT_REQUEST_SIZE. + 'rpc.client.request.size' + ``` + + + """ + + @spec rpc_client_request_size :: :"rpc.client.request.size" + def rpc_client_request_size do + :"rpc.client.request.size" + end + + @doc """ + Measures the number of messages received per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming**: This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_requests_per_rpc() + :"rpc.client.requests_per_rpc" + + ### Erlang + + ```erlang + ?RPC_CLIENT_REQUESTS_PER_RPC. + 'rpc.client.requests_per_rpc' + ``` + + + """ + + @spec rpc_client_requests_per_rpc :: :"rpc.client.requests_per_rpc" + def rpc_client_requests_per_rpc do + :"rpc.client.requests_per_rpc" + end + + @doc """ + Measures the size of RPC response messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per response in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_response_size() + :"rpc.client.response.size" + + ### Erlang + + ```erlang + ?RPC_CLIENT_RESPONSE_SIZE. + 'rpc.client.response.size' + ``` + + + """ + + @spec rpc_client_response_size :: :"rpc.client.response.size" + def rpc_client_response_size do + :"rpc.client.response.size" + end + + @doc """ + Measures the number of messages sent per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming**: This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_responses_per_rpc() + :"rpc.client.responses_per_rpc" + + ### Erlang + + ```erlang + ?RPC_CLIENT_RESPONSES_PER_RPC. + 'rpc.client.responses_per_rpc' + ``` + + + """ + + @spec rpc_client_responses_per_rpc :: :"rpc.client.responses_per_rpc" + def rpc_client_responses_per_rpc do + :"rpc.client.responses_per_rpc" + end + + @doc """ + Measures the duration of inbound RPC. + + Instrument: `histogram` + Unit: `ms` + ### Notes + + While streaming RPCs may record this metric as start-of-batch + to end-of-batch, it's hard to interpret in practice. + + **Streaming**: N/A. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_duration() + :"rpc.server.duration" + + ### Erlang + + ```erlang + ?RPC_SERVER_DURATION. + 'rpc.server.duration' + ``` + + + """ + + @spec rpc_server_duration :: :"rpc.server.duration" + def rpc_server_duration do + :"rpc.server.duration" + end + + @doc """ + Measures the size of RPC request messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per message in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_request_size() + :"rpc.server.request.size" + + ### Erlang + + ```erlang + ?RPC_SERVER_REQUEST_SIZE. + 'rpc.server.request.size' + ``` + + + """ + + @spec rpc_server_request_size :: :"rpc.server.request.size" + def rpc_server_request_size do + :"rpc.server.request.size" + end + + @doc """ + Measures the number of messages received per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming** : This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_requests_per_rpc() + :"rpc.server.requests_per_rpc" + + ### Erlang + + ```erlang + ?RPC_SERVER_REQUESTS_PER_RPC. + 'rpc.server.requests_per_rpc' + ``` + + + """ + + @spec rpc_server_requests_per_rpc :: :"rpc.server.requests_per_rpc" + def rpc_server_requests_per_rpc do + :"rpc.server.requests_per_rpc" + end + + @doc """ + Measures the size of RPC response messages (uncompressed). + + Instrument: `histogram` + Unit: `By` + ### Notes + + **Streaming**: Recorded per response in a streaming batch + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_response_size() + :"rpc.server.response.size" + + ### Erlang + + ```erlang + ?RPC_SERVER_RESPONSE_SIZE. + 'rpc.server.response.size' + ``` + + + """ + + @spec rpc_server_response_size :: :"rpc.server.response.size" + def rpc_server_response_size do + :"rpc.server.response.size" + end + + @doc """ + Measures the number of messages sent per RPC. + + Instrument: `histogram` + Unit: `{count}` + ### Notes + + Should be 1 for all non-streaming RPCs. + + **Streaming**: This metric is required for server and client streaming RPCs + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_responses_per_rpc() + :"rpc.server.responses_per_rpc" + + ### Erlang + + ```erlang + ?RPC_SERVER_RESPONSES_PER_RPC. + 'rpc.server.responses_per_rpc' + ``` + + + """ + + @spec rpc_server_responses_per_rpc :: :"rpc.server.responses_per_rpc" + def rpc_server_responses_per_rpc do + :"rpc.server.responses_per_rpc" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex index 72693fee..bc379bf4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex @@ -183,21 +183,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_iotime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io_time() :"system.disk.io_time" ### Erlang ```erlang - ?SYSTEM_DISK_IOTIME. + ?SYSTEM_DISK_IO_TIME. 'system.disk.io_time' ``` """ - @spec system_disk_iotime :: :"system.disk.io_time" - def system_disk_iotime do + @spec system_disk_io_time :: :"system.disk.io_time" + def system_disk_io_time do :"system.disk.io_time" end @@ -244,21 +244,21 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operationtime() + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operation_time() :"system.disk.operation_time" ### Erlang ```erlang - ?SYSTEM_DISK_OPERATIONTIME. + ?SYSTEM_DISK_OPERATION_TIME. 'system.disk.operation_time' ``` """ - @spec system_disk_operationtime :: :"system.disk.operation_time" - def system_disk_operationtime do + @spec system_disk_operation_time :: :"system.disk.operation_time" + def system_disk_operation_time do :"system.disk.operation_time" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl new file mode 100644 index 00000000..25f480a9 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl @@ -0,0 +1,817 @@ + +defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for System metrics. + """ + @doc """ + Reports the current frequency of the CPU in Hz + + Instrument: `gauge` + Unit: `{Hz}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_frequency() + :"system.cpu.frequency" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_FREQUENCY. + 'system.cpu.frequency' + ``` + + + """ + + @spec system_cpu_frequency :: :"system.cpu.frequency" + def system_cpu_frequency do + :"system.cpu.frequency" + end + + @doc """ + Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking + + Instrument: `updowncounter` + Unit: `{cpu}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_logical_count() + :"system.cpu.logical.count" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_LOGICAL_COUNT. + 'system.cpu.logical.count' + ``` + + + """ + + @spec system_cpu_logical_count :: :"system.cpu.logical.count" + def system_cpu_logical_count do + :"system.cpu.logical.count" + end + + @doc """ + Reports the number of actual physical processor cores on the hardware + + Instrument: `updowncounter` + Unit: `{cpu}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_physical_count() + :"system.cpu.physical.count" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_PHYSICAL_COUNT. + 'system.cpu.physical.count' + ``` + + + """ + + @spec system_cpu_physical_count :: :"system.cpu.physical.count" + def system_cpu_physical_count do + :"system.cpu.physical.count" + end + + @doc """ + Seconds each logical CPU spent on each mode + + Instrument: `counter` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_time() + :"system.cpu.time" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_TIME. + 'system.cpu.time' + ``` + + + """ + + @spec system_cpu_time :: :"system.cpu.time" + def system_cpu_time do + :"system.cpu.time" + end + + @doc """ + Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_utilization() + :"system.cpu.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_UTILIZATION. + 'system.cpu.utilization' + ``` + + + """ + + @spec system_cpu_utilization :: :"system.cpu.utilization" + def system_cpu_utilization do + :"system.cpu.utilization" + end + + @doc """ + none + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io() + :"system.disk.io" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_IO. + 'system.disk.io' + ``` + + + """ + + @spec system_disk_io :: :"system.disk.io" + def system_disk_io do + :"system.disk.io" + end + + @doc """ + Time disk spent activated + + Instrument: `counter` + Unit: `s` + ### Notes + + The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as: + + - Linux: Field 13 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) + - Windows: The complement of + ["Disk\% Idle Time"](https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained) + performance counter: `uptime * (100 - "Disk\% Idle Time") / 100` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io_time() + :"system.disk.io_time" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_IO_TIME. + 'system.disk.io_time' + ``` + + + """ + + @spec system_disk_io_time :: :"system.disk.io_time" + def system_disk_io_time do + :"system.disk.io_time" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_merged() + :"system.disk.merged" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_MERGED. + 'system.disk.merged' + ``` + + + """ + + @spec system_disk_merged :: :"system.disk.merged" + def system_disk_merged do + :"system.disk.merged" + end + + @doc """ + Sum of the time each operation took to complete + + Instrument: `counter` + Unit: `s` + ### Notes + + Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as: + + - Linux: Fields 7 & 11 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) + - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec" perf counter (similar for Writes) + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operation_time() + :"system.disk.operation_time" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_OPERATION_TIME. + 'system.disk.operation_time' + ``` + + + """ + + @spec system_disk_operation_time :: :"system.disk.operation_time" + def system_disk_operation_time do + :"system.disk.operation_time" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operations() + :"system.disk.operations" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_OPERATIONS. + 'system.disk.operations' + ``` + + + """ + + @spec system_disk_operations :: :"system.disk.operations" + def system_disk_operations do + :"system.disk.operations" + end + + @doc """ + none + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_usage() + :"system.filesystem.usage" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_USAGE. + 'system.filesystem.usage' + ``` + + + """ + + @spec system_filesystem_usage :: :"system.filesystem.usage" + def system_filesystem_usage do + :"system.filesystem.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_utilization() + :"system.filesystem.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_UTILIZATION. + 'system.filesystem.utilization' + ``` + + + """ + + @spec system_filesystem_utilization :: :"system.filesystem.utilization" + def system_filesystem_utilization do + :"system.filesystem.utilization" + end + + @doc """ + An estimate of how much memory is available for starting new applications, without causing swapping + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + 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. + This is supposed to be more accurate than just "free" memory. + For reference, see the calculations [here](https://superuser.com/a/980821). + See also `MemAvailable` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_linux_memory_available() + :"system.linux.memory.available" + + ### Erlang + + ```erlang + ?SYSTEM_LINUX_MEMORY_AVAILABLE. + 'system.linux.memory.available' + ``` + + + """ + + @spec system_linux_memory_available :: :"system.linux.memory.available" + def system_linux_memory_available do + :"system.linux.memory.available" + end + + @doc """ + Total memory available in the system. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + Its value **SHOULD** equal the sum of `system.memory.state` over all states. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_limit() + :"system.memory.limit" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_LIMIT. + 'system.memory.limit' + ``` + + + """ + + @spec system_memory_limit :: :"system.memory.limit" + def system_memory_limit do + :"system.memory.limit" + end + + @doc """ + Shared memory used (mostly by tmpfs). + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + Equivalent of `shared` from [`free` command](https://man7.org/linux/man-pages/man1/free.1.html) or + `Shmem` from [`/proc/meminfo`](https://man7.org/linux/man-pages/man5/proc.5.html)" + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_shared() + :"system.memory.shared" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_SHARED. + 'system.memory.shared' + ``` + + + """ + + @spec system_memory_shared :: :"system.memory.shared" + def system_memory_shared do + :"system.memory.shared" + end + + @doc """ + Reports memory in use by state. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + The sum over all `system.memory.state` values **SHOULD** equal the total memory + available on the system, that is `system.memory.limit`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_usage() + :"system.memory.usage" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_USAGE. + 'system.memory.usage' + ``` + + + """ + + @spec system_memory_usage :: :"system.memory.usage" + def system_memory_usage do + :"system.memory.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_utilization() + :"system.memory.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_UTILIZATION. + 'system.memory.utilization' + ``` + + + """ + + @spec system_memory_utilization :: :"system.memory.utilization" + def system_memory_utilization do + :"system.memory.utilization" + end + + @doc """ + none + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_connections() + :"system.network.connections" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_CONNECTIONS. + 'system.network.connections' + ``` + + + """ + + @spec system_network_connections :: :"system.network.connections" + def system_network_connections do + :"system.network.connections" + end + + @doc """ + Count of packets that are dropped or discarded even though there was no error + + Instrument: `counter` + Unit: `{packet}` + ### Notes + + 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) + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_dropped() + :"system.network.dropped" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_DROPPED. + 'system.network.dropped' + ``` + + + """ + + @spec system_network_dropped :: :"system.network.dropped" + def system_network_dropped do + :"system.network.dropped" + end + + @doc """ + Count of network errors detected + + Instrument: `counter` + Unit: `{error}` + ### Notes + + 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). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_errors() + :"system.network.errors" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_ERRORS. + 'system.network.errors' + ``` + + + """ + + @spec system_network_errors :: :"system.network.errors" + def system_network_errors do + :"system.network.errors" + end + + @doc """ + none + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_io() + :"system.network.io" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_IO. + 'system.network.io' + ``` + + + """ + + @spec system_network_io :: :"system.network.io" + def system_network_io do + :"system.network.io" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{packet}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_packets() + :"system.network.packets" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_PACKETS. + 'system.network.packets' + ``` + + + """ + + @spec system_network_packets :: :"system.network.packets" + def system_network_packets do + :"system.network.packets" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{fault}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_faults() + :"system.paging.faults" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_FAULTS. + 'system.paging.faults' + ``` + + + """ + + @spec system_paging_faults :: :"system.paging.faults" + def system_paging_faults do + :"system.paging.faults" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_operations() + :"system.paging.operations" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_OPERATIONS. + 'system.paging.operations' + ``` + + + """ + + @spec system_paging_operations :: :"system.paging.operations" + def system_paging_operations do + :"system.paging.operations" + end + + @doc """ + Unix swap or windows pagefile usage + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_usage() + :"system.paging.usage" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_USAGE. + 'system.paging.usage' + ``` + + + """ + + @spec system_paging_usage :: :"system.paging.usage" + def system_paging_usage do + :"system.paging.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_utilization() + :"system.paging.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_UTILIZATION. + 'system.paging.utilization' + ``` + + + """ + + @spec system_paging_utilization :: :"system.paging.utilization" + def system_paging_utilization do + :"system.paging.utilization" + end + + @doc """ + Total number of processes in each state + + Instrument: `updowncounter` + Unit: `{process}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_count() + :"system.process.count" + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_COUNT. + 'system.process.count' + ``` + + + """ + + @spec system_process_count :: :"system.process.count" + def system_process_count do + :"system.process.count" + end + + @doc """ + Total number of processes created over uptime of the host + + Instrument: `counter` + Unit: `{process}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_created() + :"system.process.created" + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_CREATED. + 'system.process.created' + ``` + + + """ + + @spec system_process_created :: :"system.process.created" + def system_process_created do + :"system.process.created" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index 3e49bda1..67ba9634 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -11,7 +11,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do * `:child_of` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - The parent Span depends on the child Span in some capacity * `:follows_from` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - The parent Span doesn't depend in any way on the result of the child Span """ - @type opentracing_reftype_values() :: %{ + @type opentracing_ref_type_values() :: %{ :child_of => :child_of, :follows_from => :follows_from } @@ -27,37 +27,37 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype() + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type() :"opentracing.ref_type" - iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values().child_of + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type_values().child_of :child_of - iex> %{OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype() => OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_reftype_values().child_of} + iex> %{OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type() => OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type_values().child_of} %{:"opentracing.ref_type" => :child_of} ### Erlang ```erlang - ?OPENTRACING_REFTYPE. + ?OPENTRACING_REF_TYPE. 'opentracing.ref_type' - ?'OPENTRACING_REFTYPE_VALUES.child_of'. + ?'OPENTRACING_REF_TYPE_VALUES.child_of'. child_of - \#{?OPENTRACING_REFTYPE => ?'OPENTRACING_REFTYPE_VALUES.child_of'}. + \#{?OPENTRACING_REF_TYPE => ?'OPENTRACING_REF_TYPE_VALUES.child_of'}. \#{'opentracing.ref_type' => child_of} ``` """ - @spec opentracing_reftype :: :"opentracing.ref_type" - def opentracing_reftype do + @spec opentracing_ref_type :: :"opentracing.ref_type" + def opentracing_ref_type do :"opentracing.ref_type" end - @spec opentracing_reftype_values() :: opentracing_reftype_values() - def opentracing_reftype_values() do + @spec opentracing_ref_type_values() :: opentracing_ref_type_values() + def opentracing_ref_type_values() do %{ :child_of => :child_of, :follows_from => :follows_from diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex index fa836224..3ae18ec9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -19,20 +19,20 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_buildid() + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_build_id() :"os.build_id" ### Erlang ```erlang - ?OS_BUILDID. + ?OS_BUILD_ID. 'os.build_id' ``` """ - @spec os_buildid :: :"os.build_id" - def os_buildid do + @spec os_build_id :: :"os.build_id" + def os_build_id do :"os.build_id" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex index f8dc9c1c..ac9f91a1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -53,20 +53,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_commandargs() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_command_args() :"process.command_args" ### Erlang ```erlang - ?PROCESS_COMMANDARGS. + ?PROCESS_COMMAND_ARGS. 'process.command_args' ``` """ - @spec process_commandargs :: :"process.command_args" - def process_commandargs do + @spec process_command_args :: :"process.command_args" + def process_command_args do :"process.command_args" end @@ -86,20 +86,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_commandline() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_command_line() :"process.command_line" ### Erlang ```erlang - ?PROCESS_COMMANDLINE. + ?PROCESS_COMMAND_LINE. 'process.command_line' ``` """ - @spec process_commandline :: :"process.command_line" - def process_commandline do + @spec process_command_line :: :"process.command_line" + def process_command_line do :"process.command_line" end @@ -110,7 +110,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do * `:voluntary` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:involuntary` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type process_contextswitchtype_values() :: %{ + @type process_context_switch_type_values() :: %{ :voluntary => :voluntary, :involuntary => :involuntary } @@ -122,37 +122,37 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type() :"process.context_switch_type" - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values().voluntary + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type_values().voluntary :voluntary - iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_contextswitchtype_values().voluntary} + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type_values().voluntary} %{:"process.context_switch_type" => :voluntary} ### Erlang ```erlang - ?PROCESS_CONTEXTSWITCHTYPE. + ?PROCESS_CONTEXT_SWITCH_TYPE. 'process.context_switch_type' - ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'. + ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES.voluntary'. voluntary - \#{?PROCESS_CONTEXTSWITCHTYPE => ?'PROCESS_CONTEXTSWITCHTYPE_VALUES.voluntary'}. + \#{?PROCESS_CONTEXT_SWITCH_TYPE => ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES.voluntary'}. \#{'process.context_switch_type' => voluntary} ``` """ - @spec process_contextswitchtype :: :"process.context_switch_type" - def process_contextswitchtype do + @spec process_context_switch_type :: :"process.context_switch_type" + def process_context_switch_type do :"process.context_switch_type" end - @spec process_contextswitchtype_values() :: process_contextswitchtype_values() - def process_contextswitchtype_values() do + @spec process_context_switch_type_values() :: process_context_switch_type_values() + def process_context_switch_type_values() do %{ :voluntary => :voluntary, :involuntary => :involuntary @@ -401,20 +401,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_groupleader_pid() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_group_leader_pid() :"process.group_leader.pid" ### Erlang ```erlang - ?PROCESS_GROUPLEADER_PID. + ?PROCESS_GROUP_LEADER_PID. 'process.group_leader.pid' ``` """ - @spec process_groupleader_pid :: :"process.group_leader.pid" - def process_groupleader_pid do + @spec process_group_leader_pid :: :"process.group_leader.pid" + def process_group_leader_pid do :"process.group_leader.pid" end @@ -487,7 +487,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type process_paging_faulttype_values() :: %{ + @type process_paging_fault_type_values() :: %{ :major => :major, :minor => :minor } @@ -500,37 +500,37 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type() :"process.paging.fault_type" - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values().major + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type_values().major :major - iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_faulttype_values().major} + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type_values().major} %{:"process.paging.fault_type" => :major} ### Erlang ```erlang - ?PROCESS_PAGING_FAULTTYPE. + ?PROCESS_PAGING_FAULT_TYPE. 'process.paging.fault_type' - ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'. + ?'PROCESS_PAGING_FAULT_TYPE_VALUES.major'. major - \#{?PROCESS_PAGING_FAULTTYPE => ?'PROCESS_PAGING_FAULTTYPE_VALUES.major'}. + \#{?PROCESS_PAGING_FAULT_TYPE => ?'PROCESS_PAGING_FAULT_TYPE_VALUES.major'}. \#{'process.paging.fault_type' => major} ``` """ - @spec process_paging_faulttype :: :"process.paging.fault_type" - def process_paging_faulttype do + @spec process_paging_fault_type :: :"process.paging.fault_type" + def process_paging_fault_type do :"process.paging.fault_type" end - @spec process_paging_faulttype_values() :: process_paging_faulttype_values() - def process_paging_faulttype_values() do + @spec process_paging_fault_type_values() :: process_paging_fault_type_values() + def process_paging_fault_type_values() do %{ :major => :major, :minor => :minor @@ -553,20 +553,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_parentpid() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_parent_pid() :"process.parent_pid" ### Erlang ```erlang - ?PROCESS_PARENTPID. + ?PROCESS_PARENT_PID. 'process.parent_pid' ``` """ - @spec process_parentpid :: :"process.parent_pid" - def process_parentpid do + @spec process_parent_pid :: :"process.parent_pid" + def process_parent_pid do :"process.parent_pid" end @@ -619,20 +619,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_realuser_id() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_real_user_id() :"process.real_user.id" ### Erlang ```erlang - ?PROCESS_REALUSER_ID. + ?PROCESS_REAL_USER_ID. 'process.real_user.id' ``` """ - @spec process_realuser_id :: :"process.real_user.id" - def process_realuser_id do + @spec process_real_user_id :: :"process.real_user.id" + def process_real_user_id do :"process.real_user.id" end @@ -652,20 +652,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_realuser_name() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_real_user_name() :"process.real_user.name" ### Erlang ```erlang - ?PROCESS_REALUSER_NAME. + ?PROCESS_REAL_USER_NAME. 'process.real_user.name' ``` """ - @spec process_realuser_name :: :"process.real_user.name" - def process_realuser_name do + @spec process_real_user_name :: :"process.real_user.name" + def process_real_user_name do :"process.real_user.name" end @@ -784,20 +784,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_saveduser_id() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_saved_user_id() :"process.saved_user.id" ### Erlang ```erlang - ?PROCESS_SAVEDUSER_ID. + ?PROCESS_SAVED_USER_ID. 'process.saved_user.id' ``` """ - @spec process_saveduser_id :: :"process.saved_user.id" - def process_saveduser_id do + @spec process_saved_user_id :: :"process.saved_user.id" + def process_saved_user_id do :"process.saved_user.id" end @@ -817,20 +817,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_saveduser_name() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_saved_user_name() :"process.saved_user.name" ### Erlang ```erlang - ?PROCESS_SAVEDUSER_NAME. + ?PROCESS_SAVED_USER_NAME. 'process.saved_user.name' ``` """ - @spec process_saveduser_name :: :"process.saved_user.name" - def process_saveduser_name do + @spec process_saved_user_name :: :"process.saved_user.name" + def process_saved_user_name do :"process.saved_user.name" end @@ -850,20 +850,20 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_sessionleader_pid() + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_session_leader_pid() :"process.session_leader.pid" ### Erlang ```erlang - ?PROCESS_SESSIONLEADER_PID. + ?PROCESS_SESSION_LEADER_PID. 'process.session_leader.pid' ``` """ - @spec process_sessionleader_pid :: :"process.session_leader.pid" - def process_sessionleader_pid do + @spec process_session_leader_pid :: :"process.session_leader.pid" + def process_session_leader_pid do :"process.session_leader.pid" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index 7a4c85dc..902c112b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -7,8 +7,8 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do @deprecated """ Replaced by `rpc.message.compressed_size`. """ - @spec message_compressedsize :: :"message.compressed_size" - def message_compressedsize do + @spec message_compressed_size :: :"message.compressed_size" + def message_compressed_size do :"message.compressed_size" end @@ -50,8 +50,8 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do @deprecated """ Replaced by `rpc.message.uncompressed_size`. """ - @spec message_uncompressedsize :: :"message.uncompressed_size" - def message_uncompressedsize do + @spec message_uncompressed_size :: :"message.uncompressed_size" + def message_uncompressed_size do :"message.uncompressed_size" end @@ -76,7 +76,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:data_loss` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:unauthenticated` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type rpc_connectrpc_errorcode_values() :: %{ + @type rpc_connect_rpc_error_code_values() :: %{ :cancelled => :cancelled, :unknown => :unknown, :invalid_argument => :invalid_argument, @@ -102,37 +102,37 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code() :"rpc.connect_rpc.error_code" - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values().cancelled + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code_values().cancelled :cancelled - iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_errorcode_values().cancelled} + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code_values().cancelled} %{:"rpc.connect_rpc.error_code" => :cancelled} ### Erlang ```erlang - ?RPC_CONNECTRPC_ERRORCODE. + ?RPC_CONNECT_RPC_ERROR_CODE. 'rpc.connect_rpc.error_code' - ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'. + ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES.cancelled'. cancelled - \#{?RPC_CONNECTRPC_ERRORCODE => ?'RPC_CONNECTRPC_ERRORCODE_VALUES.cancelled'}. + \#{?RPC_CONNECT_RPC_ERROR_CODE => ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES.cancelled'}. \#{'rpc.connect_rpc.error_code' => cancelled} ``` """ - @spec rpc_connectrpc_errorcode :: :"rpc.connect_rpc.error_code" - def rpc_connectrpc_errorcode do + @spec rpc_connect_rpc_error_code :: :"rpc.connect_rpc.error_code" + def rpc_connect_rpc_error_code do :"rpc.connect_rpc.error_code" end - @spec rpc_connectrpc_errorcode_values() :: rpc_connectrpc_errorcode_values() - def rpc_connectrpc_errorcode_values() do + @spec rpc_connect_rpc_error_code_values() :: rpc_connect_rpc_error_code_values() + def rpc_connect_rpc_error_code_values() do %{ :cancelled => :cancelled, :unknown => :unknown, @@ -173,20 +173,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_request_metadata() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_request_metadata() :"rpc.connect_rpc.request.metadata" ### Erlang ```erlang - ?RPC_CONNECTRPC_REQUEST_METADATA. + ?RPC_CONNECT_RPC_REQUEST_METADATA. 'rpc.connect_rpc.request.metadata' ``` """ - @spec rpc_connectrpc_request_metadata :: :"rpc.connect_rpc.request.metadata" - def rpc_connectrpc_request_metadata do + @spec rpc_connect_rpc_request_metadata :: :"rpc.connect_rpc.request.metadata" + def rpc_connect_rpc_request_metadata do :"rpc.connect_rpc.request.metadata" end @@ -210,20 +210,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connectrpc_response_metadata() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_response_metadata() :"rpc.connect_rpc.response.metadata" ### Erlang ```erlang - ?RPC_CONNECTRPC_RESPONSE_METADATA. + ?RPC_CONNECT_RPC_RESPONSE_METADATA. 'rpc.connect_rpc.response.metadata' ``` """ - @spec rpc_connectrpc_response_metadata :: :"rpc.connect_rpc.response.metadata" - def rpc_connectrpc_response_metadata do + @spec rpc_connect_rpc_response_metadata :: :"rpc.connect_rpc.response.metadata" + def rpc_connect_rpc_response_metadata do :"rpc.connect_rpc.response.metadata" end @@ -323,7 +323,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do * `:data_loss` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - DATA_LOSS * `:unauthenticated` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - UNAUTHENTICATED """ - @type rpc_grpc_statuscode_values() :: %{ + @type rpc_grpc_status_code_values() :: %{ :ok => 0, :cancelled => 1, :unknown => 2, @@ -350,37 +350,37 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code() :"rpc.grpc.status_code" - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values().ok + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code_values().ok 0 - iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_statuscode_values().ok} + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code_values().ok} %{:"rpc.grpc.status_code" => 0} ### Erlang ```erlang - ?RPC_GRPC_STATUSCODE. + ?RPC_GRPC_STATUS_CODE. 'rpc.grpc.status_code' - ?'RPC_GRPC_STATUSCODE_VALUES.ok'. + ?'RPC_GRPC_STATUS_CODE_VALUES.ok'. 0 - \#{?RPC_GRPC_STATUSCODE => ?'RPC_GRPC_STATUSCODE_VALUES.ok'}. + \#{?RPC_GRPC_STATUS_CODE => ?'RPC_GRPC_STATUS_CODE_VALUES.ok'}. \#{'rpc.grpc.status_code' => 0} ``` """ - @spec rpc_grpc_statuscode :: :"rpc.grpc.status_code" - def rpc_grpc_statuscode do + @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" + def rpc_grpc_status_code do :"rpc.grpc.status_code" end - @spec rpc_grpc_statuscode_values() :: rpc_grpc_statuscode_values() - def rpc_grpc_statuscode_values() do + @spec rpc_grpc_status_code_values() :: rpc_grpc_status_code_values() + def rpc_grpc_status_code_values() do %{ :ok => 0, :cancelled => 1, @@ -417,20 +417,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_errorcode() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_error_code() :"rpc.jsonrpc.error_code" ### Erlang ```erlang - ?RPC_JSONRPC_ERRORCODE. + ?RPC_JSONRPC_ERROR_CODE. 'rpc.jsonrpc.error_code' ``` """ - @spec rpc_jsonrpc_errorcode :: :"rpc.jsonrpc.error_code" - def rpc_jsonrpc_errorcode do + @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" + def rpc_jsonrpc_error_code do :"rpc.jsonrpc.error_code" end @@ -449,20 +449,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_errormessage() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_error_message() :"rpc.jsonrpc.error_message" ### Erlang ```erlang - ?RPC_JSONRPC_ERRORMESSAGE. + ?RPC_JSONRPC_ERROR_MESSAGE. 'rpc.jsonrpc.error_message' ``` """ - @spec rpc_jsonrpc_errormessage :: :"rpc.jsonrpc.error_message" - def rpc_jsonrpc_errormessage do + @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" + def rpc_jsonrpc_error_message do :"rpc.jsonrpc.error_message" end @@ -482,20 +482,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_requestid() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_jsonrpc_request_id() :"rpc.jsonrpc.request_id" ### Erlang ```erlang - ?RPC_JSONRPC_REQUESTID. + ?RPC_JSONRPC_REQUEST_ID. 'rpc.jsonrpc.request_id' ``` """ - @spec rpc_jsonrpc_requestid :: :"rpc.jsonrpc.request_id" - def rpc_jsonrpc_requestid do + @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" + def rpc_jsonrpc_request_id do :"rpc.jsonrpc.request_id" end @@ -541,20 +541,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_compressedsize() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_compressed_size() :"rpc.message.compressed_size" ### Erlang ```erlang - ?RPC_MESSAGE_COMPRESSEDSIZE. + ?RPC_MESSAGE_COMPRESSED_SIZE. 'rpc.message.compressed_size' ``` """ - @spec rpc_message_compressedsize :: :"rpc.message.compressed_size" - def rpc_message_compressedsize do + @spec rpc_message_compressed_size :: :"rpc.message.compressed_size" + def rpc_message_compressed_size do :"rpc.message.compressed_size" end @@ -654,20 +654,20 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_uncompressedsize() + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_uncompressed_size() :"rpc.message.uncompressed_size" ### Erlang ```erlang - ?RPC_MESSAGE_UNCOMPRESSEDSIZE. + ?RPC_MESSAGE_UNCOMPRESSED_SIZE. 'rpc.message.uncompressed_size' ``` """ - @spec rpc_message_uncompressedsize :: :"rpc.message.uncompressed_size" - def rpc_message_uncompressedsize do + @spec rpc_message_uncompressed_size :: :"rpc.message.uncompressed_size" + def rpc_message_uncompressed_size do :"rpc.message.uncompressed_size" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex index 8cccfa78..4611443f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex @@ -51,20 +51,20 @@ defmodule OpenTelemetry.SemConv.Incubating.SessionAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SessionAttributes.session_previousid() + iex> OpenTelemetry.SemConv.Incubating.SessionAttributes.session_previous_id() :"session.previous_id" ### Erlang ```erlang - ?SESSION_PREVIOUSID. + ?SESSION_PREVIOUS_ID. 'session.previous_id' ``` """ - @spec session_previousid :: :"session.previous_id" - def session_previousid do + @spec session_previous_id :: :"session.previous_id" + def session_previous_id do :"session.previous_id" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index 259ff01c..05688d7b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -19,20 +19,20 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_logicalnumber() + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_logical_number() :"system.cpu.logical_number" ### Erlang ```erlang - ?SYSTEM_CPU_LOGICALNUMBER. + ?SYSTEM_CPU_LOGICAL_NUMBER. 'system.cpu.logical_number' ``` """ - @spec system_cpu_logicalnumber :: :"system.cpu.logical_number" - def system_cpu_logicalnumber do + @spec system_cpu_logical_number :: :"system.cpu.logical_number" + def system_cpu_logical_number do :"system.cpu.logical_number" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex index 1d6fcd0f..0239969e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -90,20 +90,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_certificatechain() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_certificate_chain() :"tls.client.certificate_chain" ### Erlang ```erlang - ?TLS_CLIENT_CERTIFICATECHAIN. + ?TLS_CLIENT_CERTIFICATE_CHAIN. 'tls.client.certificate_chain' ``` """ - @spec tls_client_certificatechain :: :"tls.client.certificate_chain" - def tls_client_certificatechain do + @spec tls_client_certificate_chain :: :"tls.client.certificate_chain" + def tls_client_certificate_chain do :"tls.client.certificate_chain" end @@ -123,20 +123,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_md_5() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_md5() :"tls.client.hash.md5" ### Erlang ```erlang - ?TLS_CLIENT_HASH_MD_5. + ?TLS_CLIENT_HASH_MD5. 'tls.client.hash.md5' ``` """ - @spec tls_client_hash_md_5 :: :"tls.client.hash.md5" - def tls_client_hash_md_5 do + @spec tls_client_hash_md5 :: :"tls.client.hash.md5" + def tls_client_hash_md5 do :"tls.client.hash.md5" end @@ -156,20 +156,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_sha_1() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_sha1() :"tls.client.hash.sha1" ### Erlang ```erlang - ?TLS_CLIENT_HASH_SHA_1. + ?TLS_CLIENT_HASH_SHA1. 'tls.client.hash.sha1' ``` """ - @spec tls_client_hash_sha_1 :: :"tls.client.hash.sha1" - def tls_client_hash_sha_1 do + @spec tls_client_hash_sha1 :: :"tls.client.hash.sha1" + def tls_client_hash_sha1 do :"tls.client.hash.sha1" end @@ -189,20 +189,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_sha_256() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_hash_sha256() :"tls.client.hash.sha256" ### Erlang ```erlang - ?TLS_CLIENT_HASH_SHA_256. + ?TLS_CLIENT_HASH_SHA256. 'tls.client.hash.sha256' ``` """ - @spec tls_client_hash_sha_256 :: :"tls.client.hash.sha256" - def tls_client_hash_sha_256 do + @spec tls_client_hash_sha256 :: :"tls.client.hash.sha256" + def tls_client_hash_sha256 do :"tls.client.hash.sha256" end @@ -253,20 +253,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_ja_3() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_ja3() :"tls.client.ja3" ### Erlang ```erlang - ?TLS_CLIENT_JA_3. + ?TLS_CLIENT_JA3. 'tls.client.ja3' ``` """ - @spec tls_client_ja_3 :: :"tls.client.ja3" - def tls_client_ja_3 do + @spec tls_client_ja3 :: :"tls.client.ja3" + def tls_client_ja3 do :"tls.client.ja3" end @@ -285,20 +285,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_notafter() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_not_after() :"tls.client.not_after" ### Erlang ```erlang - ?TLS_CLIENT_NOTAFTER. + ?TLS_CLIENT_NOT_AFTER. 'tls.client.not_after' ``` """ - @spec tls_client_notafter :: :"tls.client.not_after" - def tls_client_notafter do + @spec tls_client_not_after :: :"tls.client.not_after" + def tls_client_not_after do :"tls.client.not_after" end @@ -317,20 +317,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_notbefore() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_not_before() :"tls.client.not_before" ### Erlang ```erlang - ?TLS_CLIENT_NOTBEFORE. + ?TLS_CLIENT_NOT_BEFORE. 'tls.client.not_before' ``` """ - @spec tls_client_notbefore :: :"tls.client.not_before" - def tls_client_notbefore do + @spec tls_client_not_before :: :"tls.client.not_before" + def tls_client_not_before do :"tls.client.not_before" end @@ -349,20 +349,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_servername() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_server_name() :"tls.client.server_name" ### Erlang ```erlang - ?TLS_CLIENT_SERVERNAME. + ?TLS_CLIENT_SERVER_NAME. 'tls.client.server_name' ``` """ - @spec tls_client_servername :: :"tls.client.server_name" - def tls_client_servername do + @spec tls_client_server_name :: :"tls.client.server_name" + def tls_client_server_name do :"tls.client.server_name" end @@ -413,20 +413,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_supportedciphers() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_supported_ciphers() :"tls.client.supported_ciphers" ### Erlang ```erlang - ?TLS_CLIENT_SUPPORTEDCIPHERS. + ?TLS_CLIENT_SUPPORTED_CIPHERS. 'tls.client.supported_ciphers' ``` """ - @spec tls_client_supportedciphers :: :"tls.client.supported_ciphers" - def tls_client_supportedciphers do + @spec tls_client_supported_ciphers :: :"tls.client.supported_ciphers" + def tls_client_supported_ciphers do :"tls.client.supported_ciphers" end @@ -510,20 +510,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_nextprotocol() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_next_protocol() :"tls.next_protocol" ### Erlang ```erlang - ?TLS_NEXTPROTOCOL. + ?TLS_NEXT_PROTOCOL. 'tls.next_protocol' ``` """ - @spec tls_nextprotocol :: :"tls.next_protocol" - def tls_nextprotocol do + @spec tls_next_protocol :: :"tls.next_protocol" + def tls_next_protocol do :"tls.next_protocol" end @@ -699,20 +699,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_certificatechain() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_certificate_chain() :"tls.server.certificate_chain" ### Erlang ```erlang - ?TLS_SERVER_CERTIFICATECHAIN. + ?TLS_SERVER_CERTIFICATE_CHAIN. 'tls.server.certificate_chain' ``` """ - @spec tls_server_certificatechain :: :"tls.server.certificate_chain" - def tls_server_certificatechain do + @spec tls_server_certificate_chain :: :"tls.server.certificate_chain" + def tls_server_certificate_chain do :"tls.server.certificate_chain" end @@ -732,20 +732,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_md_5() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_md5() :"tls.server.hash.md5" ### Erlang ```erlang - ?TLS_SERVER_HASH_MD_5. + ?TLS_SERVER_HASH_MD5. 'tls.server.hash.md5' ``` """ - @spec tls_server_hash_md_5 :: :"tls.server.hash.md5" - def tls_server_hash_md_5 do + @spec tls_server_hash_md5 :: :"tls.server.hash.md5" + def tls_server_hash_md5 do :"tls.server.hash.md5" end @@ -765,20 +765,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_sha_1() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_sha1() :"tls.server.hash.sha1" ### Erlang ```erlang - ?TLS_SERVER_HASH_SHA_1. + ?TLS_SERVER_HASH_SHA1. 'tls.server.hash.sha1' ``` """ - @spec tls_server_hash_sha_1 :: :"tls.server.hash.sha1" - def tls_server_hash_sha_1 do + @spec tls_server_hash_sha1 :: :"tls.server.hash.sha1" + def tls_server_hash_sha1 do :"tls.server.hash.sha1" end @@ -798,20 +798,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_sha_256() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_hash_sha256() :"tls.server.hash.sha256" ### Erlang ```erlang - ?TLS_SERVER_HASH_SHA_256. + ?TLS_SERVER_HASH_SHA256. 'tls.server.hash.sha256' ``` """ - @spec tls_server_hash_sha_256 :: :"tls.server.hash.sha256" - def tls_server_hash_sha_256 do + @spec tls_server_hash_sha256 :: :"tls.server.hash.sha256" + def tls_server_hash_sha256 do :"tls.server.hash.sha256" end @@ -862,20 +862,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_ja_3_s() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_ja3s() :"tls.server.ja3s" ### Erlang ```erlang - ?TLS_SERVER_JA_3_S. + ?TLS_SERVER_JA3S. 'tls.server.ja3s' ``` """ - @spec tls_server_ja_3_s :: :"tls.server.ja3s" - def tls_server_ja_3_s do + @spec tls_server_ja3s :: :"tls.server.ja3s" + def tls_server_ja3s do :"tls.server.ja3s" end @@ -894,20 +894,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_notafter() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_not_after() :"tls.server.not_after" ### Erlang ```erlang - ?TLS_SERVER_NOTAFTER. + ?TLS_SERVER_NOT_AFTER. 'tls.server.not_after' ``` """ - @spec tls_server_notafter :: :"tls.server.not_after" - def tls_server_notafter do + @spec tls_server_not_after :: :"tls.server.not_after" + def tls_server_not_after do :"tls.server.not_after" end @@ -926,20 +926,20 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_notbefore() + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_server_not_before() :"tls.server.not_before" ### Erlang ```erlang - ?TLS_SERVER_NOTBEFORE. + ?TLS_SERVER_NOT_BEFORE. 'tls.server.not_before' ``` """ - @spec tls_server_notbefore :: :"tls.server.not_before" - def tls_server_notbefore do + @spec tls_server_not_before :: :"tls.server.not_before" + def tls_server_not_before do :"tls.server.not_before" end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex index caaad001..c50f80a2 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex @@ -169,20 +169,20 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_registereddomain() + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_registered_domain() :"url.registered_domain" ### Erlang ```erlang - ?URL_REGISTEREDDOMAIN. + ?URL_REGISTERED_DOMAIN. 'url.registered_domain' ``` """ - @spec url_registereddomain :: :"url.registered_domain" - def url_registereddomain do + @spec url_registered_domain :: :"url.registered_domain" + def url_registered_domain do :"url.registered_domain" end @@ -276,20 +276,20 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_topleveldomain() + iex> OpenTelemetry.SemConv.Incubating.URLAttributes.url_top_level_domain() :"url.top_level_domain" ### Erlang ```erlang - ?URL_TOPLEVELDOMAIN. + ?URL_TOP_LEVEL_DOMAIN. 'url.top_level_domain' ``` """ - @spec url_topleveldomain :: :"url.top_level_domain" - def url_topleveldomain do + @spec url_top_level_domain :: :"url.top_level_domain" + def url_top_level_domain do :"url.top_level_domain" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex index d057d172..1a3dadda 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex @@ -24,20 +24,20 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_name() + iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.user_agent_name() :"user_agent.name" ### Erlang ```erlang - ?USERAGENT_NAME. + ?USER_AGENT_NAME. 'user_agent.name' ``` """ - @spec useragent_name :: :"user_agent.name" - def useragent_name do + @spec user_agent_name :: :"user_agent.name" + def user_agent_name do :"user_agent.name" end @@ -61,20 +61,20 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.useragent_version() + iex> OpenTelemetry.SemConv.Incubating.UserAgentAttributes.user_agent_version() :"user_agent.version" ### Erlang ```erlang - ?USERAGENT_VERSION. + ?USER_AGENT_VERSION. 'user_agent.version' ``` """ - @spec useragent_version :: :"user_agent.version" - def useragent_version do + @spec user_agent_version :: :"user_agent.version" + def user_agent_version do :"user_agent.version" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl new file mode 100644 index 00000000..0c6d41cb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl @@ -0,0 +1,61 @@ + +defmodule OpenTelemetry.SemConv.Metrics.HttpMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Http metrics. + """ + @doc """ + Duration of HTTP client requests. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_client_request_duration() + :"http.client.request.duration" + + ### Erlang + + ```erlang + ?HTTP_CLIENT_REQUEST_DURATION. + 'http.client.request.duration' + ``` + + + """ + + @spec http_client_request_duration :: :"http.client.request.duration" + def http_client_request_duration do + :"http.client.request.duration" + end + + @doc """ + Duration of HTTP server requests. + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_server_request_duration() + :"http.server.request.duration" + + ### Erlang + + ```erlang + ?HTTP_SERVER_REQUEST_DURATION. + 'http.server.request.duration' + ``` + + + """ + + @spec http_server_request_duration :: :"http.server.request.duration" + def http_server_request_duration do + :"http.server.request.duration" + end + +end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index aff665a4..8658e2cb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -75,7 +75,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do * `:ok` - The operation has been validated by an Application developer or Operator to have completed successfully. * `:error` - The operation contains an error. """ - @type otel_statuscode_values() :: %{ + @type otel_status_code_values() :: %{ :ok => :OK, :error => :ERROR } @@ -87,37 +87,37 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Elixir - iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode() + iex> OpenTelemetry.SemConv.OtelAttributes.otel_status_code() :"otel.status_code" - iex> OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values().ok + iex> OpenTelemetry.SemConv.OtelAttributes.otel_status_code_values().ok :OK - iex> %{OpenTelemetry.SemConv.OtelAttributes.otel_statuscode() => OpenTelemetry.SemConv.OtelAttributes.otel_statuscode_values().ok} + iex> %{OpenTelemetry.SemConv.OtelAttributes.otel_status_code() => OpenTelemetry.SemConv.OtelAttributes.otel_status_code_values().ok} %{:"otel.status_code" => :OK} ### Erlang ```erlang - ?OTEL_STATUSCODE. + ?OTEL_STATUS_CODE. 'otel.status_code' - ?'OTEL_STATUSCODE_VALUES.ok'. + ?'OTEL_STATUS_CODE_VALUES.ok'. OK - \#{?OTEL_STATUSCODE => ?'OTEL_STATUSCODE_VALUES.ok'}. + \#{?OTEL_STATUS_CODE => ?'OTEL_STATUS_CODE_VALUES.ok'}. \#{'otel.status_code' => OK} ``` """ - @spec otel_statuscode :: :"otel.status_code" - def otel_statuscode do + @spec otel_status_code :: :"otel.status_code" + def otel_status_code do :"otel.status_code" end - @spec otel_statuscode_values() :: otel_statuscode_values() - def otel_statuscode_values() do + @spec otel_status_code_values() :: otel_status_code_values() + def otel_status_code_values() do %{ :ok => :OK, :error => :ERROR @@ -139,20 +139,20 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Elixir - iex> OpenTelemetry.SemConv.OtelAttributes.otel_statusdescription() + iex> OpenTelemetry.SemConv.OtelAttributes.otel_status_description() :"otel.status_description" ### Erlang ```erlang - ?OTEL_STATUSDESCRIPTION. + ?OTEL_STATUS_DESCRIPTION. 'otel.status_description' ``` """ - @spec otel_statusdescription :: :"otel.status_description" - def otel_statusdescription do + @spec otel_status_description :: :"otel.status_description" + def otel_status_description do :"otel.status_description" end end diff --git a/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex index 4587815f..70106c8b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex @@ -20,20 +20,20 @@ defmodule OpenTelemetry.SemConv.UserAgentAttributes do ### Elixir - iex> OpenTelemetry.SemConv.UserAgentAttributes.useragent_original() + iex> OpenTelemetry.SemConv.UserAgentAttributes.user_agent_original() :"user_agent.original" ### Erlang ```erlang - ?USERAGENT_ORIGINAL. + ?USER_AGENT_ORIGINAL. 'user_agent.original' ``` """ - @spec useragent_original :: :"user_agent.original" - def useragent_original do + @spec user_agent_original :: :"user_agent.original" + def user_agent_original do :"user_agent.original" end end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 index 8fe2a6db..4278c775 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 @@ -1,9 +1,13 @@ -{%- macro acronyms() -%} -["http", "url", "tls", "rpc", "os", "oci", "gcp", "faas", "dns", "db", "aws"] +{%- macro erl_attr_name(text) -%} + {{ text | acronym | replace(".", "_") | upper }} {%- endmacro -%} {%- macro func_name(text) -%} - {{ text | snake_case_const }} + {{ text | acronym | replace(".", "_") | lower }} +{%- endmacro -%} + +{%- macro file_name(id) -%} + {{ id | pascal_case | acronym | lower }} {%- endmacro -%} {%- macro to_atom(text) -%} @@ -63,12 +67,4 @@ {%- macro strong_reqs(string) -%} {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} -{%- endmacro -%} - -{%- macro format_acronym(value, acronyms) -%} - {%- if value | lower in acronyms -%} - {{ value | upper }} - {%- else -%} - {{ value }} - {%- endif -%} {%- endmacro -%} \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index b6eea827..23b53d25 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -1,14 +1,13 @@ {#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} - {# {{ text | snake_case_const | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} + {# {{ text | snake_case | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} {%- import 'common.j2' as c %} -{%- set acronyms = c.acronyms() -%} -{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_attributes.ex" -%} +{%- set file_name = ctx.output ~ c.file_name(ctx.id) ~ "_attributes.ex" -%} {{ template.set_file_name(file_name) }} -{%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Attributes" -%} +{%- set module_name = ctx.id | pascal_case | acronym ~ "Attributes" -%} {%- if params.stability == "experimental" -%} {%- set module_namespace = "OpenTelemetry.SemConv.Incubating" -%} {%- else -%} @@ -17,7 +16,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for {{ c.format_acronym(ctx.id | title, acronyms) }} attributes. + OpenTelemetry Semantic Conventions for {{ ctx.id | title | acronym }} attributes. """ {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute.type is mapping %} @@ -30,7 +29,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do {%- if member is experimental %} ^[e](`m:OpenTelemetry.SemConv#experimental`)^{% endif %}{% if member.brief != none %} - {% if member is deprecated %}**deprecated** ~~{% endif %}{{ member.brief }}{% if member is deprecated %}~~{% endif %}{% endif %} {% endfor -%} """ - @type {{ attribute.name | snake_case_const }}_values() :: {{ c.enum_to_map(attribute.type.members) }} + @type {{ c.func_name(attribute.name) }}_values() :: {{ c.enum_to_map(attribute.type.members) }} {%- endif -%} {% if attribute is deprecated %} @@ -77,13 +76,13 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ attribute.name | snake_case_const | upper }}. + ?{{ c.erl_attr_name(attribute.name) }}. '{{ attribute.name }}' - ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'. + ?'{{ c.erl_attr_name(attribute.name) }}_VALUES.{{ attribute.type.members|first|attr('id') }}'. {{ attribute.type.members|first|attr('value') }} - {% raw %}\#{{% endraw %}?{{ attribute.name | snake_case_const | upper }} => ?'{{ attribute.name | snake_case_const | upper }}_VALUES.{{ attribute.type.members|first|attr('id') }}'{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}?{{ c.erl_attr_name(attribute.name) }} => ?'{{ c.erl_attr_name(attribute.name) }}_VALUES.{{ attribute.type.members|first|attr('id') }}'{% raw %}}{% endraw %}. {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} ``` {%- else %} @@ -96,7 +95,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ attribute.name | snake_case_const | upper }}. + ?{{ c.erl_attr_name(attribute.name) }}. '{{ attribute.name }}' ``` {%- endif %} @@ -110,7 +109,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do end {%- if attribute.type is mapping %} - @spec {{ c.func_name(attribute.name) }}_values() :: {{ attribute.name | snake_case_const }}_values() + @spec {{ c.func_name(attribute.name) }}_values() :: {{ c.func_name(attribute.name) }}_values() def {{ c.func_name(attribute.name) }}_values() do {{ c.enum_to_map(attribute.type.members) }} end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index 481053d4..0b545641 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -1,10 +1,9 @@ {#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} - {# {{ text | snake_case_const | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} + {# {{ text | snake_case | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} {%- import 'common.j2' as c %} -{%- set acronyms = c.acronyms() -%} -{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_metrics.ex" -%} +{%- set file_name = ctx.output ~ (ctx.id | pascal_case | acronym | lower) ~ "_metrics.hrl" -%} {%- set trim_blocks = true %} {%- set trim_lstrip_blocks = true %} {{ template.set_file_name(file_name) }} @@ -47,7 +46,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ metric.metric_name | snake_case_const | upper }}. + ?{{ metric.metric_name | snake_case | upper }}. '{{ metric.metric_name }}' ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index 89b9d97e..3a7cfb29 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -53,4 +53,4 @@ text_maps: "template[double[]]": "[float()]" "template[boolean[]]": "[boolean()]" -acronyms: ["iOS", "HTTP", "API", "SDK", "CLI", "URL", "JSON", "XML", "HTML", "TLS", "RPC", "OS", "OCI", "GCP", "FAAS", "DNS", "DB", "AWS" ] +acronyms: ["iOS", "HTTP", "API", "SDK", "CLI", "URL", "JSON", "XML", "HTML", "TLS", "RPC", "OS", "OCI", "GCP", "FAAS", "DNS", "DB", "AWS", "S3", "K8S" ] diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 index 8fe2a6db..9837f271 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 @@ -1,28 +1,15 @@ -{%- macro acronyms() -%} -["http", "url", "tls", "rpc", "os", "oci", "gcp", "faas", "dns", "db", "aws"] +{%- macro attr_name(text) -%} + {{ text | acronym | replace(".", "_") | upper }} {%- endmacro -%} -{%- macro func_name(text) -%} - {{ text | snake_case_const }} +{%- macro file_name(id) -%} + {{ id | pascal_case | acronym | lower }} {%- endmacro -%} {%- macro to_atom(text) -%} {% if text | split_id | length > 1 -%}:"{{ text }}"{%- else -%}:{{ text }}{%- endif %} {%- endmacro -%} -{% macro to_elixir_type(member) -%} - {%- if member.id == member.value -%} - {{ to_atom(member.value) }} - {%- else -%} - {{ member }} - {{ member.type | type_mapping }} - {%- endif -%} -{%- endmacro %} - -{%- macro enum_value_to_elixir_type(value) -%} - {%- if value is string %}{{ to_atom(value) }}{% else -%}{{ value }}{%- endif %} -{%- endmacro -%} - {%- macro enum_value_return_type(value) -%} {%- if value is string -%} atom() | String.t() @@ -53,22 +40,6 @@ {%- endif -%} {%- endmacro -%} -{%- macro enum_to_map(members) -%} - {% raw %}%{{% endraw %} - {% for member in members %} - {{ to_atom(member.id) }} => {{ enum_value_to_elixir_type(member.value) }}{% if not loop.last %},{% endif %} - {% endfor %} - {% raw %}}{% endraw %} -{%- endmacro -%} - {%- macro strong_reqs(string) -%} {{ string | replace(" MUST ", " **MUST** ") | replace(" MUST NOT ", " **MUST NOT** ") | replace(" SHOULD ", " **SHOULD** ") | replace(" SHOULD NOT ", " **SHOULD NOT** ") | replace(" MAY ", " **MAY** ") | replace(" NOT ", " **NOT** ") }} -{%- endmacro -%} - -{%- macro format_acronym(value, acronyms) -%} - {%- if value | lower in acronyms -%} - {{ value | upper }} - {%- else -%} - {{ value }} - {%- endif -%} {%- endmacro -%} \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index 64a3b1be..f58fad43 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -1,6 +1,5 @@ {%- import 'common.j2' as c %} -{%- set acronyms = c.acronyms() -%} -{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_attributes.hrl" -%} +{%- set file_name = ctx.output ~ c.file_name(ctx.id) ~ "_attributes.hrl" -%} {{ template.set_file_name(file_name) }} %%%------------------------------------------------------------------------ %% Copyright The OpenTelemetry Authors @@ -22,10 +21,10 @@ %% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ attribute.brief | replace("\n", "\n%% ") }} --define({{ attribute.name | snake_case_const | upper }}, '{{ attribute.name }}'). +-define({{ c.attr_name(attribute.name) }}, '{{ attribute.name }}'). {%- if attribute.type is mapping %} {% for member in attribute.type.members %} --define('{{ attribute.name | snake_case_const | upper }}_VALUES.{{ member.id }}', '{{ member.value }}'). +-define('{{ c.attr_name(attribute.name) }}_VALUES.{{ member.id }}', '{{ member.value }}'). {% endfor %} {%- endif %} {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 index bcc72d97..169b7e2a 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 @@ -1,6 +1,5 @@ {%- import 'common.j2' as c %} -{%- set acronyms = c.acronyms() -%} -{%- set file_name = ctx.output ~ (c.format_acronym(ctx.id | pascal_case, acronyms) | lower) ~ "_metrics.hrl" -%} +{%- set file_name = ctx.output ~ c.file_name(ctx.id) ~ "_metrics.hrl" -%} {{ template.set_file_name(file_name) }} %%%------------------------------------------------------------------------ %% Copyright The OpenTelemetry Authors @@ -22,5 +21,5 @@ %% @deprecated {{ metric.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ metric.brief | replace("\n", "\n%% ") }} --define({{ metric.metric_name | snake_case_const | upper }}, '{{ metric.metric_name }}'). +-define({{ c.attr_name(metric.metric_name) }}, '{{ metric.metric_name }}'). {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index 99122e77..201b244e 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -35,6 +35,8 @@ templates: | map(select(.metrics | length > 0)) application_mode: each +acronyms: ["iOS", "HTTP", "API", "SDK", "CLI", "URL", "JSON", "XML", "HTML", "TLS", "RPC", "OS", "OCI", "GCP", "FAAS", "DNS", "DB", "AWS", "S3", "K8S" ] + text_maps: erlang_types: "int": "integer()" From b7c8f17e1a219d598d695a87657429543fedf58d Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 16:11:12 -0600 Subject: [PATCH 39/57] Set up attr filtering for name collision --- .../lib/incubating/messaging_attributes.ex | 8 -------- .../templates/registry/elixir/weaver.yaml | 3 ++- .../templates/registry/erlang/weaver.yaml | 3 ++- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index aa02bf89..a3403fd7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -73,14 +73,6 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.client.id" end - @deprecated """ - Replaced by `messaging.client.id`. - """ - @spec messaging_clientid :: :"messaging.client_id" - def messaging_clientid do - :"messaging.client_id" - end - @doc """ A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). ### Value type diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index 3a7cfb29..09dca3bf 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -1,6 +1,7 @@ params: stability: "stable" excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js"] + excluded_attrs: ["messaging.client_id"] templates: - pattern: semantic_attributes.ex.j2 @@ -13,7 +14,7 @@ templates: | group_by(.group_id) | map({ id: .[0].group_id, - attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id), + attributes: [.[].attributes[] | select(.stability == $stability) | (select( .name as $id | any( $excluded_attrs[]; . == $id ) | not ))] | sort_by(.id), output: $output }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index 201b244e..a38443bc 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -1,6 +1,7 @@ params: stability: "stable" excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js"] + excluded_attrs: ["messaging.client_id"] templates: - pattern: semantic_attributes.hrl.j2 @@ -13,7 +14,7 @@ templates: | group_by(.group_id) | map({ id: .[0].group_id, - attributes: [.[].attributes[] | select(.stability == $stability)] | sort_by(.id), + attributes: [.[].attributes[] | select(.stability == $stability) | (select( .name as $id | any( $excluded_attrs[]; . == $id ) | not ))] | sort_by(.id), output: $output }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) From aeea23bb19c443e0a34a2a3a906b0ccd02ad61c7 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 20:23:40 -0600 Subject: [PATCH 40/57] Fix elixir metrics tmpl --- .../incubating/metrics/container_metrics.hrl | 131 --- .../lib/incubating/metrics/db_metrics.hrl | 367 -------- .../lib/incubating/metrics/dns_metrics.hrl | 34 - .../lib/incubating/metrics/faas_metrics.hrl | 250 ------ .../lib/incubating/metrics/http_metrics.hrl | 239 ----- .../incubating/metrics/messaging_metrics.hrl | 169 ---- .../incubating/metrics/process_metrics.hrl | 277 ------ .../lib/incubating/metrics/rpc_metrics.hrl | 331 ------- .../lib/incubating/metrics/system_metrics.hrl | 817 ------------------ .../lib/metrics/http_metrics.hrl | 61 -- .../registry/elixir/semantic_attributes.ex.j2 | 4 - .../registry/elixir/semantic_metrics.ex.j2 | 10 +- 12 files changed, 3 insertions(+), 2687 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl deleted file mode 100644 index a9cd4f9d..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.hrl +++ /dev/null @@ -1,131 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Container metrics. - """ - @doc """ - Total CPU time consumed - - Instrument: `counter` - Unit: `s` - ### Notes - - Total CPU time consumed by the specific container on all available CPU cores - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_cpu_time() - :"container.cpu.time" - - ### Erlang - - ```erlang - ?CONTAINER_CPU_TIME. - 'container.cpu.time' - ``` - - - """ - - @spec container_cpu_time :: :"container.cpu.time" - def container_cpu_time do - :"container.cpu.time" - end - - @doc """ - Disk bytes for the container. - - Instrument: `counter` - Unit: `By` - ### Notes - - The total number of bytes read/written successfully (aggregated from all disks). - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_disk_io() - :"container.disk.io" - - ### Erlang - - ```erlang - ?CONTAINER_DISK_IO. - 'container.disk.io' - ``` - - - """ - - @spec container_disk_io :: :"container.disk.io" - def container_disk_io do - :"container.disk.io" - end - - @doc """ - Memory usage of the container. - - Instrument: `counter` - Unit: `By` - ### Notes - - Memory usage of the container. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_memory_usage() - :"container.memory.usage" - - ### Erlang - - ```erlang - ?CONTAINER_MEMORY_USAGE. - 'container.memory.usage' - ``` - - - """ - - @spec container_memory_usage :: :"container.memory.usage" - def container_memory_usage do - :"container.memory.usage" - end - - @doc """ - Network bytes for the container. - - Instrument: `counter` - Unit: `By` - ### Notes - - The number of bytes sent/received on all network interfaces by the container. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics.container_network_io() - :"container.network.io" - - ### Erlang - - ```erlang - ?CONTAINER_NETWORK_IO. - 'container.network.io' - ``` - - - """ - - @spec container_network_io :: :"container.network.io" - def container_network_io do - :"container.network.io" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl deleted file mode 100644 index 0dbb9888..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.hrl +++ /dev/null @@ -1,367 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Db metrics. - """ - @doc """ - The number of connections that are currently in state described by the `state` attribute - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_count() - :"db.client.connection.count" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_COUNT. - 'db.client.connection.count' - ``` - - - """ - - @spec db_client_connection_count :: :"db.client.connection.count" - def db_client_connection_count do - :"db.client.connection.count" - end - - @doc """ - The time it took to create a new connection - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_create_time() - :"db.client.connection.create_time" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_CREATE_TIME. - 'db.client.connection.create_time' - ``` - - - """ - - @spec db_client_connection_create_time :: :"db.client.connection.create_time" - def db_client_connection_create_time do - :"db.client.connection.create_time" - end - - @doc """ - The maximum number of idle open connections allowed - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_max() - :"db.client.connection.idle.max" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_IDLE_MAX. - 'db.client.connection.idle.max' - ``` - - - """ - - @spec db_client_connection_idle_max :: :"db.client.connection.idle.max" - def db_client_connection_idle_max do - :"db.client.connection.idle.max" - end - - @doc """ - The minimum number of idle open connections allowed - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_idle_min() - :"db.client.connection.idle.min" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_IDLE_MIN. - 'db.client.connection.idle.min' - ``` - - - """ - - @spec db_client_connection_idle_min :: :"db.client.connection.idle.min" - def db_client_connection_idle_min do - :"db.client.connection.idle.min" - end - - @doc """ - The maximum number of open connections allowed - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_max() - :"db.client.connection.max" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_MAX. - 'db.client.connection.max' - ``` - - - """ - - @spec db_client_connection_max :: :"db.client.connection.max" - def db_client_connection_max do - :"db.client.connection.max" - end - - @doc """ - The number of pending requests for an open connection, cumulative for the entire pool - - Instrument: `updowncounter` - Unit: `{request}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_pending_requests() - :"db.client.connection.pending_requests" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_PENDING_REQUESTS. - 'db.client.connection.pending_requests' - ``` - - - """ - - @spec db_client_connection_pending_requests :: :"db.client.connection.pending_requests" - def db_client_connection_pending_requests do - :"db.client.connection.pending_requests" - end - - @doc """ - The number of connection timeouts that have occurred trying to obtain a connection from the pool - - Instrument: `counter` - Unit: `{timeout}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_timeouts() - :"db.client.connection.timeouts" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_TIMEOUTS. - 'db.client.connection.timeouts' - ``` - - - """ - - @spec db_client_connection_timeouts :: :"db.client.connection.timeouts" - def db_client_connection_timeouts do - :"db.client.connection.timeouts" - end - - @doc """ - The time between borrowing a connection and returning it to the pool - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_use_time() - :"db.client.connection.use_time" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_USE_TIME. - 'db.client.connection.use_time' - ``` - - - """ - - @spec db_client_connection_use_time :: :"db.client.connection.use_time" - def db_client_connection_use_time do - :"db.client.connection.use_time" - end - - @doc """ - The time it took to obtain an open connection from the pool - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_connection_wait_time() - :"db.client.connection.wait_time" - - ### Erlang - - ```erlang - ?DB_CLIENT_CONNECTION_WAIT_TIME. - 'db.client.connection.wait_time' - ``` - - - """ - - @spec db_client_connection_wait_time :: :"db.client.connection.wait_time" - def db_client_connection_wait_time do - :"db.client.connection.wait_time" - end - - - @deprecated """ - Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. - """ - - @spec db_client_connections_create_time :: :"db.client.connections.create_time" - def db_client_connections_create_time do - :"db.client.connections.create_time" - end - - - @deprecated """ - Replaced by `db.client.connection.idle.max`. - """ - - @spec db_client_connections_idle_max :: :"db.client.connections.idle.max" - def db_client_connections_idle_max do - :"db.client.connections.idle.max" - end - - - @deprecated """ - Replaced by `db.client.connection.idle.min`. - """ - - @spec db_client_connections_idle_min :: :"db.client.connections.idle.min" - def db_client_connections_idle_min do - :"db.client.connections.idle.min" - end - - - @deprecated """ - Replaced by `db.client.connection.max`. - """ - - @spec db_client_connections_max :: :"db.client.connections.max" - def db_client_connections_max do - :"db.client.connections.max" - end - - - @deprecated """ - Replaced by `db.client.connection.pending_requests`. - """ - - @spec db_client_connections_pending_requests :: :"db.client.connections.pending_requests" - def db_client_connections_pending_requests do - :"db.client.connections.pending_requests" - end - - - @deprecated """ - Replaced by `db.client.connection.timeouts`. - """ - - @spec db_client_connections_timeouts :: :"db.client.connections.timeouts" - def db_client_connections_timeouts do - :"db.client.connections.timeouts" - end - - - @deprecated """ - Replaced by `db.client.connection.count`. - """ - - @spec db_client_connections_usage :: :"db.client.connections.usage" - def db_client_connections_usage do - :"db.client.connections.usage" - end - - - @deprecated """ - Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. - """ - - @spec db_client_connections_use_time :: :"db.client.connections.use_time" - def db_client_connections_use_time do - :"db.client.connections.use_time" - end - - - @deprecated """ - Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. - """ - - @spec db_client_connections_wait_time :: :"db.client.connections.wait_time" - def db_client_connections_wait_time do - :"db.client.connections.wait_time" - end - - @doc """ - Duration of database client operations. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DbMetrics.db_client_operation_duration() - :"db.client.operation.duration" - - ### Erlang - - ```erlang - ?DB_CLIENT_OPERATION_DURATION. - 'db.client.operation.duration' - ``` - - - """ - - @spec db_client_operation_duration :: :"db.client.operation.duration" - def db_client_operation_duration do - :"db.client.operation.duration" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl deleted file mode 100644 index d4de68cb..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.hrl +++ /dev/null @@ -1,34 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Dns metrics. - """ - @doc """ - Measures the time taken to perform a DNS lookup. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.DnsMetrics.dns_lookup_duration() - :"dns.lookup.duration" - - ### Erlang - - ```erlang - ?DNS_LOOKUP_DURATION. - 'dns.lookup.duration' - ``` - - - """ - - @spec dns_lookup_duration :: :"dns.lookup.duration" - def dns_lookup_duration do - :"dns.lookup.duration" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl deleted file mode 100644 index 3d4c5bef..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.hrl +++ /dev/null @@ -1,250 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Faas metrics. - """ - @doc """ - Number of invocation cold starts - - Instrument: `counter` - Unit: `{coldstart}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_coldstarts() - :"faas.coldstarts" - - ### Erlang - - ```erlang - ?FAAS_COLDSTARTS. - 'faas.coldstarts' - ``` - - - """ - - @spec faas_coldstarts :: :"faas.coldstarts" - def faas_coldstarts do - :"faas.coldstarts" - end - - @doc """ - Distribution of CPU usage per invocation - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_cpu_usage() - :"faas.cpu_usage" - - ### Erlang - - ```erlang - ?FAAS_CPU_USAGE. - 'faas.cpu_usage' - ``` - - - """ - - @spec faas_cpu_usage :: :"faas.cpu_usage" - def faas_cpu_usage do - :"faas.cpu_usage" - end - - @doc """ - Number of invocation errors - - Instrument: `counter` - Unit: `{error}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_errors() - :"faas.errors" - - ### Erlang - - ```erlang - ?FAAS_ERRORS. - 'faas.errors' - ``` - - - """ - - @spec faas_errors :: :"faas.errors" - def faas_errors do - :"faas.errors" - end - - @doc """ - Measures the duration of the function's initialization, such as a cold start - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_init_duration() - :"faas.init_duration" - - ### Erlang - - ```erlang - ?FAAS_INIT_DURATION. - 'faas.init_duration' - ``` - - - """ - - @spec faas_init_duration :: :"faas.init_duration" - def faas_init_duration do - :"faas.init_duration" - end - - @doc """ - Number of successful invocations - - Instrument: `counter` - Unit: `{invocation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invocations() - :"faas.invocations" - - ### Erlang - - ```erlang - ?FAAS_INVOCATIONS. - 'faas.invocations' - ``` - - - """ - - @spec faas_invocations :: :"faas.invocations" - def faas_invocations do - :"faas.invocations" - end - - @doc """ - Measures the duration of the function's logic execution - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_invoke_duration() - :"faas.invoke_duration" - - ### Erlang - - ```erlang - ?FAAS_INVOKE_DURATION. - 'faas.invoke_duration' - ``` - - - """ - - @spec faas_invoke_duration :: :"faas.invoke_duration" - def faas_invoke_duration do - :"faas.invoke_duration" - end - - @doc """ - Distribution of max memory usage per invocation - - Instrument: `histogram` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_mem_usage() - :"faas.mem_usage" - - ### Erlang - - ```erlang - ?FAAS_MEM_USAGE. - 'faas.mem_usage' - ``` - - - """ - - @spec faas_mem_usage :: :"faas.mem_usage" - def faas_mem_usage do - :"faas.mem_usage" - end - - @doc """ - Distribution of net I/O usage per invocation - - Instrument: `histogram` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_net_io() - :"faas.net_io" - - ### Erlang - - ```erlang - ?FAAS_NET_IO. - 'faas.net_io' - ``` - - - """ - - @spec faas_net_io :: :"faas.net_io" - def faas_net_io do - :"faas.net_io" - end - - @doc """ - Number of invocation timeouts - - Instrument: `counter` - Unit: `{timeout}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.FaasMetrics.faas_timeouts() - :"faas.timeouts" - - ### Erlang - - ```erlang - ?FAAS_TIMEOUTS. - 'faas.timeouts' - ``` - - - """ - - @spec faas_timeouts :: :"faas.timeouts" - def faas_timeouts do - :"faas.timeouts" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl deleted file mode 100644 index 14a87675..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.hrl +++ /dev/null @@ -1,239 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Http metrics. - """ - @doc """ - Number of active HTTP requests. - - Instrument: `updowncounter` - Unit: `{request}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_active_requests() - :"http.client.active_requests" - - ### Erlang - - ```erlang - ?HTTP_CLIENT_ACTIVE_REQUESTS. - 'http.client.active_requests' - ``` - - - """ - - @spec http_client_active_requests :: :"http.client.active_requests" - def http_client_active_requests do - :"http.client.active_requests" - end - - @doc """ - The duration of the successfully established outbound HTTP connections. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_connection_duration() - :"http.client.connection.duration" - - ### Erlang - - ```erlang - ?HTTP_CLIENT_CONNECTION_DURATION. - 'http.client.connection.duration' - ``` - - - """ - - @spec http_client_connection_duration :: :"http.client.connection.duration" - def http_client_connection_duration do - :"http.client.connection.duration" - end - - @doc """ - Number of outbound HTTP connections that are currently active or idle on the client. - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_open_connections() - :"http.client.open_connections" - - ### Erlang - - ```erlang - ?HTTP_CLIENT_OPEN_CONNECTIONS. - 'http.client.open_connections' - ``` - - - """ - - @spec http_client_open_connections :: :"http.client.open_connections" - def http_client_open_connections do - :"http.client.open_connections" - end - - @doc """ - Size of HTTP client request bodies. - - Instrument: `histogram` - Unit: `By` - ### Notes - - 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. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_request_body_size() - :"http.client.request.body.size" - - ### Erlang - - ```erlang - ?HTTP_CLIENT_REQUEST_BODY_SIZE. - 'http.client.request.body.size' - ``` - - - """ - - @spec http_client_request_body_size :: :"http.client.request.body.size" - def http_client_request_body_size do - :"http.client.request.body.size" - end - - @doc """ - Size of HTTP client response bodies. - - Instrument: `histogram` - Unit: `By` - ### Notes - - 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. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_client_response_body_size() - :"http.client.response.body.size" - - ### Erlang - - ```erlang - ?HTTP_CLIENT_RESPONSE_BODY_SIZE. - 'http.client.response.body.size' - ``` - - - """ - - @spec http_client_response_body_size :: :"http.client.response.body.size" - def http_client_response_body_size do - :"http.client.response.body.size" - end - - @doc """ - Number of active HTTP server requests. - - Instrument: `updowncounter` - Unit: `{request}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_active_requests() - :"http.server.active_requests" - - ### Erlang - - ```erlang - ?HTTP_SERVER_ACTIVE_REQUESTS. - 'http.server.active_requests' - ``` - - - """ - - @spec http_server_active_requests :: :"http.server.active_requests" - def http_server_active_requests do - :"http.server.active_requests" - end - - @doc """ - Size of HTTP server request bodies. - - Instrument: `histogram` - Unit: `By` - ### Notes - - 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. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_request_body_size() - :"http.server.request.body.size" - - ### Erlang - - ```erlang - ?HTTP_SERVER_REQUEST_BODY_SIZE. - 'http.server.request.body.size' - ``` - - - """ - - @spec http_server_request_body_size :: :"http.server.request.body.size" - def http_server_request_body_size do - :"http.server.request.body.size" - end - - @doc """ - Size of HTTP server response bodies. - - Instrument: `histogram` - Unit: `By` - ### Notes - - 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. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.HttpMetrics.http_server_response_body_size() - :"http.server.response.body.size" - - ### Erlang - - ```erlang - ?HTTP_SERVER_RESPONSE_BODY_SIZE. - 'http.server.response.body.size' - ``` - - - """ - - @spec http_server_response_body_size :: :"http.server.response.body.size" - def http_server_response_body_size do - :"http.server.response.body.size" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl deleted file mode 100644 index 6e79461c..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.hrl +++ /dev/null @@ -1,169 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Messaging metrics. - """ - @doc """ - Measures the duration of process operation. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_duration() - :"messaging.process.duration" - - ### Erlang - - ```erlang - ?MESSAGING_PROCESS_DURATION. - 'messaging.process.duration' - ``` - - - """ - - @spec messaging_process_duration :: :"messaging.process.duration" - def messaging_process_duration do - :"messaging.process.duration" - end - - @doc """ - Measures the number of processed messages. - - Instrument: `counter` - Unit: `{message}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_messages() - :"messaging.process.messages" - - ### Erlang - - ```erlang - ?MESSAGING_PROCESS_MESSAGES. - 'messaging.process.messages' - ``` - - - """ - - @spec messaging_process_messages :: :"messaging.process.messages" - def messaging_process_messages do - :"messaging.process.messages" - end - - @doc """ - Measures the duration of publish operation. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_duration() - :"messaging.publish.duration" - - ### Erlang - - ```erlang - ?MESSAGING_PUBLISH_DURATION. - 'messaging.publish.duration' - ``` - - - """ - - @spec messaging_publish_duration :: :"messaging.publish.duration" - def messaging_publish_duration do - :"messaging.publish.duration" - end - - @doc """ - Measures the number of published messages. - - Instrument: `counter` - Unit: `{message}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_messages() - :"messaging.publish.messages" - - ### Erlang - - ```erlang - ?MESSAGING_PUBLISH_MESSAGES. - 'messaging.publish.messages' - ``` - - - """ - - @spec messaging_publish_messages :: :"messaging.publish.messages" - def messaging_publish_messages do - :"messaging.publish.messages" - end - - @doc """ - Measures the duration of receive operation. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_duration() - :"messaging.receive.duration" - - ### Erlang - - ```erlang - ?MESSAGING_RECEIVE_DURATION. - 'messaging.receive.duration' - ``` - - - """ - - @spec messaging_receive_duration :: :"messaging.receive.duration" - def messaging_receive_duration do - :"messaging.receive.duration" - end - - @doc """ - Measures the number of received messages. - - Instrument: `counter` - Unit: `{message}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_messages() - :"messaging.receive.messages" - - ### Erlang - - ```erlang - ?MESSAGING_RECEIVE_MESSAGES. - 'messaging.receive.messages' - ``` - - - """ - - @spec messaging_receive_messages :: :"messaging.receive.messages" - def messaging_receive_messages do - :"messaging.receive.messages" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl deleted file mode 100644 index 58c342b3..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.hrl +++ /dev/null @@ -1,277 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Process metrics. - """ - @doc """ - Number of times the process has been context switched. - - Instrument: `counter` - Unit: `{count}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_context_switches() - :"process.context_switches" - - ### Erlang - - ```erlang - ?PROCESS_CONTEXT_SWITCHES. - 'process.context_switches' - ``` - - - """ - - @spec process_context_switches :: :"process.context_switches" - def process_context_switches do - :"process.context_switches" - end - - @doc """ - Total CPU seconds broken down by different states. - - Instrument: `counter` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_cpu_time() - :"process.cpu.time" - - ### Erlang - - ```erlang - ?PROCESS_CPU_TIME. - 'process.cpu.time' - ``` - - - """ - - @spec process_cpu_time :: :"process.cpu.time" - def process_cpu_time do - :"process.cpu.time" - end - - @doc """ - Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_cpu_utilization() - :"process.cpu.utilization" - - ### Erlang - - ```erlang - ?PROCESS_CPU_UTILIZATION. - 'process.cpu.utilization' - ``` - - - """ - - @spec process_cpu_utilization :: :"process.cpu.utilization" - def process_cpu_utilization do - :"process.cpu.utilization" - end - - @doc """ - Disk bytes transferred. - - Instrument: `counter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_disk_io() - :"process.disk.io" - - ### Erlang - - ```erlang - ?PROCESS_DISK_IO. - 'process.disk.io' - ``` - - - """ - - @spec process_disk_io :: :"process.disk.io" - def process_disk_io do - :"process.disk.io" - end - - @doc """ - The amount of physical memory in use. - - Instrument: `updowncounter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_memory_usage() - :"process.memory.usage" - - ### Erlang - - ```erlang - ?PROCESS_MEMORY_USAGE. - 'process.memory.usage' - ``` - - - """ - - @spec process_memory_usage :: :"process.memory.usage" - def process_memory_usage do - :"process.memory.usage" - end - - @doc """ - The amount of committed virtual memory. - - Instrument: `updowncounter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_memory_virtual() - :"process.memory.virtual" - - ### Erlang - - ```erlang - ?PROCESS_MEMORY_VIRTUAL. - 'process.memory.virtual' - ``` - - - """ - - @spec process_memory_virtual :: :"process.memory.virtual" - def process_memory_virtual do - :"process.memory.virtual" - end - - @doc """ - Network bytes transferred. - - Instrument: `counter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_network_io() - :"process.network.io" - - ### Erlang - - ```erlang - ?PROCESS_NETWORK_IO. - 'process.network.io' - ``` - - - """ - - @spec process_network_io :: :"process.network.io" - def process_network_io do - :"process.network.io" - end - - @doc """ - Number of file descriptors in use by the process. - - Instrument: `updowncounter` - Unit: `{count}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_open_file_descriptor_count() - :"process.open_file_descriptor.count" - - ### Erlang - - ```erlang - ?PROCESS_OPEN_FILE_DESCRIPTOR_COUNT. - 'process.open_file_descriptor.count' - ``` - - - """ - - @spec process_open_file_descriptor_count :: :"process.open_file_descriptor.count" - def process_open_file_descriptor_count do - :"process.open_file_descriptor.count" - end - - @doc """ - Number of page faults the process has made. - - Instrument: `counter` - Unit: `{fault}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_paging_faults() - :"process.paging.faults" - - ### Erlang - - ```erlang - ?PROCESS_PAGING_FAULTS. - 'process.paging.faults' - ``` - - - """ - - @spec process_paging_faults :: :"process.paging.faults" - def process_paging_faults do - :"process.paging.faults" - end - - @doc """ - Process threads count. - - Instrument: `updowncounter` - Unit: `{thread}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics.process_thread_count() - :"process.thread.count" - - ### Erlang - - ```erlang - ?PROCESS_THREAD_COUNT. - 'process.thread.count' - ``` - - - """ - - @spec process_thread_count :: :"process.thread.count" - def process_thread_count do - :"process.thread.count" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl deleted file mode 100644 index 46200183..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.hrl +++ /dev/null @@ -1,331 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Rpc metrics. - """ - @doc """ - Measures the duration of outbound RPC. - - Instrument: `histogram` - Unit: `ms` - ### Notes - - While streaming RPCs may record this metric as start-of-batch - to end-of-batch, it's hard to interpret in practice. - - **Streaming**: N/A. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_duration() - :"rpc.client.duration" - - ### Erlang - - ```erlang - ?RPC_CLIENT_DURATION. - 'rpc.client.duration' - ``` - - - """ - - @spec rpc_client_duration :: :"rpc.client.duration" - def rpc_client_duration do - :"rpc.client.duration" - end - - @doc """ - Measures the size of RPC request messages (uncompressed). - - Instrument: `histogram` - Unit: `By` - ### Notes - - **Streaming**: Recorded per message in a streaming batch - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_request_size() - :"rpc.client.request.size" - - ### Erlang - - ```erlang - ?RPC_CLIENT_REQUEST_SIZE. - 'rpc.client.request.size' - ``` - - - """ - - @spec rpc_client_request_size :: :"rpc.client.request.size" - def rpc_client_request_size do - :"rpc.client.request.size" - end - - @doc """ - Measures the number of messages received per RPC. - - Instrument: `histogram` - Unit: `{count}` - ### Notes - - Should be 1 for all non-streaming RPCs. - - **Streaming**: This metric is required for server and client streaming RPCs - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_requests_per_rpc() - :"rpc.client.requests_per_rpc" - - ### Erlang - - ```erlang - ?RPC_CLIENT_REQUESTS_PER_RPC. - 'rpc.client.requests_per_rpc' - ``` - - - """ - - @spec rpc_client_requests_per_rpc :: :"rpc.client.requests_per_rpc" - def rpc_client_requests_per_rpc do - :"rpc.client.requests_per_rpc" - end - - @doc """ - Measures the size of RPC response messages (uncompressed). - - Instrument: `histogram` - Unit: `By` - ### Notes - - **Streaming**: Recorded per response in a streaming batch - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_response_size() - :"rpc.client.response.size" - - ### Erlang - - ```erlang - ?RPC_CLIENT_RESPONSE_SIZE. - 'rpc.client.response.size' - ``` - - - """ - - @spec rpc_client_response_size :: :"rpc.client.response.size" - def rpc_client_response_size do - :"rpc.client.response.size" - end - - @doc """ - Measures the number of messages sent per RPC. - - Instrument: `histogram` - Unit: `{count}` - ### Notes - - Should be 1 for all non-streaming RPCs. - - **Streaming**: This metric is required for server and client streaming RPCs - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_client_responses_per_rpc() - :"rpc.client.responses_per_rpc" - - ### Erlang - - ```erlang - ?RPC_CLIENT_RESPONSES_PER_RPC. - 'rpc.client.responses_per_rpc' - ``` - - - """ - - @spec rpc_client_responses_per_rpc :: :"rpc.client.responses_per_rpc" - def rpc_client_responses_per_rpc do - :"rpc.client.responses_per_rpc" - end - - @doc """ - Measures the duration of inbound RPC. - - Instrument: `histogram` - Unit: `ms` - ### Notes - - While streaming RPCs may record this metric as start-of-batch - to end-of-batch, it's hard to interpret in practice. - - **Streaming**: N/A. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_duration() - :"rpc.server.duration" - - ### Erlang - - ```erlang - ?RPC_SERVER_DURATION. - 'rpc.server.duration' - ``` - - - """ - - @spec rpc_server_duration :: :"rpc.server.duration" - def rpc_server_duration do - :"rpc.server.duration" - end - - @doc """ - Measures the size of RPC request messages (uncompressed). - - Instrument: `histogram` - Unit: `By` - ### Notes - - **Streaming**: Recorded per message in a streaming batch - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_request_size() - :"rpc.server.request.size" - - ### Erlang - - ```erlang - ?RPC_SERVER_REQUEST_SIZE. - 'rpc.server.request.size' - ``` - - - """ - - @spec rpc_server_request_size :: :"rpc.server.request.size" - def rpc_server_request_size do - :"rpc.server.request.size" - end - - @doc """ - Measures the number of messages received per RPC. - - Instrument: `histogram` - Unit: `{count}` - ### Notes - - Should be 1 for all non-streaming RPCs. - - **Streaming** : This metric is required for server and client streaming RPCs - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_requests_per_rpc() - :"rpc.server.requests_per_rpc" - - ### Erlang - - ```erlang - ?RPC_SERVER_REQUESTS_PER_RPC. - 'rpc.server.requests_per_rpc' - ``` - - - """ - - @spec rpc_server_requests_per_rpc :: :"rpc.server.requests_per_rpc" - def rpc_server_requests_per_rpc do - :"rpc.server.requests_per_rpc" - end - - @doc """ - Measures the size of RPC response messages (uncompressed). - - Instrument: `histogram` - Unit: `By` - ### Notes - - **Streaming**: Recorded per response in a streaming batch - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_response_size() - :"rpc.server.response.size" - - ### Erlang - - ```erlang - ?RPC_SERVER_RESPONSE_SIZE. - 'rpc.server.response.size' - ``` - - - """ - - @spec rpc_server_response_size :: :"rpc.server.response.size" - def rpc_server_response_size do - :"rpc.server.response.size" - end - - @doc """ - Measures the number of messages sent per RPC. - - Instrument: `histogram` - Unit: `{count}` - ### Notes - - Should be 1 for all non-streaming RPCs. - - **Streaming**: This metric is required for server and client streaming RPCs - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.RpcMetrics.rpc_server_responses_per_rpc() - :"rpc.server.responses_per_rpc" - - ### Erlang - - ```erlang - ?RPC_SERVER_RESPONSES_PER_RPC. - 'rpc.server.responses_per_rpc' - ``` - - - """ - - @spec rpc_server_responses_per_rpc :: :"rpc.server.responses_per_rpc" - def rpc_server_responses_per_rpc do - :"rpc.server.responses_per_rpc" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl deleted file mode 100644 index 25f480a9..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.hrl +++ /dev/null @@ -1,817 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for System metrics. - """ - @doc """ - Reports the current frequency of the CPU in Hz - - Instrument: `gauge` - Unit: `{Hz}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_frequency() - :"system.cpu.frequency" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_FREQUENCY. - 'system.cpu.frequency' - ``` - - - """ - - @spec system_cpu_frequency :: :"system.cpu.frequency" - def system_cpu_frequency do - :"system.cpu.frequency" - end - - @doc """ - Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking - - Instrument: `updowncounter` - Unit: `{cpu}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_logical_count() - :"system.cpu.logical.count" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_LOGICAL_COUNT. - 'system.cpu.logical.count' - ``` - - - """ - - @spec system_cpu_logical_count :: :"system.cpu.logical.count" - def system_cpu_logical_count do - :"system.cpu.logical.count" - end - - @doc """ - Reports the number of actual physical processor cores on the hardware - - Instrument: `updowncounter` - Unit: `{cpu}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_physical_count() - :"system.cpu.physical.count" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_PHYSICAL_COUNT. - 'system.cpu.physical.count' - ``` - - - """ - - @spec system_cpu_physical_count :: :"system.cpu.physical.count" - def system_cpu_physical_count do - :"system.cpu.physical.count" - end - - @doc """ - Seconds each logical CPU spent on each mode - - Instrument: `counter` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_time() - :"system.cpu.time" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_TIME. - 'system.cpu.time' - ``` - - - """ - - @spec system_cpu_time :: :"system.cpu.time" - def system_cpu_time do - :"system.cpu.time" - end - - @doc """ - Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_utilization() - :"system.cpu.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_UTILIZATION. - 'system.cpu.utilization' - ``` - - - """ - - @spec system_cpu_utilization :: :"system.cpu.utilization" - def system_cpu_utilization do - :"system.cpu.utilization" - end - - @doc """ - none - - Instrument: `counter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io() - :"system.disk.io" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_IO. - 'system.disk.io' - ``` - - - """ - - @spec system_disk_io :: :"system.disk.io" - def system_disk_io do - :"system.disk.io" - end - - @doc """ - Time disk spent activated - - Instrument: `counter` - Unit: `s` - ### Notes - - The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as: - - - Linux: Field 13 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) - - Windows: The complement of - ["Disk\% Idle Time"](https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained) - performance counter: `uptime * (100 - "Disk\% Idle Time") / 100` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io_time() - :"system.disk.io_time" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_IO_TIME. - 'system.disk.io_time' - ``` - - - """ - - @spec system_disk_io_time :: :"system.disk.io_time" - def system_disk_io_time do - :"system.disk.io_time" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{operation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_merged() - :"system.disk.merged" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_MERGED. - 'system.disk.merged' - ``` - - - """ - - @spec system_disk_merged :: :"system.disk.merged" - def system_disk_merged do - :"system.disk.merged" - end - - @doc """ - Sum of the time each operation took to complete - - Instrument: `counter` - Unit: `s` - ### Notes - - Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as: - - - Linux: Fields 7 & 11 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) - - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec" perf counter (similar for Writes) - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operation_time() - :"system.disk.operation_time" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_OPERATION_TIME. - 'system.disk.operation_time' - ``` - - - """ - - @spec system_disk_operation_time :: :"system.disk.operation_time" - def system_disk_operation_time do - :"system.disk.operation_time" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{operation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operations() - :"system.disk.operations" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_OPERATIONS. - 'system.disk.operations' - ``` - - - """ - - @spec system_disk_operations :: :"system.disk.operations" - def system_disk_operations do - :"system.disk.operations" - end - - @doc """ - none - - Instrument: `updowncounter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_usage() - :"system.filesystem.usage" - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_USAGE. - 'system.filesystem.usage' - ``` - - - """ - - @spec system_filesystem_usage :: :"system.filesystem.usage" - def system_filesystem_usage do - :"system.filesystem.usage" - end - - @doc """ - none - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_utilization() - :"system.filesystem.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_UTILIZATION. - 'system.filesystem.utilization' - ``` - - - """ - - @spec system_filesystem_utilization :: :"system.filesystem.utilization" - def system_filesystem_utilization do - :"system.filesystem.utilization" - end - - @doc """ - An estimate of how much memory is available for starting new applications, without causing swapping - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - 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. - This is supposed to be more accurate than just "free" memory. - For reference, see the calculations [here](https://superuser.com/a/980821). - See also `MemAvailable` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_linux_memory_available() - :"system.linux.memory.available" - - ### Erlang - - ```erlang - ?SYSTEM_LINUX_MEMORY_AVAILABLE. - 'system.linux.memory.available' - ``` - - - """ - - @spec system_linux_memory_available :: :"system.linux.memory.available" - def system_linux_memory_available do - :"system.linux.memory.available" - end - - @doc """ - Total memory available in the system. - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - Its value **SHOULD** equal the sum of `system.memory.state` over all states. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_limit() - :"system.memory.limit" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_LIMIT. - 'system.memory.limit' - ``` - - - """ - - @spec system_memory_limit :: :"system.memory.limit" - def system_memory_limit do - :"system.memory.limit" - end - - @doc """ - Shared memory used (mostly by tmpfs). - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - Equivalent of `shared` from [`free` command](https://man7.org/linux/man-pages/man1/free.1.html) or - `Shmem` from [`/proc/meminfo`](https://man7.org/linux/man-pages/man5/proc.5.html)" - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_shared() - :"system.memory.shared" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_SHARED. - 'system.memory.shared' - ``` - - - """ - - @spec system_memory_shared :: :"system.memory.shared" - def system_memory_shared do - :"system.memory.shared" - end - - @doc """ - Reports memory in use by state. - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - The sum over all `system.memory.state` values **SHOULD** equal the total memory - available on the system, that is `system.memory.limit`. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_usage() - :"system.memory.usage" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_USAGE. - 'system.memory.usage' - ``` - - - """ - - @spec system_memory_usage :: :"system.memory.usage" - def system_memory_usage do - :"system.memory.usage" - end - - @doc """ - none - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_utilization() - :"system.memory.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_UTILIZATION. - 'system.memory.utilization' - ``` - - - """ - - @spec system_memory_utilization :: :"system.memory.utilization" - def system_memory_utilization do - :"system.memory.utilization" - end - - @doc """ - none - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_connections() - :"system.network.connections" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_CONNECTIONS. - 'system.network.connections' - ``` - - - """ - - @spec system_network_connections :: :"system.network.connections" - def system_network_connections do - :"system.network.connections" - end - - @doc """ - Count of packets that are dropped or discarded even though there was no error - - Instrument: `counter` - Unit: `{packet}` - ### Notes - - 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) - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_dropped() - :"system.network.dropped" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_DROPPED. - 'system.network.dropped' - ``` - - - """ - - @spec system_network_dropped :: :"system.network.dropped" - def system_network_dropped do - :"system.network.dropped" - end - - @doc """ - Count of network errors detected - - Instrument: `counter` - Unit: `{error}` - ### Notes - - 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). - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_errors() - :"system.network.errors" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_ERRORS. - 'system.network.errors' - ``` - - - """ - - @spec system_network_errors :: :"system.network.errors" - def system_network_errors do - :"system.network.errors" - end - - @doc """ - none - - Instrument: `counter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_io() - :"system.network.io" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_IO. - 'system.network.io' - ``` - - - """ - - @spec system_network_io :: :"system.network.io" - def system_network_io do - :"system.network.io" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{packet}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_packets() - :"system.network.packets" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_PACKETS. - 'system.network.packets' - ``` - - - """ - - @spec system_network_packets :: :"system.network.packets" - def system_network_packets do - :"system.network.packets" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{fault}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_faults() - :"system.paging.faults" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_FAULTS. - 'system.paging.faults' - ``` - - - """ - - @spec system_paging_faults :: :"system.paging.faults" - def system_paging_faults do - :"system.paging.faults" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{operation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_operations() - :"system.paging.operations" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_OPERATIONS. - 'system.paging.operations' - ``` - - - """ - - @spec system_paging_operations :: :"system.paging.operations" - def system_paging_operations do - :"system.paging.operations" - end - - @doc """ - Unix swap or windows pagefile usage - - Instrument: `updowncounter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_usage() - :"system.paging.usage" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_USAGE. - 'system.paging.usage' - ``` - - - """ - - @spec system_paging_usage :: :"system.paging.usage" - def system_paging_usage do - :"system.paging.usage" - end - - @doc """ - none - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_utilization() - :"system.paging.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_UTILIZATION. - 'system.paging.utilization' - ``` - - - """ - - @spec system_paging_utilization :: :"system.paging.utilization" - def system_paging_utilization do - :"system.paging.utilization" - end - - @doc """ - Total number of processes in each state - - Instrument: `updowncounter` - Unit: `{process}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_count() - :"system.process.count" - - ### Erlang - - ```erlang - ?SYSTEM_PROCESS_COUNT. - 'system.process.count' - ``` - - - """ - - @spec system_process_count :: :"system.process.count" - def system_process_count do - :"system.process.count" - end - - @doc """ - Total number of processes created over uptime of the host - - Instrument: `counter` - Unit: `{process}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_created() - :"system.process.created" - - ### Erlang - - ```erlang - ?SYSTEM_PROCESS_CREATED. - 'system.process.created' - ``` - - - """ - - @spec system_process_created :: :"system.process.created" - def system_process_created do - :"system.process.created" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl deleted file mode 100644 index 0c6d41cb..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.hrl +++ /dev/null @@ -1,61 +0,0 @@ - -defmodule OpenTelemetry.SemConv.Metrics.HttpMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Http metrics. - """ - @doc """ - Duration of HTTP client requests. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_client_request_duration() - :"http.client.request.duration" - - ### Erlang - - ```erlang - ?HTTP_CLIENT_REQUEST_DURATION. - 'http.client.request.duration' - ``` - - - """ - - @spec http_client_request_duration :: :"http.client.request.duration" - def http_client_request_duration do - :"http.client.request.duration" - end - - @doc """ - Duration of HTTP server requests. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Metrics.HttpMetrics.http_server_request_duration() - :"http.server.request.duration" - - ### Erlang - - ```erlang - ?HTTP_SERVER_REQUEST_DURATION. - 'http.server.request.duration' - ``` - - - """ - - @spec http_server_request_duration :: :"http.server.request.duration" - def http_server_request_duration do - :"http.server.request.duration" - end - -end \ No newline at end of file diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 23b53d25..ed588faf 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -1,7 +1,3 @@ -{#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} - - {# {{ text | snake_case | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} - {%- import 'common.j2' as c %} {%- set file_name = ctx.output ~ c.file_name(ctx.id) ~ "_attributes.ex" -%} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index 0b545641..933ce8ff 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -1,14 +1,10 @@ -{#- waiting on https://github.com/open-telemetry/weaver/pull/207 for split to be available -#} - - {# {{ text | snake_case | replace('_', ' ') | split | reject(ctx.id) | join('_') }} #} - {%- import 'common.j2' as c %} -{%- set file_name = ctx.output ~ (ctx.id | pascal_case | acronym | lower) ~ "_metrics.hrl" -%} +{%- set file_name = ctx.output ~ c.file_name(ctx.id) ~ "_metrics.ex" -%} {%- set trim_blocks = true %} {%- set trim_lstrip_blocks = true %} {{ template.set_file_name(file_name) }} -{%- set module_name = c.format_acronym(ctx.id | pascal_case, acronyms) ~ "Metrics" -%} +{%- set module_name = ctx.id | pascal_case | acronym ~ "Metrics" -%} {%- if params.stability == "experimental" -%} {%- set module_namespace = "OpenTelemetry.SemConv.Incubating.Metrics" -%} {%- else -%} @@ -17,7 +13,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do # This is an auto-generated file @moduledoc """ - OpenTelemetry Semantic Conventions for {{ c.format_acronym(ctx.id | title, acronyms) }} metrics. + OpenTelemetry Semantic Conventions for {{ ctx.id | title | acronym }} metrics. """ {%- for metric in ctx.metrics | sort(attribute="metric_name") %} {% if metric is deprecated %} From 9943a0696a08980db8b2ffbd7f4d6b8f59951cb1 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 20:24:14 -0600 Subject: [PATCH 41/57] Switch to release binary and makefile --- .../.tool-versions | 1 + .../generate.exs | 132 ------------------ .../makefile | 33 +++++ 3 files changed, 34 insertions(+), 132 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/generate.exs create mode 100644 apps/opentelemetry_semantic_conventions/makefile diff --git a/apps/opentelemetry_semantic_conventions/.tool-versions b/apps/opentelemetry_semantic_conventions/.tool-versions index c6a8f163..e72be123 100644 --- a/apps/opentelemetry_semantic_conventions/.tool-versions +++ b/apps/opentelemetry_semantic_conventions/.tool-versions @@ -1 +1,2 @@ elixir 1.16.2 +rust 1.79.0 diff --git a/apps/opentelemetry_semantic_conventions/generate.exs b/apps/opentelemetry_semantic_conventions/generate.exs deleted file mode 100644 index ddcd7e62..00000000 --- a/apps/opentelemetry_semantic_conventions/generate.exs +++ /dev/null @@ -1,132 +0,0 @@ -semconv_version = "1.26.0" -docker_img_vsn = "0.5.0" - -# build_dir = System.cmd("mktemp", ["-d"]) |> elem(0) |> String.trim() -build_dir = "#{File.cwd!()}/semtmp" -# File.rm_rf!(build_dir) - -cwd = File.cwd!() - -####### -# Uncomment the following two sections to setup your env -# ##### - -# System.cmd("git", [ -# "clone", -# "https://github.com/open-telemetry/semantic-conventions.git", -# build_dir -# ]) - -# File.cd!(build_dir, fn -> -# System.cmd("git", ["pull"]) -# System.cmd("git", ["checkout", "v#{semconv_version}"]) -# System.cmd("cp", ["-r", "#{build_dir}/docs", "guides"]) -# System.cmd("rm", ["-rf", "#{cwd}/guides/docs"]) -# end) - -######## -# Delete all generated files before generating new versions. -######## - -# elixir - -# stable attrs -System.cmd("docker", [ - "run", - # "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/weaver/templates", - "-v", - "#{cwd}/lib:/output", - "local-weaver", - # "otel/weaver:#{docker_img_vsn}", - "registry", - "generate", - "--registry=/source", - "--templates=/weaver/templates", - "--param", - "output=/output/", - "--param", - "stability=stable", - "elixir", - "/output/" -]) - -# incubating attrs -System.cmd("docker", [ - "run", - # "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/weaver/templates", - "-v", - "#{cwd}/lib:/output", - "local-weaver", - # "otel/weaver:#{docker_img_vsn}", - "registry", - "generate", - "--registry=/source", - "--templates=/weaver/templates", - "--param", - "output=/output/incubating/", - "--param", - "stability=experimental", - "elixir", - "/output/" -]) - -# erlang - -# stable attrs -System.cmd("docker", [ - "run", - # "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/weaver/templates", - "-v", - "#{cwd}/include:/output/", - "local-weaver", - # "otel/weaver:#{docker_img_vsn}", - "registry", - "generate", - "--registry=/source", - "--templates=/weaver/templates", - "--param", - "output=/output/", - "--param", - "stability=stable", - "erlang", - "/output/" -]) - -# incubating attrs -System.cmd("docker", [ - "run", - # "--rm", - "-v", - "#{build_dir}/model:/source", - "-v", - "#{cwd}/templates:/weaver/templates", - "-v", - "#{cwd}/include:/output", - "local-weaver", - # "otel/weaver:#{docker_img_vsn}", - "registry", - "generate", - "--registry=/source", - "--templates=/weaver/templates", - "--param", - "output=/output/incubating/", - "--param", - "stability=experimental", - "erlang", - "/output/" -]) - -System.cmd("mix", ["format"]) -System.cmd("mix", ["docs"]) diff --git a/apps/opentelemetry_semantic_conventions/makefile b/apps/opentelemetry_semantic_conventions/makefile new file mode 100644 index 00000000..976ed074 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/makefile @@ -0,0 +1,33 @@ +SEMCON_VERSION = 1.26.0 + +.PHONY: setup clean checkout generate + +clean: + rm -rf semtmp + rm -rf guides/ + +setup: + curl --proto '=https' --tlsv1.2 -LsSf https://github.com/open-telemetry/weaver/releases/download/v0.7.0/weaver-installer.sh | sh + +checkout: + mkdir semtmp + git clone https://github.com/open-telemetry/semantic-conventions.git semtmp + cd semtmp; \ + git checkout v$(SEMCON_VERSION) && \ + cp -r docs ../guides + rm -rf guides/docs + +generate: generate-elixir generate-erlang format-and-test + +generate-elixir: + weaver registry generate --registry=semtmp/model --templates=templates --param output=lib/ --param stability=stable elixir . + weaver registry generate --registry=semtmp/model --templates=templates --param output=lib/incubating/ --param stability=experimental elixir . + +generate-erlang: + weaver registry generate --registry=semtmp/model --templates=templates --param output=include/ --param stability=stable erlang . + weaver registry generate --registry=semtmp/model --templates=templates --param output=include/incubating/ --param stability=experimental erlang . + +format-and-test: + mix format + mix docs + mix test \ No newline at end of file From d88ef0aaef9378d64642d2ad3657f2672d86449d Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 21:31:56 -0600 Subject: [PATCH 42/57] Fix-up file names --- ...ibutes.hrl => feature_flag_attributes.hrl} | 0 ...i_attributes.hrl => gen_ai_attributes.hrl} | 0 ...tributes.hrl => user_agent_attributes.hrl} | 0 .../include/user_agent_attributes.hrl | 2 -- .../include/useragent_attributes.hrl | 19 ------------------- ...tributes.ex => feature_flag_attributes.ex} | 0 ...nai_attributes.ex => gen_ai_attributes.ex} | 0 ...attributes.ex => user_agent_attributes.ex} | 0 ...attributes.ex => user_agent_attributes.ex} | 0 .../templates/registry/elixir/common.j2 | 2 +- .../templates/registry/erlang/common.j2 | 2 +- 11 files changed, 2 insertions(+), 23 deletions(-) rename apps/opentelemetry_semantic_conventions/include/incubating/{featureflag_attributes.hrl => feature_flag_attributes.hrl} (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{genai_attributes.hrl => gen_ai_attributes.hrl} (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{useragent_attributes.hrl => user_agent_attributes.hrl} (100%) delete mode 100644 apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl rename apps/opentelemetry_semantic_conventions/lib/incubating/{featureflag_attributes.ex => feature_flag_attributes.ex} (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{genai_attributes.ex => gen_ai_attributes.ex} (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{useragent_attributes.ex => user_agent_attributes.ex} (100%) rename apps/opentelemetry_semantic_conventions/lib/{useragent_attributes.ex => user_agent_attributes.ex} (100%) diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/featureflag_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/genai_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/useragent_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl index 40ec24d9..611dee21 100644 --- a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl @@ -16,6 +16,4 @@ %% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. %% -{"brief": "Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client.\n", "examples": ["CERN-LineMode/2.15 libwww/2.17b3", "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", "YourApp/1.0.0 grpc-java-okhttp/1.27.2"], "name": "user_agent.original", "requirement_level": "recommended", "stability": "stable", "type": "string"} -user_agent_original -define(USER_AGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl deleted file mode 100644 index 611dee21..00000000 --- a/apps/opentelemetry_semantic_conventions/include/useragent_attributes.hrl +++ /dev/null @@ -1,19 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. -%% --define(USER_AGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/featureflag_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/genai_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/useragent_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/useragent_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 index 4278c775..6e4f16ab 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/common.j2 @@ -7,7 +7,7 @@ {%- endmacro -%} {%- macro file_name(id) -%} - {{ id | pascal_case | acronym | lower }} + {{ id | acronym | replace(".", "_") | lower }} {%- endmacro -%} {%- macro to_atom(text) -%} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 index 9837f271..a169d49d 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/common.j2 @@ -3,7 +3,7 @@ {%- endmacro -%} {%- macro file_name(id) -%} - {{ id | pascal_case | acronym | lower }} + {{ id | acronym | replace(".", "_") | lower }} {%- endmacro -%} {%- macro to_atom(text) -%} From 66534048baf7140ed1b455fac2c04ee6c7a0382d Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Thu, 25 Jul 2024 21:40:54 -0600 Subject: [PATCH 43/57] Test typo --- .../test/opentelemetry_semconv_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl index a28efa63..81ee1206 100644 --- a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -12,5 +12,5 @@ all() -> registry_macros(_Config) -> ?assertEqual('db.system', ?'DB_SYSTEM'), - ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES.postgresql') + ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES.postgresql'), ok. From df38bfa07a414f12642f51b0028b571f521ba413 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 26 Jul 2024 09:30:57 -0600 Subject: [PATCH 44/57] Erl enum values to all snake case; fix-up erl atom declarations --- .../README.md | 2 +- .../include/client_attributes.hrl | 4 +- .../include/error_attributes.hrl | 4 +- .../include/exception_attributes.hrl | 8 +- .../include/http_attributes.hrl | 34 +-- .../include/incubating/aws_attributes.hrl | 88 +++---- .../include/incubating/browser_attributes.hrl | 8 +- .../include/incubating/cloud_attributes.hrl | 82 +++--- .../incubating/cloudevents_attributes.hrl | 10 +- .../include/incubating/code_attributes.hrl | 12 +- .../incubating/container_attributes.hrl | 32 +-- .../include/incubating/db_attributes.hrl | 246 +++++++++--------- .../incubating/deployment_attributes.hrl | 2 +- .../incubating/destination_attributes.hrl | 4 +- .../include/incubating/device_attributes.hrl | 8 +- .../include/incubating/disk_attributes.hrl | 6 +- .../include/incubating/dns_attributes.hrl | 2 +- .../include/incubating/enduser_attributes.hrl | 6 +- .../include/incubating/event_attributes.hrl | 2 +- .../include/incubating/faas_attributes.hrl | 58 ++--- .../incubating/feature_flag_attributes.hrl | 6 +- .../include/incubating/file_attributes.hrl | 10 +- .../include/incubating/gcp_attributes.hrl | 8 +- .../include/incubating/gen_ai_attributes.hrl | 26 +- .../include/incubating/graphql_attributes.hrl | 12 +- .../include/incubating/heroku_attributes.hrl | 6 +- .../include/incubating/host_attributes.hrl | 46 ++-- .../include/incubating/http_attributes.hrl | 54 ++-- .../include/incubating/k8s_attributes.hrl | 50 ++-- .../include/incubating/log_attributes.hrl | 16 +- .../incubating/messaging_attributes.hrl | 136 +++++----- .../incubating/metrics/container_metrics.hrl | 8 +- .../include/incubating/metrics/db_metrics.hrl | 38 +-- .../incubating/metrics/dns_metrics.hrl | 2 +- .../incubating/metrics/faas_metrics.hrl | 18 +- .../incubating/metrics/http_metrics.hrl | 16 +- .../incubating/metrics/messaging_metrics.hrl | 12 +- .../incubating/metrics/process_metrics.hrl | 20 +- .../incubating/metrics/rpc_metrics.hrl | 20 +- .../incubating/metrics/system_metrics.hrl | 56 ++-- .../include/incubating/network_attributes.hrl | 116 ++++----- .../include/incubating/oci_attributes.hrl | 2 +- .../incubating/opentracing_attributes.hrl | 6 +- .../include/incubating/os_attributes.hrl | 32 +-- .../include/incubating/otel_attributes.hrl | 4 +- .../include/incubating/peer_attributes.hrl | 2 +- .../include/incubating/process_attributes.hrl | 68 ++--- .../include/incubating/rpc_attributes.hrl | 126 ++++----- .../include/incubating/service_attributes.hrl | 4 +- .../include/incubating/session_attributes.hrl | 4 +- .../include/incubating/source_attributes.hrl | 4 +- .../include/incubating/system_attributes.hrl | 122 ++++----- .../incubating/telemetry_attributes.hrl | 4 +- .../include/incubating/thread_attributes.hrl | 4 +- .../include/incubating/tls_attributes.hrl | 62 ++--- .../include/incubating/url_attributes.hrl | 16 +- .../incubating/user_agent_attributes.hrl | 4 +- .../incubating/webengine_attributes.hrl | 6 +- .../include/metrics/http_metrics.hrl | 4 +- .../include/network_attributes.hrl | 28 +- .../include/otel_attributes.hrl | 12 +- .../include/server_attributes.hrl | 4 +- .../include/service_attributes.hrl | 4 +- .../include/telemetry_attributes.hrl | 30 +-- .../include/url_attributes.hrl | 10 +- .../include/user_agent_attributes.hrl | 2 +- .../lib/client_attributes.ex | 4 +- .../lib/error_attributes.ex | 6 +- .../lib/exception_attributes.ex | 8 +- .../lib/http_attributes.ex | 18 +- .../lib/incubating/aws_attributes.ex | 88 +++---- .../lib/incubating/browser_attributes.ex | 8 +- .../lib/incubating/cloud_attributes.ex | 20 +- .../lib/incubating/cloudevents_attributes.ex | 10 +- .../lib/incubating/code_attributes.ex | 12 +- .../lib/incubating/container_attributes.ex | 28 +- .../lib/incubating/db_attributes.ex | 68 ++--- .../lib/incubating/deployment_attributes.ex | 2 +- .../lib/incubating/destination_attributes.ex | 4 +- .../lib/incubating/device_attributes.ex | 8 +- .../lib/incubating/disk_attributes.ex | 6 +- .../lib/incubating/dns_attributes.ex | 2 +- .../lib/incubating/enduser_attributes.ex | 6 +- .../lib/incubating/event_attributes.ex | 2 +- .../lib/incubating/faas_attributes.ex | 44 ++-- .../lib/incubating/feature_flag_attributes.ex | 6 +- .../lib/incubating/file_attributes.ex | 10 +- .../lib/incubating/gcp_attributes.ex | 8 +- .../lib/incubating/gen_ai_attributes.ex | 28 +- .../lib/incubating/graphql_attributes.ex | 10 +- .../lib/incubating/heroku_attributes.ex | 6 +- .../lib/incubating/host_attributes.ex | 34 +-- .../lib/incubating/http_attributes.ex | 14 +- .../lib/incubating/k8s_attributes.ex | 48 ++-- .../lib/incubating/log_attributes.ex | 16 +- .../lib/incubating/messaging_attributes.ex | 102 ++++---- .../incubating/metrics/container_metrics.ex | 8 +- .../lib/incubating/metrics/db_metrics.ex | 20 +- .../lib/incubating/metrics/dns_metrics.ex | 2 +- .../lib/incubating/metrics/faas_metrics.ex | 18 +- .../lib/incubating/metrics/http_metrics.ex | 16 +- .../incubating/metrics/messaging_metrics.ex | 12 +- .../lib/incubating/metrics/process_metrics.ex | 20 +- .../lib/incubating/metrics/rpc_metrics.ex | 20 +- .../lib/incubating/metrics/system_metrics.ex | 56 ++-- .../lib/incubating/network_attributes.ex | 26 +- .../lib/incubating/oci_attributes.ex | 2 +- .../lib/incubating/opentracing_attributes.ex | 6 +- .../lib/incubating/os_attributes.ex | 14 +- .../lib/incubating/peer_attributes.ex | 2 +- .../lib/incubating/process_attributes.ex | 66 ++--- .../lib/incubating/rpc_attributes.ex | 50 ++-- .../lib/incubating/service_attributes.ex | 4 +- .../lib/incubating/session_attributes.ex | 4 +- .../lib/incubating/source_attributes.ex | 4 +- .../lib/incubating/system_attributes.ex | 62 ++--- .../lib/incubating/telemetry_attributes.ex | 4 +- .../lib/incubating/thread_attributes.ex | 4 +- .../lib/incubating/tls_attributes.ex | 62 ++--- .../lib/incubating/url_attributes.ex | 16 +- .../lib/incubating/user_agent_attributes.ex | 4 +- .../lib/incubating/webengine_attributes.ex | 6 +- .../lib/metrics/http_metrics.ex | 4 +- .../lib/network_attributes.ex | 24 +- .../lib/otel_attributes.ex | 12 +- .../lib/server_attributes.ex | 4 +- .../lib/service_attributes.ex | 4 +- .../lib/telemetry_attributes.ex | 10 +- .../lib/url_attributes.ex | 10 +- .../lib/user_agent_attributes.ex | 2 +- .../registry/elixir/semantic_attributes.ex.j2 | 8 +- .../registry/elixir/semantic_metrics.ex.j2 | 2 +- .../erlang/semantic_attributes.hrl.j2 | 4 +- .../registry/erlang/semantic_metrics.hrl.j2 | 2 +- .../test/opentelemetry_semconv_SUITE.erl | 2 +- 135 files changed, 1540 insertions(+), 1540 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index c0d8e873..524cde03 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -78,7 +78,7 @@ Enum Attributes allow for a user-supplied value when no pre-defined option exist may set this value manually while paying attention to the required value type ``` -iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system().postgresql +iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().postgresql :postgresql ``` diff --git a/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl index 193bca86..760de3b0 100644 --- a/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define(CLIENT_ADDRESS, 'client.address'). +-define('CLIENT_ADDRESS', 'client.address'). %% Client port number. --define(CLIENT_PORT, 'client.port'). +-define('CLIENT_PORT', 'client.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl index 79c00158..39ae5373 100644 --- a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl @@ -16,7 +16,7 @@ %% Describes a class of error the operation ended with. %% --define(ERROR_TYPE, 'error.type'). +-define('ERROR_TYPE', 'error.type'). --define('ERROR_TYPE_VALUES.other', '_OTHER'). +-define('ERROR_TYPE_VALUES_OTHER', '_OTHER'). diff --git a/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl index fee6dd17..579cc674 100644 --- a/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl @@ -16,18 +16,18 @@ %% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. %% --define(EXCEPTION_ESCAPED, 'exception.escaped'). +-define('EXCEPTION_ESCAPED', 'exception.escaped'). %% The exception message. --define(EXCEPTION_MESSAGE, 'exception.message'). +-define('EXCEPTION_MESSAGE', 'exception.message'). %% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. %% --define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). +-define('EXCEPTION_STACKTRACE', 'exception.stacktrace'). %% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. %% --define(EXCEPTION_TYPE, 'exception.type'). +-define('EXCEPTION_TYPE', 'exception.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl index e1f3b8b7..0b887b38 100644 --- a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl @@ -16,52 +16,52 @@ %% HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. %% --define(HTTP_REQUEST_HEADER, 'http.request.header'). +-define('HTTP_REQUEST_HEADER', 'http.request.header'). %% HTTP request method. --define(HTTP_REQUEST_METHOD, 'http.request.method'). +-define('HTTP_REQUEST_METHOD', 'http.request.method'). --define('HTTP_REQUEST_METHOD_VALUES.connect', 'CONNECT'). +-define('HTTP_REQUEST_METHOD_VALUES_CONNECT', 'CONNECT'). --define('HTTP_REQUEST_METHOD_VALUES.delete', 'DELETE'). +-define('HTTP_REQUEST_METHOD_VALUES_DELETE', 'DELETE'). --define('HTTP_REQUEST_METHOD_VALUES.get', 'GET'). +-define('HTTP_REQUEST_METHOD_VALUES_GET', 'GET'). --define('HTTP_REQUEST_METHOD_VALUES.head', 'HEAD'). +-define('HTTP_REQUEST_METHOD_VALUES_HEAD', 'HEAD'). --define('HTTP_REQUEST_METHOD_VALUES.options', 'OPTIONS'). +-define('HTTP_REQUEST_METHOD_VALUES_OPTIONS', 'OPTIONS'). --define('HTTP_REQUEST_METHOD_VALUES.patch', 'PATCH'). +-define('HTTP_REQUEST_METHOD_VALUES_PATCH', 'PATCH'). --define('HTTP_REQUEST_METHOD_VALUES.post', 'POST'). +-define('HTTP_REQUEST_METHOD_VALUES_POST', 'POST'). --define('HTTP_REQUEST_METHOD_VALUES.put', 'PUT'). +-define('HTTP_REQUEST_METHOD_VALUES_PUT', 'PUT'). --define('HTTP_REQUEST_METHOD_VALUES.trace', 'TRACE'). +-define('HTTP_REQUEST_METHOD_VALUES_TRACE', 'TRACE'). --define('HTTP_REQUEST_METHOD_VALUES.other', '_OTHER'). +-define('HTTP_REQUEST_METHOD_VALUES_OTHER', '_OTHER'). %% Original HTTP method sent by the client in the request line. --define(HTTP_REQUEST_METHOD_ORIGINAL, 'http.request.method_original'). +-define('HTTP_REQUEST_METHOD_ORIGINAL', 'http.request.method_original'). %% The ordinal number of request resending attempt (for any reason, including redirects). %% --define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). +-define('HTTP_REQUEST_RESEND_COUNT', 'http.request.resend_count'). %% HTTP response headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. %% --define(HTTP_RESPONSE_HEADER, 'http.response.header'). +-define('HTTP_RESPONSE_HEADER', 'http.response.header'). %% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). --define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). +-define('HTTP_RESPONSE_STATUS_CODE', 'http.response.status_code'). %% The matched route, that is, the path template in the format used by the respective server framework. %% --define(HTTP_ROUTE, 'http.route'). +-define('HTTP_ROUTE', 'http.route'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl index 3db1b730..3ebabe16 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl @@ -15,186 +15,186 @@ %%%------------------------------------------------------------------------- %% The JSON-serialized value of each item in the `AttributeDefinitions` request field. --define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). +-define('AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS', 'aws.dynamodb.attribute_definitions'). %% The value of the `AttributesToGet` request parameter. --define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). +-define('AWS_DYNAMODB_ATTRIBUTES_TO_GET', 'aws.dynamodb.attributes_to_get'). %% The value of the `ConsistentRead` request parameter. --define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). +-define('AWS_DYNAMODB_CONSISTENT_READ', 'aws.dynamodb.consistent_read'). %% The JSON-serialized value of each item in the `ConsumedCapacity` response field. --define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). +-define('AWS_DYNAMODB_CONSUMED_CAPACITY', 'aws.dynamodb.consumed_capacity'). %% The value of the `Count` response parameter. --define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). +-define('AWS_DYNAMODB_COUNT', 'aws.dynamodb.count'). %% The value of the `ExclusiveStartTableName` request parameter. --define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). +-define('AWS_DYNAMODB_EXCLUSIVE_START_TABLE', 'aws.dynamodb.exclusive_start_table'). %% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). +-define('AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES', 'aws.dynamodb.global_secondary_index_updates'). %% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field --define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). +-define('AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES', 'aws.dynamodb.global_secondary_indexes'). %% The value of the `IndexName` request parameter. --define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). +-define('AWS_DYNAMODB_INDEX_NAME', 'aws.dynamodb.index_name'). %% The JSON-serialized value of the `ItemCollectionMetrics` response field. --define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). +-define('AWS_DYNAMODB_ITEM_COLLECTION_METRICS', 'aws.dynamodb.item_collection_metrics'). %% The value of the `Limit` request parameter. --define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). +-define('AWS_DYNAMODB_LIMIT', 'aws.dynamodb.limit'). %% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. --define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). +-define('AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES', 'aws.dynamodb.local_secondary_indexes'). %% The value of the `ProjectionExpression` request parameter. --define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). +-define('AWS_DYNAMODB_PROJECTION', 'aws.dynamodb.projection'). %% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. --define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). +-define('AWS_DYNAMODB_PROVISIONED_READ_CAPACITY', 'aws.dynamodb.provisioned_read_capacity'). %% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. --define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). +-define('AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY', 'aws.dynamodb.provisioned_write_capacity'). %% The value of the `ScanIndexForward` request parameter. --define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). +-define('AWS_DYNAMODB_SCAN_FORWARD', 'aws.dynamodb.scan_forward'). %% The value of the `ScannedCount` response parameter. --define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). +-define('AWS_DYNAMODB_SCANNED_COUNT', 'aws.dynamodb.scanned_count'). %% The value of the `Segment` request parameter. --define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). +-define('AWS_DYNAMODB_SEGMENT', 'aws.dynamodb.segment'). %% The value of the `Select` request parameter. --define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). +-define('AWS_DYNAMODB_SELECT', 'aws.dynamodb.select'). %% The number of items in the `TableNames` response parameter. --define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). +-define('AWS_DYNAMODB_TABLE_COUNT', 'aws.dynamodb.table_count'). %% The keys in the `RequestItems` object field. --define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). +-define('AWS_DYNAMODB_TABLE_NAMES', 'aws.dynamodb.table_names'). %% The value of the `TotalSegments` request parameter. --define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). +-define('AWS_DYNAMODB_TOTAL_SEGMENTS', 'aws.dynamodb.total_segments'). %% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). %% --define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). +-define('AWS_ECS_CLUSTER_ARN', 'aws.ecs.cluster.arn'). %% The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). %% --define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). +-define('AWS_ECS_CONTAINER_ARN', 'aws.ecs.container.arn'). %% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. %% --define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). +-define('AWS_ECS_LAUNCHTYPE', 'aws.ecs.launchtype'). --define('AWS_ECS_LAUNCHTYPE_VALUES.ec2', 'ec2'). +-define('AWS_ECS_LAUNCHTYPE_VALUES_EC_2', 'ec2'). --define('AWS_ECS_LAUNCHTYPE_VALUES.fargate', 'fargate'). +-define('AWS_ECS_LAUNCHTYPE_VALUES_FARGATE', 'fargate'). %% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). %% --define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). +-define('AWS_ECS_TASK_ARN', 'aws.ecs.task.arn'). %% 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. %% --define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). +-define('AWS_ECS_TASK_FAMILY', 'aws.ecs.task.family'). %% The ID of a running ECS task. The ID MUST be extracted from `task.arn`. %% --define(AWS_ECS_TASK_ID, 'aws.ecs.task.id'). +-define('AWS_ECS_TASK_ID', 'aws.ecs.task.id'). %% The revision for the task definition used to create the ECS task. %% --define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). +-define('AWS_ECS_TASK_REVISION', 'aws.ecs.task.revision'). %% The ARN of an EKS cluster. %% --define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). +-define('AWS_EKS_CLUSTER_ARN', 'aws.eks.cluster.arn'). %% 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). %% --define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). +-define('AWS_LAMBDA_INVOKED_ARN', 'aws.lambda.invoked_arn'). %% The Amazon Resource Name(s) (ARN) of the AWS log group(s). %% --define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). +-define('AWS_LOG_GROUP_ARNS', 'aws.log.group.arns'). %% The name(s) of the AWS log group(s) an application is writing to. %% --define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). +-define('AWS_LOG_GROUP_NAMES', 'aws.log.group.names'). %% The ARN(s) of the AWS log stream(s). %% --define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). +-define('AWS_LOG_STREAM_ARNS', 'aws.log.stream.arns'). %% The name(s) of the AWS log stream(s) an application is writing to. %% --define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). +-define('AWS_LOG_STREAM_NAMES', 'aws.log.stream.names'). %% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. --define(AWS_REQUEST_ID, 'aws.request_id'). +-define('AWS_REQUEST_ID', 'aws.request_id'). %% 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. --define(AWS_S3_BUCKET, 'aws.s3.bucket'). +-define('AWS_S3_BUCKET', 'aws.s3.bucket'). %% The source object (in the form `bucket`/`key`) for the copy operation. --define(AWS_S3_COPY_SOURCE, 'aws.s3.copy_source'). +-define('AWS_S3_COPY_SOURCE', 'aws.s3.copy_source'). %% The delete request container that specifies the objects to be deleted. --define(AWS_S3_DELETE, 'aws.s3.delete'). +-define('AWS_S3_DELETE', 'aws.s3.delete'). %% 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. --define(AWS_S3_KEY, 'aws.s3.key'). +-define('AWS_S3_KEY', 'aws.s3.key'). %% The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. --define(AWS_S3_PART_NUMBER, 'aws.s3.part_number'). +-define('AWS_S3_PART_NUMBER', 'aws.s3.part_number'). %% Upload ID that identifies the multipart upload. --define(AWS_S3_UPLOAD_ID, 'aws.s3.upload_id'). +-define('AWS_S3_UPLOAD_ID', 'aws.s3.upload_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl index a016ca03..a6d274a0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl @@ -15,16 +15,16 @@ %%%------------------------------------------------------------------------- %% Array of brand name and version separated by a space --define(BROWSER_BRANDS, 'browser.brands'). +-define('BROWSER_BRANDS', 'browser.brands'). %% Preferred language of the user using the browser --define(BROWSER_LANGUAGE, 'browser.language'). +-define('BROWSER_LANGUAGE', 'browser.language'). %% A boolean that is true if the browser is running on a mobile device --define(BROWSER_MOBILE, 'browser.mobile'). +-define('BROWSER_MOBILE', 'browser.mobile'). %% The platform on which the browser is running --define(BROWSER_PLATFORM, 'browser.platform'). +-define('BROWSER_PLATFORM', 'browser.platform'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl index 825cd9f7..17b72784 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl @@ -16,101 +16,101 @@ %% The cloud account ID the resource is assigned to. %% --define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). +-define('CLOUD_ACCOUNT_ID', 'cloud.account.id'). %% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. %% --define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). +-define('CLOUD_AVAILABILITY_ZONE', 'cloud.availability_zone'). %% The cloud platform in use. %% --define(CLOUD_PLATFORM, 'cloud.platform'). +-define('CLOUD_PLATFORM', 'cloud.platform'). --define('CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs', 'alibaba_cloud_ecs'). +-define('CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS', 'alibaba_cloud_ecs'). --define('CLOUD_PLATFORM_VALUES.alibaba_cloud_fc', 'alibaba_cloud_fc'). +-define('CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_FC', 'alibaba_cloud_fc'). --define('CLOUD_PLATFORM_VALUES.alibaba_cloud_openshift', 'alibaba_cloud_openshift'). +-define('CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_OPENSHIFT', 'alibaba_cloud_openshift'). --define('CLOUD_PLATFORM_VALUES.aws_ec2', 'aws_ec2'). +-define('CLOUD_PLATFORM_VALUES_AWS_EC_2', 'aws_ec2'). --define('CLOUD_PLATFORM_VALUES.aws_ecs', 'aws_ecs'). +-define('CLOUD_PLATFORM_VALUES_AWS_ECS', 'aws_ecs'). --define('CLOUD_PLATFORM_VALUES.aws_eks', 'aws_eks'). +-define('CLOUD_PLATFORM_VALUES_AWS_EKS', 'aws_eks'). --define('CLOUD_PLATFORM_VALUES.aws_lambda', 'aws_lambda'). +-define('CLOUD_PLATFORM_VALUES_AWS_LAMBDA', 'aws_lambda'). --define('CLOUD_PLATFORM_VALUES.aws_elastic_beanstalk', 'aws_elastic_beanstalk'). +-define('CLOUD_PLATFORM_VALUES_AWS_ELASTIC_BEANSTALK', 'aws_elastic_beanstalk'). --define('CLOUD_PLATFORM_VALUES.aws_app_runner', 'aws_app_runner'). +-define('CLOUD_PLATFORM_VALUES_AWS_APP_RUNNER', 'aws_app_runner'). --define('CLOUD_PLATFORM_VALUES.aws_openshift', 'aws_openshift'). +-define('CLOUD_PLATFORM_VALUES_AWS_OPENSHIFT', 'aws_openshift'). --define('CLOUD_PLATFORM_VALUES.azure_vm', 'azure_vm'). +-define('CLOUD_PLATFORM_VALUES_AZURE_VM', 'azure_vm'). --define('CLOUD_PLATFORM_VALUES.azure_container_apps', 'azure_container_apps'). +-define('CLOUD_PLATFORM_VALUES_AZURE_CONTAINER_APPS', 'azure_container_apps'). --define('CLOUD_PLATFORM_VALUES.azure_container_instances', 'azure_container_instances'). +-define('CLOUD_PLATFORM_VALUES_AZURE_CONTAINER_INSTANCES', 'azure_container_instances'). --define('CLOUD_PLATFORM_VALUES.azure_aks', 'azure_aks'). +-define('CLOUD_PLATFORM_VALUES_AZURE_AKS', 'azure_aks'). --define('CLOUD_PLATFORM_VALUES.azure_functions', 'azure_functions'). +-define('CLOUD_PLATFORM_VALUES_AZURE_FUNCTIONS', 'azure_functions'). --define('CLOUD_PLATFORM_VALUES.azure_app_service', 'azure_app_service'). +-define('CLOUD_PLATFORM_VALUES_AZURE_APP_SERVICE', 'azure_app_service'). --define('CLOUD_PLATFORM_VALUES.azure_openshift', 'azure_openshift'). +-define('CLOUD_PLATFORM_VALUES_AZURE_OPENSHIFT', 'azure_openshift'). --define('CLOUD_PLATFORM_VALUES.gcp_bare_metal_solution', 'gcp_bare_metal_solution'). +-define('CLOUD_PLATFORM_VALUES_GCP_BARE_METAL_SOLUTION', 'gcp_bare_metal_solution'). --define('CLOUD_PLATFORM_VALUES.gcp_compute_engine', 'gcp_compute_engine'). +-define('CLOUD_PLATFORM_VALUES_GCP_COMPUTE_ENGINE', 'gcp_compute_engine'). --define('CLOUD_PLATFORM_VALUES.gcp_cloud_run', 'gcp_cloud_run'). +-define('CLOUD_PLATFORM_VALUES_GCP_CLOUD_RUN', 'gcp_cloud_run'). --define('CLOUD_PLATFORM_VALUES.gcp_kubernetes_engine', 'gcp_kubernetes_engine'). +-define('CLOUD_PLATFORM_VALUES_GCP_KUBERNETES_ENGINE', 'gcp_kubernetes_engine'). --define('CLOUD_PLATFORM_VALUES.gcp_cloud_functions', 'gcp_cloud_functions'). +-define('CLOUD_PLATFORM_VALUES_GCP_CLOUD_FUNCTIONS', 'gcp_cloud_functions'). --define('CLOUD_PLATFORM_VALUES.gcp_app_engine', 'gcp_app_engine'). +-define('CLOUD_PLATFORM_VALUES_GCP_APP_ENGINE', 'gcp_app_engine'). --define('CLOUD_PLATFORM_VALUES.gcp_openshift', 'gcp_openshift'). +-define('CLOUD_PLATFORM_VALUES_GCP_OPENSHIFT', 'gcp_openshift'). --define('CLOUD_PLATFORM_VALUES.ibm_cloud_openshift', 'ibm_cloud_openshift'). +-define('CLOUD_PLATFORM_VALUES_IBM_CLOUD_OPENSHIFT', 'ibm_cloud_openshift'). --define('CLOUD_PLATFORM_VALUES.tencent_cloud_cvm', 'tencent_cloud_cvm'). +-define('CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_CVM', 'tencent_cloud_cvm'). --define('CLOUD_PLATFORM_VALUES.tencent_cloud_eks', 'tencent_cloud_eks'). +-define('CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_EKS', 'tencent_cloud_eks'). --define('CLOUD_PLATFORM_VALUES.tencent_cloud_scf', 'tencent_cloud_scf'). +-define('CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_SCF', 'tencent_cloud_scf'). %% Name of the cloud provider. %% --define(CLOUD_PROVIDER, 'cloud.provider'). +-define('CLOUD_PROVIDER', 'cloud.provider'). --define('CLOUD_PROVIDER_VALUES.alibaba_cloud', 'alibaba_cloud'). +-define('CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD', 'alibaba_cloud'). --define('CLOUD_PROVIDER_VALUES.aws', 'aws'). +-define('CLOUD_PROVIDER_VALUES_AWS', 'aws'). --define('CLOUD_PROVIDER_VALUES.azure', 'azure'). +-define('CLOUD_PROVIDER_VALUES_AZURE', 'azure'). --define('CLOUD_PROVIDER_VALUES.gcp', 'gcp'). +-define('CLOUD_PROVIDER_VALUES_GCP', 'gcp'). --define('CLOUD_PROVIDER_VALUES.heroku', 'heroku'). +-define('CLOUD_PROVIDER_VALUES_HEROKU', 'heroku'). --define('CLOUD_PROVIDER_VALUES.ibm_cloud', 'ibm_cloud'). +-define('CLOUD_PROVIDER_VALUES_IBM_CLOUD', 'ibm_cloud'). --define('CLOUD_PROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). +-define('CLOUD_PROVIDER_VALUES_TENCENT_CLOUD', 'tencent_cloud'). %% The geographical region the resource is running. %% --define(CLOUD_REGION, 'cloud.region'). +-define('CLOUD_REGION', 'cloud.region'). %% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) %% --define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). +-define('CLOUD_RESOURCE_ID', 'cloud.resource_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl index 97ef4a27..d84aa256 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl @@ -16,24 +16,24 @@ %% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. %% --define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). +-define('CLOUDEVENTS_EVENT_ID', 'cloudevents.event_id'). %% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. %% --define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). +-define('CLOUDEVENTS_EVENT_SOURCE', 'cloudevents.event_source'). %% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. %% --define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). +-define('CLOUDEVENTS_EVENT_SPEC_VERSION', 'cloudevents.event_spec_version'). %% 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). %% --define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). +-define('CLOUDEVENTS_EVENT_SUBJECT', 'cloudevents.event_subject'). %% 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. %% --define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). +-define('CLOUDEVENTS_EVENT_TYPE', 'cloudevents.event_type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl index 8500b126..59c566b0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl @@ -16,29 +16,29 @@ %% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. %% --define(CODE_COLUMN, 'code.column'). +-define('CODE_COLUMN', 'code.column'). %% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). %% --define(CODE_FILEPATH, 'code.filepath'). +-define('CODE_FILEPATH', 'code.filepath'). %% The method or function name, or equivalent (usually rightmost part of the code unit's name). %% --define(CODE_FUNCTION, 'code.function'). +-define('CODE_FUNCTION', 'code.function'). %% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. %% --define(CODE_LINENO, 'code.lineno'). +-define('CODE_LINENO', 'code.lineno'). %% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. %% --define(CODE_NAMESPACE, 'code.namespace'). +-define('CODE_NAMESPACE', 'code.namespace'). %% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. %% --define(CODE_STACKTRACE, 'code.stacktrace'). +-define('CODE_STACKTRACE', 'code.stacktrace'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl index b741bac4..6a768266 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl @@ -16,69 +16,69 @@ %% The command used to run the container (i.e. the command name). %% --define(CONTAINER_COMMAND, 'container.command'). +-define('CONTAINER_COMMAND', 'container.command'). %% All the command arguments (including the command/executable itself) run by the container. [2] %% --define(CONTAINER_COMMAND_ARGS, 'container.command_args'). +-define('CONTAINER_COMMAND_ARGS', 'container.command_args'). %% The full command run by the container as a single string representing the full command. [2] %% --define(CONTAINER_COMMAND_LINE, 'container.command_line'). +-define('CONTAINER_COMMAND_LINE', 'container.command_line'). %% The CPU state for this data point. --define(CONTAINER_CPU_STATE, 'container.cpu.state'). +-define('CONTAINER_CPU_STATE', 'container.cpu.state'). --define('CONTAINER_CPU_STATE_VALUES.user', 'user'). +-define('CONTAINER_CPU_STATE_VALUES_USER', 'user'). --define('CONTAINER_CPU_STATE_VALUES.system', 'system'). +-define('CONTAINER_CPU_STATE_VALUES_SYSTEM', 'system'). --define('CONTAINER_CPU_STATE_VALUES.kernel', 'kernel'). +-define('CONTAINER_CPU_STATE_VALUES_KERNEL', 'kernel'). %% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. %% --define(CONTAINER_ID, 'container.id'). +-define('CONTAINER_ID', 'container.id'). %% Runtime specific image identifier. Usually a hash algorithm followed by a UUID. %% --define(CONTAINER_IMAGE_ID, 'container.image.id'). +-define('CONTAINER_IMAGE_ID', 'container.image.id'). %% Name of the image the container was built on. %% --define(CONTAINER_IMAGE_NAME, 'container.image.name'). +-define('CONTAINER_IMAGE_NAME', 'container.image.name'). %% Repo digests of the container image as provided by the container runtime. %% --define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). +-define('CONTAINER_IMAGE_REPO_DIGESTS', 'container.image.repo_digests'). %% 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:`. %% --define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). +-define('CONTAINER_IMAGE_TAGS', 'container.image.tags'). %% Container labels, `` being the label name, the value being the label value. %% --define(CONTAINER_LABEL, 'container.label'). +-define('CONTAINER_LABEL', 'container.label'). %% @deprecated Replaced by `container.label`. %% Deprecated, use `container.label` instead. --define(CONTAINER_LABELS, 'container.labels'). +-define('CONTAINER_LABELS', 'container.labels'). %% Container name used by container runtime. %% --define(CONTAINER_NAME, 'container.name'). +-define('CONTAINER_NAME', 'container.name'). %% The container runtime managing this container. %% --define(CONTAINER_RUNTIME, 'container.runtime'). +-define('CONTAINER_RUNTIME', 'container.runtime'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl index b406a78b..75c0282b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl @@ -16,344 +16,344 @@ %% 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). %% --define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL', 'db.cassandra.consistency_level'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.all', 'all'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL', 'all'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.each_quorum', 'each_quorum'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_EACH_QUORUM', 'each_quorum'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.quorum', 'quorum'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_QUORUM', 'quorum'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.local_quorum', 'local_quorum'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_QUORUM', 'local_quorum'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.one', 'one'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ONE', 'one'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.two', 'two'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_TWO', 'two'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.three', 'three'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_THREE', 'three'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.local_one', 'local_one'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_ONE', 'local_one'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.any', 'any'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ANY', 'any'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.serial', 'serial'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_SERIAL', 'serial'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.local_serial', 'local_serial'). +-define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_SERIAL', 'local_serial'). %% The data center of the coordinating node for a query. %% --define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). +-define('DB_CASSANDRA_COORDINATOR_DC', 'db.cassandra.coordinator.dc'). %% The ID of the coordinating node for a query. %% --define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). +-define('DB_CASSANDRA_COORDINATOR_ID', 'db.cassandra.coordinator.id'). %% Whether or not the query is idempotent. %% --define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). +-define('DB_CASSANDRA_IDEMPOTENCE', 'db.cassandra.idempotence'). %% The fetch size used for paging, i.e. how many rows will be returned at once. %% --define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). +-define('DB_CASSANDRA_PAGE_SIZE', 'db.cassandra.page_size'). %% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. %% --define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). +-define('DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT', 'db.cassandra.speculative_execution_count'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). +-define('DB_CASSANDRA_TABLE', 'db.cassandra.table'). %% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. %% --define(DB_CLIENT_CONNECTIONS_POOL_NAME, 'db.client.connections.pool.name'). +-define('DB_CLIENT_CONNECTIONS_POOL_NAME', 'db.client.connections.pool.name'). %% The state of a connection in the pool --define(DB_CLIENT_CONNECTIONS_STATE, 'db.client.connections.state'). +-define('DB_CLIENT_CONNECTIONS_STATE', 'db.client.connections.state'). --define('DB_CLIENT_CONNECTIONS_STATE_VALUES.idle', 'idle'). +-define('DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE', 'idle'). --define('DB_CLIENT_CONNECTIONS_STATE_VALUES.used', 'used'). +-define('DB_CLIENT_CONNECTIONS_STATE_VALUES_USED', 'used'). %% The name of a collection (table, container) within the database. --define(DB_COLLECTION_NAME, 'db.collection.name'). +-define('DB_COLLECTION_NAME', 'db.collection.name'). %% @deprecated "Replaced by `server.address` and `server.port`." %% %% Deprecated, use `server.address`, `server.port` attributes instead. --define(DB_CONNECTION_STRING, 'db.connection_string'). +-define('DB_CONNECTION_STRING', 'db.connection_string'). %% Unique Cosmos client instance id. --define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). +-define('DB_COSMOSDB_CLIENT_ID', 'db.cosmosdb.client_id'). %% Cosmos client connection mode. --define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). +-define('DB_COSMOSDB_CONNECTION_MODE', 'db.cosmosdb.connection_mode'). --define('DB_COSMOSDB_CONNECTION_MODE_VALUES.gateway', 'gateway'). +-define('DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY', 'gateway'). --define('DB_COSMOSDB_CONNECTION_MODE_VALUES.direct', 'direct'). +-define('DB_COSMOSDB_CONNECTION_MODE_VALUES_DIRECT', 'direct'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). +-define('DB_COSMOSDB_CONTAINER', 'db.cosmosdb.container'). %% CosmosDB Operation Type. --define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). +-define('DB_COSMOSDB_OPERATION_TYPE', 'db.cosmosdb.operation_type'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.invalid', 'Invalid'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID', 'Invalid'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.create', 'Create'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_CREATE', 'Create'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.patch', 'Patch'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_PATCH', 'Patch'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.read', 'Read'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_READ', 'Read'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.read_feed', 'ReadFeed'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_READ_FEED', 'ReadFeed'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.delete', 'Delete'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_DELETE', 'Delete'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.replace', 'Replace'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_REPLACE', 'Replace'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.execute', 'Execute'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_EXECUTE', 'Execute'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.query', 'Query'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_QUERY', 'Query'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.head', 'Head'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_HEAD', 'Head'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.head_feed', 'HeadFeed'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_HEAD_FEED', 'HeadFeed'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.upsert', 'Upsert'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_UPSERT', 'Upsert'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.batch', 'Batch'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_BATCH', 'Batch'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.query_plan', 'QueryPlan'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_QUERY_PLAN', 'QueryPlan'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES.execute_javascript', 'ExecuteJavaScript'). +-define('DB_COSMOSDB_OPERATION_TYPE_VALUES_EXECUTE_JAVASCRIPT', 'ExecuteJavaScript'). %% RU consumed for that operation --define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). +-define('DB_COSMOSDB_REQUEST_CHARGE', 'db.cosmosdb.request_charge'). %% Request payload size in bytes --define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). +-define('DB_COSMOSDB_REQUEST_CONTENT_LENGTH', 'db.cosmosdb.request_content_length'). %% Cosmos DB status code. --define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). +-define('DB_COSMOSDB_STATUS_CODE', 'db.cosmosdb.status_code'). %% Cosmos DB sub status code. --define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). +-define('DB_COSMOSDB_SUB_STATUS_CODE', 'db.cosmosdb.sub_status_code'). %% Represents the identifier of an Elasticsearch cluster. %% --define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). +-define('DB_ELASTICSEARCH_CLUSTER_NAME', 'db.elasticsearch.cluster.name'). %% Represents the human-readable identifier of the node/instance to which a request was routed. %% --define(DB_ELASTICSEARCH_NODE_NAME, 'db.elasticsearch.node.name'). +-define('DB_ELASTICSEARCH_NODE_NAME', 'db.elasticsearch.node.name'). %% A dynamic value in the url path. %% --define(DB_ELASTICSEARCH_PATH_PARTS, 'db.elasticsearch.path_parts'). +-define('DB_ELASTICSEARCH_PATH_PARTS', 'db.elasticsearch.path_parts'). %% @deprecated Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. %% Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. --define(DB_INSTANCE_ID, 'db.instance.id'). +-define('DB_INSTANCE_ID', 'db.instance.id'). %% @deprecated Removed as not used. %% Removed, no replacement at this time. --define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). +-define('DB_JDBC_DRIVER_CLASSNAME', 'db.jdbc.driver_classname'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). +-define('DB_MONGODB_COLLECTION', 'db.mongodb.collection'). %% @deprecated Deprecated, no replacement at this time. %% Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. --define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). +-define('DB_MSSQL_INSTANCE_NAME', 'db.mssql.instance_name'). %% @deprecated Replaced by `db.namespace`. %% Deprecated, use `db.namespace` instead. --define(DB_NAME, 'db.name'). +-define('DB_NAME', 'db.name'). %% The name of the database, fully qualified within the server address and port. %% --define(DB_NAMESPACE, 'db.namespace'). +-define('DB_NAMESPACE', 'db.namespace'). %% @deprecated Replaced by `db.operation.name`. %% Deprecated, use `db.operation.name` instead. --define(DB_OPERATION, 'db.operation'). +-define('DB_OPERATION', 'db.operation'). %% The name of the operation or command being executed. %% --define(DB_OPERATION_NAME, 'db.operation.name'). +-define('DB_OPERATION_NAME', 'db.operation.name'). %% The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. %% --define(DB_QUERY_PARAMETER, 'db.query.parameter'). +-define('DB_QUERY_PARAMETER', 'db.query.parameter'). %% The database query being executed. %% --define(DB_QUERY_TEXT, 'db.query.text'). +-define('DB_QUERY_TEXT', 'db.query.text'). %% @deprecated Replaced by `db.namespace`. %% Deprecated, use `db.namespace` instead. --define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). +-define('DB_REDIS_DATABASE_INDEX', 'db.redis.database_index'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define(DB_SQL_TABLE, 'db.sql.table'). +-define('DB_SQL_TABLE', 'db.sql.table'). %% @deprecated Replaced by `db.query.text`. %% The database statement being executed. --define(DB_STATEMENT, 'db.statement'). +-define('DB_STATEMENT', 'db.statement'). %% The database management system (DBMS) product as identified by the client instrumentation. --define(DB_SYSTEM, 'db.system'). +-define('DB_SYSTEM', 'db.system'). --define('DB_SYSTEM_VALUES.other_sql', 'other_sql'). +-define('DB_SYSTEM_VALUES_OTHER_SQL', 'other_sql'). --define('DB_SYSTEM_VALUES.mssql', 'mssql'). +-define('DB_SYSTEM_VALUES_MSSQL', 'mssql'). --define('DB_SYSTEM_VALUES.mssqlcompact', 'mssqlcompact'). +-define('DB_SYSTEM_VALUES_MSSQLCOMPACT', 'mssqlcompact'). --define('DB_SYSTEM_VALUES.mysql', 'mysql'). +-define('DB_SYSTEM_VALUES_MYSQL', 'mysql'). --define('DB_SYSTEM_VALUES.oracle', 'oracle'). +-define('DB_SYSTEM_VALUES_ORACLE', 'oracle'). --define('DB_SYSTEM_VALUES.db2', 'db2'). +-define('DB_SYSTEM_VALUES_DB_2', 'db2'). --define('DB_SYSTEM_VALUES.postgresql', 'postgresql'). +-define('DB_SYSTEM_VALUES_POSTGRESQL', 'postgresql'). --define('DB_SYSTEM_VALUES.redshift', 'redshift'). +-define('DB_SYSTEM_VALUES_REDSHIFT', 'redshift'). --define('DB_SYSTEM_VALUES.hive', 'hive'). +-define('DB_SYSTEM_VALUES_HIVE', 'hive'). --define('DB_SYSTEM_VALUES.cloudscape', 'cloudscape'). +-define('DB_SYSTEM_VALUES_CLOUDSCAPE', 'cloudscape'). --define('DB_SYSTEM_VALUES.hsqldb', 'hsqldb'). +-define('DB_SYSTEM_VALUES_HSQLDB', 'hsqldb'). --define('DB_SYSTEM_VALUES.progress', 'progress'). +-define('DB_SYSTEM_VALUES_PROGRESS', 'progress'). --define('DB_SYSTEM_VALUES.maxdb', 'maxdb'). +-define('DB_SYSTEM_VALUES_MAXDB', 'maxdb'). --define('DB_SYSTEM_VALUES.hanadb', 'hanadb'). +-define('DB_SYSTEM_VALUES_HANADB', 'hanadb'). --define('DB_SYSTEM_VALUES.ingres', 'ingres'). +-define('DB_SYSTEM_VALUES_INGRES', 'ingres'). --define('DB_SYSTEM_VALUES.firstsql', 'firstsql'). +-define('DB_SYSTEM_VALUES_FIRSTSQL', 'firstsql'). --define('DB_SYSTEM_VALUES.edb', 'edb'). +-define('DB_SYSTEM_VALUES_EDB', 'edb'). --define('DB_SYSTEM_VALUES.cache', 'cache'). +-define('DB_SYSTEM_VALUES_CACHE', 'cache'). --define('DB_SYSTEM_VALUES.adabas', 'adabas'). +-define('DB_SYSTEM_VALUES_ADABAS', 'adabas'). --define('DB_SYSTEM_VALUES.firebird', 'firebird'). +-define('DB_SYSTEM_VALUES_FIREBIRD', 'firebird'). --define('DB_SYSTEM_VALUES.derby', 'derby'). +-define('DB_SYSTEM_VALUES_DERBY', 'derby'). --define('DB_SYSTEM_VALUES.filemaker', 'filemaker'). +-define('DB_SYSTEM_VALUES_FILEMAKER', 'filemaker'). --define('DB_SYSTEM_VALUES.informix', 'informix'). +-define('DB_SYSTEM_VALUES_INFORMIX', 'informix'). --define('DB_SYSTEM_VALUES.instantdb', 'instantdb'). +-define('DB_SYSTEM_VALUES_INSTANTDB', 'instantdb'). --define('DB_SYSTEM_VALUES.interbase', 'interbase'). +-define('DB_SYSTEM_VALUES_INTERBASE', 'interbase'). --define('DB_SYSTEM_VALUES.mariadb', 'mariadb'). +-define('DB_SYSTEM_VALUES_MARIADB', 'mariadb'). --define('DB_SYSTEM_VALUES.netezza', 'netezza'). +-define('DB_SYSTEM_VALUES_NETEZZA', 'netezza'). --define('DB_SYSTEM_VALUES.pervasive', 'pervasive'). +-define('DB_SYSTEM_VALUES_PERVASIVE', 'pervasive'). --define('DB_SYSTEM_VALUES.pointbase', 'pointbase'). +-define('DB_SYSTEM_VALUES_POINTBASE', 'pointbase'). --define('DB_SYSTEM_VALUES.sqlite', 'sqlite'). +-define('DB_SYSTEM_VALUES_SQLITE', 'sqlite'). --define('DB_SYSTEM_VALUES.sybase', 'sybase'). +-define('DB_SYSTEM_VALUES_SYBASE', 'sybase'). --define('DB_SYSTEM_VALUES.teradata', 'teradata'). +-define('DB_SYSTEM_VALUES_TERADATA', 'teradata'). --define('DB_SYSTEM_VALUES.vertica', 'vertica'). +-define('DB_SYSTEM_VALUES_VERTICA', 'vertica'). --define('DB_SYSTEM_VALUES.h2', 'h2'). +-define('DB_SYSTEM_VALUES_H_2', 'h2'). --define('DB_SYSTEM_VALUES.coldfusion', 'coldfusion'). +-define('DB_SYSTEM_VALUES_COLDFUSION', 'coldfusion'). --define('DB_SYSTEM_VALUES.cassandra', 'cassandra'). +-define('DB_SYSTEM_VALUES_CASSANDRA', 'cassandra'). --define('DB_SYSTEM_VALUES.hbase', 'hbase'). +-define('DB_SYSTEM_VALUES_HBASE', 'hbase'). --define('DB_SYSTEM_VALUES.mongodb', 'mongodb'). +-define('DB_SYSTEM_VALUES_MONGODB', 'mongodb'). --define('DB_SYSTEM_VALUES.redis', 'redis'). +-define('DB_SYSTEM_VALUES_REDIS', 'redis'). --define('DB_SYSTEM_VALUES.couchbase', 'couchbase'). +-define('DB_SYSTEM_VALUES_COUCHBASE', 'couchbase'). --define('DB_SYSTEM_VALUES.couchdb', 'couchdb'). +-define('DB_SYSTEM_VALUES_COUCHDB', 'couchdb'). --define('DB_SYSTEM_VALUES.cosmosdb', 'cosmosdb'). +-define('DB_SYSTEM_VALUES_COSMOSDB', 'cosmosdb'). --define('DB_SYSTEM_VALUES.dynamodb', 'dynamodb'). +-define('DB_SYSTEM_VALUES_DYNAMODB', 'dynamodb'). --define('DB_SYSTEM_VALUES.neo4j', 'neo4j'). +-define('DB_SYSTEM_VALUES_NEO_4_J', 'neo4j'). --define('DB_SYSTEM_VALUES.geode', 'geode'). +-define('DB_SYSTEM_VALUES_GEODE', 'geode'). --define('DB_SYSTEM_VALUES.elasticsearch', 'elasticsearch'). +-define('DB_SYSTEM_VALUES_ELASTICSEARCH', 'elasticsearch'). --define('DB_SYSTEM_VALUES.memcached', 'memcached'). +-define('DB_SYSTEM_VALUES_MEMCACHED', 'memcached'). --define('DB_SYSTEM_VALUES.cockroachdb', 'cockroachdb'). +-define('DB_SYSTEM_VALUES_COCKROACHDB', 'cockroachdb'). --define('DB_SYSTEM_VALUES.opensearch', 'opensearch'). +-define('DB_SYSTEM_VALUES_OPENSEARCH', 'opensearch'). --define('DB_SYSTEM_VALUES.clickhouse', 'clickhouse'). +-define('DB_SYSTEM_VALUES_CLICKHOUSE', 'clickhouse'). --define('DB_SYSTEM_VALUES.spanner', 'spanner'). +-define('DB_SYSTEM_VALUES_SPANNER', 'spanner'). --define('DB_SYSTEM_VALUES.trino', 'trino'). +-define('DB_SYSTEM_VALUES_TRINO', 'trino'). %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. --define(DB_USER, 'db.user'). +-define('DB_USER', 'db.user'). %% @deprecated Replaced by `db.client.connections.pool.name`. %% Deprecated, use `db.client.connections.pool.name` instead. --define(POOL_NAME, 'pool.name'). +-define('POOL_NAME', 'pool.name'). %% @deprecated Replaced by `db.client.connections.state`. %% Deprecated, use `db.client.connections.state` instead. --define(STATE, 'state'). +-define('STATE', 'state'). --define('STATE_VALUES.idle', 'idle'). +-define('STATE_VALUES_IDLE', 'idle'). --define('STATE_VALUES.used', 'used'). +-define('STATE_VALUES_USED', 'used'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl index 51b0c3fe..b26a1f34 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl @@ -16,4 +16,4 @@ %% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). %% --define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). +-define('DEPLOYMENT_ENVIRONMENT', 'deployment.environment'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl index 3239960a..d3cdc4ff 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define(DESTINATION_ADDRESS, 'destination.address'). +-define('DESTINATION_ADDRESS', 'destination.address'). %% Destination port number --define(DESTINATION_PORT, 'destination.port'). +-define('DESTINATION_PORT', 'destination.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl index 8b75ec21..1f24922c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl @@ -16,19 +16,19 @@ %% A unique identifier representing the device %% --define(DEVICE_ID, 'device.id'). +-define('DEVICE_ID', 'device.id'). %% The name of the device manufacturer %% --define(DEVICE_MANUFACTURER, 'device.manufacturer'). +-define('DEVICE_MANUFACTURER', 'device.manufacturer'). %% The model identifier for the device %% --define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). +-define('DEVICE_MODEL_IDENTIFIER', 'device.model.identifier'). %% The marketing name for the device model %% --define(DEVICE_MODEL_NAME, 'device.model.name'). +-define('DEVICE_MODEL_NAME', 'device.model.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl index da694619..ba42cb70 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl @@ -15,9 +15,9 @@ %%%------------------------------------------------------------------------- %% The disk IO operation direction. --define(DISK_IO_DIRECTION, 'disk.io.direction'). +-define('DISK_IO_DIRECTION', 'disk.io.direction'). --define('DISK_IO_DIRECTION_VALUES.read', 'read'). +-define('DISK_IO_DIRECTION_VALUES_READ', 'read'). --define('DISK_IO_DIRECTION_VALUES.write', 'write'). +-define('DISK_IO_DIRECTION_VALUES_WRITE', 'write'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl index b5399045..e950de1a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl @@ -15,4 +15,4 @@ %%%------------------------------------------------------------------------- %% The name being queried. --define(DNS_QUESTION_NAME, 'dns.question.name'). +-define('DNS_QUESTION_NAME', 'dns.question.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl index 2afc72e4..9fa1c027 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl @@ -16,13 +16,13 @@ %% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. %% --define(ENDUSER_ID, 'enduser.id'). +-define('ENDUSER_ID', 'enduser.id'). %% Actual/assumed role the client is making the request under extracted from token or application security context. --define(ENDUSER_ROLE, 'enduser.role'). +-define('ENDUSER_ROLE', 'enduser.role'). %% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). %% --define(ENDUSER_SCOPE, 'enduser.scope'). +-define('ENDUSER_SCOPE', 'enduser.scope'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl index 58b4dbd1..be48574b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl @@ -16,4 +16,4 @@ %% Identifies the class / type of event. %% --define(EVENT_NAME, 'event.name'). +-define('EVENT_NAME', 'event.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl index 856fe0b7..eddb5376 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl @@ -16,106 +16,106 @@ %% A boolean that is true if the serverless function is executed for the first time (aka cold-start). %% --define(FAAS_COLDSTART, 'faas.coldstart'). +-define('FAAS_COLDSTART', 'faas.coldstart'). %% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). %% --define(FAAS_CRON, 'faas.cron'). +-define('FAAS_CRON', 'faas.cron'). %% 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. %% --define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). +-define('FAAS_DOCUMENT_COLLECTION', 'faas.document.collection'). %% 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. %% --define(FAAS_DOCUMENT_NAME, 'faas.document.name'). +-define('FAAS_DOCUMENT_NAME', 'faas.document.name'). %% Describes the type of the operation that was performed on the data. --define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). +-define('FAAS_DOCUMENT_OPERATION', 'faas.document.operation'). --define('FAAS_DOCUMENT_OPERATION_VALUES.insert', 'insert'). +-define('FAAS_DOCUMENT_OPERATION_VALUES_INSERT', 'insert'). --define('FAAS_DOCUMENT_OPERATION_VALUES.edit', 'edit'). +-define('FAAS_DOCUMENT_OPERATION_VALUES_EDIT', 'edit'). --define('FAAS_DOCUMENT_OPERATION_VALUES.delete', 'delete'). +-define('FAAS_DOCUMENT_OPERATION_VALUES_DELETE', 'delete'). %% 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). %% --define(FAAS_DOCUMENT_TIME, 'faas.document.time'). +-define('FAAS_DOCUMENT_TIME', 'faas.document.time'). %% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. %% --define(FAAS_INSTANCE, 'faas.instance'). +-define('FAAS_INSTANCE', 'faas.instance'). %% The invocation ID of the current function invocation. %% --define(FAAS_INVOCATION_ID, 'faas.invocation_id'). +-define('FAAS_INVOCATION_ID', 'faas.invocation_id'). %% The name of the invoked function. %% --define(FAAS_INVOKED_NAME, 'faas.invoked_name'). +-define('FAAS_INVOKED_NAME', 'faas.invoked_name'). %% The cloud provider of the invoked function. %% --define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). +-define('FAAS_INVOKED_PROVIDER', 'faas.invoked_provider'). --define('FAAS_INVOKED_PROVIDER_VALUES.alibaba_cloud', 'alibaba_cloud'). +-define('FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD', 'alibaba_cloud'). --define('FAAS_INVOKED_PROVIDER_VALUES.aws', 'aws'). +-define('FAAS_INVOKED_PROVIDER_VALUES_AWS', 'aws'). --define('FAAS_INVOKED_PROVIDER_VALUES.azure', 'azure'). +-define('FAAS_INVOKED_PROVIDER_VALUES_AZURE', 'azure'). --define('FAAS_INVOKED_PROVIDER_VALUES.gcp', 'gcp'). +-define('FAAS_INVOKED_PROVIDER_VALUES_GCP', 'gcp'). --define('FAAS_INVOKED_PROVIDER_VALUES.tencent_cloud', 'tencent_cloud'). +-define('FAAS_INVOKED_PROVIDER_VALUES_TENCENT_CLOUD', 'tencent_cloud'). %% The cloud region of the invoked function. %% --define(FAAS_INVOKED_REGION, 'faas.invoked_region'). +-define('FAAS_INVOKED_REGION', 'faas.invoked_region'). %% The amount of memory available to the serverless function converted to Bytes. %% --define(FAAS_MAX_MEMORY, 'faas.max_memory'). +-define('FAAS_MAX_MEMORY', 'faas.max_memory'). %% The name of the single function that this runtime instance executes. %% --define(FAAS_NAME, 'faas.name'). +-define('FAAS_NAME', 'faas.name'). %% 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). %% --define(FAAS_TIME, 'faas.time'). +-define('FAAS_TIME', 'faas.time'). %% Type of the trigger which caused this function invocation. %% --define(FAAS_TRIGGER, 'faas.trigger'). +-define('FAAS_TRIGGER', 'faas.trigger'). --define('FAAS_TRIGGER_VALUES.datasource', 'datasource'). +-define('FAAS_TRIGGER_VALUES_DATASOURCE', 'datasource'). --define('FAAS_TRIGGER_VALUES.http', 'http'). +-define('FAAS_TRIGGER_VALUES_HTTP', 'http'). --define('FAAS_TRIGGER_VALUES.pubsub', 'pubsub'). +-define('FAAS_TRIGGER_VALUES_PUBSUB', 'pubsub'). --define('FAAS_TRIGGER_VALUES.timer', 'timer'). +-define('FAAS_TRIGGER_VALUES_TIMER', 'timer'). --define('FAAS_TRIGGER_VALUES.other', 'other'). +-define('FAAS_TRIGGER_VALUES_OTHER', 'other'). %% The immutable version of the function being executed. --define(FAAS_VERSION, 'faas.version'). +-define('FAAS_VERSION', 'faas.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl index 5b59e448..6ac3d9c4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl @@ -15,13 +15,13 @@ %%%------------------------------------------------------------------------- %% The unique identifier of the feature flag. --define(FEATURE_FLAG_KEY, 'feature_flag.key'). +-define('FEATURE_FLAG_KEY', 'feature_flag.key'). %% The name of the service provider that performs the flag evaluation. --define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). +-define('FEATURE_FLAG_PROVIDER_NAME', 'feature_flag.provider_name'). %% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. %% --define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). +-define('FEATURE_FLAG_VARIANT', 'feature_flag.variant'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl index 0ea28994..dfcf8793 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl @@ -16,24 +16,24 @@ %% Directory where the file is located. It should include the drive letter, when appropriate. %% --define(FILE_DIRECTORY, 'file.directory'). +-define('FILE_DIRECTORY', 'file.directory'). %% File extension, excluding the leading dot. %% --define(FILE_EXTENSION, 'file.extension'). +-define('FILE_EXTENSION', 'file.extension'). %% Name of the file including the extension, without the directory. %% --define(FILE_NAME, 'file.name'). +-define('FILE_NAME', 'file.name'). %% Full path to the file, including the file name. It should include the drive letter, when appropriate. %% --define(FILE_PATH, 'file.path'). +-define('FILE_PATH', 'file.path'). %% File size in bytes. %% --define(FILE_SIZE, 'file.size'). +-define('FILE_SIZE', 'file.size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl index 3404be06..6e5ffb20 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl @@ -16,19 +16,19 @@ %% 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. %% --define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). +-define('GCP_CLOUD_RUN_JOB_EXECUTION', 'gcp.cloud_run.job.execution'). %% 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. %% --define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). +-define('GCP_CLOUD_RUN_JOB_TASK_INDEX', 'gcp.cloud_run.job.task_index'). %% 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). %% --define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). +-define('GCP_GCE_INSTANCE_HOSTNAME', 'gcp.gce.instance.hostname'). %% 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). %% --define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). +-define('GCP_GCE_INSTANCE_NAME', 'gcp.gce.instance.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl index 80aaa906..dc038d87 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl @@ -15,51 +15,51 @@ %%%------------------------------------------------------------------------- %% The full response received from the LLM. --define(GEN_AI_COMPLETION, 'gen_ai.completion'). +-define('GEN_AI_COMPLETION', 'gen_ai.completion'). %% The full prompt sent to an LLM. --define(GEN_AI_PROMPT, 'gen_ai.prompt'). +-define('GEN_AI_PROMPT', 'gen_ai.prompt'). %% The maximum number of tokens the LLM generates for a request. --define(GEN_AI_REQUEST_MAX_TOKENS, 'gen_ai.request.max_tokens'). +-define('GEN_AI_REQUEST_MAX_TOKENS', 'gen_ai.request.max_tokens'). %% The name of the LLM a request is being made to. --define(GEN_AI_REQUEST_MODEL, 'gen_ai.request.model'). +-define('GEN_AI_REQUEST_MODEL', 'gen_ai.request.model'). %% The temperature setting for the LLM request. --define(GEN_AI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). +-define('GEN_AI_REQUEST_TEMPERATURE', 'gen_ai.request.temperature'). %% The top_p sampling setting for the LLM request. --define(GEN_AI_REQUEST_TOP_P, 'gen_ai.request.top_p'). +-define('GEN_AI_REQUEST_TOP_P', 'gen_ai.request.top_p'). %% Array of reasons the model stopped generating tokens, corresponding to each generation received. --define(GEN_AI_RESPONSE_FINISH_REASONS, 'gen_ai.response.finish_reasons'). +-define('GEN_AI_RESPONSE_FINISH_REASONS', 'gen_ai.response.finish_reasons'). %% The unique identifier for the completion. --define(GEN_AI_RESPONSE_ID, 'gen_ai.response.id'). +-define('GEN_AI_RESPONSE_ID', 'gen_ai.response.id'). %% The name of the LLM a response was generated from. --define(GEN_AI_RESPONSE_MODEL, 'gen_ai.response.model'). +-define('GEN_AI_RESPONSE_MODEL', 'gen_ai.response.model'). %% The Generative AI product as identified by the client instrumentation. --define(GEN_AI_SYSTEM, 'gen_ai.system'). +-define('GEN_AI_SYSTEM', 'gen_ai.system'). --define('GEN_AI_SYSTEM_VALUES.openai', 'openai'). +-define('GEN_AI_SYSTEM_VALUES_OPENAI', 'openai'). %% The number of tokens used in the LLM response (completion). --define(GEN_AI_USAGE_COMPLETION_TOKENS, 'gen_ai.usage.completion_tokens'). +-define('GEN_AI_USAGE_COMPLETION_TOKENS', 'gen_ai.usage.completion_tokens'). %% The number of tokens used in the LLM prompt. --define(GEN_AI_USAGE_PROMPT_TOKENS, 'gen_ai.usage.prompt_tokens'). +-define('GEN_AI_USAGE_PROMPT_TOKENS', 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl index 61f6278f..251129b7 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl @@ -15,19 +15,19 @@ %%%------------------------------------------------------------------------- %% The GraphQL document being executed. --define(GRAPHQL_DOCUMENT, 'graphql.document'). +-define('GRAPHQL_DOCUMENT', 'graphql.document'). %% The name of the operation being executed. --define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). +-define('GRAPHQL_OPERATION_NAME', 'graphql.operation.name'). %% The type of the operation being executed. --define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). +-define('GRAPHQL_OPERATION_TYPE', 'graphql.operation.type'). --define('GRAPHQL_OPERATION_TYPE_VALUES.query', 'query'). +-define('GRAPHQL_OPERATION_TYPE_VALUES_QUERY', 'query'). --define('GRAPHQL_OPERATION_TYPE_VALUES.mutation', 'mutation'). +-define('GRAPHQL_OPERATION_TYPE_VALUES_MUTATION', 'mutation'). --define('GRAPHQL_OPERATION_TYPE_VALUES.subscription', 'subscription'). +-define('GRAPHQL_OPERATION_TYPE_VALUES_SUBSCRIPTION', 'subscription'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl index 96595577..f5da1e77 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl @@ -16,14 +16,14 @@ %% Unique identifier for the application %% --define(HEROKU_APP_ID, 'heroku.app.id'). +-define('HEROKU_APP_ID', 'heroku.app.id'). %% Commit hash for the current release %% --define(HEROKU_RELEASE_COMMIT, 'heroku.release.commit'). +-define('HEROKU_RELEASE_COMMIT', 'heroku.release.commit'). %% Time and date the release was created %% --define(HEROKU_RELEASE_CREATION_TIMESTAMP, 'heroku.release.creation_timestamp'). +-define('HEROKU_RELEASE_CREATION_TIMESTAMP', 'heroku.release.creation_timestamp'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl index 70da0efb..1693de69 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl @@ -16,91 +16,91 @@ %% The CPU architecture the host system is running on. %% --define(HOST_ARCH, 'host.arch'). +-define('HOST_ARCH', 'host.arch'). --define('HOST_ARCH_VALUES.amd64', 'amd64'). +-define('HOST_ARCH_VALUES_AMD_64', 'amd64'). --define('HOST_ARCH_VALUES.arm32', 'arm32'). +-define('HOST_ARCH_VALUES_ARM_32', 'arm32'). --define('HOST_ARCH_VALUES.arm64', 'arm64'). +-define('HOST_ARCH_VALUES_ARM_64', 'arm64'). --define('HOST_ARCH_VALUES.ia64', 'ia64'). +-define('HOST_ARCH_VALUES_IA_64', 'ia64'). --define('HOST_ARCH_VALUES.ppc32', 'ppc32'). +-define('HOST_ARCH_VALUES_PPC_32', 'ppc32'). --define('HOST_ARCH_VALUES.ppc64', 'ppc64'). +-define('HOST_ARCH_VALUES_PPC_64', 'ppc64'). --define('HOST_ARCH_VALUES.s390x', 's390x'). +-define('HOST_ARCH_VALUES_S_390_X', 's390x'). --define('HOST_ARCH_VALUES.x86', 'x86'). +-define('HOST_ARCH_VALUES_X_86', 'x86'). %% The amount of level 2 memory cache available to the processor (in Bytes). %% --define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). +-define('HOST_CPU_CACHE_L2_SIZE', 'host.cpu.cache.l2.size'). %% Family or generation of the CPU. %% --define(HOST_CPU_FAMILY, 'host.cpu.family'). +-define('HOST_CPU_FAMILY', 'host.cpu.family'). %% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. %% --define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). +-define('HOST_CPU_MODEL_ID', 'host.cpu.model.id'). %% Model designation of the processor. %% --define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). +-define('HOST_CPU_MODEL_NAME', 'host.cpu.model.name'). %% Stepping or core revisions. %% --define(HOST_CPU_STEPPING, 'host.cpu.stepping'). +-define('HOST_CPU_STEPPING', 'host.cpu.stepping'). %% Processor manufacturer identifier. A maximum 12-character string. %% --define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). +-define('HOST_CPU_VENDOR_ID', 'host.cpu.vendor.id'). %% 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. %% --define(HOST_ID, 'host.id'). +-define('HOST_ID', 'host.id'). %% VM image ID or host OS image ID. For Cloud, this value is from the provider. %% --define(HOST_IMAGE_ID, 'host.image.id'). +-define('HOST_IMAGE_ID', 'host.image.id'). %% Name of the VM image or OS install the host was instantiated from. %% --define(HOST_IMAGE_NAME, 'host.image.name'). +-define('HOST_IMAGE_NAME', 'host.image.name'). %% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). %% --define(HOST_IMAGE_VERSION, 'host.image.version'). +-define('HOST_IMAGE_VERSION', 'host.image.version'). %% Available IP addresses of the host, excluding loopback interfaces. %% --define(HOST_IP, 'host.ip'). +-define('HOST_IP', 'host.ip'). %% Available MAC addresses of the host, excluding loopback interfaces. %% --define(HOST_MAC, 'host.mac'). +-define('HOST_MAC', 'host.mac'). %% 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. %% --define(HOST_NAME, 'host.name'). +-define('HOST_NAME', 'host.name'). %% Type of host. For Cloud, this must be the machine type. %% --define(HOST_TYPE, 'host.type'). +-define('HOST_TYPE', 'host.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl index f2432c3d..094cf38b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl @@ -15,98 +15,98 @@ %%%------------------------------------------------------------------------- %% @deprecated Replaced by `client.address`. %% Deprecated, use `client.address` instead. --define(HTTP_CLIENT_IP, 'http.client_ip'). +-define('HTTP_CLIENT_IP', 'http.client_ip'). %% State of the HTTP connection in the HTTP connection pool. --define(HTTP_CONNECTION_STATE, 'http.connection.state'). +-define('HTTP_CONNECTION_STATE', 'http.connection.state'). --define('HTTP_CONNECTION_STATE_VALUES.active', 'active'). +-define('HTTP_CONNECTION_STATE_VALUES_ACTIVE', 'active'). --define('HTTP_CONNECTION_STATE_VALUES.idle', 'idle'). +-define('HTTP_CONNECTION_STATE_VALUES_IDLE', 'idle'). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name` instead. --define(HTTP_FLAVOR, 'http.flavor'). +-define('HTTP_FLAVOR', 'http.flavor'). --define('HTTP_FLAVOR_VALUES.http_1_0', '1.0'). +-define('HTTP_FLAVOR_VALUES_HTTP_1_0', '1.0'). --define('HTTP_FLAVOR_VALUES.http_1_1', '1.1'). +-define('HTTP_FLAVOR_VALUES_HTTP_1_1', '1.1'). --define('HTTP_FLAVOR_VALUES.http_2_0', '2.0'). +-define('HTTP_FLAVOR_VALUES_HTTP_2_0', '2.0'). --define('HTTP_FLAVOR_VALUES.http_3_0', '3.0'). +-define('HTTP_FLAVOR_VALUES_HTTP_3_0', '3.0'). --define('HTTP_FLAVOR_VALUES.spdy', 'SPDY'). +-define('HTTP_FLAVOR_VALUES_SPDY', 'SPDY'). --define('HTTP_FLAVOR_VALUES.quic', 'QUIC'). +-define('HTTP_FLAVOR_VALUES_QUIC', 'QUIC'). %% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. %% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. --define(HTTP_HOST, 'http.host'). +-define('HTTP_HOST', 'http.host'). %% @deprecated Replaced by `http.request.method`. %% Deprecated, use `http.request.method` instead. --define(HTTP_METHOD, 'http.method'). +-define('HTTP_METHOD', 'http.method'). %% 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. %% --define(HTTP_REQUEST_BODY_SIZE, 'http.request.body.size'). +-define('HTTP_REQUEST_BODY_SIZE', 'http.request.body.size'). %% 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. %% --define(HTTP_REQUEST_SIZE, 'http.request.size'). +-define('HTTP_REQUEST_SIZE', 'http.request.size'). %% @deprecated Replaced by `http.request.header.content-length`. %% Deprecated, use `http.request.header.content-length` instead. --define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). +-define('HTTP_REQUEST_CONTENT_LENGTH', 'http.request_content_length'). %% @deprecated Replaced by `http.request.body.size`. %% Deprecated, use `http.request.body.size` instead. --define(HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED, 'http.request_content_length_uncompressed'). +-define('HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED', 'http.request_content_length_uncompressed'). %% 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. %% --define(HTTP_RESPONSE_BODY_SIZE, 'http.response.body.size'). +-define('HTTP_RESPONSE_BODY_SIZE', 'http.response.body.size'). %% 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. %% --define(HTTP_RESPONSE_SIZE, 'http.response.size'). +-define('HTTP_RESPONSE_SIZE', 'http.response.size'). %% @deprecated Replaced by `http.response.header.content-length`. %% Deprecated, use `http.response.header.content-length` instead. --define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). +-define('HTTP_RESPONSE_CONTENT_LENGTH', 'http.response_content_length'). %% @deprecated Replace by `http.response.body.size`. %% Deprecated, use `http.response.body.size` instead. --define(HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED, 'http.response_content_length_uncompressed'). +-define('HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED', 'http.response_content_length_uncompressed'). %% @deprecated Replaced by `url.scheme` instead. %% Deprecated, use `url.scheme` instead. --define(HTTP_SCHEME, 'http.scheme'). +-define('HTTP_SCHEME', 'http.scheme'). %% @deprecated Replaced by `server.address`. %% Deprecated, use `server.address` instead. --define(HTTP_SERVER_NAME, 'http.server_name'). +-define('HTTP_SERVER_NAME', 'http.server_name'). %% @deprecated Replaced by `http.response.status_code`. %% Deprecated, use `http.response.status_code` instead. --define(HTTP_STATUS_CODE, 'http.status_code'). +-define('HTTP_STATUS_CODE', 'http.status_code'). %% @deprecated Split to `url.path` and `url.query. %% Deprecated, use `url.path` and `url.query` instead. --define(HTTP_TARGET, 'http.target'). +-define('HTTP_TARGET', 'http.target'). %% @deprecated Replaced by `url.full`. %% Deprecated, use `url.full` instead. --define(HTTP_URL, 'http.url'). +-define('HTTP_URL', 'http.url'). %% @deprecated Replaced by `user_agent.original`. %% Deprecated, use `user_agent.original` instead. --define(HTTP_USER_AGENT, 'http.user_agent'). +-define('HTTP_USER_AGENT', 'http.user_agent'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl index 61ccc98d..4360bfff 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl @@ -16,123 +16,123 @@ %% The name of the cluster. %% --define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). +-define('K8S_CLUSTER_NAME', 'k8s.cluster.name'). %% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. %% --define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). +-define('K8S_CLUSTER_UID', 'k8s.cluster.uid'). %% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). %% --define(K8S_CONTAINER_NAME, 'k8s.container.name'). +-define('K8S_CONTAINER_NAME', 'k8s.container.name'). %% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. %% --define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). +-define('K8S_CONTAINER_RESTART_COUNT', 'k8s.container.restart_count'). %% Last terminated reason of the Container. %% --define(K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON, 'k8s.container.status.last_terminated_reason'). +-define('K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON', 'k8s.container.status.last_terminated_reason'). %% The name of the CronJob. %% --define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). +-define('K8S_CRONJOB_NAME', 'k8s.cronjob.name'). %% The UID of the CronJob. %% --define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). +-define('K8S_CRONJOB_UID', 'k8s.cronjob.uid'). %% The name of the DaemonSet. %% --define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). +-define('K8S_DAEMONSET_NAME', 'k8s.daemonset.name'). %% The UID of the DaemonSet. %% --define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). +-define('K8S_DAEMONSET_UID', 'k8s.daemonset.uid'). %% The name of the Deployment. %% --define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). +-define('K8S_DEPLOYMENT_NAME', 'k8s.deployment.name'). %% The UID of the Deployment. %% --define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). +-define('K8S_DEPLOYMENT_UID', 'k8s.deployment.uid'). %% The name of the Job. %% --define(K8S_JOB_NAME, 'k8s.job.name'). +-define('K8S_JOB_NAME', 'k8s.job.name'). %% The UID of the Job. %% --define(K8S_JOB_UID, 'k8s.job.uid'). +-define('K8S_JOB_UID', 'k8s.job.uid'). %% The name of the namespace that the pod is running in. %% --define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). +-define('K8S_NAMESPACE_NAME', 'k8s.namespace.name'). %% The name of the Node. %% --define(K8S_NODE_NAME, 'k8s.node.name'). +-define('K8S_NODE_NAME', 'k8s.node.name'). %% The UID of the Node. %% --define(K8S_NODE_UID, 'k8s.node.uid'). +-define('K8S_NODE_UID', 'k8s.node.uid'). %% The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. %% --define(K8S_POD_ANNOTATION, 'k8s.pod.annotation'). +-define('K8S_POD_ANNOTATION', 'k8s.pod.annotation'). %% The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. %% --define(K8S_POD_LABEL, 'k8s.pod.label'). +-define('K8S_POD_LABEL', 'k8s.pod.label'). %% @deprecated Replaced by `k8s.pod.label`. %% Deprecated, use `k8s.pod.label` instead. --define(K8S_POD_LABELS, 'k8s.pod.labels'). +-define('K8S_POD_LABELS', 'k8s.pod.labels'). %% The name of the Pod. %% --define(K8S_POD_NAME, 'k8s.pod.name'). +-define('K8S_POD_NAME', 'k8s.pod.name'). %% The UID of the Pod. %% --define(K8S_POD_UID, 'k8s.pod.uid'). +-define('K8S_POD_UID', 'k8s.pod.uid'). %% The name of the ReplicaSet. %% --define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). +-define('K8S_REPLICASET_NAME', 'k8s.replicaset.name'). %% The UID of the ReplicaSet. %% --define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). +-define('K8S_REPLICASET_UID', 'k8s.replicaset.uid'). %% The name of the StatefulSet. %% --define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). +-define('K8S_STATEFULSET_NAME', 'k8s.statefulset.name'). %% The UID of the StatefulSet. %% --define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). +-define('K8S_STATEFULSET_UID', 'k8s.statefulset.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl index 7ebd9c68..7adfa0bd 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl @@ -16,34 +16,34 @@ %% The basename of the file. %% --define(LOG_FILE_NAME, 'log.file.name'). +-define('LOG_FILE_NAME', 'log.file.name'). %% The basename of the file, with symlinks resolved. %% --define(LOG_FILE_NAME_RESOLVED, 'log.file.name_resolved'). +-define('LOG_FILE_NAME_RESOLVED', 'log.file.name_resolved'). %% The full path to the file. %% --define(LOG_FILE_PATH, 'log.file.path'). +-define('LOG_FILE_PATH', 'log.file.path'). %% The full path to the file, with symlinks resolved. %% --define(LOG_FILE_PATH_RESOLVED, 'log.file.path_resolved'). +-define('LOG_FILE_PATH_RESOLVED', 'log.file.path_resolved'). %% The stream associated with the log. See below for a list of well-known values. %% --define(LOG_IOSTREAM, 'log.iostream'). +-define('LOG_IOSTREAM', 'log.iostream'). --define('LOG_IOSTREAM_VALUES.stdout', 'stdout'). +-define('LOG_IOSTREAM_VALUES_STDOUT', 'stdout'). --define('LOG_IOSTREAM_VALUES.stderr', 'stderr'). +-define('LOG_IOSTREAM_VALUES_STDERR', 'stderr'). %% A unique identifier for the Log Record. %% --define(LOG_RECORD_UID, 'log.record.uid'). +-define('LOG_RECORD_UID', 'log.record.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl index d19303d8..401e5c77 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl @@ -15,260 +15,260 @@ %%%------------------------------------------------------------------------- %% The number of messages sent, received, or processed in the scope of the batching operation. --define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). +-define('MESSAGING_BATCH_MESSAGE_COUNT', 'messaging.batch.message_count'). %% A unique identifier for the client that consumes or produces a message. %% --define(MESSAGING_CLIENT_ID, 'messaging.client.id'). +-define('MESSAGING_CLIENT_ID', 'messaging.client.id'). %% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). --define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). +-define('MESSAGING_DESTINATION_ANONYMOUS', 'messaging.destination.anonymous'). %% The message destination name --define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). +-define('MESSAGING_DESTINATION_NAME', 'messaging.destination.name'). %% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. %% --define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). +-define('MESSAGING_DESTINATION_PARTITION_ID', 'messaging.destination.partition.id'). %% Low cardinality representation of the messaging destination name --define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). +-define('MESSAGING_DESTINATION_TEMPLATE', 'messaging.destination.template'). %% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. --define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). +-define('MESSAGING_DESTINATION_TEMPORARY', 'messaging.destination.temporary'). %% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). --define(MESSAGING_DESTINATION_PUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). +-define('MESSAGING_DESTINATION_PUBLISH_ANONYMOUS', 'messaging.destination_publish.anonymous'). %% The name of the original destination the message was published to --define(MESSAGING_DESTINATION_PUBLISH_NAME, 'messaging.destination_publish.name'). +-define('MESSAGING_DESTINATION_PUBLISH_NAME', 'messaging.destination_publish.name'). %% The name of the consumer group the event consumer is associated with. %% --define(MESSAGING_EVENTHUBS_CONSUMER_GROUP, 'messaging.eventhubs.consumer.group'). +-define('MESSAGING_EVENTHUBS_CONSUMER_GROUP', 'messaging.eventhubs.consumer.group'). %% The UTC epoch seconds at which the message has been accepted and stored in the entity. %% --define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME, 'messaging.eventhubs.message.enqueued_time'). +-define('MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME', 'messaging.eventhubs.message.enqueued_time'). %% The ack deadline in seconds set for the modify ack deadline request. %% --define(MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE, 'messaging.gcp_pubsub.message.ack_deadline'). +-define('MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE', 'messaging.gcp_pubsub.message.ack_deadline'). %% The ack id for a given message. %% --define(MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID, 'messaging.gcp_pubsub.message.ack_id'). +-define('MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID', 'messaging.gcp_pubsub.message.ack_id'). %% The delivery attempt for a given message. %% --define(MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT, 'messaging.gcp_pubsub.message.delivery_attempt'). +-define('MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT', 'messaging.gcp_pubsub.message.delivery_attempt'). %% The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. %% --define(MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY, 'messaging.gcp_pubsub.message.ordering_key'). +-define('MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY', 'messaging.gcp_pubsub.message.ordering_key'). %% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. %% --define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer.group'). +-define('MESSAGING_KAFKA_CONSUMER_GROUP', 'messaging.kafka.consumer.group'). %% @deprecated Replaced by `messaging.destination.partition.id`. %% Deprecated, use `messaging.destination.partition.id` instead. %% --define(MESSAGING_KAFKA_DESTINATION_PARTITION, 'messaging.kafka.destination.partition'). +-define('MESSAGING_KAFKA_DESTINATION_PARTITION', 'messaging.kafka.destination.partition'). %% Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. %% --define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message.key'). +-define('MESSAGING_KAFKA_MESSAGE_KEY', 'messaging.kafka.message.key'). %% The offset of a record in the corresponding Kafka partition. %% --define(MESSAGING_KAFKA_MESSAGE_OFFSET, 'messaging.kafka.message.offset'). +-define('MESSAGING_KAFKA_MESSAGE_OFFSET', 'messaging.kafka.message.offset'). %% A boolean that is true if the message is a tombstone. --define(MESSAGING_KAFKA_MESSAGE_TOMBSTONE, 'messaging.kafka.message.tombstone'). +-define('MESSAGING_KAFKA_MESSAGE_TOMBSTONE', 'messaging.kafka.message.tombstone'). %% The size of the message body in bytes. %% --define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). +-define('MESSAGING_MESSAGE_BODY_SIZE', 'messaging.message.body.size'). %% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". %% --define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). +-define('MESSAGING_MESSAGE_CONVERSATION_ID', 'messaging.message.conversation_id'). %% The size of the message body and metadata in bytes. %% --define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). +-define('MESSAGING_MESSAGE_ENVELOPE_SIZE', 'messaging.message.envelope.size'). %% A value used by the messaging system as an identifier for the message, represented as a string. --define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). +-define('MESSAGING_MESSAGE_ID', 'messaging.message.id'). %% @deprecated Replaced by `messaging.operation.type`. %% Deprecated, use `messaging.operation.type` instead. %% --define(MESSAGING_OPERATION, 'messaging.operation'). +-define('MESSAGING_OPERATION', 'messaging.operation'). %% The system-specific name of the messaging operation. %% --define(MESSAGING_OPERATION_NAME, 'messaging.operation.name'). +-define('MESSAGING_OPERATION_NAME', 'messaging.operation.name'). %% A string identifying the type of the messaging operation. %% --define(MESSAGING_OPERATION_TYPE, 'messaging.operation.type'). +-define('MESSAGING_OPERATION_TYPE', 'messaging.operation.type'). --define('MESSAGING_OPERATION_TYPE_VALUES.publish', 'publish'). +-define('MESSAGING_OPERATION_TYPE_VALUES_PUBLISH', 'publish'). --define('MESSAGING_OPERATION_TYPE_VALUES.create', 'create'). +-define('MESSAGING_OPERATION_TYPE_VALUES_CREATE', 'create'). --define('MESSAGING_OPERATION_TYPE_VALUES.receive', 'receive'). +-define('MESSAGING_OPERATION_TYPE_VALUES_RECEIVE', 'receive'). --define('MESSAGING_OPERATION_TYPE_VALUES.deliver', 'process'). +-define('MESSAGING_OPERATION_TYPE_VALUES_DELIVER', 'process'). --define('MESSAGING_OPERATION_TYPE_VALUES.settle', 'settle'). +-define('MESSAGING_OPERATION_TYPE_VALUES_SETTLE', 'settle'). %% RabbitMQ message routing key. %% --define(MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY, 'messaging.rabbitmq.destination.routing_key'). +-define('MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY', 'messaging.rabbitmq.destination.routing_key'). %% RabbitMQ message delivery tag %% --define(MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG, 'messaging.rabbitmq.message.delivery_tag'). +-define('MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG', 'messaging.rabbitmq.message.delivery_tag'). %% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. %% --define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). +-define('MESSAGING_ROCKETMQ_CLIENT_GROUP', 'messaging.rocketmq.client_group'). %% Model of message consumption. This only applies to consumer spans. %% --define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). +-define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL', 'messaging.rocketmq.consumption_model'). --define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.clustering', 'clustering'). +-define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING', 'clustering'). --define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.broadcasting', 'broadcasting'). +-define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_BROADCASTING', 'broadcasting'). %% The delay time level for delay message, which determines the message delay time. %% --define(MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL, 'messaging.rocketmq.message.delay_time_level'). +-define('MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL', 'messaging.rocketmq.message.delay_time_level'). %% The timestamp in milliseconds that the delay message is expected to be delivered to consumer. %% --define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). +-define('MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP', 'messaging.rocketmq.message.delivery_timestamp'). %% It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. %% --define(MESSAGING_ROCKETMQ_MESSAGE_GROUP, 'messaging.rocketmq.message.group'). +-define('MESSAGING_ROCKETMQ_MESSAGE_GROUP', 'messaging.rocketmq.message.group'). %% Key(s) of message, another way to mark message besides message id. %% --define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message.keys'). +-define('MESSAGING_ROCKETMQ_MESSAGE_KEYS', 'messaging.rocketmq.message.keys'). %% The secondary classifier of message besides topic. %% --define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message.tag'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TAG', 'messaging.rocketmq.message.tag'). %% Type of message. %% --define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message.type'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE', 'messaging.rocketmq.message.type'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal', 'normal'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL', 'normal'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.fifo', 'fifo'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_FIFO', 'fifo'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.delay', 'delay'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_DELAY', 'delay'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.transaction', 'transaction'). +-define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_TRANSACTION', 'transaction'). %% Namespace of RocketMQ resources, resources in different namespaces are individual. %% --define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). +-define('MESSAGING_ROCKETMQ_NAMESPACE', 'messaging.rocketmq.namespace'). %% The name of the subscription in the topic messages are received from. %% --define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME, 'messaging.servicebus.destination.subscription_name'). +-define('MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME', 'messaging.servicebus.destination.subscription_name'). %% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). %% --define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS, 'messaging.servicebus.disposition_status'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS', 'messaging.servicebus.disposition_status'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.complete', 'complete'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE', 'complete'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.abandon', 'abandon'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_ABANDON', 'abandon'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.dead_letter', 'dead_letter'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_DEAD_LETTER', 'dead_letter'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.defer', 'defer'). +-define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_DEFER', 'defer'). %% Number of deliveries that have been attempted for this message. %% --define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT, 'messaging.servicebus.message.delivery_count'). +-define('MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT', 'messaging.servicebus.message.delivery_count'). %% The UTC epoch seconds at which the message has been accepted and stored in the entity. %% --define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME, 'messaging.servicebus.message.enqueued_time'). +-define('MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME', 'messaging.servicebus.message.enqueued_time'). %% The messaging system as identified by the client instrumentation. --define(MESSAGING_SYSTEM, 'messaging.system'). +-define('MESSAGING_SYSTEM', 'messaging.system'). --define('MESSAGING_SYSTEM_VALUES.activemq', 'activemq'). +-define('MESSAGING_SYSTEM_VALUES_ACTIVEMQ', 'activemq'). --define('MESSAGING_SYSTEM_VALUES.aws_sqs', 'aws_sqs'). +-define('MESSAGING_SYSTEM_VALUES_AWS_SQS', 'aws_sqs'). --define('MESSAGING_SYSTEM_VALUES.eventgrid', 'eventgrid'). +-define('MESSAGING_SYSTEM_VALUES_EVENTGRID', 'eventgrid'). --define('MESSAGING_SYSTEM_VALUES.eventhubs', 'eventhubs'). +-define('MESSAGING_SYSTEM_VALUES_EVENTHUBS', 'eventhubs'). --define('MESSAGING_SYSTEM_VALUES.servicebus', 'servicebus'). +-define('MESSAGING_SYSTEM_VALUES_SERVICEBUS', 'servicebus'). --define('MESSAGING_SYSTEM_VALUES.gcp_pubsub', 'gcp_pubsub'). +-define('MESSAGING_SYSTEM_VALUES_GCP_PUBSUB', 'gcp_pubsub'). --define('MESSAGING_SYSTEM_VALUES.jms', 'jms'). +-define('MESSAGING_SYSTEM_VALUES_JMS', 'jms'). --define('MESSAGING_SYSTEM_VALUES.kafka', 'kafka'). +-define('MESSAGING_SYSTEM_VALUES_KAFKA', 'kafka'). --define('MESSAGING_SYSTEM_VALUES.rabbitmq', 'rabbitmq'). +-define('MESSAGING_SYSTEM_VALUES_RABBITMQ', 'rabbitmq'). --define('MESSAGING_SYSTEM_VALUES.rocketmq', 'rocketmq'). +-define('MESSAGING_SYSTEM_VALUES_ROCKETMQ', 'rocketmq'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl index 70487615..3f95abb7 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl @@ -15,16 +15,16 @@ %%%------------------------------------------------------------------------- %% Total CPU time consumed --define(CONTAINER_CPU_TIME, 'container.cpu.time'). +-define('CONTAINER_CPU_TIME', 'container.cpu.time'). %% Disk bytes for the container. --define(CONTAINER_DISK_IO, 'container.disk.io'). +-define('CONTAINER_DISK_IO', 'container.disk.io'). %% Memory usage of the container. --define(CONTAINER_MEMORY_USAGE, 'container.memory.usage'). +-define('CONTAINER_MEMORY_USAGE', 'container.memory.usage'). %% Network bytes for the container. --define(CONTAINER_NETWORK_IO, 'container.network.io'). +-define('CONTAINER_NETWORK_IO', 'container.network.io'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl index d68836a3..15e7132b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl @@ -15,76 +15,76 @@ %%%------------------------------------------------------------------------- %% The number of connections that are currently in state described by the `state` attribute --define(DB_CLIENT_CONNECTION_COUNT, 'db.client.connection.count'). +-define('DB_CLIENT_CONNECTION_COUNT', 'db.client.connection.count'). %% The time it took to create a new connection --define(DB_CLIENT_CONNECTION_CREATE_TIME, 'db.client.connection.create_time'). +-define('DB_CLIENT_CONNECTION_CREATE_TIME', 'db.client.connection.create_time'). %% The maximum number of idle open connections allowed --define(DB_CLIENT_CONNECTION_IDLE_MAX, 'db.client.connection.idle.max'). +-define('DB_CLIENT_CONNECTION_IDLE_MAX', 'db.client.connection.idle.max'). %% The minimum number of idle open connections allowed --define(DB_CLIENT_CONNECTION_IDLE_MIN, 'db.client.connection.idle.min'). +-define('DB_CLIENT_CONNECTION_IDLE_MIN', 'db.client.connection.idle.min'). %% The maximum number of open connections allowed --define(DB_CLIENT_CONNECTION_MAX, 'db.client.connection.max'). +-define('DB_CLIENT_CONNECTION_MAX', 'db.client.connection.max'). %% The number of pending requests for an open connection, cumulative for the entire pool --define(DB_CLIENT_CONNECTION_PENDING_REQUESTS, 'db.client.connection.pending_requests'). +-define('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 --define(DB_CLIENT_CONNECTION_TIMEOUTS, 'db.client.connection.timeouts'). +-define('DB_CLIENT_CONNECTION_TIMEOUTS', 'db.client.connection.timeouts'). %% The time between borrowing a connection and returning it to the pool --define(DB_CLIENT_CONNECTION_USE_TIME, 'db.client.connection.use_time'). +-define('DB_CLIENT_CONNECTION_USE_TIME', 'db.client.connection.use_time'). %% The time it took to obtain an open connection from the pool --define(DB_CLIENT_CONNECTION_WAIT_TIME, 'db.client.connection.wait_time'). +-define('DB_CLIENT_CONNECTION_WAIT_TIME', 'db.client.connection.wait_time'). %% @deprecated Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. --define(DB_CLIENT_CONNECTIONS_CREATE_TIME, 'db.client.connections.create_time'). +-define('DB_CLIENT_CONNECTIONS_CREATE_TIME', 'db.client.connections.create_time'). %% @deprecated Replaced by `db.client.connection.idle.max`. %% Deprecated, use `db.client.connection.idle.max` instead. --define(DB_CLIENT_CONNECTIONS_IDLE_MAX, 'db.client.connections.idle.max'). +-define('DB_CLIENT_CONNECTIONS_IDLE_MAX', 'db.client.connections.idle.max'). %% @deprecated Replaced by `db.client.connection.idle.min`. %% Deprecated, use `db.client.connection.idle.min` instead. --define(DB_CLIENT_CONNECTIONS_IDLE_MIN, 'db.client.connections.idle.min'). +-define('DB_CLIENT_CONNECTIONS_IDLE_MIN', 'db.client.connections.idle.min'). %% @deprecated Replaced by `db.client.connection.max`. %% Deprecated, use `db.client.connection.max` instead. --define(DB_CLIENT_CONNECTIONS_MAX, 'db.client.connections.max'). +-define('DB_CLIENT_CONNECTIONS_MAX', 'db.client.connections.max'). %% @deprecated Replaced by `db.client.connection.pending_requests`. %% Deprecated, use `db.client.connection.pending_requests` instead. --define(DB_CLIENT_CONNECTIONS_PENDING_REQUESTS, 'db.client.connections.pending_requests'). +-define('DB_CLIENT_CONNECTIONS_PENDING_REQUESTS', 'db.client.connections.pending_requests'). %% @deprecated Replaced by `db.client.connection.timeouts`. %% Deprecated, use `db.client.connection.timeouts` instead. --define(DB_CLIENT_CONNECTIONS_TIMEOUTS, 'db.client.connections.timeouts'). +-define('DB_CLIENT_CONNECTIONS_TIMEOUTS', 'db.client.connections.timeouts'). %% @deprecated Replaced by `db.client.connection.count`. %% Deprecated, use `db.client.connection.count` instead. --define(DB_CLIENT_CONNECTIONS_USAGE, 'db.client.connections.usage'). +-define('DB_CLIENT_CONNECTIONS_USAGE', 'db.client.connections.usage'). %% @deprecated Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. --define(DB_CLIENT_CONNECTIONS_USE_TIME, 'db.client.connections.use_time'). +-define('DB_CLIENT_CONNECTIONS_USE_TIME', 'db.client.connections.use_time'). %% @deprecated Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. --define(DB_CLIENT_CONNECTIONS_WAIT_TIME, 'db.client.connections.wait_time'). +-define('DB_CLIENT_CONNECTIONS_WAIT_TIME', 'db.client.connections.wait_time'). %% Duration of database client operations. --define(DB_CLIENT_OPERATION_DURATION, 'db.client.operation.duration'). +-define('DB_CLIENT_OPERATION_DURATION', 'db.client.operation.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl index 52c3855b..5bd550f0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl @@ -15,4 +15,4 @@ %%%------------------------------------------------------------------------- %% Measures the time taken to perform a DNS lookup. --define(DNS_LOOKUP_DURATION, 'dns.lookup.duration'). +-define('DNS_LOOKUP_DURATION', 'dns.lookup.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl index 3f777ac4..504a7f57 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl @@ -15,36 +15,36 @@ %%%------------------------------------------------------------------------- %% Number of invocation cold starts --define(FAAS_COLDSTARTS, 'faas.coldstarts'). +-define('FAAS_COLDSTARTS', 'faas.coldstarts'). %% Distribution of CPU usage per invocation --define(FAAS_CPU_USAGE, 'faas.cpu_usage'). +-define('FAAS_CPU_USAGE', 'faas.cpu_usage'). %% Number of invocation errors --define(FAAS_ERRORS, 'faas.errors'). +-define('FAAS_ERRORS', 'faas.errors'). %% Measures the duration of the function's initialization, such as a cold start --define(FAAS_INIT_DURATION, 'faas.init_duration'). +-define('FAAS_INIT_DURATION', 'faas.init_duration'). %% Number of successful invocations --define(FAAS_INVOCATIONS, 'faas.invocations'). +-define('FAAS_INVOCATIONS', 'faas.invocations'). %% Measures the duration of the function's logic execution --define(FAAS_INVOKE_DURATION, 'faas.invoke_duration'). +-define('FAAS_INVOKE_DURATION', 'faas.invoke_duration'). %% Distribution of max memory usage per invocation --define(FAAS_MEM_USAGE, 'faas.mem_usage'). +-define('FAAS_MEM_USAGE', 'faas.mem_usage'). %% Distribution of net I/O usage per invocation --define(FAAS_NET_IO, 'faas.net_io'). +-define('FAAS_NET_IO', 'faas.net_io'). %% Number of invocation timeouts --define(FAAS_TIMEOUTS, 'faas.timeouts'). +-define('FAAS_TIMEOUTS', 'faas.timeouts'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl index c18cf169..5167fc5d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl @@ -15,32 +15,32 @@ %%%------------------------------------------------------------------------- %% Number of active HTTP requests. --define(HTTP_CLIENT_ACTIVE_REQUESTS, 'http.client.active_requests'). +-define('HTTP_CLIENT_ACTIVE_REQUESTS', 'http.client.active_requests'). %% The duration of the successfully established outbound HTTP connections. --define(HTTP_CLIENT_CONNECTION_DURATION, 'http.client.connection.duration'). +-define('HTTP_CLIENT_CONNECTION_DURATION', 'http.client.connection.duration'). %% Number of outbound HTTP connections that are currently active or idle on the client. --define(HTTP_CLIENT_OPEN_CONNECTIONS, 'http.client.open_connections'). +-define('HTTP_CLIENT_OPEN_CONNECTIONS', 'http.client.open_connections'). %% Size of HTTP client request bodies. --define(HTTP_CLIENT_REQUEST_BODY_SIZE, 'http.client.request.body.size'). +-define('HTTP_CLIENT_REQUEST_BODY_SIZE', 'http.client.request.body.size'). %% Size of HTTP client response bodies. --define(HTTP_CLIENT_RESPONSE_BODY_SIZE, 'http.client.response.body.size'). +-define('HTTP_CLIENT_RESPONSE_BODY_SIZE', 'http.client.response.body.size'). %% Number of active HTTP server requests. --define(HTTP_SERVER_ACTIVE_REQUESTS, 'http.server.active_requests'). +-define('HTTP_SERVER_ACTIVE_REQUESTS', 'http.server.active_requests'). %% Size of HTTP server request bodies. --define(HTTP_SERVER_REQUEST_BODY_SIZE, 'http.server.request.body.size'). +-define('HTTP_SERVER_REQUEST_BODY_SIZE', 'http.server.request.body.size'). %% Size of HTTP server response bodies. --define(HTTP_SERVER_RESPONSE_BODY_SIZE, 'http.server.response.body.size'). +-define('HTTP_SERVER_RESPONSE_BODY_SIZE', 'http.server.response.body.size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl index adf9a2c6..f29f965e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl @@ -15,24 +15,24 @@ %%%------------------------------------------------------------------------- %% Measures the duration of process operation. --define(MESSAGING_PROCESS_DURATION, 'messaging.process.duration'). +-define('MESSAGING_PROCESS_DURATION', 'messaging.process.duration'). %% Measures the number of processed messages. --define(MESSAGING_PROCESS_MESSAGES, 'messaging.process.messages'). +-define('MESSAGING_PROCESS_MESSAGES', 'messaging.process.messages'). %% Measures the duration of publish operation. --define(MESSAGING_PUBLISH_DURATION, 'messaging.publish.duration'). +-define('MESSAGING_PUBLISH_DURATION', 'messaging.publish.duration'). %% Measures the number of published messages. --define(MESSAGING_PUBLISH_MESSAGES, 'messaging.publish.messages'). +-define('MESSAGING_PUBLISH_MESSAGES', 'messaging.publish.messages'). %% Measures the duration of receive operation. --define(MESSAGING_RECEIVE_DURATION, 'messaging.receive.duration'). +-define('MESSAGING_RECEIVE_DURATION', 'messaging.receive.duration'). %% Measures the number of received messages. --define(MESSAGING_RECEIVE_MESSAGES, 'messaging.receive.messages'). +-define('MESSAGING_RECEIVE_MESSAGES', 'messaging.receive.messages'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl index e4dbe3ba..7289fb52 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl @@ -15,40 +15,40 @@ %%%------------------------------------------------------------------------- %% Number of times the process has been context switched. --define(PROCESS_CONTEXT_SWITCHES, 'process.context_switches'). +-define('PROCESS_CONTEXT_SWITCHES', 'process.context_switches'). %% Total CPU seconds broken down by different states. --define(PROCESS_CPU_TIME, 'process.cpu.time'). +-define('PROCESS_CPU_TIME', 'process.cpu.time'). %% Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. --define(PROCESS_CPU_UTILIZATION, 'process.cpu.utilization'). +-define('PROCESS_CPU_UTILIZATION', 'process.cpu.utilization'). %% Disk bytes transferred. --define(PROCESS_DISK_IO, 'process.disk.io'). +-define('PROCESS_DISK_IO', 'process.disk.io'). %% The amount of physical memory in use. --define(PROCESS_MEMORY_USAGE, 'process.memory.usage'). +-define('PROCESS_MEMORY_USAGE', 'process.memory.usage'). %% The amount of committed virtual memory. --define(PROCESS_MEMORY_VIRTUAL, 'process.memory.virtual'). +-define('PROCESS_MEMORY_VIRTUAL', 'process.memory.virtual'). %% Network bytes transferred. --define(PROCESS_NETWORK_IO, 'process.network.io'). +-define('PROCESS_NETWORK_IO', 'process.network.io'). %% Number of file descriptors in use by the process. --define(PROCESS_OPEN_FILE_DESCRIPTOR_COUNT, 'process.open_file_descriptor.count'). +-define('PROCESS_OPEN_FILE_DESCRIPTOR_COUNT', 'process.open_file_descriptor.count'). %% Number of page faults the process has made. --define(PROCESS_PAGING_FAULTS, 'process.paging.faults'). +-define('PROCESS_PAGING_FAULTS', 'process.paging.faults'). %% Process threads count. --define(PROCESS_THREAD_COUNT, 'process.thread.count'). +-define('PROCESS_THREAD_COUNT', 'process.thread.count'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl index 44ec47ff..a88dad49 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl @@ -15,40 +15,40 @@ %%%------------------------------------------------------------------------- %% Measures the duration of outbound RPC. --define(RPC_CLIENT_DURATION, 'rpc.client.duration'). +-define('RPC_CLIENT_DURATION', 'rpc.client.duration'). %% Measures the size of RPC request messages (uncompressed). --define(RPC_CLIENT_REQUEST_SIZE, 'rpc.client.request.size'). +-define('RPC_CLIENT_REQUEST_SIZE', 'rpc.client.request.size'). %% Measures the number of messages received per RPC. --define(RPC_CLIENT_REQUESTS_PER_RPC, 'rpc.client.requests_per_rpc'). +-define('RPC_CLIENT_REQUESTS_PER_RPC', 'rpc.client.requests_per_rpc'). %% Measures the size of RPC response messages (uncompressed). --define(RPC_CLIENT_RESPONSE_SIZE, 'rpc.client.response.size'). +-define('RPC_CLIENT_RESPONSE_SIZE', 'rpc.client.response.size'). %% Measures the number of messages sent per RPC. --define(RPC_CLIENT_RESPONSES_PER_RPC, 'rpc.client.responses_per_rpc'). +-define('RPC_CLIENT_RESPONSES_PER_RPC', 'rpc.client.responses_per_rpc'). %% Measures the duration of inbound RPC. --define(RPC_SERVER_DURATION, 'rpc.server.duration'). +-define('RPC_SERVER_DURATION', 'rpc.server.duration'). %% Measures the size of RPC request messages (uncompressed). --define(RPC_SERVER_REQUEST_SIZE, 'rpc.server.request.size'). +-define('RPC_SERVER_REQUEST_SIZE', 'rpc.server.request.size'). %% Measures the number of messages received per RPC. --define(RPC_SERVER_REQUESTS_PER_RPC, 'rpc.server.requests_per_rpc'). +-define('RPC_SERVER_REQUESTS_PER_RPC', 'rpc.server.requests_per_rpc'). %% Measures the size of RPC response messages (uncompressed). --define(RPC_SERVER_RESPONSE_SIZE, 'rpc.server.response.size'). +-define('RPC_SERVER_RESPONSE_SIZE', 'rpc.server.response.size'). %% Measures the number of messages sent per RPC. --define(RPC_SERVER_RESPONSES_PER_RPC, 'rpc.server.responses_per_rpc'). +-define('RPC_SERVER_RESPONSES_PER_RPC', 'rpc.server.responses_per_rpc'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl index eb00e9e2..0887775e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl @@ -15,112 +15,112 @@ %%%------------------------------------------------------------------------- %% Reports the current frequency of the CPU in Hz --define(SYSTEM_CPU_FREQUENCY, 'system.cpu.frequency'). +-define('SYSTEM_CPU_FREQUENCY', 'system.cpu.frequency'). %% Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking --define(SYSTEM_CPU_LOGICAL_COUNT, 'system.cpu.logical.count'). +-define('SYSTEM_CPU_LOGICAL_COUNT', 'system.cpu.logical.count'). %% Reports the number of actual physical processor cores on the hardware --define(SYSTEM_CPU_PHYSICAL_COUNT, 'system.cpu.physical.count'). +-define('SYSTEM_CPU_PHYSICAL_COUNT', 'system.cpu.physical.count'). %% Seconds each logical CPU spent on each mode --define(SYSTEM_CPU_TIME, 'system.cpu.time'). +-define('SYSTEM_CPU_TIME', 'system.cpu.time'). %% Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs --define(SYSTEM_CPU_UTILIZATION, 'system.cpu.utilization'). +-define('SYSTEM_CPU_UTILIZATION', 'system.cpu.utilization'). %% none --define(SYSTEM_DISK_IO, 'system.disk.io'). +-define('SYSTEM_DISK_IO', 'system.disk.io'). %% Time disk spent activated --define(SYSTEM_DISK_IO_TIME, 'system.disk.io_time'). +-define('SYSTEM_DISK_IO_TIME', 'system.disk.io_time'). %% none --define(SYSTEM_DISK_MERGED, 'system.disk.merged'). +-define('SYSTEM_DISK_MERGED', 'system.disk.merged'). %% Sum of the time each operation took to complete --define(SYSTEM_DISK_OPERATION_TIME, 'system.disk.operation_time'). +-define('SYSTEM_DISK_OPERATION_TIME', 'system.disk.operation_time'). %% none --define(SYSTEM_DISK_OPERATIONS, 'system.disk.operations'). +-define('SYSTEM_DISK_OPERATIONS', 'system.disk.operations'). %% none --define(SYSTEM_FILESYSTEM_USAGE, 'system.filesystem.usage'). +-define('SYSTEM_FILESYSTEM_USAGE', 'system.filesystem.usage'). %% none --define(SYSTEM_FILESYSTEM_UTILIZATION, 'system.filesystem.utilization'). +-define('SYSTEM_FILESYSTEM_UTILIZATION', 'system.filesystem.utilization'). %% An estimate of how much memory is available for starting new applications, without causing swapping --define(SYSTEM_LINUX_MEMORY_AVAILABLE, 'system.linux.memory.available'). +-define('SYSTEM_LINUX_MEMORY_AVAILABLE', 'system.linux.memory.available'). %% Total memory available in the system. --define(SYSTEM_MEMORY_LIMIT, 'system.memory.limit'). +-define('SYSTEM_MEMORY_LIMIT', 'system.memory.limit'). %% Shared memory used (mostly by tmpfs). --define(SYSTEM_MEMORY_SHARED, 'system.memory.shared'). +-define('SYSTEM_MEMORY_SHARED', 'system.memory.shared'). %% Reports memory in use by state. --define(SYSTEM_MEMORY_USAGE, 'system.memory.usage'). +-define('SYSTEM_MEMORY_USAGE', 'system.memory.usage'). %% none --define(SYSTEM_MEMORY_UTILIZATION, 'system.memory.utilization'). +-define('SYSTEM_MEMORY_UTILIZATION', 'system.memory.utilization'). %% none --define(SYSTEM_NETWORK_CONNECTIONS, 'system.network.connections'). +-define('SYSTEM_NETWORK_CONNECTIONS', 'system.network.connections'). %% Count of packets that are dropped or discarded even though there was no error --define(SYSTEM_NETWORK_DROPPED, 'system.network.dropped'). +-define('SYSTEM_NETWORK_DROPPED', 'system.network.dropped'). %% Count of network errors detected --define(SYSTEM_NETWORK_ERRORS, 'system.network.errors'). +-define('SYSTEM_NETWORK_ERRORS', 'system.network.errors'). %% none --define(SYSTEM_NETWORK_IO, 'system.network.io'). +-define('SYSTEM_NETWORK_IO', 'system.network.io'). %% none --define(SYSTEM_NETWORK_PACKETS, 'system.network.packets'). +-define('SYSTEM_NETWORK_PACKETS', 'system.network.packets'). %% none --define(SYSTEM_PAGING_FAULTS, 'system.paging.faults'). +-define('SYSTEM_PAGING_FAULTS', 'system.paging.faults'). %% none --define(SYSTEM_PAGING_OPERATIONS, 'system.paging.operations'). +-define('SYSTEM_PAGING_OPERATIONS', 'system.paging.operations'). %% Unix swap or windows pagefile usage --define(SYSTEM_PAGING_USAGE, 'system.paging.usage'). +-define('SYSTEM_PAGING_USAGE', 'system.paging.usage'). %% none --define(SYSTEM_PAGING_UTILIZATION, 'system.paging.utilization'). +-define('SYSTEM_PAGING_UTILIZATION', 'system.paging.utilization'). %% Total number of processes in each state --define(SYSTEM_PROCESS_COUNT, 'system.process.count'). +-define('SYSTEM_PROCESS_COUNT', 'system.process.count'). %% Total number of processes created over uptime of the host --define(SYSTEM_PROCESS_CREATED, 'system.process.created'). +-define('SYSTEM_PROCESS_CREATED', 'system.process.created'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl index be0d1a9c..a0dec359 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl @@ -15,165 +15,165 @@ %%%------------------------------------------------------------------------- %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. --define(NET_HOST_IP, 'net.host.ip'). +-define('NET_HOST_IP', 'net.host.ip'). %% @deprecated Replaced by `server.address`. %% Deprecated, use `server.address`. --define(NET_HOST_NAME, 'net.host.name'). +-define('NET_HOST_NAME', 'net.host.name'). %% @deprecated Replaced by `server.port`. %% Deprecated, use `server.port`. --define(NET_HOST_PORT, 'net.host.port'). +-define('NET_HOST_PORT', 'net.host.port'). %% @deprecated Replaced by `network.peer.address`. %% Deprecated, use `network.peer.address`. --define(NET_PEER_IP, 'net.peer.ip'). +-define('NET_PEER_IP', 'net.peer.ip'). %% @deprecated Replaced by `server.address` on client spans and `client.address` on server spans. %% Deprecated, use `server.address` on client spans and `client.address` on server spans. --define(NET_PEER_NAME, 'net.peer.name'). +-define('NET_PEER_NAME', 'net.peer.name'). %% @deprecated Replaced by `server.port` on client spans and `client.port` on server spans. %% Deprecated, use `server.port` on client spans and `client.port` on server spans. --define(NET_PEER_PORT, 'net.peer.port'). +-define('NET_PEER_PORT', 'net.peer.port'). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name`. --define(NET_PROTOCOL_NAME, 'net.protocol.name'). +-define('NET_PROTOCOL_NAME', 'net.protocol.name'). %% @deprecated Replaced by `network.protocol.version`. %% Deprecated, use `network.protocol.version`. --define(NET_PROTOCOL_VERSION, 'net.protocol.version'). +-define('NET_PROTOCOL_VERSION', 'net.protocol.version'). %% @deprecated Split to `network.transport` and `network.type`. %% Deprecated, use `network.transport` and `network.type`. --define(NET_SOCK_FAMILY, 'net.sock.family'). +-define('NET_SOCK_FAMILY', 'net.sock.family'). --define('NET_SOCK_FAMILY_VALUES.inet', 'inet'). +-define('NET_SOCK_FAMILY_VALUES_INET', 'inet'). --define('NET_SOCK_FAMILY_VALUES.inet6', 'inet6'). +-define('NET_SOCK_FAMILY_VALUES_INET_6', 'inet6'). --define('NET_SOCK_FAMILY_VALUES.unix', 'unix'). +-define('NET_SOCK_FAMILY_VALUES_UNIX', 'unix'). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. --define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). +-define('NET_SOCK_HOST_ADDR', 'net.sock.host.addr'). %% @deprecated Replaced by `network.local.port`. %% Deprecated, use `network.local.port`. --define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). +-define('NET_SOCK_HOST_PORT', 'net.sock.host.port'). %% @deprecated Replaced by `network.peer.address`. %% Deprecated, use `network.peer.address`. --define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). +-define('NET_SOCK_PEER_ADDR', 'net.sock.peer.addr'). %% @deprecated Removed. %% Deprecated, no replacement at this time. --define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). +-define('NET_SOCK_PEER_NAME', 'net.sock.peer.name'). %% @deprecated Replaced by `network.peer.port`. %% Deprecated, use `network.peer.port`. --define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). +-define('NET_SOCK_PEER_PORT', 'net.sock.peer.port'). %% @deprecated Replaced by `network.transport`. %% Deprecated, use `network.transport`. --define(NET_TRANSPORT, 'net.transport'). +-define('NET_TRANSPORT', 'net.transport'). --define('NET_TRANSPORT_VALUES.ip_tcp', 'ip_tcp'). +-define('NET_TRANSPORT_VALUES_IP_TCP', 'ip_tcp'). --define('NET_TRANSPORT_VALUES.ip_udp', 'ip_udp'). +-define('NET_TRANSPORT_VALUES_IP_UDP', 'ip_udp'). --define('NET_TRANSPORT_VALUES.pipe', 'pipe'). +-define('NET_TRANSPORT_VALUES_PIPE', 'pipe'). --define('NET_TRANSPORT_VALUES.inproc', 'inproc'). +-define('NET_TRANSPORT_VALUES_INPROC', 'inproc'). --define('NET_TRANSPORT_VALUES.other', 'other'). +-define('NET_TRANSPORT_VALUES_OTHER', 'other'). %% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. --define(NETWORK_CARRIER_ICC, 'network.carrier.icc'). +-define('NETWORK_CARRIER_ICC', 'network.carrier.icc'). %% The mobile carrier country code. --define(NETWORK_CARRIER_MCC, 'network.carrier.mcc'). +-define('NETWORK_CARRIER_MCC', 'network.carrier.mcc'). %% The mobile carrier network code. --define(NETWORK_CARRIER_MNC, 'network.carrier.mnc'). +-define('NETWORK_CARRIER_MNC', 'network.carrier.mnc'). %% The name of the mobile carrier. --define(NETWORK_CARRIER_NAME, 'network.carrier.name'). +-define('NETWORK_CARRIER_NAME', 'network.carrier.name'). %% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. --define(NETWORK_CONNECTION_SUBTYPE, 'network.connection.subtype'). +-define('NETWORK_CONNECTION_SUBTYPE', 'network.connection.subtype'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.gprs', 'gprs'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS', 'gprs'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.edge', 'edge'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_EDGE', 'edge'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.umts', 'umts'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_UMTS', 'umts'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.cdma', 'cdma'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA', 'cdma'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.evdo_0', 'evdo_0'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_0', 'evdo_0'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.evdo_a', 'evdo_a'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_A', 'evdo_a'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.cdma2000_1xrtt', 'cdma2000_1xrtt'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA_2000_1_XRTT', 'cdma2000_1xrtt'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.hsdpa', 'hsdpa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSDPA', 'hsdpa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.hsupa', 'hsupa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSUPA', 'hsupa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.hspa', 'hspa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSPA', 'hspa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.iden', 'iden'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_IDEN', 'iden'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.evdo_b', 'evdo_b'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_B', 'evdo_b'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.lte', 'lte'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_LTE', 'lte'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.ehrpd', 'ehrpd'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_EHRPD', 'ehrpd'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.hspap', 'hspap'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSPAP', 'hspap'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.gsm', 'gsm'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_GSM', 'gsm'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.td_scdma', 'td_scdma'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_TD_SCDMA', 'td_scdma'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.iwlan', 'iwlan'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_IWLAN', 'iwlan'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.nr', 'nr'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_NR', 'nr'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.nrnsa', 'nrnsa'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_NRNSA', 'nrnsa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES.lte_ca', 'lte_ca'). +-define('NETWORK_CONNECTION_SUBTYPE_VALUES_LTE_CA', 'lte_ca'). %% The internet connection type. --define(NETWORK_CONNECTION_TYPE, 'network.connection.type'). +-define('NETWORK_CONNECTION_TYPE', 'network.connection.type'). --define('NETWORK_CONNECTION_TYPE_VALUES.wifi', 'wifi'). +-define('NETWORK_CONNECTION_TYPE_VALUES_WIFI', 'wifi'). --define('NETWORK_CONNECTION_TYPE_VALUES.wired', 'wired'). +-define('NETWORK_CONNECTION_TYPE_VALUES_WIRED', 'wired'). --define('NETWORK_CONNECTION_TYPE_VALUES.cell', 'cell'). +-define('NETWORK_CONNECTION_TYPE_VALUES_CELL', 'cell'). --define('NETWORK_CONNECTION_TYPE_VALUES.unavailable', 'unavailable'). +-define('NETWORK_CONNECTION_TYPE_VALUES_UNAVAILABLE', 'unavailable'). --define('NETWORK_CONNECTION_TYPE_VALUES.unknown', 'unknown'). +-define('NETWORK_CONNECTION_TYPE_VALUES_UNKNOWN', 'unknown'). %% The network IO operation direction. --define(NETWORK_IO_DIRECTION, 'network.io.direction'). +-define('NETWORK_IO_DIRECTION', 'network.io.direction'). --define('NETWORK_IO_DIRECTION_VALUES.transmit', 'transmit'). +-define('NETWORK_IO_DIRECTION_VALUES_TRANSMIT', 'transmit'). --define('NETWORK_IO_DIRECTION_VALUES.receive', 'receive'). +-define('NETWORK_IO_DIRECTION_VALUES_RECEIVE', 'receive'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl index 18bab4a8..e040906e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl @@ -16,4 +16,4 @@ %% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. %% --define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). +-define('OCI_MANIFEST_DIGEST', 'oci.manifest.digest'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl index d9f56cbd..a0cbf36e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl @@ -15,9 +15,9 @@ %%%------------------------------------------------------------------------- %% Parent-child Reference type --define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). +-define('OPENTRACING_REF_TYPE', 'opentracing.ref_type'). --define('OPENTRACING_REF_TYPE_VALUES.child_of', 'child_of'). +-define('OPENTRACING_REF_TYPE_VALUES_CHILD_OF', 'child_of'). --define('OPENTRACING_REF_TYPE_VALUES.follows_from', 'follows_from'). +-define('OPENTRACING_REF_TYPE_VALUES_FOLLOWS_FROM', 'follows_from'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl index b3ea8cfd..1f6875d6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl @@ -15,46 +15,46 @@ %%%------------------------------------------------------------------------- %% Unique identifier for a particular build or compilation of the operating system. --define(OS_BUILD_ID, 'os.build_id'). +-define('OS_BUILD_ID', 'os.build_id'). %% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. %% --define(OS_DESCRIPTION, 'os.description'). +-define('OS_DESCRIPTION', 'os.description'). %% Human readable operating system name. --define(OS_NAME, 'os.name'). +-define('OS_NAME', 'os.name'). %% The operating system type. %% --define(OS_TYPE, 'os.type'). +-define('OS_TYPE', 'os.type'). --define('OS_TYPE_VALUES.windows', 'windows'). +-define('OS_TYPE_VALUES_WINDOWS', 'windows'). --define('OS_TYPE_VALUES.linux', 'linux'). +-define('OS_TYPE_VALUES_LINUX', 'linux'). --define('OS_TYPE_VALUES.darwin', 'darwin'). +-define('OS_TYPE_VALUES_DARWIN', 'darwin'). --define('OS_TYPE_VALUES.freebsd', 'freebsd'). +-define('OS_TYPE_VALUES_FREEBSD', 'freebsd'). --define('OS_TYPE_VALUES.netbsd', 'netbsd'). +-define('OS_TYPE_VALUES_NETBSD', 'netbsd'). --define('OS_TYPE_VALUES.openbsd', 'openbsd'). +-define('OS_TYPE_VALUES_OPENBSD', 'openbsd'). --define('OS_TYPE_VALUES.dragonflybsd', 'dragonflybsd'). +-define('OS_TYPE_VALUES_DRAGONFLYBSD', 'dragonflybsd'). --define('OS_TYPE_VALUES.hpux', 'hpux'). +-define('OS_TYPE_VALUES_HPUX', 'hpux'). --define('OS_TYPE_VALUES.aix', 'aix'). +-define('OS_TYPE_VALUES_AIX', 'aix'). --define('OS_TYPE_VALUES.solaris', 'solaris'). +-define('OS_TYPE_VALUES_SOLARIS', 'solaris'). --define('OS_TYPE_VALUES.z_os', 'z_os'). +-define('OS_TYPE_VALUES_Z_OS', 'z_os'). %% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). %% --define(OS_VERSION, 'os.version'). +-define('OS_VERSION', 'os.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl index 13575604..09e88fd0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% @deprecated use the `otel.scope.name` attribute. %% --define(OTEL_LIBRARY_NAME, 'otel.library.name'). +-define('OTEL_LIBRARY_NAME', 'otel.library.name'). %% @deprecated use the `otel.scope.version` attribute. %% --define(OTEL_LIBRARY_VERSION, 'otel.library.version'). +-define('OTEL_LIBRARY_VERSION', 'otel.library.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl index 3dfee4e6..c122ff80 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl @@ -16,4 +16,4 @@ %% The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. %% --define(PEER_SERVICE, 'peer.service'). +-define('PEER_SERVICE', 'peer.service'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl index 4706a3fc..21362f71 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl @@ -16,150 +16,150 @@ %% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. %% --define(PROCESS_COMMAND, 'process.command'). +-define('PROCESS_COMMAND', 'process.command'). %% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. %% --define(PROCESS_COMMAND_ARGS, 'process.command_args'). +-define('PROCESS_COMMAND_ARGS', 'process.command_args'). %% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. %% --define(PROCESS_COMMAND_LINE, 'process.command_line'). +-define('PROCESS_COMMAND_LINE', 'process.command_line'). %% Specifies whether the context switches for this data point were voluntary or involuntary. --define(PROCESS_CONTEXT_SWITCH_TYPE, 'process.context_switch_type'). +-define('PROCESS_CONTEXT_SWITCH_TYPE', 'process.context_switch_type'). --define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES.voluntary', 'voluntary'). +-define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY', 'voluntary'). --define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES.involuntary', 'involuntary'). +-define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES_INVOLUNTARY', 'involuntary'). %% The CPU state of the process. %% --define(PROCESS_CPU_STATE, 'process.cpu.state'). +-define('PROCESS_CPU_STATE', 'process.cpu.state'). --define('PROCESS_CPU_STATE_VALUES.system', 'system'). +-define('PROCESS_CPU_STATE_VALUES_SYSTEM', 'system'). --define('PROCESS_CPU_STATE_VALUES.user', 'user'). +-define('PROCESS_CPU_STATE_VALUES_USER', 'user'). --define('PROCESS_CPU_STATE_VALUES.wait', 'wait'). +-define('PROCESS_CPU_STATE_VALUES_WAIT', 'wait'). %% The date and time the process was created, in ISO 8601 format. %% --define(PROCESS_CREATION_TIME, 'process.creation.time'). +-define('PROCESS_CREATION_TIME', 'process.creation.time'). %% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. %% --define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). +-define('PROCESS_EXECUTABLE_NAME', 'process.executable.name'). %% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. %% --define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). +-define('PROCESS_EXECUTABLE_PATH', 'process.executable.path'). %% The exit code of the process. %% --define(PROCESS_EXIT_CODE, 'process.exit.code'). +-define('PROCESS_EXIT_CODE', 'process.exit.code'). %% The date and time the process exited, in ISO 8601 format. %% --define(PROCESS_EXIT_TIME, 'process.exit.time'). +-define('PROCESS_EXIT_TIME', 'process.exit.time'). %% The PID of the process's group leader. This is also the process group ID (PGID) of the process. %% --define(PROCESS_GROUP_LEADER_PID, 'process.group_leader.pid'). +-define('PROCESS_GROUP_LEADER_PID', 'process.group_leader.pid'). %% Whether the process is connected to an interactive shell. %% --define(PROCESS_INTERACTIVE, 'process.interactive'). +-define('PROCESS_INTERACTIVE', 'process.interactive'). %% The username of the user that owns the process. %% --define(PROCESS_OWNER, 'process.owner'). +-define('PROCESS_OWNER', 'process.owner'). %% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. %% --define(PROCESS_PAGING_FAULT_TYPE, 'process.paging.fault_type'). +-define('PROCESS_PAGING_FAULT_TYPE', 'process.paging.fault_type'). --define('PROCESS_PAGING_FAULT_TYPE_VALUES.major', 'major'). +-define('PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR', 'major'). --define('PROCESS_PAGING_FAULT_TYPE_VALUES.minor', 'minor'). +-define('PROCESS_PAGING_FAULT_TYPE_VALUES_MINOR', 'minor'). %% Parent Process identifier (PPID). %% --define(PROCESS_PARENT_PID, 'process.parent_pid'). +-define('PROCESS_PARENT_PID', 'process.parent_pid'). %% Process identifier (PID). %% --define(PROCESS_PID, 'process.pid'). +-define('PROCESS_PID', 'process.pid'). %% The real user ID (RUID) of the process. %% --define(PROCESS_REAL_USER_ID, 'process.real_user.id'). +-define('PROCESS_REAL_USER_ID', 'process.real_user.id'). %% The username of the real user of the process. %% --define(PROCESS_REAL_USER_NAME, 'process.real_user.name'). +-define('PROCESS_REAL_USER_NAME', 'process.real_user.name'). %% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. %% --define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). +-define('PROCESS_RUNTIME_DESCRIPTION', 'process.runtime.description'). %% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. %% --define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). +-define('PROCESS_RUNTIME_NAME', 'process.runtime.name'). %% The version of the runtime of this process, as returned by the runtime without modification. %% --define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). +-define('PROCESS_RUNTIME_VERSION', 'process.runtime.version'). %% The saved user ID (SUID) of the process. %% --define(PROCESS_SAVED_USER_ID, 'process.saved_user.id'). +-define('PROCESS_SAVED_USER_ID', 'process.saved_user.id'). %% The username of the saved user. %% --define(PROCESS_SAVED_USER_NAME, 'process.saved_user.name'). +-define('PROCESS_SAVED_USER_NAME', 'process.saved_user.name'). %% The PID of the process's session leader. This is also the session ID (SID) of the process. %% --define(PROCESS_SESSION_LEADER_PID, 'process.session_leader.pid'). +-define('PROCESS_SESSION_LEADER_PID', 'process.session_leader.pid'). %% The effective user ID (EUID) of the process. %% --define(PROCESS_USER_ID, 'process.user.id'). +-define('PROCESS_USER_ID', 'process.user.id'). %% The username of the effective user of the process. %% --define(PROCESS_USER_NAME, 'process.user.name'). +-define('PROCESS_USER_NAME', 'process.user.name'). %% Virtual process identifier. %% --define(PROCESS_VPID, 'process.vpid'). +-define('PROCESS_VPID', 'process.vpid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl index 025852ad..9ee44837 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl @@ -15,178 +15,178 @@ %%%------------------------------------------------------------------------- %% @deprecated Replaced by `rpc.message.compressed_size`. %% Deprecated, use `rpc.message.compressed_size` instead. --define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). +-define('MESSAGE_COMPRESSED_SIZE', 'message.compressed_size'). %% @deprecated Replaced by `rpc.message.id`. %% Deprecated, use `rpc.message.id` instead. --define(MESSAGE_ID, 'message.id'). +-define('MESSAGE_ID', 'message.id'). %% @deprecated Replaced by `rpc.message.type`. %% Deprecated, use `rpc.message.type` instead. --define(MESSAGE_TYPE, 'message.type'). +-define('MESSAGE_TYPE', 'message.type'). --define('MESSAGE_TYPE_VALUES.sent', 'SENT'). +-define('MESSAGE_TYPE_VALUES_SENT', 'SENT'). --define('MESSAGE_TYPE_VALUES.received', 'RECEIVED'). +-define('MESSAGE_TYPE_VALUES_RECEIVED', 'RECEIVED'). %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. --define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). +-define('MESSAGE_UNCOMPRESSED_SIZE', 'message.uncompressed_size'). %% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. --define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). +-define('RPC_CONNECT_RPC_ERROR_CODE', 'rpc.connect_rpc.error_code'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.cancelled', 'cancelled'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED', 'cancelled'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unknown', 'unknown'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNKNOWN', 'unknown'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.invalid_argument', 'invalid_argument'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_INVALID_ARGUMENT', 'invalid_argument'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.deadline_exceeded', 'deadline_exceeded'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_DEADLINE_EXCEEDED', 'deadline_exceeded'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.not_found', 'not_found'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_NOT_FOUND', 'not_found'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.already_exists', 'already_exists'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_ALREADY_EXISTS', 'already_exists'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.permission_denied', 'permission_denied'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_PERMISSION_DENIED', 'permission_denied'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.resource_exhausted', 'resource_exhausted'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_RESOURCE_EXHAUSTED', 'resource_exhausted'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.failed_precondition', 'failed_precondition'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_FAILED_PRECONDITION', 'failed_precondition'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.aborted', 'aborted'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_ABORTED', 'aborted'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.out_of_range', 'out_of_range'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_OUT_OF_RANGE', 'out_of_range'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unimplemented', 'unimplemented'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNIMPLEMENTED', 'unimplemented'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.internal', 'internal'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_INTERNAL', 'internal'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unavailable', 'unavailable'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNAVAILABLE', 'unavailable'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.data_loss', 'data_loss'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_DATA_LOSS', 'data_loss'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES.unauthenticated', 'unauthenticated'). +-define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNAUTHENTICATED', 'unauthenticated'). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. %% --define(RPC_CONNECT_RPC_REQUEST_METADATA, 'rpc.connect_rpc.request.metadata'). +-define('RPC_CONNECT_RPC_REQUEST_METADATA', 'rpc.connect_rpc.request.metadata'). %% Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. %% --define(RPC_CONNECT_RPC_RESPONSE_METADATA, 'rpc.connect_rpc.response.metadata'). +-define('RPC_CONNECT_RPC_RESPONSE_METADATA', 'rpc.connect_rpc.response.metadata'). %% gRPC request metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. %% --define(RPC_GRPC_REQUEST_METADATA, 'rpc.grpc.request.metadata'). +-define('RPC_GRPC_REQUEST_METADATA', 'rpc.grpc.request.metadata'). %% gRPC response metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. %% --define(RPC_GRPC_RESPONSE_METADATA, 'rpc.grpc.response.metadata'). +-define('RPC_GRPC_RESPONSE_METADATA', 'rpc.grpc.response.metadata'). %% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. --define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). +-define('RPC_GRPC_STATUS_CODE', 'rpc.grpc.status_code'). --define('RPC_GRPC_STATUS_CODE_VALUES.ok', '0'). +-define('RPC_GRPC_STATUS_CODE_VALUES_OK', '0'). --define('RPC_GRPC_STATUS_CODE_VALUES.cancelled', '1'). +-define('RPC_GRPC_STATUS_CODE_VALUES_CANCELLED', '1'). --define('RPC_GRPC_STATUS_CODE_VALUES.unknown', '2'). +-define('RPC_GRPC_STATUS_CODE_VALUES_UNKNOWN', '2'). --define('RPC_GRPC_STATUS_CODE_VALUES.invalid_argument', '3'). +-define('RPC_GRPC_STATUS_CODE_VALUES_INVALID_ARGUMENT', '3'). --define('RPC_GRPC_STATUS_CODE_VALUES.deadline_exceeded', '4'). +-define('RPC_GRPC_STATUS_CODE_VALUES_DEADLINE_EXCEEDED', '4'). --define('RPC_GRPC_STATUS_CODE_VALUES.not_found', '5'). +-define('RPC_GRPC_STATUS_CODE_VALUES_NOT_FOUND', '5'). --define('RPC_GRPC_STATUS_CODE_VALUES.already_exists', '6'). +-define('RPC_GRPC_STATUS_CODE_VALUES_ALREADY_EXISTS', '6'). --define('RPC_GRPC_STATUS_CODE_VALUES.permission_denied', '7'). +-define('RPC_GRPC_STATUS_CODE_VALUES_PERMISSION_DENIED', '7'). --define('RPC_GRPC_STATUS_CODE_VALUES.resource_exhausted', '8'). +-define('RPC_GRPC_STATUS_CODE_VALUES_RESOURCE_EXHAUSTED', '8'). --define('RPC_GRPC_STATUS_CODE_VALUES.failed_precondition', '9'). +-define('RPC_GRPC_STATUS_CODE_VALUES_FAILED_PRECONDITION', '9'). --define('RPC_GRPC_STATUS_CODE_VALUES.aborted', '10'). +-define('RPC_GRPC_STATUS_CODE_VALUES_ABORTED', '10'). --define('RPC_GRPC_STATUS_CODE_VALUES.out_of_range', '11'). +-define('RPC_GRPC_STATUS_CODE_VALUES_OUT_OF_RANGE', '11'). --define('RPC_GRPC_STATUS_CODE_VALUES.unimplemented', '12'). +-define('RPC_GRPC_STATUS_CODE_VALUES_UNIMPLEMENTED', '12'). --define('RPC_GRPC_STATUS_CODE_VALUES.internal', '13'). +-define('RPC_GRPC_STATUS_CODE_VALUES_INTERNAL', '13'). --define('RPC_GRPC_STATUS_CODE_VALUES.unavailable', '14'). +-define('RPC_GRPC_STATUS_CODE_VALUES_UNAVAILABLE', '14'). --define('RPC_GRPC_STATUS_CODE_VALUES.data_loss', '15'). +-define('RPC_GRPC_STATUS_CODE_VALUES_DATA_LOSS', '15'). --define('RPC_GRPC_STATUS_CODE_VALUES.unauthenticated', '16'). +-define('RPC_GRPC_STATUS_CODE_VALUES_UNAUTHENTICATED', '16'). %% `error.code` property of response if it is an error response. --define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). +-define('RPC_JSONRPC_ERROR_CODE', 'rpc.jsonrpc.error_code'). %% `error.message` property of response if it is an error response. --define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). +-define('RPC_JSONRPC_ERROR_MESSAGE', 'rpc.jsonrpc.error_message'). %% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. %% --define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). +-define('RPC_JSONRPC_REQUEST_ID', 'rpc.jsonrpc.request_id'). %% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. --define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). +-define('RPC_JSONRPC_VERSION', 'rpc.jsonrpc.version'). %% Compressed size of the message in bytes. --define(RPC_MESSAGE_COMPRESSED_SIZE, 'rpc.message.compressed_size'). +-define('RPC_MESSAGE_COMPRESSED_SIZE', 'rpc.message.compressed_size'). %% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. --define(RPC_MESSAGE_ID, 'rpc.message.id'). +-define('RPC_MESSAGE_ID', 'rpc.message.id'). %% Whether this is a received or sent message. --define(RPC_MESSAGE_TYPE, 'rpc.message.type'). +-define('RPC_MESSAGE_TYPE', 'rpc.message.type'). --define('RPC_MESSAGE_TYPE_VALUES.sent', 'SENT'). +-define('RPC_MESSAGE_TYPE_VALUES_SENT', 'SENT'). --define('RPC_MESSAGE_TYPE_VALUES.received', 'RECEIVED'). +-define('RPC_MESSAGE_TYPE_VALUES_RECEIVED', 'RECEIVED'). %% Uncompressed size of the message in bytes. --define(RPC_MESSAGE_UNCOMPRESSED_SIZE, 'rpc.message.uncompressed_size'). +-define('RPC_MESSAGE_UNCOMPRESSED_SIZE', 'rpc.message.uncompressed_size'). %% The name of the (logical) method being called, must be equal to the $method part in the span name. --define(RPC_METHOD, 'rpc.method'). +-define('RPC_METHOD', 'rpc.method'). %% The full (logical) name of the service being called, including its package name, if applicable. --define(RPC_SERVICE, 'rpc.service'). +-define('RPC_SERVICE', 'rpc.service'). %% A string identifying the remoting system. See below for a list of well-known identifiers. --define(RPC_SYSTEM, 'rpc.system'). +-define('RPC_SYSTEM', 'rpc.system'). --define('RPC_SYSTEM_VALUES.grpc', 'grpc'). +-define('RPC_SYSTEM_VALUES_GRPC', 'grpc'). --define('RPC_SYSTEM_VALUES.java_rmi', 'java_rmi'). +-define('RPC_SYSTEM_VALUES_JAVA_RMI', 'java_rmi'). --define('RPC_SYSTEM_VALUES.dotnet_wcf', 'dotnet_wcf'). +-define('RPC_SYSTEM_VALUES_DOTNET_WCF', 'dotnet_wcf'). --define('RPC_SYSTEM_VALUES.apache_dubbo', 'apache_dubbo'). +-define('RPC_SYSTEM_VALUES_APACHE_DUBBO', 'apache_dubbo'). --define('RPC_SYSTEM_VALUES.connect_rpc', 'connect_rpc'). +-define('RPC_SYSTEM_VALUES_CONNECT_RPC', 'connect_rpc'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl index fd51e6b2..e5f1ef20 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl @@ -16,9 +16,9 @@ %% The string ID of the service instance. %% --define(SERVICE_INSTANCE_ID, 'service.instance.id'). +-define('SERVICE_INSTANCE_ID', 'service.instance.id'). %% A namespace for `service.name`. %% --define(SERVICE_NAMESPACE, 'service.namespace'). +-define('SERVICE_NAMESPACE', 'service.namespace'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl index b44e753a..45626102 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% A unique id to identify a session. --define(SESSION_ID, 'session.id'). +-define('SESSION_ID', 'session.id'). %% The previous `session.id` for this user, when known. --define(SESSION_PREVIOUS_ID, 'session.previous_id'). +-define('SESSION_PREVIOUS_ID', 'session.previous_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl index 4f7c3f9b..2935863a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define(SOURCE_ADDRESS, 'source.address'). +-define('SOURCE_ADDRESS', 'source.address'). %% Source port number --define(SOURCE_PORT, 'source.port'). +-define('SOURCE_PORT', 'source.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl index 8001c6fd..2585f28e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl @@ -15,161 +15,161 @@ %%%------------------------------------------------------------------------- %% The logical CPU number [0..n-1] --define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). +-define('SYSTEM_CPU_LOGICAL_NUMBER', 'system.cpu.logical_number'). %% The state of the CPU --define(SYSTEM_CPU_STATE, 'system.cpu.state'). +-define('SYSTEM_CPU_STATE', 'system.cpu.state'). --define('SYSTEM_CPU_STATE_VALUES.user', 'user'). +-define('SYSTEM_CPU_STATE_VALUES_USER', 'user'). --define('SYSTEM_CPU_STATE_VALUES.system', 'system'). +-define('SYSTEM_CPU_STATE_VALUES_SYSTEM', 'system'). --define('SYSTEM_CPU_STATE_VALUES.nice', 'nice'). +-define('SYSTEM_CPU_STATE_VALUES_NICE', 'nice'). --define('SYSTEM_CPU_STATE_VALUES.idle', 'idle'). +-define('SYSTEM_CPU_STATE_VALUES_IDLE', 'idle'). --define('SYSTEM_CPU_STATE_VALUES.iowait', 'iowait'). +-define('SYSTEM_CPU_STATE_VALUES_IOWAIT', 'iowait'). --define('SYSTEM_CPU_STATE_VALUES.interrupt', 'interrupt'). +-define('SYSTEM_CPU_STATE_VALUES_INTERRUPT', 'interrupt'). --define('SYSTEM_CPU_STATE_VALUES.steal', 'steal'). +-define('SYSTEM_CPU_STATE_VALUES_STEAL', 'steal'). %% The device identifier --define(SYSTEM_DEVICE, 'system.device'). +-define('SYSTEM_DEVICE', 'system.device'). %% The filesystem mode --define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). +-define('SYSTEM_FILESYSTEM_MODE', 'system.filesystem.mode'). %% The filesystem mount path --define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). +-define('SYSTEM_FILESYSTEM_MOUNTPOINT', 'system.filesystem.mountpoint'). %% The filesystem state --define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). +-define('SYSTEM_FILESYSTEM_STATE', 'system.filesystem.state'). --define('SYSTEM_FILESYSTEM_STATE_VALUES.used', 'used'). +-define('SYSTEM_FILESYSTEM_STATE_VALUES_USED', 'used'). --define('SYSTEM_FILESYSTEM_STATE_VALUES.free', 'free'). +-define('SYSTEM_FILESYSTEM_STATE_VALUES_FREE', 'free'). --define('SYSTEM_FILESYSTEM_STATE_VALUES.reserved', 'reserved'). +-define('SYSTEM_FILESYSTEM_STATE_VALUES_RESERVED', 'reserved'). %% The filesystem type --define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). +-define('SYSTEM_FILESYSTEM_TYPE', 'system.filesystem.type'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES.fat32', 'fat32'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32', 'fat32'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES.exfat', 'exfat'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES_EXFAT', 'exfat'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES.ntfs', 'ntfs'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES_NTFS', 'ntfs'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES.refs', 'refs'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES_REFS', 'refs'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES.hfsplus', 'hfsplus'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES_HFSPLUS', 'hfsplus'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES.ext4', 'ext4'). +-define('SYSTEM_FILESYSTEM_TYPE_VALUES_EXT_4', 'ext4'). %% The memory state --define(SYSTEM_MEMORY_STATE, 'system.memory.state'). +-define('SYSTEM_MEMORY_STATE', 'system.memory.state'). --define('SYSTEM_MEMORY_STATE_VALUES.used', 'used'). +-define('SYSTEM_MEMORY_STATE_VALUES_USED', 'used'). --define('SYSTEM_MEMORY_STATE_VALUES.free', 'free'). +-define('SYSTEM_MEMORY_STATE_VALUES_FREE', 'free'). --define('SYSTEM_MEMORY_STATE_VALUES.shared', 'shared'). +-define('SYSTEM_MEMORY_STATE_VALUES_SHARED', 'shared'). --define('SYSTEM_MEMORY_STATE_VALUES.buffers', 'buffers'). +-define('SYSTEM_MEMORY_STATE_VALUES_BUFFERS', 'buffers'). --define('SYSTEM_MEMORY_STATE_VALUES.cached', 'cached'). +-define('SYSTEM_MEMORY_STATE_VALUES_CACHED', 'cached'). %% A stateless protocol MUST NOT set this attribute --define(SYSTEM_NETWORK_STATE, 'system.network.state'). +-define('SYSTEM_NETWORK_STATE', 'system.network.state'). --define('SYSTEM_NETWORK_STATE_VALUES.close', 'close'). +-define('SYSTEM_NETWORK_STATE_VALUES_CLOSE', 'close'). --define('SYSTEM_NETWORK_STATE_VALUES.close_wait', 'close_wait'). +-define('SYSTEM_NETWORK_STATE_VALUES_CLOSE_WAIT', 'close_wait'). --define('SYSTEM_NETWORK_STATE_VALUES.closing', 'closing'). +-define('SYSTEM_NETWORK_STATE_VALUES_CLOSING', 'closing'). --define('SYSTEM_NETWORK_STATE_VALUES.delete', 'delete'). +-define('SYSTEM_NETWORK_STATE_VALUES_DELETE', 'delete'). --define('SYSTEM_NETWORK_STATE_VALUES.established', 'established'). +-define('SYSTEM_NETWORK_STATE_VALUES_ESTABLISHED', 'established'). --define('SYSTEM_NETWORK_STATE_VALUES.fin_wait_1', 'fin_wait_1'). +-define('SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_1', 'fin_wait_1'). --define('SYSTEM_NETWORK_STATE_VALUES.fin_wait_2', 'fin_wait_2'). +-define('SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_2', 'fin_wait_2'). --define('SYSTEM_NETWORK_STATE_VALUES.last_ack', 'last_ack'). +-define('SYSTEM_NETWORK_STATE_VALUES_LAST_ACK', 'last_ack'). --define('SYSTEM_NETWORK_STATE_VALUES.listen', 'listen'). +-define('SYSTEM_NETWORK_STATE_VALUES_LISTEN', 'listen'). --define('SYSTEM_NETWORK_STATE_VALUES.syn_recv', 'syn_recv'). +-define('SYSTEM_NETWORK_STATE_VALUES_SYN_RECV', 'syn_recv'). --define('SYSTEM_NETWORK_STATE_VALUES.syn_sent', 'syn_sent'). +-define('SYSTEM_NETWORK_STATE_VALUES_SYN_SENT', 'syn_sent'). --define('SYSTEM_NETWORK_STATE_VALUES.time_wait', 'time_wait'). +-define('SYSTEM_NETWORK_STATE_VALUES_TIME_WAIT', 'time_wait'). %% The paging access direction --define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). +-define('SYSTEM_PAGING_DIRECTION', 'system.paging.direction'). --define('SYSTEM_PAGING_DIRECTION_VALUES.in', 'in'). +-define('SYSTEM_PAGING_DIRECTION_VALUES_IN', 'in'). --define('SYSTEM_PAGING_DIRECTION_VALUES.out', 'out'). +-define('SYSTEM_PAGING_DIRECTION_VALUES_OUT', 'out'). %% The memory paging state --define(SYSTEM_PAGING_STATE, 'system.paging.state'). +-define('SYSTEM_PAGING_STATE', 'system.paging.state'). --define('SYSTEM_PAGING_STATE_VALUES.used', 'used'). +-define('SYSTEM_PAGING_STATE_VALUES_USED', 'used'). --define('SYSTEM_PAGING_STATE_VALUES.free', 'free'). +-define('SYSTEM_PAGING_STATE_VALUES_FREE', 'free'). %% The memory paging type --define(SYSTEM_PAGING_TYPE, 'system.paging.type'). +-define('SYSTEM_PAGING_TYPE', 'system.paging.type'). --define('SYSTEM_PAGING_TYPE_VALUES.major', 'major'). +-define('SYSTEM_PAGING_TYPE_VALUES_MAJOR', 'major'). --define('SYSTEM_PAGING_TYPE_VALUES.minor', 'minor'). +-define('SYSTEM_PAGING_TYPE_VALUES_MINOR', 'minor'). %% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) %% --define(SYSTEM_PROCESS_STATUS, 'system.process.status'). +-define('SYSTEM_PROCESS_STATUS', 'system.process.status'). --define('SYSTEM_PROCESS_STATUS_VALUES.running', 'running'). +-define('SYSTEM_PROCESS_STATUS_VALUES_RUNNING', 'running'). --define('SYSTEM_PROCESS_STATUS_VALUES.sleeping', 'sleeping'). +-define('SYSTEM_PROCESS_STATUS_VALUES_SLEEPING', 'sleeping'). --define('SYSTEM_PROCESS_STATUS_VALUES.stopped', 'stopped'). +-define('SYSTEM_PROCESS_STATUS_VALUES_STOPPED', 'stopped'). --define('SYSTEM_PROCESS_STATUS_VALUES.defunct', 'defunct'). +-define('SYSTEM_PROCESS_STATUS_VALUES_DEFUNCT', 'defunct'). %% @deprecated Replaced by `system.process.status`. %% Deprecated, use `system.process.status` instead. --define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). +-define('SYSTEM_PROCESSES_STATUS', 'system.processes.status'). --define('SYSTEM_PROCESSES_STATUS_VALUES.running', 'running'). +-define('SYSTEM_PROCESSES_STATUS_VALUES_RUNNING', 'running'). --define('SYSTEM_PROCESSES_STATUS_VALUES.sleeping', 'sleeping'). +-define('SYSTEM_PROCESSES_STATUS_VALUES_SLEEPING', 'sleeping'). --define('SYSTEM_PROCESSES_STATUS_VALUES.stopped', 'stopped'). +-define('SYSTEM_PROCESSES_STATUS_VALUES_STOPPED', 'stopped'). --define('SYSTEM_PROCESSES_STATUS_VALUES.defunct', 'defunct'). +-define('SYSTEM_PROCESSES_STATUS_VALUES_DEFUNCT', 'defunct'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl index 913e6ca0..574cd83b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl @@ -16,9 +16,9 @@ %% The name of the auto instrumentation agent or distribution, if used. %% --define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). +-define('TELEMETRY_DISTRO_NAME', 'telemetry.distro.name'). %% The version string of the auto instrumentation agent or distribution, if used. %% --define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). +-define('TELEMETRY_DISTRO_VERSION', 'telemetry.distro.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl index 8eec8d36..1b5e17df 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl @@ -16,9 +16,9 @@ %% Current "managed" thread ID (as opposed to OS thread ID). %% --define(THREAD_ID, 'thread.id'). +-define('THREAD_ID', 'thread.id'). %% Current thread name. %% --define(THREAD_NAME, 'thread.name'). +-define('THREAD_NAME', 'thread.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl index 59a00e2c..3fd7d49c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl @@ -16,134 +16,134 @@ %% String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. %% --define(TLS_CIPHER, 'tls.cipher'). +-define('TLS_CIPHER', 'tls.cipher'). %% PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. %% --define(TLS_CLIENT_CERTIFICATE, 'tls.client.certificate'). +-define('TLS_CLIENT_CERTIFICATE', 'tls.client.certificate'). %% Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. %% --define(TLS_CLIENT_CERTIFICATE_CHAIN, 'tls.client.certificate_chain'). +-define('TLS_CLIENT_CERTIFICATE_CHAIN', 'tls.client.certificate_chain'). %% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_CLIENT_HASH_MD5, 'tls.client.hash.md5'). +-define('TLS_CLIENT_HASH_MD5', 'tls.client.hash.md5'). %% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_CLIENT_HASH_SHA1, 'tls.client.hash.sha1'). +-define('TLS_CLIENT_HASH_SHA1', 'tls.client.hash.sha1'). %% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_CLIENT_HASH_SHA256, 'tls.client.hash.sha256'). +-define('TLS_CLIENT_HASH_SHA256', 'tls.client.hash.sha256'). %% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. --define(TLS_CLIENT_ISSUER, 'tls.client.issuer'). +-define('TLS_CLIENT_ISSUER', 'tls.client.issuer'). %% A hash that identifies clients based on how they perform an SSL/TLS handshake. --define(TLS_CLIENT_JA3, 'tls.client.ja3'). +-define('TLS_CLIENT_JA3', 'tls.client.ja3'). %% Date/Time indicating when client certificate is no longer considered valid. --define(TLS_CLIENT_NOT_AFTER, 'tls.client.not_after'). +-define('TLS_CLIENT_NOT_AFTER', 'tls.client.not_after'). %% Date/Time indicating when client certificate is first considered valid. --define(TLS_CLIENT_NOT_BEFORE, 'tls.client.not_before'). +-define('TLS_CLIENT_NOT_BEFORE', 'tls.client.not_before'). %% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. --define(TLS_CLIENT_SERVER_NAME, 'tls.client.server_name'). +-define('TLS_CLIENT_SERVER_NAME', 'tls.client.server_name'). %% Distinguished name of subject of the x.509 certificate presented by the client. --define(TLS_CLIENT_SUBJECT, 'tls.client.subject'). +-define('TLS_CLIENT_SUBJECT', 'tls.client.subject'). %% Array of ciphers offered by the client during the client hello. --define(TLS_CLIENT_SUPPORTED_CIPHERS, 'tls.client.supported_ciphers'). +-define('TLS_CLIENT_SUPPORTED_CIPHERS', 'tls.client.supported_ciphers'). %% String indicating the curve used for the given cipher, when applicable --define(TLS_CURVE, 'tls.curve'). +-define('TLS_CURVE', 'tls.curve'). %% Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. --define(TLS_ESTABLISHED, 'tls.established'). +-define('TLS_ESTABLISHED', 'tls.established'). %% String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. %% --define(TLS_NEXT_PROTOCOL, 'tls.next_protocol'). +-define('TLS_NEXT_PROTOCOL', 'tls.next_protocol'). %% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) %% --define(TLS_PROTOCOL_NAME, 'tls.protocol.name'). +-define('TLS_PROTOCOL_NAME', 'tls.protocol.name'). --define('TLS_PROTOCOL_NAME_VALUES.ssl', 'ssl'). +-define('TLS_PROTOCOL_NAME_VALUES_SSL', 'ssl'). --define('TLS_PROTOCOL_NAME_VALUES.tls', 'tls'). +-define('TLS_PROTOCOL_NAME_VALUES_TLS', 'tls'). %% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) %% --define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). +-define('TLS_PROTOCOL_VERSION', 'tls.protocol.version'). %% Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. --define(TLS_RESUMED, 'tls.resumed'). +-define('TLS_RESUMED', 'tls.resumed'). %% PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. %% --define(TLS_SERVER_CERTIFICATE, 'tls.server.certificate'). +-define('TLS_SERVER_CERTIFICATE', 'tls.server.certificate'). %% Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. %% --define(TLS_SERVER_CERTIFICATE_CHAIN, 'tls.server.certificate_chain'). +-define('TLS_SERVER_CERTIFICATE_CHAIN', 'tls.server.certificate_chain'). %% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_SERVER_HASH_MD5, 'tls.server.hash.md5'). +-define('TLS_SERVER_HASH_MD5', 'tls.server.hash.md5'). %% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_SERVER_HASH_SHA1, 'tls.server.hash.sha1'). +-define('TLS_SERVER_HASH_SHA1', 'tls.server.hash.sha1'). %% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define(TLS_SERVER_HASH_SHA256, 'tls.server.hash.sha256'). +-define('TLS_SERVER_HASH_SHA256', 'tls.server.hash.sha256'). %% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. --define(TLS_SERVER_ISSUER, 'tls.server.issuer'). +-define('TLS_SERVER_ISSUER', 'tls.server.issuer'). %% A hash that identifies servers based on how they perform an SSL/TLS handshake. --define(TLS_SERVER_JA3S, 'tls.server.ja3s'). +-define('TLS_SERVER_JA3S', 'tls.server.ja3s'). %% Date/Time indicating when server certificate is no longer considered valid. --define(TLS_SERVER_NOT_AFTER, 'tls.server.not_after'). +-define('TLS_SERVER_NOT_AFTER', 'tls.server.not_after'). %% Date/Time indicating when server certificate is first considered valid. --define(TLS_SERVER_NOT_BEFORE, 'tls.server.not_before'). +-define('TLS_SERVER_NOT_BEFORE', 'tls.server.not_before'). %% Distinguished name of subject of the x.509 certificate presented by the server. --define(TLS_SERVER_SUBJECT, 'tls.server.subject'). +-define('TLS_SERVER_SUBJECT', 'tls.server.subject'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl index 09a42e50..663adb01 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl @@ -16,39 +16,39 @@ %% Domain extracted from the `url.full`, such as "opentelemetry.io". %% --define(URL_DOMAIN, 'url.domain'). +-define('URL_DOMAIN', 'url.domain'). %% The file extension extracted from the `url.full`, excluding the leading dot. %% --define(URL_EXTENSION, 'url.extension'). +-define('URL_EXTENSION', 'url.extension'). %% Unmodified original URL as seen in the event source. %% --define(URL_ORIGINAL, 'url.original'). +-define('URL_ORIGINAL', 'url.original'). %% Port extracted from the `url.full` %% --define(URL_PORT, 'url.port'). +-define('URL_PORT', 'url.port'). %% The highest registered url domain, stripped of the subdomain. %% --define(URL_REGISTERED_DOMAIN, 'url.registered_domain'). +-define('URL_REGISTERED_DOMAIN', 'url.registered_domain'). %% The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. %% --define(URL_SUBDOMAIN, 'url.subdomain'). +-define('URL_SUBDOMAIN', 'url.subdomain'). %% The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). %% --define(URL_TEMPLATE, 'url.template'). +-define('URL_TEMPLATE', 'url.template'). %% The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. %% --define(URL_TOP_LEVEL_DOMAIN, 'url.top_level_domain'). +-define('URL_TOP_LEVEL_DOMAIN', 'url.top_level_domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl index 13b03b5d..cd2f0082 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl @@ -16,9 +16,9 @@ %% Name of the user-agent extracted from original. Usually refers to the browser's name. %% --define(USER_AGENT_NAME, 'user_agent.name'). +-define('USER_AGENT_NAME', 'user_agent.name'). %% Version of the user-agent extracted from original. Usually refers to the browser's version %% --define(USER_AGENT_VERSION, 'user_agent.version'). +-define('USER_AGENT_VERSION', 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl index fe6cd563..ca19ecce 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl @@ -16,14 +16,14 @@ %% Additional description of the web engine (e.g. detailed version and edition information). %% --define(WEBENGINE_DESCRIPTION, 'webengine.description'). +-define('WEBENGINE_DESCRIPTION', 'webengine.description'). %% The name of the web engine. %% --define(WEBENGINE_NAME, 'webengine.name'). +-define('WEBENGINE_NAME', 'webengine.name'). %% The version of the web engine. %% --define(WEBENGINE_VERSION, 'webengine.version'). +-define('WEBENGINE_VERSION', 'webengine.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl index 32212de8..96e26101 100644 --- a/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Duration of HTTP client requests. --define(HTTP_CLIENT_REQUEST_DURATION, 'http.client.request.duration'). +-define('HTTP_CLIENT_REQUEST_DURATION', 'http.client.request.duration'). %% Duration of HTTP server requests. --define(HTTP_SERVER_REQUEST_DURATION, 'http.server.request.duration'). +-define('HTTP_SERVER_REQUEST_DURATION', 'http.server.request.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl index 4e487b28..f26e442b 100644 --- a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl @@ -15,47 +15,47 @@ %%%------------------------------------------------------------------------- %% Local address of the network connection - IP address or Unix domain socket name. --define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). +-define('NETWORK_LOCAL_ADDRESS', 'network.local.address'). %% Local port number of the network connection. --define(NETWORK_LOCAL_PORT, 'network.local.port'). +-define('NETWORK_LOCAL_PORT', 'network.local.port'). %% Peer address of the network connection - IP address or Unix domain socket name. --define(NETWORK_PEER_ADDRESS, 'network.peer.address'). +-define('NETWORK_PEER_ADDRESS', 'network.peer.address'). %% Peer port number of the network connection. --define(NETWORK_PEER_PORT, 'network.peer.port'). +-define('NETWORK_PEER_PORT', 'network.peer.port'). %% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. --define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). +-define('NETWORK_PROTOCOL_NAME', 'network.protocol.name'). %% The actual version of the protocol used for network communication. --define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). +-define('NETWORK_PROTOCOL_VERSION', 'network.protocol.version'). %% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). %% --define(NETWORK_TRANSPORT, 'network.transport'). +-define('NETWORK_TRANSPORT', 'network.transport'). --define('NETWORK_TRANSPORT_VALUES.tcp', 'tcp'). +-define('NETWORK_TRANSPORT_VALUES_TCP', 'tcp'). --define('NETWORK_TRANSPORT_VALUES.udp', 'udp'). +-define('NETWORK_TRANSPORT_VALUES_UDP', 'udp'). --define('NETWORK_TRANSPORT_VALUES.pipe', 'pipe'). +-define('NETWORK_TRANSPORT_VALUES_PIPE', 'pipe'). --define('NETWORK_TRANSPORT_VALUES.unix', 'unix'). +-define('NETWORK_TRANSPORT_VALUES_UNIX', 'unix'). %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. --define(NETWORK_TYPE, 'network.type'). +-define('NETWORK_TYPE', 'network.type'). --define('NETWORK_TYPE_VALUES.ipv4', 'ipv4'). +-define('NETWORK_TYPE_VALUES_IPV_4', 'ipv4'). --define('NETWORK_TYPE_VALUES.ipv6', 'ipv6'). +-define('NETWORK_TYPE_VALUES_IPV_6', 'ipv6'). diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl index ec96be37..cc6a90ba 100644 --- a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl @@ -15,21 +15,21 @@ %%%------------------------------------------------------------------------- %% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). --define(OTEL_SCOPE_NAME, 'otel.scope.name'). +-define('OTEL_SCOPE_NAME', 'otel.scope.name'). %% The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). --define(OTEL_SCOPE_VERSION, 'otel.scope.version'). +-define('OTEL_SCOPE_VERSION', 'otel.scope.version'). %% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. --define(OTEL_STATUS_CODE, 'otel.status_code'). +-define('OTEL_STATUS_CODE', 'otel.status_code'). --define('OTEL_STATUS_CODE_VALUES.ok', 'OK'). +-define('OTEL_STATUS_CODE_VALUES_OK', 'OK'). --define('OTEL_STATUS_CODE_VALUES.error', 'ERROR'). +-define('OTEL_STATUS_CODE_VALUES_ERROR', 'ERROR'). %% Description of the Status if it has a value, otherwise not set. --define(OTEL_STATUS_DESCRIPTION, 'otel.status_description'). +-define('OTEL_STATUS_DESCRIPTION', 'otel.status_description'). diff --git a/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl index 0b31242b..4e0c99c0 100644 --- a/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define(SERVER_ADDRESS, 'server.address'). +-define('SERVER_ADDRESS', 'server.address'). %% Server port number. --define(SERVER_PORT, 'server.port'). +-define('SERVER_PORT', 'server.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl index 5a9422ad..8e9ec5d1 100644 --- a/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl @@ -16,9 +16,9 @@ %% Logical name of the service. %% --define(SERVICE_NAME, 'service.name'). +-define('SERVICE_NAME', 'service.name'). %% The version string of the service API or implementation. The format is not defined by these conventions. %% --define(SERVICE_VERSION, 'service.version'). +-define('SERVICE_VERSION', 'service.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl index a6a80e4f..fbee75a0 100644 --- a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl @@ -16,39 +16,39 @@ %% The language of the telemetry SDK. %% --define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). +-define('TELEMETRY_SDK_LANGUAGE', 'telemetry.sdk.language'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.cpp', 'cpp'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_CPP', 'cpp'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.dotnet', 'dotnet'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_DOTNET', 'dotnet'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.erlang', 'erlang'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_ERLANG', 'erlang'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.go', 'go'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_GO', 'go'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.java', 'java'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_JAVA', 'java'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.nodejs', 'nodejs'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_NODEJS', 'nodejs'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.php', 'php'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_PHP', 'php'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.python', 'python'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_PYTHON', 'python'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.ruby', 'ruby'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_RUBY', 'ruby'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.rust', 'rust'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_RUST', 'rust'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.swift', 'swift'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_SWIFT', 'swift'). --define('TELEMETRY_SDK_LANGUAGE_VALUES.webjs', 'webjs'). +-define('TELEMETRY_SDK_LANGUAGE_VALUES_WEBJS', 'webjs'). %% The name of the telemetry SDK as defined above. %% --define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). +-define('TELEMETRY_SDK_NAME', 'telemetry.sdk.name'). %% The version string of the telemetry SDK. %% --define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). +-define('TELEMETRY_SDK_VERSION', 'telemetry.sdk.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl index de20e51b..05eae884 100644 --- a/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl @@ -16,23 +16,23 @@ %% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component %% --define(URL_FRAGMENT, 'url.fragment'). +-define('URL_FRAGMENT', 'url.fragment'). %% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) --define(URL_FULL, 'url.full'). +-define('URL_FULL', 'url.full'). %% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component %% --define(URL_PATH, 'url.path'). +-define('URL_PATH', 'url.path'). %% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component %% --define(URL_QUERY, 'url.query'). +-define('URL_QUERY', 'url.query'). %% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. %% --define(URL_SCHEME, 'url.scheme'). +-define('URL_SCHEME', 'url.scheme'). diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl index 611dee21..f96a1b56 100644 --- a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl @@ -16,4 +16,4 @@ %% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. %% --define(USER_AGENT_ORIGINAL, 'user_agent.original'). +-define('USER_AGENT_ORIGINAL', 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex index bcedc924..74f1a08b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.ClientAttributes do ### Erlang ```erlang - ?CLIENT_ADDRESS. + ?'CLIENT_ADDRESS'. 'client.address' ``` @@ -65,7 +65,7 @@ defmodule OpenTelemetry.SemConv.ClientAttributes do ### Erlang ```erlang - ?CLIENT_PORT. + ?'CLIENT_PORT'. 'client.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex index 8755277a..b27093fe 100644 --- a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex @@ -63,13 +63,13 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do ### Erlang ```erlang - ?ERROR_TYPE. + ?'ERROR_TYPE'. 'error.type' - ?'ERROR_TYPE_VALUES.other'. + ?'ERROR_TYPE_VALUES_OTHER'. _OTHER - \#{?ERROR_TYPE => ?'ERROR_TYPE_VALUES.other'}. + \#{?ERROR_TYPE => ?'ERROR_TYPE_VALUES_OTHER'}. \#{'error.type' => _OTHER} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex index 7bb01402..a89dc0af 100644 --- a/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?EXCEPTION_ESCAPED. + ?'EXCEPTION_ESCAPED'. 'exception.escaped' ``` @@ -71,7 +71,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?EXCEPTION_MESSAGE. + ?'EXCEPTION_MESSAGE'. 'exception.message' ``` @@ -104,7 +104,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?EXCEPTION_STACKTRACE. + ?'EXCEPTION_STACKTRACE'. 'exception.stacktrace' ``` @@ -137,7 +137,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?EXCEPTION_TYPE. + ?'EXCEPTION_TYPE'. 'exception.type' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex index f8b80c8f..2e9a5ffb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex @@ -32,7 +32,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_REQUEST_HEADER. + ?'HTTP_REQUEST_HEADER'. 'http.request.header' ``` @@ -112,13 +112,13 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_REQUEST_METHOD. + ?'HTTP_REQUEST_METHOD'. 'http.request.method' - ?'HTTP_REQUEST_METHOD_VALUES.connect'. + ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'. CONNECT - \#{?HTTP_REQUEST_METHOD => ?'HTTP_REQUEST_METHOD_VALUES.connect'}. + \#{?HTTP_REQUEST_METHOD => ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'}. \#{'http.request.method' => CONNECT} ``` @@ -166,7 +166,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_REQUEST_METHOD_ORIGINAL. + ?'HTTP_REQUEST_METHOD_ORIGINAL'. 'http.request.method_original' ``` @@ -203,7 +203,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_REQUEST_RESEND_COUNT. + ?'HTTP_REQUEST_RESEND_COUNT'. 'http.request.resend_count' ``` @@ -242,7 +242,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_RESPONSE_HEADER. + ?'HTTP_RESPONSE_HEADER'. 'http.response.header' ``` @@ -274,7 +274,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_RESPONSE_STATUS_CODE. + ?'HTTP_RESPONSE_STATUS_CODE'. 'http.response.status_code' ``` @@ -312,7 +312,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?HTTP_ROUTE. + ?'HTTP_ROUTE'. 'http.route' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex index 468e0dee..ef71c30c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS. + ?'AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS'. 'aws.dynamodb.attribute_definitions' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_ATTRIBUTES_TO_GET. + ?'AWS_DYNAMODB_ATTRIBUTES_TO_GET'. 'aws.dynamodb.attributes_to_get' ``` @@ -84,7 +84,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_CONSISTENT_READ. + ?'AWS_DYNAMODB_CONSISTENT_READ'. 'aws.dynamodb.consistent_read' ``` @@ -116,7 +116,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_CONSUMED_CAPACITY. + ?'AWS_DYNAMODB_CONSUMED_CAPACITY'. 'aws.dynamodb.consumed_capacity' ``` @@ -148,7 +148,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_COUNT. + ?'AWS_DYNAMODB_COUNT'. 'aws.dynamodb.count' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_EXCLUSIVE_START_TABLE. + ?'AWS_DYNAMODB_EXCLUSIVE_START_TABLE'. 'aws.dynamodb.exclusive_start_table' ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES. + ?'AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES'. 'aws.dynamodb.global_secondary_index_updates' ``` @@ -245,7 +245,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES. + ?'AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES'. 'aws.dynamodb.global_secondary_indexes' ``` @@ -277,7 +277,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_INDEX_NAME. + ?'AWS_DYNAMODB_INDEX_NAME'. 'aws.dynamodb.index_name' ``` @@ -309,7 +309,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_ITEM_COLLECTION_METRICS. + ?'AWS_DYNAMODB_ITEM_COLLECTION_METRICS'. 'aws.dynamodb.item_collection_metrics' ``` @@ -341,7 +341,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_LIMIT. + ?'AWS_DYNAMODB_LIMIT'. 'aws.dynamodb.limit' ``` @@ -373,7 +373,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES. + ?'AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES'. 'aws.dynamodb.local_secondary_indexes' ``` @@ -405,7 +405,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_PROJECTION. + ?'AWS_DYNAMODB_PROJECTION'. 'aws.dynamodb.projection' ``` @@ -437,7 +437,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_PROVISIONED_READ_CAPACITY. + ?'AWS_DYNAMODB_PROVISIONED_READ_CAPACITY'. 'aws.dynamodb.provisioned_read_capacity' ``` @@ -469,7 +469,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY. + ?'AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY'. 'aws.dynamodb.provisioned_write_capacity' ``` @@ -496,7 +496,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_SCAN_FORWARD. + ?'AWS_DYNAMODB_SCAN_FORWARD'. 'aws.dynamodb.scan_forward' ``` @@ -528,7 +528,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_SCANNED_COUNT. + ?'AWS_DYNAMODB_SCANNED_COUNT'. 'aws.dynamodb.scanned_count' ``` @@ -560,7 +560,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_SEGMENT. + ?'AWS_DYNAMODB_SEGMENT'. 'aws.dynamodb.segment' ``` @@ -592,7 +592,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_SELECT. + ?'AWS_DYNAMODB_SELECT'. 'aws.dynamodb.select' ``` @@ -624,7 +624,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_TABLE_COUNT. + ?'AWS_DYNAMODB_TABLE_COUNT'. 'aws.dynamodb.table_count' ``` @@ -656,7 +656,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_TABLE_NAMES. + ?'AWS_DYNAMODB_TABLE_NAMES'. 'aws.dynamodb.table_names' ``` @@ -688,7 +688,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_DYNAMODB_TOTAL_SEGMENTS. + ?'AWS_DYNAMODB_TOTAL_SEGMENTS'. 'aws.dynamodb.total_segments' ``` @@ -721,7 +721,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_CLUSTER_ARN. + ?'AWS_ECS_CLUSTER_ARN'. 'aws.ecs.cluster.arn' ``` @@ -754,7 +754,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_CONTAINER_ARN. + ?'AWS_ECS_CONTAINER_ARN'. 'aws.ecs.container.arn' ``` @@ -798,13 +798,13 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_LAUNCHTYPE. + ?'AWS_ECS_LAUNCHTYPE'. 'aws.ecs.launchtype' - ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'. + ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'. ec2 - \#{?AWS_ECS_LAUNCHTYPE => ?'AWS_ECS_LAUNCHTYPE_VALUES.ec2'}. + \#{?AWS_ECS_LAUNCHTYPE => ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'}. \#{'aws.ecs.launchtype' => ec2} ``` @@ -845,7 +845,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_TASK_ARN. + ?'AWS_ECS_TASK_ARN'. 'aws.ecs.task.arn' ``` @@ -878,7 +878,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_TASK_FAMILY. + ?'AWS_ECS_TASK_FAMILY'. 'aws.ecs.task.family' ``` @@ -911,7 +911,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_TASK_ID. + ?'AWS_ECS_TASK_ID'. 'aws.ecs.task.id' ``` @@ -944,7 +944,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_ECS_TASK_REVISION. + ?'AWS_ECS_TASK_REVISION'. 'aws.ecs.task.revision' ``` @@ -977,7 +977,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_EKS_CLUSTER_ARN. + ?'AWS_EKS_CLUSTER_ARN'. 'aws.eks.cluster.arn' ``` @@ -1013,7 +1013,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_LAMBDA_INVOKED_ARN. + ?'AWS_LAMBDA_INVOKED_ARN'. 'aws.lambda.invoked_arn' ``` @@ -1050,7 +1050,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_LOG_GROUP_ARNS. + ?'AWS_LOG_GROUP_ARNS'. 'aws.log.group.arns' ``` @@ -1087,7 +1087,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_LOG_GROUP_NAMES. + ?'AWS_LOG_GROUP_NAMES'. 'aws.log.group.names' ``` @@ -1124,7 +1124,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_LOG_STREAM_ARNS. + ?'AWS_LOG_STREAM_ARNS'. 'aws.log.stream.arns' ``` @@ -1157,7 +1157,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_LOG_STREAM_NAMES. + ?'AWS_LOG_STREAM_NAMES'. 'aws.log.stream.names' ``` @@ -1189,7 +1189,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_REQUEST_ID. + ?'AWS_REQUEST_ID'. 'aws.request_id' ``` @@ -1226,7 +1226,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_S3_BUCKET. + ?'AWS_S3_BUCKET'. 'aws.s3.bucket' ``` @@ -1267,7 +1267,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_S3_COPY_SOURCE. + ?'AWS_S3_COPY_SOURCE'. 'aws.s3.copy_source' ``` @@ -1305,7 +1305,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_S3_DELETE. + ?'AWS_S3_DELETE'. 'aws.s3.delete' ``` @@ -1356,7 +1356,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_S3_KEY. + ?'AWS_S3_KEY'. 'aws.s3.key' ``` @@ -1395,7 +1395,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_S3_PART_NUMBER. + ?'AWS_S3_PART_NUMBER'. 'aws.s3.part_number' ``` @@ -1439,7 +1439,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?AWS_S3_UPLOAD_ID. + ?'AWS_S3_UPLOAD_ID'. 'aws.s3.upload_id' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex index 63b85baf..128f0d08 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?BROWSER_BRANDS. + ?'BROWSER_BRANDS'. 'browser.brands' ``` @@ -65,7 +65,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?BROWSER_LANGUAGE. + ?'BROWSER_LANGUAGE'. 'browser.language' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?BROWSER_MOBILE. + ?'BROWSER_MOBILE'. 'browser.mobile' ``` @@ -133,7 +133,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?BROWSER_PLATFORM. + ?'BROWSER_PLATFORM'. 'browser.platform' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex index f0c3b781..930209d7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?CLOUD_ACCOUNT_ID. + ?'CLOUD_ACCOUNT_ID'. 'cloud.account.id' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?CLOUD_AVAILABILITY_ZONE. + ?'CLOUD_AVAILABILITY_ZONE'. 'cloud.availability_zone' ``` @@ -163,13 +163,13 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?CLOUD_PLATFORM. + ?'CLOUD_PLATFORM'. 'cloud.platform' - ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'. + ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'. alibaba_cloud_ecs - \#{?CLOUD_PLATFORM => ?'CLOUD_PLATFORM_VALUES.alibaba_cloud_ecs'}. + \#{?CLOUD_PLATFORM => ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'}. \#{'cloud.platform' => alibaba_cloud_ecs} ``` @@ -257,13 +257,13 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?CLOUD_PROVIDER. + ?'CLOUD_PROVIDER'. 'cloud.provider' - ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'. + ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'. alibaba_cloud - \#{?CLOUD_PROVIDER => ?'CLOUD_PROVIDER_VALUES.alibaba_cloud'}. + \#{?CLOUD_PROVIDER => ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'}. \#{'cloud.provider' => alibaba_cloud} ``` @@ -313,7 +313,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?CLOUD_REGION. + ?'CLOUD_REGION'. 'cloud.region' ``` @@ -366,7 +366,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?CLOUD_RESOURCE_ID. + ?'CLOUD_RESOURCE_ID'. 'cloud.resource_id' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex index a4501492..be83fd4e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?CLOUDEVENTS_EVENT_ID. + ?'CLOUDEVENTS_EVENT_ID'. 'cloudevents.event_id' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?CLOUDEVENTS_EVENT_SOURCE. + ?'CLOUDEVENTS_EVENT_SOURCE'. 'cloudevents.event_source' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?CLOUDEVENTS_EVENT_SPEC_VERSION. + ?'CLOUDEVENTS_EVENT_SPEC_VERSION'. 'cloudevents.event_spec_version' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?CLOUDEVENTS_EVENT_SUBJECT. + ?'CLOUDEVENTS_EVENT_SUBJECT'. 'cloudevents.event_subject' ``` @@ -158,7 +158,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?CLOUDEVENTS_EVENT_TYPE. + ?'CLOUDEVENTS_EVENT_TYPE'. 'cloudevents.event_type' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex index 154e989a..f04879be 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?CODE_COLUMN. + ?'CODE_COLUMN'. 'code.column' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?CODE_FILEPATH. + ?'CODE_FILEPATH'. 'code.filepath' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?CODE_FUNCTION. + ?'CODE_FUNCTION'. 'code.function' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?CODE_LINENO. + ?'CODE_LINENO'. 'code.lineno' ``` @@ -158,7 +158,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?CODE_NAMESPACE. + ?'CODE_NAMESPACE'. 'code.namespace' ``` @@ -191,7 +191,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?CODE_STACKTRACE. + ?'CODE_STACKTRACE'. 'code.stacktrace' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex index e4fe80d5..f6a37b45 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_COMMAND. + ?'CONTAINER_COMMAND'. 'container.command' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_COMMAND_ARGS. + ?'CONTAINER_COMMAND_ARGS'. 'container.command_args' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_COMMAND_LINE. + ?'CONTAINER_COMMAND_LINE'. 'container.command_line' ``` @@ -145,13 +145,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_CPU_STATE. + ?'CONTAINER_CPU_STATE'. 'container.cpu.state' - ?'CONTAINER_CPU_STATE_VALUES.user'. + ?'CONTAINER_CPU_STATE_VALUES_USER'. user - \#{?CONTAINER_CPU_STATE => ?'CONTAINER_CPU_STATE_VALUES.user'}. + \#{?CONTAINER_CPU_STATE => ?'CONTAINER_CPU_STATE_VALUES_USER'}. \#{'container.cpu.state' => user} ``` @@ -193,7 +193,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_ID. + ?'CONTAINER_ID'. 'container.id' ``` @@ -232,7 +232,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_IMAGE_ID. + ?'CONTAINER_IMAGE_ID'. 'container.image.id' ``` @@ -265,7 +265,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_IMAGE_NAME. + ?'CONTAINER_IMAGE_NAME'. 'container.image.name' ``` @@ -302,7 +302,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_IMAGE_REPO_DIGESTS. + ?'CONTAINER_IMAGE_REPO_DIGESTS'. 'container.image.repo_digests' ``` @@ -335,7 +335,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_IMAGE_TAGS. + ?'CONTAINER_IMAGE_TAGS'. 'container.image.tags' ``` @@ -368,7 +368,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_LABEL. + ?'CONTAINER_LABEL'. 'container.label' ``` @@ -409,7 +409,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_NAME. + ?'CONTAINER_NAME'. 'container.name' ``` @@ -442,7 +442,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?CONTAINER_RUNTIME. + ?'CONTAINER_RUNTIME'. 'container.runtime' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex index a0a45605..58a3c3a1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex @@ -55,13 +55,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CASSANDRA_CONSISTENCY_LEVEL. + ?'DB_CASSANDRA_CONSISTENCY_LEVEL'. 'db.cassandra.consistency_level' - ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.all'. + ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'. all - \#{?DB_CASSANDRA_CONSISTENCY_LEVEL => ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES.all'}. + \#{?DB_CASSANDRA_CONSISTENCY_LEVEL => ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'}. \#{'db.cassandra.consistency_level' => all} ``` @@ -111,7 +111,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CASSANDRA_COORDINATOR_DC. + ?'DB_CASSANDRA_COORDINATOR_DC'. 'db.cassandra.coordinator.dc' ``` @@ -144,7 +144,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CASSANDRA_COORDINATOR_ID. + ?'DB_CASSANDRA_COORDINATOR_ID'. 'db.cassandra.coordinator.id' ``` @@ -172,7 +172,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CASSANDRA_IDEMPOTENCE. + ?'DB_CASSANDRA_IDEMPOTENCE'. 'db.cassandra.idempotence' ``` @@ -205,7 +205,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CASSANDRA_PAGE_SIZE. + ?'DB_CASSANDRA_PAGE_SIZE'. 'db.cassandra.page_size' ``` @@ -238,7 +238,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT. + ?'DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT'. 'db.cassandra.speculative_execution_count' ``` @@ -279,7 +279,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CLIENT_CONNECTIONS_POOL_NAME. + ?'DB_CLIENT_CONNECTIONS_POOL_NAME'. 'db.client.connections.pool.name' ``` @@ -326,13 +326,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_CLIENT_CONNECTIONS_STATE. + ?'DB_CLIENT_CONNECTIONS_STATE'. 'db.client.connections.state' - ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'. + ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'. idle - \#{?DB_CLIENT_CONNECTIONS_STATE => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES.idle'}. + \#{?DB_CLIENT_CONNECTIONS_STATE => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'}. \#{'db.client.connections.state' => idle} ``` @@ -377,7 +377,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COLLECTION_NAME. + ?'DB_COLLECTION_NAME'. 'db.collection.name' ``` @@ -418,7 +418,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_CLIENT_ID. + ?'DB_COSMOSDB_CLIENT_ID'. 'db.cosmosdb.client_id' ``` @@ -460,13 +460,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_CONNECTION_MODE. + ?'DB_COSMOSDB_CONNECTION_MODE'. 'db.cosmosdb.connection_mode' - ?'DB_COSMOSDB_CONNECTION_MODE_VALUES.gateway'. + ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'. gateway - \#{?DB_COSMOSDB_CONNECTION_MODE => ?'DB_COSMOSDB_CONNECTION_MODE_VALUES.gateway'}. + \#{?DB_COSMOSDB_CONNECTION_MODE => ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'}. \#{'db.cosmosdb.connection_mode' => gateway} ``` @@ -550,13 +550,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_OPERATION_TYPE. + ?'DB_COSMOSDB_OPERATION_TYPE'. 'db.cosmosdb.operation_type' - ?'DB_COSMOSDB_OPERATION_TYPE_VALUES.invalid'. + ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'. Invalid - \#{?DB_COSMOSDB_OPERATION_TYPE => ?'DB_COSMOSDB_OPERATION_TYPE_VALUES.invalid'}. + \#{?DB_COSMOSDB_OPERATION_TYPE => ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'}. \#{'db.cosmosdb.operation_type' => Invalid} ``` @@ -609,7 +609,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_REQUEST_CHARGE. + ?'DB_COSMOSDB_REQUEST_CHARGE'. 'db.cosmosdb.request_charge' ``` @@ -636,7 +636,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_REQUEST_CONTENT_LENGTH. + ?'DB_COSMOSDB_REQUEST_CONTENT_LENGTH'. 'db.cosmosdb.request_content_length' ``` @@ -668,7 +668,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_STATUS_CODE. + ?'DB_COSMOSDB_STATUS_CODE'. 'db.cosmosdb.status_code' ``` @@ -700,7 +700,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_COSMOSDB_SUB_STATUS_CODE. + ?'DB_COSMOSDB_SUB_STATUS_CODE'. 'db.cosmosdb.sub_status_code' ``` @@ -733,7 +733,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_ELASTICSEARCH_CLUSTER_NAME. + ?'DB_ELASTICSEARCH_CLUSTER_NAME'. 'db.elasticsearch.cluster.name' ``` @@ -766,7 +766,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_ELASTICSEARCH_NODE_NAME. + ?'DB_ELASTICSEARCH_NODE_NAME'. 'db.elasticsearch.node.name' ``` @@ -803,7 +803,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_ELASTICSEARCH_PATH_PARTS. + ?'DB_ELASTICSEARCH_PATH_PARTS'. 'db.elasticsearch.path_parts' ``` @@ -882,7 +882,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_NAMESPACE. + ?'DB_NAMESPACE'. 'db.namespace' ``` @@ -927,7 +927,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_OPERATION_NAME. + ?'DB_OPERATION_NAME'. 'db.operation.name' ``` @@ -965,7 +965,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_QUERY_PARAMETER. + ?'DB_QUERY_PARAMETER'. 'db.query.parameter' ``` @@ -998,7 +998,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_QUERY_TEXT. + ?'DB_QUERY_TEXT'. 'db.query.text' ``` @@ -1168,13 +1168,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?DB_SYSTEM. + ?'DB_SYSTEM'. 'db.system' - ?'DB_SYSTEM_VALUES.other_sql'. + ?'DB_SYSTEM_VALUES_OTHER_SQL'. other_sql - \#{?DB_SYSTEM => ?'DB_SYSTEM_VALUES.other_sql'}. + \#{?DB_SYSTEM => ?'DB_SYSTEM_VALUES_OTHER_SQL'}. \#{'db.system' => other_sql} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex index 7b9b9166..0a032035 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex @@ -36,7 +36,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeploymentAttributes do ### Erlang ```erlang - ?DEPLOYMENT_ENVIRONMENT. + ?'DEPLOYMENT_ENVIRONMENT'. 'deployment.environment' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex index 79f50f43..2d97f41c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DestinationAttributes do ### Erlang ```erlang - ?DESTINATION_ADDRESS. + ?'DESTINATION_ADDRESS'. 'destination.address' ``` @@ -61,7 +61,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DestinationAttributes do ### Erlang ```erlang - ?DESTINATION_PORT. + ?'DESTINATION_PORT'. 'destination.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex index 3e77f70f..b830bee1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?DEVICE_ID. + ?'DEVICE_ID'. 'device.id' ``` @@ -67,7 +67,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?DEVICE_MANUFACTURER. + ?'DEVICE_MANUFACTURER'. 'device.manufacturer' ``` @@ -104,7 +104,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?DEVICE_MODEL_IDENTIFIER. + ?'DEVICE_MODEL_IDENTIFIER'. 'device.model.identifier' ``` @@ -141,7 +141,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?DEVICE_MODEL_NAME. + ?'DEVICE_MODEL_NAME'. 'device.model.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex index a9451acf..b7bfbb8e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex @@ -40,13 +40,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do ### Erlang ```erlang - ?DISK_IO_DIRECTION. + ?'DISK_IO_DIRECTION'. 'disk.io.direction' - ?'DISK_IO_DIRECTION_VALUES.read'. + ?'DISK_IO_DIRECTION_VALUES_READ'. read - \#{?DISK_IO_DIRECTION => ?'DISK_IO_DIRECTION_VALUES.read'}. + \#{?DISK_IO_DIRECTION => ?'DISK_IO_DIRECTION_VALUES_READ'}. \#{'disk.io.direction' => read} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex index 0931ca23..e55e6a3a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DNSAttributes do ### Erlang ```erlang - ?DNS_QUESTION_NAME. + ?'DNS_QUESTION_NAME'. 'dns.question.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex index 519cb767..4f7ba139 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do ### Erlang ```erlang - ?ENDUSER_ID. + ?'ENDUSER_ID'. 'enduser.id' ``` @@ -58,7 +58,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do ### Erlang ```erlang - ?ENDUSER_ROLE. + ?'ENDUSER_ROLE'. 'enduser.role' ``` @@ -91,7 +91,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do ### Erlang ```erlang - ?ENDUSER_SCOPE. + ?'ENDUSER_SCOPE'. 'enduser.scope' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex index 77309279..aa1702d9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EventAttributes do ### Erlang ```erlang - ?EVENT_NAME. + ?'EVENT_NAME'. 'event.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex index ce8a36d6..15bdb34f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex @@ -21,7 +21,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_COLDSTART. + ?'FAAS_COLDSTART'. 'faas.coldstart' ``` @@ -54,7 +54,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_CRON. + ?'FAAS_CRON'. 'faas.cron' ``` @@ -87,7 +87,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_DOCUMENT_COLLECTION. + ?'FAAS_DOCUMENT_COLLECTION'. 'faas.document.collection' ``` @@ -120,7 +120,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_DOCUMENT_NAME. + ?'FAAS_DOCUMENT_NAME'. 'faas.document.name' ``` @@ -164,13 +164,13 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_DOCUMENT_OPERATION. + ?'FAAS_DOCUMENT_OPERATION'. 'faas.document.operation' - ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'. + ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'. insert - \#{?FAAS_DOCUMENT_OPERATION => ?'FAAS_DOCUMENT_OPERATION_VALUES.insert'}. + \#{?FAAS_DOCUMENT_OPERATION => ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'}. \#{'faas.document.operation' => insert} ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_DOCUMENT_TIME. + ?'FAAS_DOCUMENT_TIME'. 'faas.document.time' ``` @@ -249,7 +249,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_INSTANCE. + ?'FAAS_INSTANCE'. 'faas.instance' ``` @@ -282,7 +282,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_INVOCATION_ID. + ?'FAAS_INVOCATION_ID'. 'faas.invocation_id' ``` @@ -319,7 +319,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_INVOKED_NAME. + ?'FAAS_INVOKED_NAME'. 'faas.invoked_name' ``` @@ -373,13 +373,13 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_INVOKED_PROVIDER. + ?'FAAS_INVOKED_PROVIDER'. 'faas.invoked_provider' - ?'FAAS_INVOKED_PROVIDER_VALUES.alibaba_cloud'. + ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'. alibaba_cloud - \#{?FAAS_INVOKED_PROVIDER => ?'FAAS_INVOKED_PROVIDER_VALUES.alibaba_cloud'}. + \#{?FAAS_INVOKED_PROVIDER => ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'}. \#{'faas.invoked_provider' => alibaba_cloud} ``` @@ -427,7 +427,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_INVOKED_REGION. + ?'FAAS_INVOKED_REGION'. 'faas.invoked_region' ``` @@ -464,7 +464,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_MAX_MEMORY. + ?'FAAS_MAX_MEMORY'. 'faas.max_memory' ``` @@ -516,7 +516,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_NAME. + ?'FAAS_NAME'. 'faas.name' ``` @@ -549,7 +549,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_TIME. + ?'FAAS_TIME'. 'faas.time' ``` @@ -599,13 +599,13 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_TRIGGER. + ?'FAAS_TRIGGER'. 'faas.trigger' - ?'FAAS_TRIGGER_VALUES.datasource'. + ?'FAAS_TRIGGER_VALUES_DATASOURCE'. datasource - \#{?FAAS_TRIGGER => ?'FAAS_TRIGGER_VALUES.datasource'}. + \#{?FAAS_TRIGGER => ?'FAAS_TRIGGER_VALUES_DATASOURCE'}. \#{'faas.trigger' => datasource} ``` @@ -660,7 +660,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?FAAS_VERSION. + ?'FAAS_VERSION'. 'faas.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex index b4a89310..6a6572bf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Erlang ```erlang - ?FEATURE_FLAG_KEY. + ?'FEATURE_FLAG_KEY'. 'feature_flag.key' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Erlang ```erlang - ?FEATURE_FLAG_PROVIDER_NAME. + ?'FEATURE_FLAG_PROVIDER_NAME'. 'feature_flag.provider_name' ``` @@ -100,7 +100,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Erlang ```erlang - ?FEATURE_FLAG_VARIANT. + ?'FEATURE_FLAG_VARIANT'. 'feature_flag.variant' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex index 8f960803..8d29f02e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?FILE_DIRECTORY. + ?'FILE_DIRECTORY'. 'file.directory' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?FILE_EXTENSION. + ?'FILE_EXTENSION'. 'file.extension' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?FILE_NAME. + ?'FILE_NAME'. 'file.name' ``` @@ -129,7 +129,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?FILE_PATH. + ?'FILE_PATH'. 'file.path' ``` @@ -157,7 +157,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?FILE_SIZE. + ?'FILE_SIZE'. 'file.size' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex index cc668ee0..c0b4dd57 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?GCP_CLOUD_RUN_JOB_EXECUTION. + ?'GCP_CLOUD_RUN_JOB_EXECUTION'. 'gcp.cloud_run.job.execution' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?GCP_CLOUD_RUN_JOB_TASK_INDEX. + ?'GCP_CLOUD_RUN_JOB_TASK_INDEX'. 'gcp.cloud_run.job.task_index' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?GCP_GCE_INSTANCE_HOSTNAME. + ?'GCP_GCE_INSTANCE_HOSTNAME'. 'gcp.gce.instance.hostname' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?GCP_GCE_INSTANCE_NAME. + ?'GCP_GCE_INSTANCE_NAME'. 'gcp.gce.instance.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex index d9d5c299..7a953ce4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex @@ -28,7 +28,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_COMPLETION. + ?'GEN_AI_COMPLETION'. 'gen_ai.completion' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_PROMPT. + ?'GEN_AI_PROMPT'. 'gen_ai.prompt' ``` @@ -95,7 +95,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_REQUEST_MAX_TOKENS. + ?'GEN_AI_REQUEST_MAX_TOKENS'. 'gen_ai.request.max_tokens' ``` @@ -127,7 +127,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_REQUEST_MODEL. + ?'GEN_AI_REQUEST_MODEL'. 'gen_ai.request.model' ``` @@ -159,7 +159,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_REQUEST_TEMPERATURE. + ?'GEN_AI_REQUEST_TEMPERATURE'. 'gen_ai.request.temperature' ``` @@ -191,7 +191,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_REQUEST_TOP_P. + ?'GEN_AI_REQUEST_TOP_P'. 'gen_ai.request.top_p' ``` @@ -223,7 +223,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_RESPONSE_FINISH_REASONS. + ?'GEN_AI_RESPONSE_FINISH_REASONS'. 'gen_ai.response.finish_reasons' ``` @@ -255,7 +255,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_RESPONSE_ID. + ?'GEN_AI_RESPONSE_ID'. 'gen_ai.response.id' ``` @@ -287,7 +287,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_RESPONSE_MODEL. + ?'GEN_AI_RESPONSE_MODEL'. 'gen_ai.response.model' ``` @@ -336,13 +336,13 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_SYSTEM. + ?'GEN_AI_SYSTEM'. 'gen_ai.system' - ?'GEN_AI_SYSTEM_VALUES.openai'. + ?'GEN_AI_SYSTEM_VALUES_OPENAI'. openai - \#{?GEN_AI_SYSTEM => ?'GEN_AI_SYSTEM_VALUES.openai'}. + \#{?GEN_AI_SYSTEM => ?'GEN_AI_SYSTEM_VALUES_OPENAI'}. \#{'gen_ai.system' => openai} ``` @@ -381,7 +381,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_USAGE_COMPLETION_TOKENS. + ?'GEN_AI_USAGE_COMPLETION_TOKENS'. 'gen_ai.usage.completion_tokens' ``` @@ -413,7 +413,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?GEN_AI_USAGE_PROMPT_TOKENS. + ?'GEN_AI_USAGE_PROMPT_TOKENS'. 'gen_ai.usage.prompt_tokens' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex index b8cfea1d..fe2c65bb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex @@ -28,7 +28,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Erlang ```erlang - ?GRAPHQL_DOCUMENT. + ?'GRAPHQL_DOCUMENT'. 'graphql.document' ``` @@ -60,7 +60,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Erlang ```erlang - ?GRAPHQL_OPERATION_NAME. + ?'GRAPHQL_OPERATION_NAME'. 'graphql.operation.name' ``` @@ -109,13 +109,13 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Erlang ```erlang - ?GRAPHQL_OPERATION_TYPE. + ?'GRAPHQL_OPERATION_TYPE'. 'graphql.operation.type' - ?'GRAPHQL_OPERATION_TYPE_VALUES.query'. + ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'. query - \#{?GRAPHQL_OPERATION_TYPE => ?'GRAPHQL_OPERATION_TYPE_VALUES.query'}. + \#{?GRAPHQL_OPERATION_TYPE => ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'}. \#{'graphql.operation.type' => query} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex index 3f744824..c0f5dd11 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Erlang ```erlang - ?HEROKU_APP_ID. + ?'HEROKU_APP_ID'. 'heroku.app.id' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Erlang ```erlang - ?HEROKU_RELEASE_COMMIT. + ?'HEROKU_RELEASE_COMMIT'. 'heroku.release.commit' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Erlang ```erlang - ?HEROKU_RELEASE_CREATION_TIMESTAMP. + ?'HEROKU_RELEASE_CREATION_TIMESTAMP'. 'heroku.release.creation_timestamp' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex index 9e46a7a3..9993e8fd 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex @@ -49,13 +49,13 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_ARCH. + ?'HOST_ARCH'. 'host.arch' - ?'HOST_ARCH_VALUES.amd64'. + ?'HOST_ARCH_VALUES_AMD_64'. amd64 - \#{?HOST_ARCH => ?'HOST_ARCH_VALUES.amd64'}. + \#{?HOST_ARCH => ?'HOST_ARCH_VALUES_AMD_64'}. \#{'host.arch' => amd64} ``` @@ -102,7 +102,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_CPU_CACHE_L2_SIZE. + ?'HOST_CPU_CACHE_L2_SIZE'. 'host.cpu.cache.l2.size' ``` @@ -135,7 +135,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_CPU_FAMILY. + ?'HOST_CPU_FAMILY'. 'host.cpu.family' ``` @@ -168,7 +168,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_CPU_MODEL_ID. + ?'HOST_CPU_MODEL_ID'. 'host.cpu.model.id' ``` @@ -201,7 +201,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_CPU_MODEL_NAME. + ?'HOST_CPU_MODEL_NAME'. 'host.cpu.model.name' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_CPU_STEPPING. + ?'HOST_CPU_STEPPING'. 'host.cpu.stepping' ``` @@ -271,7 +271,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_CPU_VENDOR_ID. + ?'HOST_CPU_VENDOR_ID'. 'host.cpu.vendor.id' ``` @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_ID. + ?'HOST_ID'. 'host.id' ``` @@ -337,7 +337,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_IMAGE_ID. + ?'HOST_IMAGE_ID'. 'host.image.id' ``` @@ -370,7 +370,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_IMAGE_NAME. + ?'HOST_IMAGE_NAME'. 'host.image.name' ``` @@ -403,7 +403,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_IMAGE_VERSION. + ?'HOST_IMAGE_VERSION'. 'host.image.version' ``` @@ -440,7 +440,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_IP. + ?'HOST_IP'. 'host.ip' ``` @@ -477,7 +477,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_MAC. + ?'HOST_MAC'. 'host.mac' ``` @@ -510,7 +510,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_NAME. + ?'HOST_NAME'. 'host.name' ``` @@ -543,7 +543,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?HOST_TYPE. + ?'HOST_TYPE'. 'host.type' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex index 80b41bfd..b2598321 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex @@ -48,13 +48,13 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?HTTP_CONNECTION_STATE. + ?'HTTP_CONNECTION_STATE'. 'http.connection.state' - ?'HTTP_CONNECTION_STATE_VALUES.active'. + ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'. active - \#{?HTTP_CONNECTION_STATE => ?'HTTP_CONNECTION_STATE_VALUES.active'}. + \#{?HTTP_CONNECTION_STATE => ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'}. \#{'http.connection.state' => active} ``` @@ -150,7 +150,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?HTTP_REQUEST_BODY_SIZE. + ?'HTTP_REQUEST_BODY_SIZE'. 'http.request.body.size' ``` @@ -183,7 +183,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?HTTP_REQUEST_SIZE. + ?'HTTP_REQUEST_SIZE'. 'http.request.size' ``` @@ -232,7 +232,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?HTTP_RESPONSE_BODY_SIZE. + ?'HTTP_RESPONSE_BODY_SIZE'. 'http.response.body.size' ``` @@ -265,7 +265,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?HTTP_RESPONSE_SIZE. + ?'HTTP_RESPONSE_SIZE'. 'http.response.size' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex index e220fd82..d6aebd74 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CLUSTER_NAME. + ?'K8S_CLUSTER_NAME'. 'k8s.cluster.name' ``` @@ -84,7 +84,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CLUSTER_UID. + ?'K8S_CLUSTER_UID'. 'k8s.cluster.uid' ``` @@ -117,7 +117,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CONTAINER_NAME. + ?'K8S_CONTAINER_NAME'. 'k8s.container.name' ``` @@ -145,7 +145,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CONTAINER_RESTART_COUNT. + ?'K8S_CONTAINER_RESTART_COUNT'. 'k8s.container.restart_count' ``` @@ -178,7 +178,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON. + ?'K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON'. 'k8s.container.status.last_terminated_reason' ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CRONJOB_NAME. + ?'K8S_CRONJOB_NAME'. 'k8s.cronjob.name' ``` @@ -245,7 +245,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_CRONJOB_UID. + ?'K8S_CRONJOB_UID'. 'k8s.cronjob.uid' ``` @@ -278,7 +278,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_DAEMONSET_NAME. + ?'K8S_DAEMONSET_NAME'. 'k8s.daemonset.name' ``` @@ -311,7 +311,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_DAEMONSET_UID. + ?'K8S_DAEMONSET_UID'. 'k8s.daemonset.uid' ``` @@ -344,7 +344,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_DEPLOYMENT_NAME. + ?'K8S_DEPLOYMENT_NAME'. 'k8s.deployment.name' ``` @@ -377,7 +377,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_DEPLOYMENT_UID. + ?'K8S_DEPLOYMENT_UID'. 'k8s.deployment.uid' ``` @@ -410,7 +410,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_JOB_NAME. + ?'K8S_JOB_NAME'. 'k8s.job.name' ``` @@ -443,7 +443,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_JOB_UID. + ?'K8S_JOB_UID'. 'k8s.job.uid' ``` @@ -476,7 +476,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_NAMESPACE_NAME. + ?'K8S_NAMESPACE_NAME'. 'k8s.namespace.name' ``` @@ -509,7 +509,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_NODE_NAME. + ?'K8S_NODE_NAME'. 'k8s.node.name' ``` @@ -542,7 +542,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_NODE_UID. + ?'K8S_NODE_UID'. 'k8s.node.uid' ``` @@ -575,7 +575,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_POD_ANNOTATION. + ?'K8S_POD_ANNOTATION'. 'k8s.pod.annotation' ``` @@ -608,7 +608,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_POD_LABEL. + ?'K8S_POD_LABEL'. 'k8s.pod.label' ``` @@ -649,7 +649,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_POD_NAME. + ?'K8S_POD_NAME'. 'k8s.pod.name' ``` @@ -682,7 +682,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_POD_UID. + ?'K8S_POD_UID'. 'k8s.pod.uid' ``` @@ -715,7 +715,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_REPLICASET_NAME. + ?'K8S_REPLICASET_NAME'. 'k8s.replicaset.name' ``` @@ -748,7 +748,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_REPLICASET_UID. + ?'K8S_REPLICASET_UID'. 'k8s.replicaset.uid' ``` @@ -781,7 +781,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_STATEFULSET_NAME. + ?'K8S_STATEFULSET_NAME'. 'k8s.statefulset.name' ``` @@ -814,7 +814,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?K8S_STATEFULSET_UID. + ?'K8S_STATEFULSET_UID'. 'k8s.statefulset.uid' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex index e00546a9..83157ba8 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?LOG_FILE_NAME. + ?'LOG_FILE_NAME'. 'log.file.name' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?LOG_FILE_NAME_RESOLVED. + ?'LOG_FILE_NAME_RESOLVED'. 'log.file.name_resolved' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?LOG_FILE_PATH. + ?'LOG_FILE_PATH'. 'log.file.path' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?LOG_FILE_PATH_RESOLVED. + ?'LOG_FILE_PATH_RESOLVED'. 'log.file.path_resolved' ``` @@ -169,13 +169,13 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?LOG_IOSTREAM. + ?'LOG_IOSTREAM'. 'log.iostream' - ?'LOG_IOSTREAM_VALUES.stdout'. + ?'LOG_IOSTREAM_VALUES_STDOUT'. stdout - \#{?LOG_IOSTREAM => ?'LOG_IOSTREAM_VALUES.stdout'}. + \#{?LOG_IOSTREAM => ?'LOG_IOSTREAM_VALUES_STDOUT'}. \#{'log.iostream' => stdout} ``` @@ -221,7 +221,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?LOG_RECORD_UID. + ?'LOG_RECORD_UID'. 'log.record.uid' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex index a3403fd7..745946c9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_BATCH_MESSAGE_COUNT. + ?'MESSAGING_BATCH_MESSAGE_COUNT'. 'messaging.batch.message_count' ``` @@ -62,7 +62,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_CLIENT_ID. + ?'MESSAGING_CLIENT_ID'. 'messaging.client.id' ``` @@ -89,7 +89,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_ANONYMOUS. + ?'MESSAGING_DESTINATION_ANONYMOUS'. 'messaging.destination.anonymous' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_NAME. + ?'MESSAGING_DESTINATION_NAME'. 'messaging.destination.name' ``` @@ -159,7 +159,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_PARTITION_ID. + ?'MESSAGING_DESTINATION_PARTITION_ID'. 'messaging.destination.partition.id' ``` @@ -195,7 +195,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_TEMPLATE. + ?'MESSAGING_DESTINATION_TEMPLATE'. 'messaging.destination.template' ``` @@ -222,7 +222,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_TEMPORARY. + ?'MESSAGING_DESTINATION_TEMPORARY'. 'messaging.destination.temporary' ``` @@ -249,7 +249,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_PUBLISH_ANONYMOUS. + ?'MESSAGING_DESTINATION_PUBLISH_ANONYMOUS'. 'messaging.destination_publish.anonymous' ``` @@ -286,7 +286,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_DESTINATION_PUBLISH_NAME. + ?'MESSAGING_DESTINATION_PUBLISH_NAME'. 'messaging.destination_publish.name' ``` @@ -319,7 +319,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_EVENTHUBS_CONSUMER_GROUP. + ?'MESSAGING_EVENTHUBS_CONSUMER_GROUP'. 'messaging.eventhubs.consumer.group' ``` @@ -352,7 +352,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME. + ?'MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME'. 'messaging.eventhubs.message.enqueued_time' ``` @@ -385,7 +385,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE. + ?'MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE'. 'messaging.gcp_pubsub.message.ack_deadline' ``` @@ -418,7 +418,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID. + ?'MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID'. 'messaging.gcp_pubsub.message.ack_id' ``` @@ -451,7 +451,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT. + ?'MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT'. 'messaging.gcp_pubsub.message.delivery_attempt' ``` @@ -485,7 +485,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY. + ?'MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY'. 'messaging.gcp_pubsub.message.ordering_key' ``` @@ -518,7 +518,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_KAFKA_CONSUMER_GROUP. + ?'MESSAGING_KAFKA_CONSUMER_GROUP'. 'messaging.kafka.consumer.group' ``` @@ -563,7 +563,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_KAFKA_MESSAGE_KEY. + ?'MESSAGING_KAFKA_MESSAGE_KEY'. 'messaging.kafka.message.key' ``` @@ -596,7 +596,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_KAFKA_MESSAGE_OFFSET. + ?'MESSAGING_KAFKA_MESSAGE_OFFSET'. 'messaging.kafka.message.offset' ``` @@ -623,7 +623,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_KAFKA_MESSAGE_TOMBSTONE. + ?'MESSAGING_KAFKA_MESSAGE_TOMBSTONE'. 'messaging.kafka.message.tombstone' ``` @@ -661,7 +661,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_MESSAGE_BODY_SIZE. + ?'MESSAGING_MESSAGE_BODY_SIZE'. 'messaging.message.body.size' ``` @@ -694,7 +694,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_MESSAGE_CONVERSATION_ID. + ?'MESSAGING_MESSAGE_CONVERSATION_ID'. 'messaging.message.conversation_id' ``` @@ -732,7 +732,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_MESSAGE_ENVELOPE_SIZE. + ?'MESSAGING_MESSAGE_ENVELOPE_SIZE'. 'messaging.message.envelope.size' ``` @@ -764,7 +764,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_MESSAGE_ID. + ?'MESSAGING_MESSAGE_ID'. 'messaging.message.id' ``` @@ -805,7 +805,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_OPERATION_NAME. + ?'MESSAGING_OPERATION_NAME'. 'messaging.operation.name' ``` @@ -863,13 +863,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_OPERATION_TYPE. + ?'MESSAGING_OPERATION_TYPE'. 'messaging.operation.type' - ?'MESSAGING_OPERATION_TYPE_VALUES.publish'. + ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'. publish - \#{?MESSAGING_OPERATION_TYPE => ?'MESSAGING_OPERATION_TYPE_VALUES.publish'}. + \#{?MESSAGING_OPERATION_TYPE => ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'}. \#{'messaging.operation.type' => publish} ``` @@ -913,7 +913,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY. + ?'MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY'. 'messaging.rabbitmq.destination.routing_key' ``` @@ -947,7 +947,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG. + ?'MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG'. 'messaging.rabbitmq.message.delivery_tag' ``` @@ -980,7 +980,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_CLIENT_GROUP. + ?'MESSAGING_ROCKETMQ_CLIENT_GROUP'. 'messaging.rocketmq.client_group' ``` @@ -1024,13 +1024,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL. + ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL'. 'messaging.rocketmq.consumption_model' - ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.clustering'. + ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'. clustering - \#{?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES.clustering'}. + \#{?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'}. \#{'messaging.rocketmq.consumption_model' => clustering} ``` @@ -1072,7 +1072,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL. + ?'MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL'. 'messaging.rocketmq.message.delay_time_level' ``` @@ -1106,7 +1106,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP. + ?'MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP'. 'messaging.rocketmq.message.delivery_timestamp' ``` @@ -1140,7 +1140,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_GROUP. + ?'MESSAGING_ROCKETMQ_MESSAGE_GROUP'. 'messaging.rocketmq.message.group' ``` @@ -1173,7 +1173,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_KEYS. + ?'MESSAGING_ROCKETMQ_MESSAGE_KEYS'. 'messaging.rocketmq.message.keys' ``` @@ -1206,7 +1206,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_TAG. + ?'MESSAGING_ROCKETMQ_MESSAGE_TAG'. 'messaging.rocketmq.message.tag' ``` @@ -1254,13 +1254,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_MESSAGE_TYPE. + ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE'. 'messaging.rocketmq.message.type' - ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'. + ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'. normal - \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES.normal'}. + \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'}. \#{'messaging.rocketmq.message.type' => normal} ``` @@ -1303,7 +1303,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_ROCKETMQ_NAMESPACE. + ?'MESSAGING_ROCKETMQ_NAMESPACE'. 'messaging.rocketmq.namespace' ``` @@ -1336,7 +1336,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME. + ?'MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME'. 'messaging.servicebus.destination.subscription_name' ``` @@ -1385,13 +1385,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_DISPOSITION_STATUS. + ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS'. 'messaging.servicebus.disposition_status' - ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.complete'. + ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'. complete - \#{?MESSAGING_SERVICEBUS_DISPOSITION_STATUS => ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES.complete'}. + \#{?MESSAGING_SERVICEBUS_DISPOSITION_STATUS => ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'}. \#{'messaging.servicebus.disposition_status' => complete} ``` @@ -1435,7 +1435,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT. + ?'MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT'. 'messaging.servicebus.message.delivery_count' ``` @@ -1469,7 +1469,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME. + ?'MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME'. 'messaging.servicebus.message.enqueued_time' ``` @@ -1532,13 +1532,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?MESSAGING_SYSTEM. + ?'MESSAGING_SYSTEM'. 'messaging.system' - ?'MESSAGING_SYSTEM_VALUES.activemq'. + ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'. activemq - \#{?MESSAGING_SYSTEM => ?'MESSAGING_SYSTEM_VALUES.activemq'}. + \#{?MESSAGING_SYSTEM => ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'}. \#{'messaging.system' => activemq} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex index afb594d1..28cbe596 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex @@ -22,7 +22,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?CONTAINER_CPU_TIME. + ?'CONTAINER_CPU_TIME'. 'container.cpu.time' ``` @@ -53,7 +53,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?CONTAINER_DISK_IO. + ?'CONTAINER_DISK_IO'. 'container.disk.io' ``` @@ -84,7 +84,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?CONTAINER_MEMORY_USAGE. + ?'CONTAINER_MEMORY_USAGE'. 'container.memory.usage' ``` @@ -115,7 +115,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?CONTAINER_NETWORK_IO. + ?'CONTAINER_NETWORK_IO'. 'container.network.io' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex index c0a2e122..7de28dce 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_COUNT. + ?'DB_CLIENT_CONNECTION_COUNT'. 'db.client.connection.count' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_CREATE_TIME. + ?'DB_CLIENT_CONNECTION_CREATE_TIME'. 'db.client.connection.create_time' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_IDLE_MAX. + ?'DB_CLIENT_CONNECTION_IDLE_MAX'. 'db.client.connection.idle.max' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_IDLE_MIN. + ?'DB_CLIENT_CONNECTION_IDLE_MIN'. 'db.client.connection.idle.min' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_MAX. + ?'DB_CLIENT_CONNECTION_MAX'. 'db.client.connection.max' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_PENDING_REQUESTS. + ?'DB_CLIENT_CONNECTION_PENDING_REQUESTS'. 'db.client.connection.pending_requests' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_TIMEOUTS. + ?'DB_CLIENT_CONNECTION_TIMEOUTS'. 'db.client.connection.timeouts' ``` @@ -207,7 +207,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_USE_TIME. + ?'DB_CLIENT_CONNECTION_USE_TIME'. 'db.client.connection.use_time' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_CONNECTION_WAIT_TIME. + ?'DB_CLIENT_CONNECTION_WAIT_TIME'. 'db.client.connection.wait_time' ``` @@ -342,7 +342,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?DB_CLIENT_OPERATION_DURATION. + ?'DB_CLIENT_OPERATION_DURATION'. 'db.client.operation.duration' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex index 030d7e3c..87730079 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DNSMetrics do ### Erlang ```erlang - ?DNS_LOOKUP_DURATION. + ?'DNS_LOOKUP_DURATION'. 'dns.lookup.duration' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex index 950c5f9c..c3aa4c37 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_COLDSTARTS. + ?'FAAS_COLDSTARTS'. 'faas.coldstarts' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_CPU_USAGE. + ?'FAAS_CPU_USAGE'. 'faas.cpu_usage' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_ERRORS. + ?'FAAS_ERRORS'. 'faas.errors' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_INIT_DURATION. + ?'FAAS_INIT_DURATION'. 'faas.init_duration' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_INVOCATIONS. + ?'FAAS_INVOCATIONS'. 'faas.invocations' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_INVOKE_DURATION. + ?'FAAS_INVOKE_DURATION'. 'faas.invoke_duration' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_MEM_USAGE. + ?'FAAS_MEM_USAGE'. 'faas.mem_usage' ``` @@ -207,7 +207,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_NET_IO. + ?'FAAS_NET_IO'. 'faas.net_io' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?FAAS_TIMEOUTS. + ?'FAAS_TIMEOUTS'. 'faas.timeouts' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex index 525b8079..83a82efb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_CLIENT_ACTIVE_REQUESTS. + ?'HTTP_CLIENT_ACTIVE_REQUESTS'. 'http.client.active_requests' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_CLIENT_CONNECTION_DURATION. + ?'HTTP_CLIENT_CONNECTION_DURATION'. 'http.client.connection.duration' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_CLIENT_OPEN_CONNECTIONS. + ?'HTTP_CLIENT_OPEN_CONNECTIONS'. 'http.client.open_connections' ``` @@ -103,7 +103,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_CLIENT_REQUEST_BODY_SIZE. + ?'HTTP_CLIENT_REQUEST_BODY_SIZE'. 'http.client.request.body.size' ``` @@ -134,7 +134,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_CLIENT_RESPONSE_BODY_SIZE. + ?'HTTP_CLIENT_RESPONSE_BODY_SIZE'. 'http.client.response.body.size' ``` @@ -161,7 +161,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_SERVER_ACTIVE_REQUESTS. + ?'HTTP_SERVER_ACTIVE_REQUESTS'. 'http.server.active_requests' ``` @@ -192,7 +192,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_SERVER_REQUEST_BODY_SIZE. + ?'HTTP_SERVER_REQUEST_BODY_SIZE'. 'http.server.request.body.size' ``` @@ -223,7 +223,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_SERVER_RESPONSE_BODY_SIZE. + ?'HTTP_SERVER_RESPONSE_BODY_SIZE'. 'http.server.response.body.size' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex index f1380483..2764f59c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?MESSAGING_PROCESS_DURATION. + ?'MESSAGING_PROCESS_DURATION'. 'messaging.process.duration' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?MESSAGING_PROCESS_MESSAGES. + ?'MESSAGING_PROCESS_MESSAGES'. 'messaging.process.messages' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?MESSAGING_PUBLISH_DURATION. + ?'MESSAGING_PUBLISH_DURATION'. 'messaging.publish.duration' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?MESSAGING_PUBLISH_MESSAGES. + ?'MESSAGING_PUBLISH_MESSAGES'. 'messaging.publish.messages' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?MESSAGING_RECEIVE_DURATION. + ?'MESSAGING_RECEIVE_DURATION'. 'messaging.receive.duration' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?MESSAGING_RECEIVE_MESSAGES. + ?'MESSAGING_RECEIVE_MESSAGES'. 'messaging.receive.messages' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex index 07b3f74d..56e67a7f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_CONTEXT_SWITCHES. + ?'PROCESS_CONTEXT_SWITCHES'. 'process.context_switches' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_CPU_TIME. + ?'PROCESS_CPU_TIME'. 'process.cpu.time' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_CPU_UTILIZATION. + ?'PROCESS_CPU_UTILIZATION'. 'process.cpu.utilization' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_DISK_IO. + ?'PROCESS_DISK_IO'. 'process.disk.io' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_MEMORY_USAGE. + ?'PROCESS_MEMORY_USAGE'. 'process.memory.usage' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_MEMORY_VIRTUAL. + ?'PROCESS_MEMORY_VIRTUAL'. 'process.memory.virtual' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_NETWORK_IO. + ?'PROCESS_NETWORK_IO'. 'process.network.io' ``` @@ -207,7 +207,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_OPEN_FILE_DESCRIPTOR_COUNT. + ?'PROCESS_OPEN_FILE_DESCRIPTOR_COUNT'. 'process.open_file_descriptor.count' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_PAGING_FAULTS. + ?'PROCESS_PAGING_FAULTS'. 'process.paging.faults' ``` @@ -261,7 +261,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?PROCESS_THREAD_COUNT. + ?'PROCESS_THREAD_COUNT'. 'process.thread.count' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex index 5b7396f1..d6f25be5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_CLIENT_DURATION. + ?'RPC_CLIENT_DURATION'. 'rpc.client.duration' ``` @@ -56,7 +56,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_CLIENT_REQUEST_SIZE. + ?'RPC_CLIENT_REQUEST_SIZE'. 'rpc.client.request.size' ``` @@ -89,7 +89,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_CLIENT_REQUESTS_PER_RPC. + ?'RPC_CLIENT_REQUESTS_PER_RPC'. 'rpc.client.requests_per_rpc' ``` @@ -120,7 +120,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_CLIENT_RESPONSE_SIZE. + ?'RPC_CLIENT_RESPONSE_SIZE'. 'rpc.client.response.size' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_CLIENT_RESPONSES_PER_RPC. + ?'RPC_CLIENT_RESPONSES_PER_RPC'. 'rpc.client.responses_per_rpc' ``` @@ -187,7 +187,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_SERVER_DURATION. + ?'RPC_SERVER_DURATION'. 'rpc.server.duration' ``` @@ -218,7 +218,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_SERVER_REQUEST_SIZE. + ?'RPC_SERVER_REQUEST_SIZE'. 'rpc.server.request.size' ``` @@ -251,7 +251,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_SERVER_REQUESTS_PER_RPC. + ?'RPC_SERVER_REQUESTS_PER_RPC'. 'rpc.server.requests_per_rpc' ``` @@ -282,7 +282,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_SERVER_RESPONSE_SIZE. + ?'RPC_SERVER_RESPONSE_SIZE'. 'rpc.server.response.size' ``` @@ -315,7 +315,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?RPC_SERVER_RESPONSES_PER_RPC. + ?'RPC_SERVER_RESPONSES_PER_RPC'. 'rpc.server.responses_per_rpc' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex index bc379bf4..51bda442 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_CPU_FREQUENCY. + ?'SYSTEM_CPU_FREQUENCY'. 'system.cpu.frequency' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_CPU_LOGICAL_COUNT. + ?'SYSTEM_CPU_LOGICAL_COUNT'. 'system.cpu.logical.count' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_CPU_PHYSICAL_COUNT. + ?'SYSTEM_CPU_PHYSICAL_COUNT'. 'system.cpu.physical.count' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_CPU_TIME. + ?'SYSTEM_CPU_TIME'. 'system.cpu.time' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_CPU_UTILIZATION. + ?'SYSTEM_CPU_UTILIZATION'. 'system.cpu.utilization' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_DISK_IO. + ?'SYSTEM_DISK_IO'. 'system.disk.io' ``` @@ -189,7 +189,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_DISK_IO_TIME. + ?'SYSTEM_DISK_IO_TIME'. 'system.disk.io_time' ``` @@ -216,7 +216,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_DISK_MERGED. + ?'SYSTEM_DISK_MERGED'. 'system.disk.merged' ``` @@ -250,7 +250,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_DISK_OPERATION_TIME. + ?'SYSTEM_DISK_OPERATION_TIME'. 'system.disk.operation_time' ``` @@ -277,7 +277,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_DISK_OPERATIONS. + ?'SYSTEM_DISK_OPERATIONS'. 'system.disk.operations' ``` @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_FILESYSTEM_USAGE. + ?'SYSTEM_FILESYSTEM_USAGE'. 'system.filesystem.usage' ``` @@ -331,7 +331,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_FILESYSTEM_UTILIZATION. + ?'SYSTEM_FILESYSTEM_UTILIZATION'. 'system.filesystem.utilization' ``` @@ -366,7 +366,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_LINUX_MEMORY_AVAILABLE. + ?'SYSTEM_LINUX_MEMORY_AVAILABLE'. 'system.linux.memory.available' ``` @@ -397,7 +397,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_MEMORY_LIMIT. + ?'SYSTEM_MEMORY_LIMIT'. 'system.memory.limit' ``` @@ -429,7 +429,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_MEMORY_SHARED. + ?'SYSTEM_MEMORY_SHARED'. 'system.memory.shared' ``` @@ -461,7 +461,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_MEMORY_USAGE. + ?'SYSTEM_MEMORY_USAGE'. 'system.memory.usage' ``` @@ -488,7 +488,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_MEMORY_UTILIZATION. + ?'SYSTEM_MEMORY_UTILIZATION'. 'system.memory.utilization' ``` @@ -515,7 +515,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_NETWORK_CONNECTIONS. + ?'SYSTEM_NETWORK_CONNECTIONS'. 'system.network.connections' ``` @@ -550,7 +550,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_NETWORK_DROPPED. + ?'SYSTEM_NETWORK_DROPPED'. 'system.network.dropped' ``` @@ -585,7 +585,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_NETWORK_ERRORS. + ?'SYSTEM_NETWORK_ERRORS'. 'system.network.errors' ``` @@ -612,7 +612,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_NETWORK_IO. + ?'SYSTEM_NETWORK_IO'. 'system.network.io' ``` @@ -639,7 +639,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_NETWORK_PACKETS. + ?'SYSTEM_NETWORK_PACKETS'. 'system.network.packets' ``` @@ -666,7 +666,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_PAGING_FAULTS. + ?'SYSTEM_PAGING_FAULTS'. 'system.paging.faults' ``` @@ -693,7 +693,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_PAGING_OPERATIONS. + ?'SYSTEM_PAGING_OPERATIONS'. 'system.paging.operations' ``` @@ -720,7 +720,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_PAGING_USAGE. + ?'SYSTEM_PAGING_USAGE'. 'system.paging.usage' ``` @@ -747,7 +747,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_PAGING_UTILIZATION. + ?'SYSTEM_PAGING_UTILIZATION'. 'system.paging.utilization' ``` @@ -774,7 +774,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_PROCESS_COUNT. + ?'SYSTEM_PROCESS_COUNT'. 'system.process.count' ``` @@ -801,7 +801,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?SYSTEM_PROCESS_CREATED. + ?'SYSTEM_PROCESS_CREATED'. 'system.process.created' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex index bbf95825..87a37913 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex @@ -195,7 +195,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_CARRIER_ICC. + ?'NETWORK_CARRIER_ICC'. 'network.carrier.icc' ``` @@ -227,7 +227,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_CARRIER_MCC. + ?'NETWORK_CARRIER_MCC'. 'network.carrier.mcc' ``` @@ -259,7 +259,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_CARRIER_MNC. + ?'NETWORK_CARRIER_MNC'. 'network.carrier.mnc' ``` @@ -291,7 +291,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_CARRIER_NAME. + ?'NETWORK_CARRIER_NAME'. 'network.carrier.name' ``` @@ -376,13 +376,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_CONNECTION_SUBTYPE. + ?'NETWORK_CONNECTION_SUBTYPE'. 'network.connection.subtype' - ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'. + ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'. gprs - \#{?NETWORK_CONNECTION_SUBTYPE => ?'NETWORK_CONNECTION_SUBTYPE_VALUES.gprs'}. + \#{?NETWORK_CONNECTION_SUBTYPE => ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'}. \#{'network.connection.subtype' => gprs} ``` @@ -462,13 +462,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_CONNECTION_TYPE. + ?'NETWORK_CONNECTION_TYPE'. 'network.connection.type' - ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'. + ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'. wifi - \#{?NETWORK_CONNECTION_TYPE => ?'NETWORK_CONNECTION_TYPE_VALUES.wifi'}. + \#{?NETWORK_CONNECTION_TYPE => ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'}. \#{'network.connection.type' => wifi} ``` @@ -526,13 +526,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_IO_DIRECTION. + ?'NETWORK_IO_DIRECTION'. 'network.io.direction' - ?'NETWORK_IO_DIRECTION_VALUES.transmit'. + ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'. transmit - \#{?NETWORK_IO_DIRECTION => ?'NETWORK_IO_DIRECTION_VALUES.transmit'}. + \#{?NETWORK_IO_DIRECTION => ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'}. \#{'network.io.direction' => transmit} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex index 7bed10ea..a758bfcf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex @@ -31,7 +31,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OCIAttributes do ### Erlang ```erlang - ?OCI_MANIFEST_DIGEST. + ?'OCI_MANIFEST_DIGEST'. 'oci.manifest.digest' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex index 67ba9634..c3e55d2b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex @@ -39,13 +39,13 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ### Erlang ```erlang - ?OPENTRACING_REF_TYPE. + ?'OPENTRACING_REF_TYPE'. 'opentracing.ref_type' - ?'OPENTRACING_REF_TYPE_VALUES.child_of'. + ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'. child_of - \#{?OPENTRACING_REF_TYPE => ?'OPENTRACING_REF_TYPE_VALUES.child_of'}. + \#{?OPENTRACING_REF_TYPE => ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'}. \#{'opentracing.ref_type' => child_of} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex index 3ae18ec9..24a2907e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?OS_BUILD_ID. + ?'OS_BUILD_ID'. 'os.build_id' ``` @@ -58,7 +58,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?OS_DESCRIPTION. + ?'OS_DESCRIPTION'. 'os.description' ``` @@ -90,7 +90,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?OS_NAME. + ?'OS_NAME'. 'os.name' ``` @@ -152,13 +152,13 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?OS_TYPE. + ?'OS_TYPE'. 'os.type' - ?'OS_TYPE_VALUES.windows'. + ?'OS_TYPE_VALUES_WINDOWS'. windows - \#{?OS_TYPE => ?'OS_TYPE_VALUES.windows'}. + \#{?OS_TYPE => ?'OS_TYPE_VALUES_WINDOWS'}. \#{'os.type' => windows} ``` @@ -208,7 +208,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?OS_VERSION. + ?'OS_VERSION'. 'os.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex index 1ea717e0..3a8d21ef 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.PeerAttributes do ### Erlang ```erlang - ?PEER_SERVICE. + ?'PEER_SERVICE'. 'peer.service' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex index ac9f91a1..3d35a212 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_COMMAND. + ?'PROCESS_COMMAND'. 'process.command' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_COMMAND_ARGS. + ?'PROCESS_COMMAND_ARGS'. 'process.command_args' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_COMMAND_LINE. + ?'PROCESS_COMMAND_LINE'. 'process.command_line' ``` @@ -134,13 +134,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_CONTEXT_SWITCH_TYPE. + ?'PROCESS_CONTEXT_SWITCH_TYPE'. 'process.context_switch_type' - ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES.voluntary'. + ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'. voluntary - \#{?PROCESS_CONTEXT_SWITCH_TYPE => ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES.voluntary'}. + \#{?PROCESS_CONTEXT_SWITCH_TYPE => ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'}. \#{'process.context_switch_type' => voluntary} ``` @@ -194,13 +194,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_CPU_STATE. + ?'PROCESS_CPU_STATE'. 'process.cpu.state' - ?'PROCESS_CPU_STATE_VALUES.system'. + ?'PROCESS_CPU_STATE_VALUES_SYSTEM'. system - \#{?PROCESS_CPU_STATE => ?'PROCESS_CPU_STATE_VALUES.system'}. + \#{?PROCESS_CPU_STATE => ?'PROCESS_CPU_STATE_VALUES_SYSTEM'}. \#{'process.cpu.state' => system} ``` @@ -242,7 +242,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_CREATION_TIME. + ?'PROCESS_CREATION_TIME'. 'process.creation.time' ``` @@ -275,7 +275,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_EXECUTABLE_NAME. + ?'PROCESS_EXECUTABLE_NAME'. 'process.executable.name' ``` @@ -308,7 +308,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_EXECUTABLE_PATH. + ?'PROCESS_EXECUTABLE_PATH'. 'process.executable.path' ``` @@ -341,7 +341,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_EXIT_CODE. + ?'PROCESS_EXIT_CODE'. 'process.exit.code' ``` @@ -374,7 +374,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_EXIT_TIME. + ?'PROCESS_EXIT_TIME'. 'process.exit.time' ``` @@ -407,7 +407,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_GROUP_LEADER_PID. + ?'PROCESS_GROUP_LEADER_PID'. 'process.group_leader.pid' ``` @@ -435,7 +435,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_INTERACTIVE. + ?'PROCESS_INTERACTIVE'. 'process.interactive' ``` @@ -468,7 +468,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_OWNER. + ?'PROCESS_OWNER'. 'process.owner' ``` @@ -512,13 +512,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_PAGING_FAULT_TYPE. + ?'PROCESS_PAGING_FAULT_TYPE'. 'process.paging.fault_type' - ?'PROCESS_PAGING_FAULT_TYPE_VALUES.major'. + ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'. major - \#{?PROCESS_PAGING_FAULT_TYPE => ?'PROCESS_PAGING_FAULT_TYPE_VALUES.major'}. + \#{?PROCESS_PAGING_FAULT_TYPE => ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'}. \#{'process.paging.fault_type' => major} ``` @@ -559,7 +559,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_PARENT_PID. + ?'PROCESS_PARENT_PID'. 'process.parent_pid' ``` @@ -592,7 +592,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_PID. + ?'PROCESS_PID'. 'process.pid' ``` @@ -625,7 +625,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_REAL_USER_ID. + ?'PROCESS_REAL_USER_ID'. 'process.real_user.id' ``` @@ -658,7 +658,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_REAL_USER_NAME. + ?'PROCESS_REAL_USER_NAME'. 'process.real_user.name' ``` @@ -691,7 +691,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_RUNTIME_DESCRIPTION. + ?'PROCESS_RUNTIME_DESCRIPTION'. 'process.runtime.description' ``` @@ -724,7 +724,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_RUNTIME_NAME. + ?'PROCESS_RUNTIME_NAME'. 'process.runtime.name' ``` @@ -757,7 +757,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_RUNTIME_VERSION. + ?'PROCESS_RUNTIME_VERSION'. 'process.runtime.version' ``` @@ -790,7 +790,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_SAVED_USER_ID. + ?'PROCESS_SAVED_USER_ID'. 'process.saved_user.id' ``` @@ -823,7 +823,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_SAVED_USER_NAME. + ?'PROCESS_SAVED_USER_NAME'. 'process.saved_user.name' ``` @@ -856,7 +856,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_SESSION_LEADER_PID. + ?'PROCESS_SESSION_LEADER_PID'. 'process.session_leader.pid' ``` @@ -889,7 +889,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_USER_ID. + ?'PROCESS_USER_ID'. 'process.user.id' ``` @@ -922,7 +922,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_USER_NAME. + ?'PROCESS_USER_NAME'. 'process.user.name' ``` @@ -959,7 +959,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?PROCESS_VPID. + ?'PROCESS_VPID'. 'process.vpid' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex index 902c112b..8164c29b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex @@ -114,13 +114,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_CONNECT_RPC_ERROR_CODE. + ?'RPC_CONNECT_RPC_ERROR_CODE'. 'rpc.connect_rpc.error_code' - ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES.cancelled'. + ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'. cancelled - \#{?RPC_CONNECT_RPC_ERROR_CODE => ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES.cancelled'}. + \#{?RPC_CONNECT_RPC_ERROR_CODE => ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'}. \#{'rpc.connect_rpc.error_code' => cancelled} ``` @@ -179,7 +179,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_CONNECT_RPC_REQUEST_METADATA. + ?'RPC_CONNECT_RPC_REQUEST_METADATA'. 'rpc.connect_rpc.request.metadata' ``` @@ -216,7 +216,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_CONNECT_RPC_RESPONSE_METADATA. + ?'RPC_CONNECT_RPC_RESPONSE_METADATA'. 'rpc.connect_rpc.response.metadata' ``` @@ -253,7 +253,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_GRPC_REQUEST_METADATA. + ?'RPC_GRPC_REQUEST_METADATA'. 'rpc.grpc.request.metadata' ``` @@ -290,7 +290,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_GRPC_RESPONSE_METADATA. + ?'RPC_GRPC_RESPONSE_METADATA'. 'rpc.grpc.response.metadata' ``` @@ -362,13 +362,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_GRPC_STATUS_CODE. + ?'RPC_GRPC_STATUS_CODE'. 'rpc.grpc.status_code' - ?'RPC_GRPC_STATUS_CODE_VALUES.ok'. + ?'RPC_GRPC_STATUS_CODE_VALUES_OK'. 0 - \#{?RPC_GRPC_STATUS_CODE => ?'RPC_GRPC_STATUS_CODE_VALUES.ok'}. + \#{?RPC_GRPC_STATUS_CODE => ?'RPC_GRPC_STATUS_CODE_VALUES_OK'}. \#{'rpc.grpc.status_code' => 0} ``` @@ -423,7 +423,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_JSONRPC_ERROR_CODE. + ?'RPC_JSONRPC_ERROR_CODE'. 'rpc.jsonrpc.error_code' ``` @@ -455,7 +455,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_JSONRPC_ERROR_MESSAGE. + ?'RPC_JSONRPC_ERROR_MESSAGE'. 'rpc.jsonrpc.error_message' ``` @@ -488,7 +488,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_JSONRPC_REQUEST_ID. + ?'RPC_JSONRPC_REQUEST_ID'. 'rpc.jsonrpc.request_id' ``` @@ -520,7 +520,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_JSONRPC_VERSION. + ?'RPC_JSONRPC_VERSION'. 'rpc.jsonrpc.version' ``` @@ -547,7 +547,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_MESSAGE_COMPRESSED_SIZE. + ?'RPC_MESSAGE_COMPRESSED_SIZE'. 'rpc.message.compressed_size' ``` @@ -577,7 +577,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_MESSAGE_ID. + ?'RPC_MESSAGE_ID'. 'rpc.message.id' ``` @@ -619,13 +619,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_MESSAGE_TYPE. + ?'RPC_MESSAGE_TYPE'. 'rpc.message.type' - ?'RPC_MESSAGE_TYPE_VALUES.sent'. + ?'RPC_MESSAGE_TYPE_VALUES_SENT'. SENT - \#{?RPC_MESSAGE_TYPE => ?'RPC_MESSAGE_TYPE_VALUES.sent'}. + \#{?RPC_MESSAGE_TYPE => ?'RPC_MESSAGE_TYPE_VALUES_SENT'}. \#{'rpc.message.type' => SENT} ``` @@ -660,7 +660,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_MESSAGE_UNCOMPRESSED_SIZE. + ?'RPC_MESSAGE_UNCOMPRESSED_SIZE'. 'rpc.message.uncompressed_size' ``` @@ -696,7 +696,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_METHOD. + ?'RPC_METHOD'. 'rpc.method' ``` @@ -732,7 +732,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_SERVICE. + ?'RPC_SERVICE'. 'rpc.service' ``` @@ -780,13 +780,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?RPC_SYSTEM. + ?'RPC_SYSTEM'. 'rpc.system' - ?'RPC_SYSTEM_VALUES.grpc'. + ?'RPC_SYSTEM_VALUES_GRPC'. grpc - \#{?RPC_SYSTEM => ?'RPC_SYSTEM_VALUES.grpc'}. + \#{?RPC_SYSTEM => ?'RPC_SYSTEM_VALUES_GRPC'}. \#{'rpc.system' => grpc} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex index 2c2e2001..7f62d368 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex @@ -55,7 +55,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ServiceAttributes do ### Erlang ```erlang - ?SERVICE_INSTANCE_ID. + ?'SERVICE_INSTANCE_ID'. 'service.instance.id' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ServiceAttributes do ### Erlang ```erlang - ?SERVICE_NAMESPACE. + ?'SERVICE_NAMESPACE'. 'service.namespace' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex index 4611443f..c79b7133 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SessionAttributes do ### Erlang ```erlang - ?SESSION_ID. + ?'SESSION_ID'. 'session.id' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SessionAttributes do ### Erlang ```erlang - ?SESSION_PREVIOUS_ID. + ?'SESSION_PREVIOUS_ID'. 'session.previous_id' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex index a8cb54b3..34fc26d3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SourceAttributes do ### Erlang ```erlang - ?SOURCE_ADDRESS. + ?'SOURCE_ADDRESS'. 'source.address' ``` @@ -61,7 +61,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SourceAttributes do ### Erlang ```erlang - ?SOURCE_PORT. + ?'SOURCE_PORT'. 'source.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex index 05688d7b..59255804 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_CPU_LOGICAL_NUMBER. + ?'SYSTEM_CPU_LOGICAL_NUMBER'. 'system.cpu.logical_number' ``` @@ -82,13 +82,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_CPU_STATE. + ?'SYSTEM_CPU_STATE'. 'system.cpu.state' - ?'SYSTEM_CPU_STATE_VALUES.user'. + ?'SYSTEM_CPU_STATE_VALUES_USER'. user - \#{?SYSTEM_CPU_STATE => ?'SYSTEM_CPU_STATE_VALUES.user'}. + \#{?SYSTEM_CPU_STATE => ?'SYSTEM_CPU_STATE_VALUES_USER'}. \#{'system.cpu.state' => user} ``` @@ -133,7 +133,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_DEVICE. + ?'SYSTEM_DEVICE'. 'system.device' ``` @@ -165,7 +165,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_FILESYSTEM_MODE. + ?'SYSTEM_FILESYSTEM_MODE'. 'system.filesystem.mode' ``` @@ -197,7 +197,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_FILESYSTEM_MOUNTPOINT. + ?'SYSTEM_FILESYSTEM_MOUNTPOINT'. 'system.filesystem.mountpoint' ``` @@ -246,13 +246,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_FILESYSTEM_STATE. + ?'SYSTEM_FILESYSTEM_STATE'. 'system.filesystem.state' - ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'. + ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'. used - \#{?SYSTEM_FILESYSTEM_STATE => ?'SYSTEM_FILESYSTEM_STATE_VALUES.used'}. + \#{?SYSTEM_FILESYSTEM_STATE => ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'}. \#{'system.filesystem.state' => used} ``` @@ -316,13 +316,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_FILESYSTEM_TYPE. + ?'SYSTEM_FILESYSTEM_TYPE'. 'system.filesystem.type' - ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'. + ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'. fat32 - \#{?SYSTEM_FILESYSTEM_TYPE => ?'SYSTEM_FILESYSTEM_TYPE_VALUES.fat32'}. + \#{?SYSTEM_FILESYSTEM_TYPE => ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'}. \#{'system.filesystem.type' => fat32} ``` @@ -387,13 +387,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_MEMORY_STATE. + ?'SYSTEM_MEMORY_STATE'. 'system.memory.state' - ?'SYSTEM_MEMORY_STATE_VALUES.used'. + ?'SYSTEM_MEMORY_STATE_VALUES_USED'. used - \#{?SYSTEM_MEMORY_STATE => ?'SYSTEM_MEMORY_STATE_VALUES.used'}. + \#{?SYSTEM_MEMORY_STATE => ?'SYSTEM_MEMORY_STATE_VALUES_USED'}. \#{'system.memory.state' => used} ``` @@ -471,13 +471,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_NETWORK_STATE. + ?'SYSTEM_NETWORK_STATE'. 'system.network.state' - ?'SYSTEM_NETWORK_STATE_VALUES.close'. + ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'. close - \#{?SYSTEM_NETWORK_STATE => ?'SYSTEM_NETWORK_STATE_VALUES.close'}. + \#{?SYSTEM_NETWORK_STATE => ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'}. \#{'system.network.state' => close} ``` @@ -542,13 +542,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_PAGING_DIRECTION. + ?'SYSTEM_PAGING_DIRECTION'. 'system.paging.direction' - ?'SYSTEM_PAGING_DIRECTION_VALUES.in'. + ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'. in - \#{?SYSTEM_PAGING_DIRECTION => ?'SYSTEM_PAGING_DIRECTION_VALUES.in'}. + \#{?SYSTEM_PAGING_DIRECTION => ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'}. \#{'system.paging.direction' => in} ``` @@ -603,13 +603,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_PAGING_STATE. + ?'SYSTEM_PAGING_STATE'. 'system.paging.state' - ?'SYSTEM_PAGING_STATE_VALUES.used'. + ?'SYSTEM_PAGING_STATE_VALUES_USED'. used - \#{?SYSTEM_PAGING_STATE => ?'SYSTEM_PAGING_STATE_VALUES.used'}. + \#{?SYSTEM_PAGING_STATE => ?'SYSTEM_PAGING_STATE_VALUES_USED'}. \#{'system.paging.state' => used} ``` @@ -664,13 +664,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_PAGING_TYPE. + ?'SYSTEM_PAGING_TYPE'. 'system.paging.type' - ?'SYSTEM_PAGING_TYPE_VALUES.major'. + ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'. major - \#{?SYSTEM_PAGING_TYPE => ?'SYSTEM_PAGING_TYPE_VALUES.major'}. + \#{?SYSTEM_PAGING_TYPE => ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'}. \#{'system.paging.type' => major} ``` @@ -731,13 +731,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?SYSTEM_PROCESS_STATUS. + ?'SYSTEM_PROCESS_STATUS'. 'system.process.status' - ?'SYSTEM_PROCESS_STATUS_VALUES.running'. + ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'. running - \#{?SYSTEM_PROCESS_STATUS => ?'SYSTEM_PROCESS_STATUS_VALUES.running'}. + \#{?SYSTEM_PROCESS_STATUS => ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'}. \#{'system.process.status' => running} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex index e62633d5..bcd3b022 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex @@ -31,7 +31,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do ### Erlang ```erlang - ?TELEMETRY_DISTRO_NAME. + ?'TELEMETRY_DISTRO_NAME'. 'telemetry.distro.name' ``` @@ -64,7 +64,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do ### Erlang ```erlang - ?TELEMETRY_DISTRO_VERSION. + ?'TELEMETRY_DISTRO_VERSION'. 'telemetry.distro.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex index 4d236c82..f89ac81f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ThreadAttributes do ### Erlang ```erlang - ?THREAD_ID. + ?'THREAD_ID'. 'thread.id' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ThreadAttributes do ### Erlang ```erlang - ?THREAD_NAME. + ?'THREAD_NAME'. 'thread.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex index 0239969e..52bcb28c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CIPHER. + ?'TLS_CIPHER'. 'tls.cipher' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_CERTIFICATE. + ?'TLS_CLIENT_CERTIFICATE'. 'tls.client.certificate' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_CERTIFICATE_CHAIN. + ?'TLS_CLIENT_CERTIFICATE_CHAIN'. 'tls.client.certificate_chain' ``` @@ -129,7 +129,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_HASH_MD5. + ?'TLS_CLIENT_HASH_MD5'. 'tls.client.hash.md5' ``` @@ -162,7 +162,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_HASH_SHA1. + ?'TLS_CLIENT_HASH_SHA1'. 'tls.client.hash.sha1' ``` @@ -195,7 +195,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_HASH_SHA256. + ?'TLS_CLIENT_HASH_SHA256'. 'tls.client.hash.sha256' ``` @@ -227,7 +227,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_ISSUER. + ?'TLS_CLIENT_ISSUER'. 'tls.client.issuer' ``` @@ -259,7 +259,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_JA3. + ?'TLS_CLIENT_JA3'. 'tls.client.ja3' ``` @@ -291,7 +291,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_NOT_AFTER. + ?'TLS_CLIENT_NOT_AFTER'. 'tls.client.not_after' ``` @@ -323,7 +323,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_NOT_BEFORE. + ?'TLS_CLIENT_NOT_BEFORE'. 'tls.client.not_before' ``` @@ -355,7 +355,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_SERVER_NAME. + ?'TLS_CLIENT_SERVER_NAME'. 'tls.client.server_name' ``` @@ -387,7 +387,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_SUBJECT. + ?'TLS_CLIENT_SUBJECT'. 'tls.client.subject' ``` @@ -419,7 +419,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CLIENT_SUPPORTED_CIPHERS. + ?'TLS_CLIENT_SUPPORTED_CIPHERS'. 'tls.client.supported_ciphers' ``` @@ -451,7 +451,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_CURVE. + ?'TLS_CURVE'. 'tls.curve' ``` @@ -483,7 +483,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_ESTABLISHED. + ?'TLS_ESTABLISHED'. 'tls.established' ``` @@ -516,7 +516,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_NEXT_PROTOCOL. + ?'TLS_NEXT_PROTOCOL'. 'tls.next_protocol' ``` @@ -560,13 +560,13 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_PROTOCOL_NAME. + ?'TLS_PROTOCOL_NAME'. 'tls.protocol.name' - ?'TLS_PROTOCOL_NAME_VALUES.ssl'. + ?'TLS_PROTOCOL_NAME_VALUES_SSL'. ssl - \#{?TLS_PROTOCOL_NAME => ?'TLS_PROTOCOL_NAME_VALUES.ssl'}. + \#{?TLS_PROTOCOL_NAME => ?'TLS_PROTOCOL_NAME_VALUES_SSL'}. \#{'tls.protocol.name' => ssl} ``` @@ -607,7 +607,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_PROTOCOL_VERSION. + ?'TLS_PROTOCOL_VERSION'. 'tls.protocol.version' ``` @@ -639,7 +639,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_RESUMED. + ?'TLS_RESUMED'. 'tls.resumed' ``` @@ -672,7 +672,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_CERTIFICATE. + ?'TLS_SERVER_CERTIFICATE'. 'tls.server.certificate' ``` @@ -705,7 +705,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_CERTIFICATE_CHAIN. + ?'TLS_SERVER_CERTIFICATE_CHAIN'. 'tls.server.certificate_chain' ``` @@ -738,7 +738,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_HASH_MD5. + ?'TLS_SERVER_HASH_MD5'. 'tls.server.hash.md5' ``` @@ -771,7 +771,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_HASH_SHA1. + ?'TLS_SERVER_HASH_SHA1'. 'tls.server.hash.sha1' ``` @@ -804,7 +804,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_HASH_SHA256. + ?'TLS_SERVER_HASH_SHA256'. 'tls.server.hash.sha256' ``` @@ -836,7 +836,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_ISSUER. + ?'TLS_SERVER_ISSUER'. 'tls.server.issuer' ``` @@ -868,7 +868,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_JA3S. + ?'TLS_SERVER_JA3S'. 'tls.server.ja3s' ``` @@ -900,7 +900,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_NOT_AFTER. + ?'TLS_SERVER_NOT_AFTER'. 'tls.server.not_after' ``` @@ -932,7 +932,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_NOT_BEFORE. + ?'TLS_SERVER_NOT_BEFORE'. 'tls.server.not_before' ``` @@ -964,7 +964,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?TLS_SERVER_SUBJECT. + ?'TLS_SERVER_SUBJECT'. 'tls.server.subject' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex index c50f80a2..cb08089a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_DOMAIN. + ?'URL_DOMAIN'. 'url.domain' ``` @@ -67,7 +67,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_EXTENSION. + ?'URL_EXTENSION'. 'url.extension' ``` @@ -105,7 +105,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_ORIGINAL. + ?'URL_ORIGINAL'. 'url.original' ``` @@ -138,7 +138,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_PORT. + ?'URL_PORT'. 'url.port' ``` @@ -175,7 +175,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_REGISTERED_DOMAIN. + ?'URL_REGISTERED_DOMAIN'. 'url.registered_domain' ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_SUBDOMAIN. + ?'URL_SUBDOMAIN'. 'url.subdomain' ``` @@ -245,7 +245,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_TEMPLATE. + ?'URL_TEMPLATE'. 'url.template' ``` @@ -282,7 +282,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?URL_TOP_LEVEL_DOMAIN. + ?'URL_TOP_LEVEL_DOMAIN'. 'url.top_level_domain' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex index 1a3dadda..38974d67 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do ### Erlang ```erlang - ?USER_AGENT_NAME. + ?'USER_AGENT_NAME'. 'user_agent.name' ``` @@ -67,7 +67,7 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do ### Erlang ```erlang - ?USER_AGENT_VERSION. + ?'USER_AGENT_VERSION'. 'user_agent.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex index c6824610..7fae2e3f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do ### Erlang ```erlang - ?WEBENGINE_DESCRIPTION. + ?'WEBENGINE_DESCRIPTION'. 'webengine.description' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do ### Erlang ```erlang - ?WEBENGINE_NAME. + ?'WEBENGINE_NAME'. 'webengine.name' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do ### Erlang ```erlang - ?WEBENGINE_VERSION. + ?'WEBENGINE_VERSION'. 'webengine.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex index d2e8f13b..43045d11 100644 --- a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_CLIENT_REQUEST_DURATION. + ?'HTTP_CLIENT_REQUEST_DURATION'. 'http.client.request.duration' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Metrics.HTTPMetrics do ### Erlang ```erlang - ?HTTP_SERVER_REQUEST_DURATION. + ?'HTTP_SERVER_REQUEST_DURATION'. 'http.server.request.duration' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex index 2be17a07..5c266df7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_LOCAL_ADDRESS. + ?'NETWORK_LOCAL_ADDRESS'. 'network.local.address' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_LOCAL_PORT. + ?'NETWORK_LOCAL_PORT'. 'network.local.port' ``` @@ -89,7 +89,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_PEER_ADDRESS. + ?'NETWORK_PEER_ADDRESS'. 'network.peer.address' ``` @@ -121,7 +121,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_PEER_PORT. + ?'NETWORK_PEER_PORT'. 'network.peer.port' ``` @@ -156,7 +156,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_PROTOCOL_NAME. + ?'NETWORK_PROTOCOL_NAME'. 'network.protocol.name' ``` @@ -192,7 +192,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_PROTOCOL_VERSION. + ?'NETWORK_PROTOCOL_VERSION'. 'network.protocol.version' ``` @@ -253,13 +253,13 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_TRANSPORT. + ?'NETWORK_TRANSPORT'. 'network.transport' - ?'NETWORK_TRANSPORT_VALUES.tcp'. + ?'NETWORK_TRANSPORT_VALUES_TCP'. tcp - \#{?NETWORK_TRANSPORT => ?'NETWORK_TRANSPORT_VALUES.tcp'}. + \#{?NETWORK_TRANSPORT => ?'NETWORK_TRANSPORT_VALUES_TCP'}. \#{'network.transport' => tcp} ``` @@ -319,13 +319,13 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?NETWORK_TYPE. + ?'NETWORK_TYPE'. 'network.type' - ?'NETWORK_TYPE_VALUES.ipv4'. + ?'NETWORK_TYPE_VALUES_IPV_4'. ipv4 - \#{?NETWORK_TYPE => ?'NETWORK_TYPE_VALUES.ipv4'}. + \#{?NETWORK_TYPE => ?'NETWORK_TYPE_VALUES_IPV_4'}. \#{'network.type' => ipv4} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex index 8658e2cb..835a1205 100644 --- a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?OTEL_SCOPE_NAME. + ?'OTEL_SCOPE_NAME'. 'otel.scope.name' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?OTEL_SCOPE_VERSION. + ?'OTEL_SCOPE_VERSION'. 'otel.scope.version' ``` @@ -99,13 +99,13 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?OTEL_STATUS_CODE. + ?'OTEL_STATUS_CODE'. 'otel.status_code' - ?'OTEL_STATUS_CODE_VALUES.ok'. + ?'OTEL_STATUS_CODE_VALUES_OK'. OK - \#{?OTEL_STATUS_CODE => ?'OTEL_STATUS_CODE_VALUES.ok'}. + \#{?OTEL_STATUS_CODE => ?'OTEL_STATUS_CODE_VALUES_OK'}. \#{'otel.status_code' => OK} ``` @@ -145,7 +145,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?OTEL_STATUS_DESCRIPTION. + ?'OTEL_STATUS_DESCRIPTION'. 'otel.status_description' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex index 65bf7803..7cf5a5a0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.ServerAttributes do ### Erlang ```erlang - ?SERVER_ADDRESS. + ?'SERVER_ADDRESS'. 'server.address' ``` @@ -65,7 +65,7 @@ defmodule OpenTelemetry.SemConv.ServerAttributes do ### Erlang ```erlang - ?SERVER_PORT. + ?'SERVER_PORT'. 'server.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex index 6605df53..2b4ed15e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.ServiceAttributes do ### Erlang ```erlang - ?SERVICE_NAME. + ?'SERVICE_NAME'. 'service.name' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.ServiceAttributes do ### Erlang ```erlang - ?SERVICE_VERSION. + ?'SERVICE_VERSION'. 'service.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex index bab61f32..a9ba26ac 100644 --- a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex @@ -57,13 +57,13 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Erlang ```erlang - ?TELEMETRY_SDK_LANGUAGE. + ?'TELEMETRY_SDK_LANGUAGE'. 'telemetry.sdk.language' - ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'. + ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'. cpp - \#{?TELEMETRY_SDK_LANGUAGE => ?'TELEMETRY_SDK_LANGUAGE_VALUES.cpp'}. + \#{?TELEMETRY_SDK_LANGUAGE => ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'}. \#{'telemetry.sdk.language' => cpp} ``` @@ -123,7 +123,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Erlang ```erlang - ?TELEMETRY_SDK_NAME. + ?'TELEMETRY_SDK_NAME'. 'telemetry.sdk.name' ``` @@ -156,7 +156,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Erlang ```erlang - ?TELEMETRY_SDK_VERSION. + ?'TELEMETRY_SDK_VERSION'. 'telemetry.sdk.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex index a5fa0b6c..dc5bd413 100644 --- a/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?URL_FRAGMENT. + ?'URL_FRAGMENT'. 'url.fragment' ``` @@ -64,7 +64,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?URL_FULL. + ?'URL_FULL'. 'url.full' ``` @@ -101,7 +101,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?URL_PATH. + ?'URL_PATH'. 'url.path' ``` @@ -138,7 +138,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?URL_QUERY. + ?'URL_QUERY'. 'url.query' ``` @@ -171,7 +171,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?URL_SCHEME. + ?'URL_SCHEME'. 'url.scheme' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex index 70106c8b..e380f44a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.UserAgentAttributes do ### Erlang ```erlang - ?USER_AGENT_ORIGINAL. + ?'USER_AGENT_ORIGINAL'. 'user_agent.original' ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index ed588faf..85f772e5 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -72,13 +72,13 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ c.erl_attr_name(attribute.name) }}. + ?'{{ c.erl_attr_name(attribute.name) }}'. '{{ attribute.name }}' - ?'{{ c.erl_attr_name(attribute.name) }}_VALUES.{{ attribute.type.members|first|attr('id') }}'. + ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'. {{ attribute.type.members|first|attr('value') }} - {% raw %}\#{{% endraw %}?{{ c.erl_attr_name(attribute.name) }} => ?'{{ c.erl_attr_name(attribute.name) }}_VALUES.{{ attribute.type.members|first|attr('id') }}'{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}?{{ c.erl_attr_name(attribute.name) }} => ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'{% raw %}}{% endraw %}. {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} ``` {%- else %} @@ -91,7 +91,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ c.erl_attr_name(attribute.name) }}. + ?'{{ c.erl_attr_name(attribute.name) }}'. '{{ attribute.name }}' ``` {%- endif %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index 933ce8ff..770b2877 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -42,7 +42,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ metric.metric_name | snake_case | upper }}. + ?'{{ metric.metric_name | snake_case | upper }}'. '{{ metric.metric_name }}' ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index f58fad43..4938ed29 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -21,10 +21,10 @@ %% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ attribute.brief | replace("\n", "\n%% ") }} --define({{ c.attr_name(attribute.name) }}, '{{ attribute.name }}'). +-define('{{ c.attr_name(attribute.name) }}', '{{ attribute.name }}'). {%- if attribute.type is mapping %} {% for member in attribute.type.members %} --define('{{ c.attr_name(attribute.name) }}_VALUES.{{ member.id }}', '{{ member.value }}'). +-define('{{ c.attr_name(attribute.name) }}_VALUES_{{ member.id | screaming_snake_case }}', '{{ member.value }}'). {% endfor %} {%- endif %} {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 index 169b7e2a..fd919989 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 @@ -21,5 +21,5 @@ %% @deprecated {{ metric.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ metric.brief | replace("\n", "\n%% ") }} --define({{ c.attr_name(metric.metric_name) }}, '{{ metric.metric_name }}'). +-define('{{ c.attr_name(metric.metric_name) }}', '{{ metric.metric_name }}'). {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl index 81ee1206..7ad81083 100644 --- a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -12,5 +12,5 @@ all() -> registry_macros(_Config) -> ?assertEqual('db.system', ?'DB_SYSTEM'), - ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES.postgresql'), + ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES_POSTGRESQL'), ok. From 9eddc386dea91048e5e4caca480e30a97fcc85c4 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 26 Jul 2024 17:14:30 -0600 Subject: [PATCH 45/57] Add schema urls --- .../opentelemetry_semantic_conventions/include/schema_urls.hrl | 1 + apps/opentelemetry_semantic_conventions/lib/schema_urls.ex | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 apps/opentelemetry_semantic_conventions/include/schema_urls.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/schema_urls.ex diff --git a/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl b/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl new file mode 100644 index 00000000..d0ea02d3 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl @@ -0,0 +1 @@ +-define('V1_26_0', <<"https://opentelemetry.io/schemas/1.26.0">>). diff --git a/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex b/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex new file mode 100644 index 00000000..41c8b7fd --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex @@ -0,0 +1,3 @@ +defmodule OpenTelemetry.SemConv.Schemas do + def v1_26_0, do: "https://opentelemetry.io/schemas/1.26.0" +end From 2ea65d018c9a16eb46f362c36146b7f1d1ccf138 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 26 Jul 2024 17:18:36 -0600 Subject: [PATCH 46/57] Reorganize file layout --- .../include/{ => attributes}/client_attributes.hrl | 0 .../include/{ => attributes}/error_attributes.hrl | 0 .../include/{ => attributes}/exception_attributes.hrl | 0 .../include/{ => attributes}/http_attributes.hrl | 0 .../include/{ => attributes}/network_attributes.hrl | 0 .../include/{ => attributes}/otel_attributes.hrl | 0 .../include/{ => attributes}/server_attributes.hrl | 0 .../include/{ => attributes}/service_attributes.hrl | 0 .../include/{ => attributes}/telemetry_attributes.hrl | 0 .../include/{ => attributes}/url_attributes.hrl | 0 .../include/{ => attributes}/user_agent_attributes.hrl | 0 .../include/incubating/{ => attributes}/aws_attributes.hrl | 0 .../include/incubating/{ => attributes}/browser_attributes.hrl | 0 .../include/incubating/{ => attributes}/cloud_attributes.hrl | 0 .../incubating/{ => attributes}/cloudevents_attributes.hrl | 0 .../include/incubating/{ => attributes}/code_attributes.hrl | 0 .../incubating/{ => attributes}/container_attributes.hrl | 0 .../include/incubating/{ => attributes}/db_attributes.hrl | 0 .../incubating/{ => attributes}/deployment_attributes.hrl | 0 .../incubating/{ => attributes}/destination_attributes.hrl | 0 .../include/incubating/{ => attributes}/device_attributes.hrl | 0 .../include/incubating/{ => attributes}/disk_attributes.hrl | 0 .../include/incubating/{ => attributes}/dns_attributes.hrl | 0 .../include/incubating/{ => attributes}/enduser_attributes.hrl | 0 .../include/incubating/{ => attributes}/event_attributes.hrl | 0 .../include/incubating/{ => attributes}/faas_attributes.hrl | 0 .../incubating/{ => attributes}/feature_flag_attributes.hrl | 0 .../include/incubating/{ => attributes}/file_attributes.hrl | 0 .../include/incubating/{ => attributes}/gcp_attributes.hrl | 0 .../include/incubating/{ => attributes}/gen_ai_attributes.hrl | 0 .../include/incubating/{ => attributes}/graphql_attributes.hrl | 0 .../include/incubating/{ => attributes}/heroku_attributes.hrl | 0 .../include/incubating/{ => attributes}/host_attributes.hrl | 0 .../include/incubating/{ => attributes}/http_attributes.hrl | 0 .../include/incubating/{ => attributes}/k8s_attributes.hrl | 0 .../include/incubating/{ => attributes}/log_attributes.hrl | 0 .../incubating/{ => attributes}/messaging_attributes.hrl | 0 .../include/incubating/{ => attributes}/network_attributes.hrl | 0 .../include/incubating/{ => attributes}/oci_attributes.hrl | 0 .../incubating/{ => attributes}/opentracing_attributes.hrl | 0 .../include/incubating/{ => attributes}/os_attributes.hrl | 0 .../include/incubating/{ => attributes}/otel_attributes.hrl | 0 .../include/incubating/{ => attributes}/peer_attributes.hrl | 0 .../include/incubating/{ => attributes}/process_attributes.hrl | 0 .../include/incubating/{ => attributes}/rpc_attributes.hrl | 0 .../include/incubating/{ => attributes}/service_attributes.hrl | 0 .../include/incubating/{ => attributes}/session_attributes.hrl | 0 .../include/incubating/{ => attributes}/source_attributes.hrl | 0 .../include/incubating/{ => attributes}/system_attributes.hrl | 0 .../incubating/{ => attributes}/telemetry_attributes.hrl | 0 .../include/incubating/{ => attributes}/thread_attributes.hrl | 0 .../include/incubating/{ => attributes}/tls_attributes.hrl | 0 .../include/incubating/{ => attributes}/url_attributes.hrl | 0 .../incubating/{ => attributes}/user_agent_attributes.hrl | 0 .../incubating/{ => attributes}/webengine_attributes.hrl | 0 .../lib/{ => attributes}/client_attributes.ex | 0 .../lib/{ => attributes}/error_attributes.ex | 0 .../lib/{ => attributes}/exception_attributes.ex | 0 .../lib/{ => attributes}/http_attributes.ex | 0 .../lib/{ => attributes}/network_attributes.ex | 0 .../lib/{ => attributes}/otel_attributes.ex | 0 .../lib/{ => attributes}/server_attributes.ex | 0 .../lib/{ => attributes}/service_attributes.ex | 0 .../lib/{ => attributes}/telemetry_attributes.ex | 0 .../lib/{ => attributes}/url_attributes.ex | 0 .../lib/{ => attributes}/user_agent_attributes.ex | 0 .../lib/incubating/{ => attributes}/aws_attributes.ex | 0 .../lib/incubating/{ => attributes}/browser_attributes.ex | 0 .../lib/incubating/{ => attributes}/cloud_attributes.ex | 0 .../lib/incubating/{ => attributes}/cloudevents_attributes.ex | 0 .../lib/incubating/{ => attributes}/code_attributes.ex | 0 .../lib/incubating/{ => attributes}/container_attributes.ex | 0 .../lib/incubating/{ => attributes}/db_attributes.ex | 0 .../lib/incubating/{ => attributes}/deployment_attributes.ex | 0 .../lib/incubating/{ => attributes}/destination_attributes.ex | 0 .../lib/incubating/{ => attributes}/device_attributes.ex | 0 .../lib/incubating/{ => attributes}/disk_attributes.ex | 0 .../lib/incubating/{ => attributes}/dns_attributes.ex | 0 .../lib/incubating/{ => attributes}/enduser_attributes.ex | 0 .../lib/incubating/{ => attributes}/event_attributes.ex | 0 .../lib/incubating/{ => attributes}/faas_attributes.ex | 0 .../lib/incubating/{ => attributes}/feature_flag_attributes.ex | 0 .../lib/incubating/{ => attributes}/file_attributes.ex | 0 .../lib/incubating/{ => attributes}/gcp_attributes.ex | 0 .../lib/incubating/{ => attributes}/gen_ai_attributes.ex | 0 .../lib/incubating/{ => attributes}/graphql_attributes.ex | 0 .../lib/incubating/{ => attributes}/heroku_attributes.ex | 0 .../lib/incubating/{ => attributes}/host_attributes.ex | 0 .../lib/incubating/{ => attributes}/http_attributes.ex | 0 .../lib/incubating/{ => attributes}/k8s_attributes.ex | 0 .../lib/incubating/{ => attributes}/log_attributes.ex | 0 .../lib/incubating/{ => attributes}/messaging_attributes.ex | 0 .../lib/incubating/{ => attributes}/network_attributes.ex | 0 .../lib/incubating/{ => attributes}/oci_attributes.ex | 0 .../lib/incubating/{ => attributes}/opentracing_attributes.ex | 0 .../lib/incubating/{ => attributes}/os_attributes.ex | 0 .../lib/incubating/{ => attributes}/otel_attributes.ex | 0 .../lib/incubating/{ => attributes}/peer_attributes.ex | 0 .../lib/incubating/{ => attributes}/process_attributes.ex | 0 .../lib/incubating/{ => attributes}/rpc_attributes.ex | 0 .../lib/incubating/{ => attributes}/service_attributes.ex | 0 .../lib/incubating/{ => attributes}/session_attributes.ex | 0 .../lib/incubating/{ => attributes}/source_attributes.ex | 0 .../lib/incubating/{ => attributes}/system_attributes.ex | 0 .../lib/incubating/{ => attributes}/telemetry_attributes.ex | 0 .../lib/incubating/{ => attributes}/thread_attributes.ex | 0 .../lib/incubating/{ => attributes}/tls_attributes.ex | 0 .../lib/incubating/{ => attributes}/url_attributes.ex | 0 .../lib/incubating/{ => attributes}/user_agent_attributes.ex | 0 .../lib/incubating/{ => attributes}/webengine_attributes.ex | 0 .../templates/registry/elixir/weaver.yaml | 2 +- .../templates/registry/erlang/weaver.yaml | 2 +- 112 files changed, 2 insertions(+), 2 deletions(-) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/client_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/error_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/exception_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/http_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/network_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/otel_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/server_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/service_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/telemetry_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/url_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/{ => attributes}/user_agent_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/aws_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/browser_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/cloud_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/cloudevents_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/code_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/container_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/db_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/deployment_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/destination_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/device_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/disk_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/dns_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/enduser_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/event_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/faas_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/feature_flag_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/file_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/gcp_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/gen_ai_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/graphql_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/heroku_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/host_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/http_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/k8s_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/log_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/messaging_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/network_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/oci_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/opentracing_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/os_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/otel_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/peer_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/process_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/rpc_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/service_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/session_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/source_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/system_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/telemetry_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/thread_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/tls_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/url_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/user_agent_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/include/incubating/{ => attributes}/webengine_attributes.hrl (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/client_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/error_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/exception_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/http_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/network_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/otel_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/server_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/service_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/telemetry_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/url_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/{ => attributes}/user_agent_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/aws_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/browser_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/cloud_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/cloudevents_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/code_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/container_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/db_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/deployment_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/destination_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/device_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/disk_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/dns_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/enduser_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/event_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/faas_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/feature_flag_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/file_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/gcp_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/gen_ai_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/graphql_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/heroku_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/host_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/http_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/k8s_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/log_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/messaging_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/network_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/oci_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/opentracing_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/os_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/otel_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/peer_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/process_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/rpc_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/service_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/session_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/source_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/system_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/telemetry_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/thread_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/tls_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/url_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/user_agent_attributes.ex (100%) rename apps/opentelemetry_semantic_conventions/lib/incubating/{ => attributes}/webengine_attributes.ex (100%) diff --git a/apps/opentelemetry_semantic_conventions/include/client_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/client_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/client_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/client_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/error_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/error_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/error_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/exception_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/http_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/network_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/otel_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/otel_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/otel_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/server_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/server_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/server_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/server_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/service_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/telemetry_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/url_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/user_agent_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/aws_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/browser_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/browser_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/browser_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/cloud_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloudevents_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/cloudevents_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloudevents_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/code_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/code_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/code_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/container_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/db_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/deployment_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/destination_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/destination_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/destination_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/device_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/disk_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/dns_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/dns_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/dns_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/enduser_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/event_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/event_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/event_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/faas_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/faas_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/faas_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/feature_flag_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/feature_flag_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/feature_flag_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/file_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/file_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/file_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/gcp_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/gen_ai_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/graphql_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/graphql_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/graphql_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/heroku_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/heroku_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/heroku_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/host_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/http_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/k8s_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/log_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/messaging_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/network_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/oci_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/oci_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/oci_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/opentracing_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/opentracing_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/opentracing_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/os_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/os_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/os_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/otel_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/otel_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/otel_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/peer_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/peer_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/peer_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/process_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/rpc_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/rpc_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/rpc_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/service_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/session_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/session_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/session_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/source_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/source_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/source_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/system_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/telemetry_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/thread_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/thread_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/thread_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/tls_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/user_agent_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl similarity index 100% rename from apps/opentelemetry_semantic_conventions/include/incubating/webengine_attributes.hrl rename to apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl diff --git a/apps/opentelemetry_semantic_conventions/lib/client_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/client_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/client_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/client_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/error_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/exception_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/exception_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/exception_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/http_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/network_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/otel_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/server_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/server_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/server_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/server_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/service_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/service_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/service_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/telemetry_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/url_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/url_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/url_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/user_agent_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/user_agent_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/attributes/user_agent_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/aws_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/browser_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/browser_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/browser_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/cloud_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloudevents_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/cloudevents_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloudevents_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/code_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/code_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/code_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/container_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/db_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/deployment_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/destination_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/destination_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/destination_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/device_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/disk_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/dns_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/dns_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/dns_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/enduser_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/event_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/faas_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/feature_flag_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/feature_flag_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/feature_flag_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/file_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/file_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/file_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/gcp_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/gen_ai_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/graphql_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/heroku_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/heroku_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/heroku_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/host_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/http_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/k8s_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/k8s_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/k8s_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/log_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/messaging_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/network_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/oci_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/oci_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/oci_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/opentracing_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/os_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/otel_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/otel_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/otel_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/peer_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/peer_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/peer_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/process_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/rpc_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/service_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/session_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/session_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/session_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/source_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/source_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/source_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/system_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/telemetry_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/thread_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/thread_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/thread_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/tls_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/url_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/user_agent_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex similarity index 100% rename from apps/opentelemetry_semantic_conventions/lib/incubating/webengine_attributes.ex rename to apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index 09dca3bf..bd590aea 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -15,7 +15,7 @@ templates: | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability) | (select( .name as $id | any( $excluded_attrs[]; . == $id ) | not ))] | sort_by(.id), - output: $output + output: $output + "/attributes/" }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) | map(select(.attributes | length > 0)) diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index a38443bc..b7879d8a 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -15,7 +15,7 @@ templates: | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability) | (select( .name as $id | any( $excluded_attrs[]; . == $id ) | not ))] | sort_by(.id), - output: $output + output: $output + "/attributes/" }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) | map(select(.attributes | length > 0)) From f426cb92f829fc5bd3f0d39222b70fea5b52d709 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 26 Jul 2024 17:24:35 -0600 Subject: [PATCH 47/57] Update attribute location references --- apps/opentelemetry_semantic_conventions/README.md | 13 ++++--------- .../lib/sem_conv.ex | 4 ++-- .../test/opentelemetry_semconv_SUITE.erl | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/README.md b/apps/opentelemetry_semantic_conventions/README.md index 524cde03..f8e67b5a 100644 --- a/apps/opentelemetry_semantic_conventions/README.md +++ b/apps/opentelemetry_semantic_conventions/README.md @@ -27,7 +27,7 @@ For Erlang include the semantic conventions header for the particular kind you need: ``` --include_lib("opentelemetry_semantic_conventions/include/url_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl"). ``` You can then use the macros for the attribute keys: @@ -53,7 +53,7 @@ attributes are contained in an incubating header. Attribute groups containing attributes of both stability levels will have two header files in this case. ``` --include_lib("opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl"). ``` You can then use the macros for the experimental attribute keys: @@ -82,13 +82,8 @@ iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().postgresql :postgresql ``` -Enum Attributes allow for a user-supplied value when no pre-defined option exists. To -use a custom value, a function macro is provided. - -``` -iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system(:custom) -:custom -``` +Enum Attributes allow for a user-supplied value when no pre-defined option exists. Users +may set this value manually while paying attention to the required value type #### Incubating Attributes diff --git a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex index f5737841..a011e8ea 100644 --- a/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex +++ b/apps/opentelemetry_semantic_conventions/lib/sem_conv.ex @@ -35,7 +35,7 @@ defmodule OpenTelemetry.SemConv do need: ``` - -include_lib("opentelemetry_semantic_conventions/include/url_attributes.hrl"). + -include_lib("opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl"). ``` You can then use the macros for the attribute keys: @@ -61,7 +61,7 @@ defmodule OpenTelemetry.SemConv do attributes of both stability levels will have two header files in this case. ``` - -include_lib("opentelemetry_semantic_conventions/include/incubating/url_attributes.hrl"). + -include_lib("opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl"). ``` You can then use the macros for the experimental attribute keys: diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl index 7ad81083..7dfd372c 100644 --- a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -5,7 +5,7 @@ -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). --include("incubating/db_attributes.hrl"). +-include("incubating/attributes/db_attributes.hrl"). all() -> [registry_macros]. From 841992ef5cf932abee42f35d8e5bd21c46ccfca3 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 26 Jul 2024 17:26:01 -0600 Subject: [PATCH 48/57] Expand clean targets in makefile --- apps/opentelemetry_semantic_conventions/makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/makefile b/apps/opentelemetry_semantic_conventions/makefile index 976ed074..674e2963 100644 --- a/apps/opentelemetry_semantic_conventions/makefile +++ b/apps/opentelemetry_semantic_conventions/makefile @@ -1,11 +1,23 @@ SEMCON_VERSION = 1.26.0 -.PHONY: setup clean checkout generate +.PHONY: setup clean-all checkout generate -clean: +clean-all: clean-semconv clean-elixir clean-erlang + +clean-semconv: rm -rf semtmp rm -rf guides/ +clean-elixir: + rm -rf lib/attributes + rm -rf lib/incubating + rm -rf lib/metrics + +clean-erlang: + rm -rf include/attributes + rm -rf include/incubating + rm -rf include/metrics + setup: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/open-telemetry/weaver/releases/download/v0.7.0/weaver-installer.sh | sh From e3d0e464b128ed82287f2414190e6ae19cf75e20 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Mon, 29 Jul 2024 13:44:44 -0600 Subject: [PATCH 49/57] Include stable attrs in incubating --- .../incubating/attributes/http_attributes.hrl | 2 ++ .../attributes/messaging_attributes.hrl | 2 ++ .../incubating/attributes/network_attributes.hrl | 2 ++ .../incubating/attributes/service_attributes.hrl | 2 ++ .../attributes/telemetry_attributes.hrl | 2 ++ .../incubating/attributes/url_attributes.hrl | 2 ++ .../attributes/user_agent_attributes.hrl | 2 ++ .../lib/incubating/attributes/http_attributes.ex | 13 +++++++++++++ .../incubating/attributes/network_attributes.ex | 15 +++++++++++++++ .../incubating/attributes/service_attributes.ex | 3 +++ .../incubating/attributes/telemetry_attributes.ex | 5 +++++ .../lib/incubating/attributes/url_attributes.ex | 9 +++++++++ .../attributes/user_agent_attributes.ex | 1 + .../registry/elixir/semantic_attributes.ex.j2 | 13 +++++++++++-- .../templates/registry/elixir/weaver.yaml | 1 + .../registry/erlang/semantic_attributes.hrl.j2 | 4 +++- .../templates/registry/erlang/weaver.yaml | 1 + .../semantic_conventions/sem_conv_test.exs | 5 +++++ .../test/opentelemetry_semconv_SUITE.erl | 2 ++ 19 files changed, 83 insertions(+), 3 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl index 094cf38b..3a7f3c7a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/http_attributes.hrl"). + %% @deprecated Replaced by `client.address`. %% Deprecated, use `client.address` instead. -define('HTTP_CLIENT_IP', 'http.client_ip'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl index 401e5c77..3b018a16 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/messaging_attributes.hrl"). + %% The number of messages sent, received, or processed in the scope of the batching operation. -define('MESSAGING_BATCH_MESSAGE_COUNT', 'messaging.batch.message_count'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl index a0dec359..09f5fe71 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/network_attributes.hrl"). + %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. -define('NET_HOST_IP', 'net.host.ip'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl index e5f1ef20..055cd97b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/service_attributes.hrl"). + %% The string ID of the service instance. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl index 574cd83b..346a5db2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/telemetry_attributes.hrl"). + %% The name of the auto instrumentation agent or distribution, if used. %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl index 663adb01..810a8de2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/url_attributes.hrl"). + %% Domain extracted from the `url.full`, such as "opentelemetry.io". %% diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl index cd2f0082..96e6c60f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl @@ -13,6 +13,8 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +-include("attributes/user_agent_attributes.hrl"). + %% Name of the user-agent extracted from original. Usually refers to the browser's name. %% diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex index b2598321..7d213b79 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex @@ -3,6 +3,19 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do @moduledoc """ OpenTelemetry Semantic Conventions for HTTP attributes. """ + defdelegate http_request_header(), to: OpenTelemetry.SemConv.HTTPAttributes + + defdelegate http_request_method(), to: OpenTelemetry.SemConv.HTTPAttributes + + defdelegate http_request_method_original(), to: OpenTelemetry.SemConv.HTTPAttributes + + defdelegate http_request_resend_count(), to: OpenTelemetry.SemConv.HTTPAttributes + + defdelegate http_response_header(), to: OpenTelemetry.SemConv.HTTPAttributes + + defdelegate http_response_status_code(), to: OpenTelemetry.SemConv.HTTPAttributes + + defdelegate http_route(), to: OpenTelemetry.SemConv.HTTPAttributes @deprecated """ Replaced by `client.address`. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex index 87a37913..2999e4c9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex @@ -3,6 +3,21 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do @moduledoc """ OpenTelemetry Semantic Conventions for Network attributes. """ + defdelegate network_local_address(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_local_port(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_peer_address(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_peer_port(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_protocol_name(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_protocol_version(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_transport(), to: OpenTelemetry.SemConv.NetworkAttributes + + defdelegate network_type(), to: OpenTelemetry.SemConv.NetworkAttributes @deprecated """ Replaced by `network.local.address`. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex index 7f62d368..e8c41a4c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex @@ -3,6 +3,9 @@ defmodule OpenTelemetry.SemConv.Incubating.ServiceAttributes do @moduledoc """ OpenTelemetry Semantic Conventions for Service attributes. """ + defdelegate service_name(), to: OpenTelemetry.SemConv.ServiceAttributes + + defdelegate service_version(), to: OpenTelemetry.SemConv.ServiceAttributes @doc """ The string ID of the service instance. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex index bcd3b022..5aa6415b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex @@ -3,6 +3,11 @@ defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do @moduledoc """ OpenTelemetry Semantic Conventions for Telemetry attributes. """ + defdelegate telemetry_sdk_language(), to: OpenTelemetry.SemConv.TelemetryAttributes + + defdelegate telemetry_sdk_name(), to: OpenTelemetry.SemConv.TelemetryAttributes + + defdelegate telemetry_sdk_version(), to: OpenTelemetry.SemConv.TelemetryAttributes @doc """ The name of the auto instrumentation agent or distribution, if used. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex index cb08089a..9f381771 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex @@ -3,6 +3,15 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do @moduledoc """ OpenTelemetry Semantic Conventions for URL attributes. """ + defdelegate url_fragment(), to: OpenTelemetry.SemConv.URLAttributes + + defdelegate url_full(), to: OpenTelemetry.SemConv.URLAttributes + + defdelegate url_path(), to: OpenTelemetry.SemConv.URLAttributes + + defdelegate url_query(), to: OpenTelemetry.SemConv.URLAttributes + + defdelegate url_scheme(), to: OpenTelemetry.SemConv.URLAttributes @doc """ Domain extracted from the `url.full`, such as "opentelemetry.io". diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex index 38974d67..8b619fd7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex @@ -3,6 +3,7 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do @moduledoc """ OpenTelemetry Semantic Conventions for User_Agent attributes. """ + defdelegate user_agent_original(), to: OpenTelemetry.SemConv.UserAgentAttributes @doc """ Name of the user-agent extracted from original. Usually refers to the browser's name. diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 85f772e5..26e6ecaf 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -4,16 +4,25 @@ {{ template.set_file_name(file_name) }} {%- set module_name = ctx.id | pascal_case | acronym ~ "Attributes" -%} +{%- set incubating_module_namespace = "OpenTelemetry.SemConv.Incubating" -%} +{%- set stable_module_namespace = "OpenTelemetry.SemConv" -%} {%- if params.stability == "experimental" -%} -{%- set module_namespace = "OpenTelemetry.SemConv.Incubating" -%} +{%- set module_namespace = incubating_module_namespace -%} {%- else -%} -{%- set module_namespace = "OpenTelemetry.SemConv" -%} +{%- set module_namespace = stable_module_namespace -%} {%- endif -%} defmodule {{ module_namespace }}.{{ module_name }} do # This is an auto-generated file @moduledoc """ OpenTelemetry Semantic Conventions for {{ ctx.id | title | acronym }} attributes. """ +{%- if params.stability == "experimental" and (ctx.all_attributes | length) > (ctx.attributes | length) %} +{%- for attribute in ctx.all_attributes | sort(attribute="name") %} + {%- if attribute is stable %} + defdelegate {{ c.func_name(attribute.name) }}(), to: {{ stable_module_namespace }}.{{ module_name }} + {% endif -%} +{% endfor %} +{% endif -%} {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute.type is mapping %} @typedoc """ diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index bd590aea..f845f370 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -15,6 +15,7 @@ templates: | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability) | (select( .name as $id | any( $excluded_attrs[]; . == $id ) | not ))] | sort_by(.id), + all_attributes: [.[].attributes[]] | sort_by(.id), output: $output + "/attributes/" }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index 4938ed29..a6ac17f8 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -15,7 +15,9 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- - +{%- if params.stability == "experimental" and (ctx.all_attributes | length) > (ctx.attributes | length) %} +-include("attributes/{{ c.file_name(ctx.id) }}_attributes.hrl"). +{% endif -%} {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute is deprecated -%} %% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index b7879d8a..28c90ebb 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -15,6 +15,7 @@ templates: | map({ id: .[0].group_id, attributes: [.[].attributes[] | select(.stability == $stability) | (select( .name as $id | any( $excluded_attrs[]; . == $id ) | not ))] | sort_by(.id), + all_attributes: [.[].attributes[]], output: $output + "/attributes/" }) | map(select( .id as $id | any( $excluded[]; . == $id) | not )) diff --git a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs index 37aeb97e..a8885fbd 100644 --- a/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs +++ b/apps/opentelemetry_semantic_conventions/test/open_telemetry/semantic_conventions/sem_conv_test.exs @@ -26,4 +26,9 @@ defmodule OpenTelemetry.SemConvTest do System.delete_env("OTEL_SEMCONV_STABILITY_OPT_IN") end end + + test "stable attrs are delegated in incubating module" do + assert SemConv.Incubating.HTTPAttributes.http_route() == + SemConv.HTTPAttributes.http_route() + end end diff --git a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl index 7dfd372c..fea72e1e 100644 --- a/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl +++ b/apps/opentelemetry_semantic_conventions/test/opentelemetry_semconv_SUITE.erl @@ -6,6 +6,7 @@ -include_lib("common_test/include/ct.hrl"). -include("incubating/attributes/db_attributes.hrl"). +-include("incubating/attributes/http_attributes.hrl"). all() -> [registry_macros]. @@ -13,4 +14,5 @@ all() -> registry_macros(_Config) -> ?assertEqual('db.system', ?'DB_SYSTEM'), ?assertEqual('postgresql', ?'DB_SYSTEM_VALUES_POSTGRESQL'), + ?assertEqual('http.route', ?'HTTP_ROUTE'), ok. From 8bd1a45883ab6d80456fc530ebc8f03c642976e7 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 30 Jul 2024 15:49:33 -0600 Subject: [PATCH 50/57] defdelegate stable elixir enum values --- .../lib/incubating/attributes/http_attributes.ex | 2 ++ .../lib/incubating/attributes/network_attributes.ex | 4 ++++ .../lib/incubating/attributes/telemetry_attributes.ex | 2 ++ .../templates/registry/elixir/semantic_attributes.ex.j2 | 3 +++ 4 files changed, 11 insertions(+) diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex index 7d213b79..0b78388d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex @@ -7,6 +7,8 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do defdelegate http_request_method(), to: OpenTelemetry.SemConv.HTTPAttributes + defdelegate http_request_method_values(), to: OpenTelemetry.SemConv.HTTPAttributes + defdelegate http_request_method_original(), to: OpenTelemetry.SemConv.HTTPAttributes defdelegate http_request_resend_count(), to: OpenTelemetry.SemConv.HTTPAttributes diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex index 2999e4c9..007930de 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex @@ -17,8 +17,12 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do defdelegate network_transport(), to: OpenTelemetry.SemConv.NetworkAttributes + defdelegate network_transport_values(), to: OpenTelemetry.SemConv.NetworkAttributes + defdelegate network_type(), to: OpenTelemetry.SemConv.NetworkAttributes + defdelegate network_type_values(), to: OpenTelemetry.SemConv.NetworkAttributes + @deprecated """ Replaced by `network.local.address`. """ diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex index 5aa6415b..2f64dd5d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex @@ -5,6 +5,8 @@ defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do """ defdelegate telemetry_sdk_language(), to: OpenTelemetry.SemConv.TelemetryAttributes + defdelegate telemetry_sdk_language_values(), to: OpenTelemetry.SemConv.TelemetryAttributes + defdelegate telemetry_sdk_name(), to: OpenTelemetry.SemConv.TelemetryAttributes defdelegate telemetry_sdk_version(), to: OpenTelemetry.SemConv.TelemetryAttributes diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 26e6ecaf..4b57c062 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -20,6 +20,9 @@ defmodule {{ module_namespace }}.{{ module_name }} do {%- for attribute in ctx.all_attributes | sort(attribute="name") %} {%- if attribute is stable %} defdelegate {{ c.func_name(attribute.name) }}(), to: {{ stable_module_namespace }}.{{ module_name }} + {% if attribute.type is mapping %} + defdelegate {{ c.func_name(attribute.name) }}_values(), to: {{ stable_module_namespace }}.{{ module_name }} + {% endif -%} {% endif -%} {% endfor %} {% endif -%} From f3e9c52fae69b5f03f681cf2e1affcdfcdbd4556 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Tue, 13 Aug 2024 20:38:17 -0600 Subject: [PATCH 51/57] include has to be include_lib for pkgs to compile correctly --- .../incubating/attributes/http_attributes.hrl | 2 +- .../attributes/messaging_attributes.hrl | 2 +- .../attributes/network_attributes.hrl | 2 +- .../attributes/service_attributes.hrl | 2 +- .../attributes/telemetry_attributes.hrl | 2 +- .../incubating/attributes/url_attributes.hrl | 2 +- .../attributes/user_agent_attributes.hrl | 2 +- .../lib/attributes/error_attributes.ex | 10 +-- .../lib/attributes/http_attributes.ex | 10 +-- .../lib/attributes/network_attributes.ex | 20 ++--- .../lib/attributes/otel_attributes.ex | 10 +-- .../lib/attributes/telemetry_attributes.ex | 10 +-- .../incubating/attributes/aws_attributes.ex | 10 +-- .../incubating/attributes/cloud_attributes.ex | 20 ++--- .../attributes/container_attributes.ex | 10 +-- .../incubating/attributes/db_attributes.ex | 50 +++++------ .../incubating/attributes/disk_attributes.ex | 10 +-- .../incubating/attributes/faas_attributes.ex | 30 +++---- .../attributes/gen_ai_attributes.ex | 10 +-- .../attributes/graphql_attributes.ex | 10 +-- .../incubating/attributes/host_attributes.ex | 10 +-- .../incubating/attributes/http_attributes.ex | 10 +-- .../incubating/attributes/log_attributes.ex | 10 +-- .../attributes/messaging_attributes.ex | 50 +++++------ .../attributes/network_attributes.ex | 30 +++---- .../attributes/opentracing_attributes.ex | 10 +-- .../incubating/attributes/os_attributes.ex | 10 +-- .../attributes/process_attributes.ex | 30 +++---- .../incubating/attributes/rpc_attributes.ex | 40 ++++----- .../attributes/system_attributes.ex | 90 +++++++++---------- .../incubating/attributes/tls_attributes.ex | 10 +-- .../registry/elixir/semantic_attributes.ex.j2 | 20 ++--- .../erlang/semantic_attributes.hrl.j2 | 2 +- 33 files changed, 273 insertions(+), 273 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl index 3a7f3c7a..bcbd1d8a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/http_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl"). %% @deprecated Replaced by `client.address`. %% Deprecated, use `client.address` instead. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl index 3b018a16..892224fa 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/messaging_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/messaging_attributes.hrl"). %% The number of messages sent, received, or processed in the scope of the batching operation. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl index 09f5fe71..c5e1a7a4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/network_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl"). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl index 055cd97b..90bbd1e6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/service_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl"). %% The string ID of the service instance. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl index 346a5db2..7709e295 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/telemetry_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl"). %% The name of the auto instrumentation agent or distribution, if used. diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl index 810a8de2..0b026079 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/url_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl"). %% Domain extracted from the `url.full`, such as "opentelemetry.io". diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl index 96e6c60f..67ab48b6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl @@ -13,7 +13,7 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- --include("attributes/user_agent_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl"). %% Name of the user-agent extracted from original. Usually refers to the browser's name. diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex index b27093fe..84335796 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex @@ -53,10 +53,10 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do iex> OpenTelemetry.SemConv.ErrorAttributes.error_type() :"error.type" - + iex> OpenTelemetry.SemConv.ErrorAttributes.error_type_values().other :_OTHER - + iex> %{OpenTelemetry.SemConv.ErrorAttributes.error_type() => OpenTelemetry.SemConv.ErrorAttributes.error_type_values().other} %{:"error.type" => :_OTHER} @@ -67,10 +67,10 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do 'error.type' ?'ERROR_TYPE_VALUES_OTHER'. - _OTHER + '_OTHER' - \#{?ERROR_TYPE => ?'ERROR_TYPE_VALUES_OTHER'}. - \#{'error.type' => _OTHER} + \#{?'ERROR_TYPE' => ?'ERROR_TYPE_VALUES_OTHER'}. + \#{'error.type' => '_OTHER'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex index 2e9a5ffb..38223be3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex @@ -102,10 +102,10 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method() :"http.request.method" - + iex> OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values().connect :CONNECT - + iex> %{OpenTelemetry.SemConv.HTTPAttributes.http_request_method() => OpenTelemetry.SemConv.HTTPAttributes.http_request_method_values().connect} %{:"http.request.method" => :CONNECT} @@ -116,10 +116,10 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do 'http.request.method' ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'. - CONNECT + 'CONNECT' - \#{?HTTP_REQUEST_METHOD => ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'}. - \#{'http.request.method' => CONNECT} + \#{?'HTTP_REQUEST_METHOD' => ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'}. + \#{'http.request.method' => 'CONNECT'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex index 5c266df7..7a1e11ef 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex @@ -243,10 +243,10 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport() :"network.transport" - + iex> OpenTelemetry.SemConv.NetworkAttributes.network_transport_values().tcp :tcp - + iex> %{OpenTelemetry.SemConv.NetworkAttributes.network_transport() => OpenTelemetry.SemConv.NetworkAttributes.network_transport_values().tcp} %{:"network.transport" => :tcp} @@ -257,10 +257,10 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do 'network.transport' ?'NETWORK_TRANSPORT_VALUES_TCP'. - tcp + 'tcp' - \#{?NETWORK_TRANSPORT => ?'NETWORK_TRANSPORT_VALUES_TCP'}. - \#{'network.transport' => tcp} + \#{?'NETWORK_TRANSPORT' => ?'NETWORK_TRANSPORT_VALUES_TCP'}. + \#{'network.transport' => 'tcp'} ``` @@ -309,10 +309,10 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do iex> OpenTelemetry.SemConv.NetworkAttributes.network_type() :"network.type" - + iex> OpenTelemetry.SemConv.NetworkAttributes.network_type_values().ipv4 :ipv4 - + iex> %{OpenTelemetry.SemConv.NetworkAttributes.network_type() => OpenTelemetry.SemConv.NetworkAttributes.network_type_values().ipv4} %{:"network.type" => :ipv4} @@ -323,10 +323,10 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do 'network.type' ?'NETWORK_TYPE_VALUES_IPV_4'. - ipv4 + 'ipv4' - \#{?NETWORK_TYPE => ?'NETWORK_TYPE_VALUES_IPV_4'}. - \#{'network.type' => ipv4} + \#{?'NETWORK_TYPE' => ?'NETWORK_TYPE_VALUES_IPV_4'}. + \#{'network.type' => 'ipv4'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex index 835a1205..9380be2c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex @@ -89,10 +89,10 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do iex> OpenTelemetry.SemConv.OtelAttributes.otel_status_code() :"otel.status_code" - + iex> OpenTelemetry.SemConv.OtelAttributes.otel_status_code_values().ok :OK - + iex> %{OpenTelemetry.SemConv.OtelAttributes.otel_status_code() => OpenTelemetry.SemConv.OtelAttributes.otel_status_code_values().ok} %{:"otel.status_code" => :OK} @@ -103,10 +103,10 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do 'otel.status_code' ?'OTEL_STATUS_CODE_VALUES_OK'. - OK + 'OK' - \#{?OTEL_STATUS_CODE => ?'OTEL_STATUS_CODE_VALUES_OK'}. - \#{'otel.status_code' => OK} + \#{?'OTEL_STATUS_CODE' => ?'OTEL_STATUS_CODE_VALUES_OK'}. + \#{'otel.status_code' => 'OK'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex index a9ba26ac..291eb58d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex @@ -47,10 +47,10 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language() :"telemetry.sdk.language" - + iex> OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values().cpp :cpp - + iex> %{OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language() => OpenTelemetry.SemConv.TelemetryAttributes.telemetry_sdk_language_values().cpp} %{:"telemetry.sdk.language" => :cpp} @@ -61,10 +61,10 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do 'telemetry.sdk.language' ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'. - cpp + 'cpp' - \#{?TELEMETRY_SDK_LANGUAGE => ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'}. - \#{'telemetry.sdk.language' => cpp} + \#{?'TELEMETRY_SDK_LANGUAGE' => ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'}. + \#{'telemetry.sdk.language' => 'cpp'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex index ef71c30c..a6efdd40 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex @@ -788,10 +788,10 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype() :"aws.ecs.launchtype" - + iex> OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values().ec2 :ec2 - + iex> %{OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype() => OpenTelemetry.SemConv.Incubating.AWSAttributes.aws_ecs_launchtype_values().ec2} %{:"aws.ecs.launchtype" => :ec2} @@ -802,10 +802,10 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do 'aws.ecs.launchtype' ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'. - ec2 + 'ec2' - \#{?AWS_ECS_LAUNCHTYPE => ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'}. - \#{'aws.ecs.launchtype' => ec2} + \#{?'AWS_ECS_LAUNCHTYPE' => ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'}. + \#{'aws.ecs.launchtype' => 'ec2'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex index 930209d7..09b1476e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex @@ -153,10 +153,10 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform() :"cloud.platform" - + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values().alibaba_cloud_ecs :alibaba_cloud_ecs - + iex> %{OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform() => OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_platform_values().alibaba_cloud_ecs} %{:"cloud.platform" => :alibaba_cloud_ecs} @@ -167,10 +167,10 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do 'cloud.platform' ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'. - alibaba_cloud_ecs + 'alibaba_cloud_ecs' - \#{?CLOUD_PLATFORM => ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'}. - \#{'cloud.platform' => alibaba_cloud_ecs} + \#{?'CLOUD_PLATFORM' => ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'}. + \#{'cloud.platform' => 'alibaba_cloud_ecs'} ``` @@ -247,10 +247,10 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider() :"cloud.provider" - + iex> OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values().alibaba_cloud :alibaba_cloud - + iex> %{OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider() => OpenTelemetry.SemConv.Incubating.CloudAttributes.cloud_provider_values().alibaba_cloud} %{:"cloud.provider" => :alibaba_cloud} @@ -261,10 +261,10 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do 'cloud.provider' ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'. - alibaba_cloud + 'alibaba_cloud' - \#{?CLOUD_PROVIDER => ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'}. - \#{'cloud.provider' => alibaba_cloud} + \#{?'CLOUD_PROVIDER' => ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'}. + \#{'cloud.provider' => 'alibaba_cloud'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex index f6a37b45..bf59727e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex @@ -135,10 +135,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() :"container.cpu.state" - + iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user :user - + iex> %{OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() => OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user} %{:"container.cpu.state" => :user} @@ -149,10 +149,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do 'container.cpu.state' ?'CONTAINER_CPU_STATE_VALUES_USER'. - user + 'user' - \#{?CONTAINER_CPU_STATE => ?'CONTAINER_CPU_STATE_VALUES_USER'}. - \#{'container.cpu.state' => user} + \#{?'CONTAINER_CPU_STATE' => ?'CONTAINER_CPU_STATE_VALUES_USER'}. + \#{'container.cpu.state' => 'user'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex index 58a3c3a1..1d24fcbe 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex @@ -45,10 +45,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level() :"db.cassandra.consistency_level" - + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level_values().all :all - + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cassandra_consistency_level_values().all} %{:"db.cassandra.consistency_level" => :all} @@ -59,10 +59,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do 'db.cassandra.consistency_level' ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'. - all + 'all' - \#{?DB_CASSANDRA_CONSISTENCY_LEVEL => ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'}. - \#{'db.cassandra.consistency_level' => all} + \#{?'DB_CASSANDRA_CONSISTENCY_LEVEL' => ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'}. + \#{'db.cassandra.consistency_level' => 'all'} ``` @@ -316,10 +316,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() :"db.client.connections.state" - + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle :idle - + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle} %{:"db.client.connections.state" => :idle} @@ -330,10 +330,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do 'db.client.connections.state' ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'. - idle + 'idle' - \#{?DB_CLIENT_CONNECTIONS_STATE => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'}. - \#{'db.client.connections.state' => idle} + \#{?'DB_CLIENT_CONNECTIONS_STATE' => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'}. + \#{'db.client.connections.state' => 'idle'} ``` @@ -450,10 +450,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode() :"db.cosmosdb.connection_mode" - + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode_values().gateway :gateway - + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_connection_mode_values().gateway} %{:"db.cosmosdb.connection_mode" => :gateway} @@ -464,10 +464,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do 'db.cosmosdb.connection_mode' ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'. - gateway + 'gateway' - \#{?DB_COSMOSDB_CONNECTION_MODE => ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'}. - \#{'db.cosmosdb.connection_mode' => gateway} + \#{?'DB_COSMOSDB_CONNECTION_MODE' => ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'}. + \#{'db.cosmosdb.connection_mode' => 'gateway'} ``` @@ -540,10 +540,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type() :"db.cosmosdb.operation_type" - + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type_values().invalid :Invalid - + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_cosmosdb_operation_type_values().invalid} %{:"db.cosmosdb.operation_type" => :Invalid} @@ -554,10 +554,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do 'db.cosmosdb.operation_type' ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'. - Invalid + 'Invalid' - \#{?DB_COSMOSDB_OPERATION_TYPE => ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'}. - \#{'db.cosmosdb.operation_type' => Invalid} + \#{?'DB_COSMOSDB_OPERATION_TYPE' => ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'}. + \#{'db.cosmosdb.operation_type' => 'Invalid'} ``` @@ -1158,10 +1158,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system() :"db.system" - + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().other_sql :other_sql - + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_system() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_system_values().other_sql} %{:"db.system" => :other_sql} @@ -1172,10 +1172,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do 'db.system' ?'DB_SYSTEM_VALUES_OTHER_SQL'. - other_sql + 'other_sql' - \#{?DB_SYSTEM => ?'DB_SYSTEM_VALUES_OTHER_SQL'}. - \#{'db.system' => other_sql} + \#{?'DB_SYSTEM' => ?'DB_SYSTEM_VALUES_OTHER_SQL'}. + \#{'db.system' => 'other_sql'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex index b7bfbb8e..05f5b771 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex @@ -30,10 +30,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() :"disk.io.direction" - + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read :read - + iex> %{OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() => OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read} %{:"disk.io.direction" => :read} @@ -44,10 +44,10 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do 'disk.io.direction' ?'DISK_IO_DIRECTION_VALUES_READ'. - read + 'read' - \#{?DISK_IO_DIRECTION => ?'DISK_IO_DIRECTION_VALUES_READ'}. - \#{'disk.io.direction' => read} + \#{?'DISK_IO_DIRECTION' => ?'DISK_IO_DIRECTION_VALUES_READ'}. + \#{'disk.io.direction' => 'read'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex index 15bdb34f..2128b9dc 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex @@ -154,10 +154,10 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation() :"faas.document.operation" - + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values().insert :insert - + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_document_operation_values().insert} %{:"faas.document.operation" => :insert} @@ -168,10 +168,10 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do 'faas.document.operation' ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'. - insert + 'insert' - \#{?FAAS_DOCUMENT_OPERATION => ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'}. - \#{'faas.document.operation' => insert} + \#{?'FAAS_DOCUMENT_OPERATION' => ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'}. + \#{'faas.document.operation' => 'insert'} ``` @@ -363,10 +363,10 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider() :"faas.invoked_provider" - + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider_values().alibaba_cloud :alibaba_cloud - + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_invoked_provider_values().alibaba_cloud} %{:"faas.invoked_provider" => :alibaba_cloud} @@ -377,10 +377,10 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do 'faas.invoked_provider' ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'. - alibaba_cloud + 'alibaba_cloud' - \#{?FAAS_INVOKED_PROVIDER => ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'}. - \#{'faas.invoked_provider' => alibaba_cloud} + \#{?'FAAS_INVOKED_PROVIDER' => ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'}. + \#{'faas.invoked_provider' => 'alibaba_cloud'} ``` @@ -589,10 +589,10 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger() :"faas.trigger" - + iex> OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values().datasource :datasource - + iex> %{OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger() => OpenTelemetry.SemConv.Incubating.FAASAttributes.faas_trigger_values().datasource} %{:"faas.trigger" => :datasource} @@ -603,10 +603,10 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do 'faas.trigger' ?'FAAS_TRIGGER_VALUES_DATASOURCE'. - datasource + 'datasource' - \#{?FAAS_TRIGGER => ?'FAAS_TRIGGER_VALUES_DATASOURCE'}. - \#{'faas.trigger' => datasource} + \#{?'FAAS_TRIGGER' => ?'FAAS_TRIGGER_VALUES_DATASOURCE'}. + \#{'faas.trigger' => 'datasource'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex index 7a953ce4..b2214639 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex @@ -326,10 +326,10 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system() :"gen_ai.system" - + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system_values().openai :openai - + iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_system_values().openai} %{:"gen_ai.system" => :openai} @@ -340,10 +340,10 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do 'gen_ai.system' ?'GEN_AI_SYSTEM_VALUES_OPENAI'. - openai + 'openai' - \#{?GEN_AI_SYSTEM => ?'GEN_AI_SYSTEM_VALUES_OPENAI'}. - \#{'gen_ai.system' => openai} + \#{?'GEN_AI_SYSTEM' => ?'GEN_AI_SYSTEM_VALUES_OPENAI'}. + \#{'gen_ai.system' => 'openai'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex index fe2c65bb..7deb9a81 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex @@ -99,10 +99,10 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type() :"graphql.operation.type" - + iex> OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query :query - + iex> %{OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type() => OpenTelemetry.SemConv.Incubating.GraphqlAttributes.graphql_operation_type_values().query} %{:"graphql.operation.type" => :query} @@ -113,10 +113,10 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do 'graphql.operation.type' ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'. - query + 'query' - \#{?GRAPHQL_OPERATION_TYPE => ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'}. - \#{'graphql.operation.type' => query} + \#{?'GRAPHQL_OPERATION_TYPE' => ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'}. + \#{'graphql.operation.type' => 'query'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex index 9993e8fd..268a62b5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex @@ -39,10 +39,10 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch() :"host.arch" - + iex> OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values().amd64 :amd64 - + iex> %{OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch() => OpenTelemetry.SemConv.Incubating.HostAttributes.host_arch_values().amd64} %{:"host.arch" => :amd64} @@ -53,10 +53,10 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do 'host.arch' ?'HOST_ARCH_VALUES_AMD_64'. - amd64 + 'amd64' - \#{?HOST_ARCH => ?'HOST_ARCH_VALUES_AMD_64'}. - \#{'host.arch' => amd64} + \#{?'HOST_ARCH' => ?'HOST_ARCH_VALUES_AMD_64'}. + \#{'host.arch' => 'amd64'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex index 0b78388d..23471f7d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex @@ -53,10 +53,10 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state() :"http.connection.state" - + iex> OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active :active - + iex> %{OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state() => OpenTelemetry.SemConv.Incubating.HTTPAttributes.http_connection_state_values().active} %{:"http.connection.state" => :active} @@ -67,10 +67,10 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do 'http.connection.state' ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'. - active + 'active' - \#{?HTTP_CONNECTION_STATE => ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'}. - \#{'http.connection.state' => active} + \#{?'HTTP_CONNECTION_STATE' => ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'}. + \#{'http.connection.state' => 'active'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex index 83157ba8..68cbd092 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex @@ -159,10 +159,10 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream() :"log.iostream" - + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values().stdout :stdout - + iex> %{OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream() => OpenTelemetry.SemConv.Incubating.LogAttributes.log_iostream_values().stdout} %{:"log.iostream" => :stdout} @@ -173,10 +173,10 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do 'log.iostream' ?'LOG_IOSTREAM_VALUES_STDOUT'. - stdout + 'stdout' - \#{?LOG_IOSTREAM => ?'LOG_IOSTREAM_VALUES_STDOUT'}. - \#{'log.iostream' => stdout} + \#{?'LOG_IOSTREAM' => ?'LOG_IOSTREAM_VALUES_STDOUT'}. + \#{'log.iostream' => 'stdout'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex index 745946c9..36e04146 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex @@ -853,10 +853,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type() :"messaging.operation.type" - + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values().publish :publish - + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_operation_type_values().publish} %{:"messaging.operation.type" => :publish} @@ -867,10 +867,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do 'messaging.operation.type' ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'. - publish + 'publish' - \#{?MESSAGING_OPERATION_TYPE => ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'}. - \#{'messaging.operation.type' => publish} + \#{?'MESSAGING_OPERATION_TYPE' => ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'}. + \#{'messaging.operation.type' => 'publish'} ``` @@ -1014,10 +1014,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model() :"messaging.rocketmq.consumption_model" - + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model_values().clustering :clustering - + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_consumption_model_values().clustering} %{:"messaging.rocketmq.consumption_model" => :clustering} @@ -1028,10 +1028,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do 'messaging.rocketmq.consumption_model' ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'. - clustering + 'clustering' - \#{?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL => ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'}. - \#{'messaging.rocketmq.consumption_model' => clustering} + \#{?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL' => ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'}. + \#{'messaging.rocketmq.consumption_model' => 'clustering'} ``` @@ -1244,10 +1244,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type() :"messaging.rocketmq.message.type" - + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values().normal :normal - + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_message_type_values().normal} %{:"messaging.rocketmq.message.type" => :normal} @@ -1258,10 +1258,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do 'messaging.rocketmq.message.type' ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'. - normal + 'normal' - \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'}. - \#{'messaging.rocketmq.message.type' => normal} + \#{?'MESSAGING_ROCKETMQ_MESSAGE_TYPE' => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'}. + \#{'messaging.rocketmq.message.type' => 'normal'} ``` @@ -1375,10 +1375,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status() :"messaging.servicebus.disposition_status" - + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status_values().complete :complete - + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_disposition_status_values().complete} %{:"messaging.servicebus.disposition_status" => :complete} @@ -1389,10 +1389,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do 'messaging.servicebus.disposition_status' ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'. - complete + 'complete' - \#{?MESSAGING_SERVICEBUS_DISPOSITION_STATUS => ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'}. - \#{'messaging.servicebus.disposition_status' => complete} + \#{?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS' => ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'}. + \#{'messaging.servicebus.disposition_status' => 'complete'} ``` @@ -1522,10 +1522,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system() :"messaging.system" - + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values().activemq :activemq - + iex> %{OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system() => OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_system_values().activemq} %{:"messaging.system" => :activemq} @@ -1536,10 +1536,10 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do 'messaging.system' ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'. - activemq + 'activemq' - \#{?MESSAGING_SYSTEM => ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'}. - \#{'messaging.system' => activemq} + \#{?'MESSAGING_SYSTEM' => ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'}. + \#{'messaging.system' => 'activemq'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex index 007930de..073621ab 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex @@ -385,10 +385,10 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype() :"network.connection.subtype" - + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs :gprs - + iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_subtype_values().gprs} %{:"network.connection.subtype" => :gprs} @@ -399,10 +399,10 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do 'network.connection.subtype' ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'. - gprs + 'gprs' - \#{?NETWORK_CONNECTION_SUBTYPE => ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'}. - \#{'network.connection.subtype' => gprs} + \#{?'NETWORK_CONNECTION_SUBTYPE' => ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'}. + \#{'network.connection.subtype' => 'gprs'} ``` @@ -471,10 +471,10 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type() :"network.connection.type" - + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi :wifi - + iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_connection_type_values().wifi} %{:"network.connection.type" => :wifi} @@ -485,10 +485,10 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do 'network.connection.type' ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'. - wifi + 'wifi' - \#{?NETWORK_CONNECTION_TYPE => ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'}. - \#{'network.connection.type' => wifi} + \#{?'NETWORK_CONNECTION_TYPE' => ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'}. + \#{'network.connection.type' => 'wifi'} ``` @@ -535,10 +535,10 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction() :"network.io.direction" - + iex> OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit :transmit - + iex> %{OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction() => OpenTelemetry.SemConv.Incubating.NetworkAttributes.network_io_direction_values().transmit} %{:"network.io.direction" => :transmit} @@ -549,10 +549,10 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do 'network.io.direction' ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'. - transmit + 'transmit' - \#{?NETWORK_IO_DIRECTION => ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'}. - \#{'network.io.direction' => transmit} + \#{?'NETWORK_IO_DIRECTION' => ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'}. + \#{'network.io.direction' => 'transmit'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex index c3e55d2b..90b75641 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex @@ -29,10 +29,10 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type() :"opentracing.ref_type" - + iex> OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type_values().child_of :child_of - + iex> %{OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type() => OpenTelemetry.SemConv.Incubating.OpentracingAttributes.opentracing_ref_type_values().child_of} %{:"opentracing.ref_type" => :child_of} @@ -43,10 +43,10 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do 'opentracing.ref_type' ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'. - child_of + 'child_of' - \#{?OPENTRACING_REF_TYPE => ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'}. - \#{'opentracing.ref_type' => child_of} + \#{?'OPENTRACING_REF_TYPE' => ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'}. + \#{'opentracing.ref_type' => 'child_of'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex index 24a2907e..886abe76 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex @@ -142,10 +142,10 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type() :"os.type" - + iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows :windows - + iex> %{OpenTelemetry.SemConv.Incubating.OSAttributes.os_type() => OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows} %{:"os.type" => :windows} @@ -156,10 +156,10 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do 'os.type' ?'OS_TYPE_VALUES_WINDOWS'. - windows + 'windows' - \#{?OS_TYPE => ?'OS_TYPE_VALUES_WINDOWS'}. - \#{'os.type' => windows} + \#{?'OS_TYPE' => ?'OS_TYPE_VALUES_WINDOWS'}. + \#{'os.type' => 'windows'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex index 3d35a212..23e90751 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex @@ -124,10 +124,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type() :"process.context_switch_type" - + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type_values().voluntary :voluntary - + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_context_switch_type_values().voluntary} %{:"process.context_switch_type" => :voluntary} @@ -138,10 +138,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do 'process.context_switch_type' ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'. - voluntary + 'voluntary' - \#{?PROCESS_CONTEXT_SWITCH_TYPE => ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'}. - \#{'process.context_switch_type' => voluntary} + \#{?'PROCESS_CONTEXT_SWITCH_TYPE' => ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'}. + \#{'process.context_switch_type' => 'voluntary'} ``` @@ -184,10 +184,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() :"process.cpu.state" - + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system :system - + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system} %{:"process.cpu.state" => :system} @@ -198,10 +198,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do 'process.cpu.state' ?'PROCESS_CPU_STATE_VALUES_SYSTEM'. - system + 'system' - \#{?PROCESS_CPU_STATE => ?'PROCESS_CPU_STATE_VALUES_SYSTEM'}. - \#{'process.cpu.state' => system} + \#{?'PROCESS_CPU_STATE' => ?'PROCESS_CPU_STATE_VALUES_SYSTEM'}. + \#{'process.cpu.state' => 'system'} ``` @@ -502,10 +502,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type() :"process.paging.fault_type" - + iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type_values().major :major - + iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_paging_fault_type_values().major} %{:"process.paging.fault_type" => :major} @@ -516,10 +516,10 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do 'process.paging.fault_type' ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'. - major + 'major' - \#{?PROCESS_PAGING_FAULT_TYPE => ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'}. - \#{'process.paging.fault_type' => major} + \#{?'PROCESS_PAGING_FAULT_TYPE' => ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'}. + \#{'process.paging.fault_type' => 'major'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex index 8164c29b..6ac4582a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex @@ -104,10 +104,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code() :"rpc.connect_rpc.error_code" - + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code_values().cancelled :cancelled - + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_connect_rpc_error_code_values().cancelled} %{:"rpc.connect_rpc.error_code" => :cancelled} @@ -118,10 +118,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do 'rpc.connect_rpc.error_code' ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'. - cancelled + 'cancelled' - \#{?RPC_CONNECT_RPC_ERROR_CODE => ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'}. - \#{'rpc.connect_rpc.error_code' => cancelled} + \#{?'RPC_CONNECT_RPC_ERROR_CODE' => ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'}. + \#{'rpc.connect_rpc.error_code' => 'cancelled'} ``` @@ -352,10 +352,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code() :"rpc.grpc.status_code" - + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code_values().ok 0 - + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_grpc_status_code_values().ok} %{:"rpc.grpc.status_code" => 0} @@ -366,10 +366,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do 'rpc.grpc.status_code' ?'RPC_GRPC_STATUS_CODE_VALUES_OK'. - 0 + '0' - \#{?RPC_GRPC_STATUS_CODE => ?'RPC_GRPC_STATUS_CODE_VALUES_OK'}. - \#{'rpc.grpc.status_code' => 0} + \#{?'RPC_GRPC_STATUS_CODE' => ?'RPC_GRPC_STATUS_CODE_VALUES_OK'}. + \#{'rpc.grpc.status_code' => '0'} ``` @@ -609,10 +609,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type() :"rpc.message.type" - + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values().sent :SENT - + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_message_type_values().sent} %{:"rpc.message.type" => :SENT} @@ -623,10 +623,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do 'rpc.message.type' ?'RPC_MESSAGE_TYPE_VALUES_SENT'. - SENT + 'SENT' - \#{?RPC_MESSAGE_TYPE => ?'RPC_MESSAGE_TYPE_VALUES_SENT'}. - \#{'rpc.message.type' => SENT} + \#{?'RPC_MESSAGE_TYPE' => ?'RPC_MESSAGE_TYPE_VALUES_SENT'}. + \#{'rpc.message.type' => 'SENT'} ``` @@ -770,10 +770,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system() :"rpc.system" - + iex> OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values().grpc :grpc - + iex> %{OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system() => OpenTelemetry.SemConv.Incubating.RPCAttributes.rpc_system_values().grpc} %{:"rpc.system" => :grpc} @@ -784,10 +784,10 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do 'rpc.system' ?'RPC_SYSTEM_VALUES_GRPC'. - grpc + 'grpc' - \#{?RPC_SYSTEM => ?'RPC_SYSTEM_VALUES_GRPC'}. - \#{'rpc.system' => grpc} + \#{?'RPC_SYSTEM' => ?'RPC_SYSTEM_VALUES_GRPC'}. + \#{'rpc.system' => 'grpc'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex index 59255804..54e3677c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex @@ -72,10 +72,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() :"system.cpu.state" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user :user - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user} %{:"system.cpu.state" => :user} @@ -86,10 +86,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.cpu.state' ?'SYSTEM_CPU_STATE_VALUES_USER'. - user + 'user' - \#{?SYSTEM_CPU_STATE => ?'SYSTEM_CPU_STATE_VALUES_USER'}. - \#{'system.cpu.state' => user} + \#{?'SYSTEM_CPU_STATE' => ?'SYSTEM_CPU_STATE_VALUES_USER'}. + \#{'system.cpu.state' => 'user'} ``` @@ -236,10 +236,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() :"system.filesystem.state" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used :used - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used} %{:"system.filesystem.state" => :used} @@ -250,10 +250,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.filesystem.state' ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'. - used + 'used' - \#{?SYSTEM_FILESYSTEM_STATE => ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'}. - \#{'system.filesystem.state' => used} + \#{?'SYSTEM_FILESYSTEM_STATE' => ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'}. + \#{'system.filesystem.state' => 'used'} ``` @@ -306,10 +306,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() :"system.filesystem.type" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32 :fat32 - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32} %{:"system.filesystem.type" => :fat32} @@ -320,10 +320,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.filesystem.type' ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'. - fat32 + 'fat32' - \#{?SYSTEM_FILESYSTEM_TYPE => ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'}. - \#{'system.filesystem.type' => fat32} + \#{?'SYSTEM_FILESYSTEM_TYPE' => ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'}. + \#{'system.filesystem.type' => 'fat32'} ``` @@ -377,10 +377,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() :"system.memory.state" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used :used - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used} %{:"system.memory.state" => :used} @@ -391,10 +391,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.memory.state' ?'SYSTEM_MEMORY_STATE_VALUES_USED'. - used + 'used' - \#{?SYSTEM_MEMORY_STATE => ?'SYSTEM_MEMORY_STATE_VALUES_USED'}. - \#{'system.memory.state' => used} + \#{?'SYSTEM_MEMORY_STATE' => ?'SYSTEM_MEMORY_STATE_VALUES_USED'}. + \#{'system.memory.state' => 'used'} ``` @@ -461,10 +461,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() :"system.network.state" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close :close - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close} %{:"system.network.state" => :close} @@ -475,10 +475,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.network.state' ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'. - close + 'close' - \#{?SYSTEM_NETWORK_STATE => ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'}. - \#{'system.network.state' => close} + \#{?'SYSTEM_NETWORK_STATE' => ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'}. + \#{'system.network.state' => 'close'} ``` @@ -532,10 +532,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() :"system.paging.direction" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in :in - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in} %{:"system.paging.direction" => :in} @@ -546,10 +546,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.paging.direction' ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'. - in + 'in' - \#{?SYSTEM_PAGING_DIRECTION => ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'}. - \#{'system.paging.direction' => in} + \#{?'SYSTEM_PAGING_DIRECTION' => ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'}. + \#{'system.paging.direction' => 'in'} ``` @@ -593,10 +593,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() :"system.paging.state" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used :used - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used} %{:"system.paging.state" => :used} @@ -607,10 +607,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.paging.state' ?'SYSTEM_PAGING_STATE_VALUES_USED'. - used + 'used' - \#{?SYSTEM_PAGING_STATE => ?'SYSTEM_PAGING_STATE_VALUES_USED'}. - \#{'system.paging.state' => used} + \#{?'SYSTEM_PAGING_STATE' => ?'SYSTEM_PAGING_STATE_VALUES_USED'}. + \#{'system.paging.state' => 'used'} ``` @@ -654,10 +654,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() :"system.paging.type" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major :major - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major} %{:"system.paging.type" => :major} @@ -668,10 +668,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.paging.type' ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'. - major + 'major' - \#{?SYSTEM_PAGING_TYPE => ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'}. - \#{'system.paging.type' => major} + \#{?'SYSTEM_PAGING_TYPE' => ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'}. + \#{'system.paging.type' => 'major'} ``` @@ -721,10 +721,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() :"system.process.status" - + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running :running - + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running} %{:"system.process.status" => :running} @@ -735,10 +735,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do 'system.process.status' ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'. - running + 'running' - \#{?SYSTEM_PROCESS_STATUS => ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'}. - \#{'system.process.status' => running} + \#{?'SYSTEM_PROCESS_STATUS' => ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'}. + \#{'system.process.status' => 'running'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex index 52bcb28c..0a56399e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex @@ -550,10 +550,10 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name() :"tls.protocol.name" - + iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values().ssl :ssl - + iex> %{OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name() => OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_protocol_name_values().ssl} %{:"tls.protocol.name" => :ssl} @@ -564,10 +564,10 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do 'tls.protocol.name' ?'TLS_PROTOCOL_NAME_VALUES_SSL'. - ssl + 'ssl' - \#{?TLS_PROTOCOL_NAME => ?'TLS_PROTOCOL_NAME_VALUES_SSL'}. - \#{'tls.protocol.name' => ssl} + \#{?'TLS_PROTOCOL_NAME' => ?'TLS_PROTOCOL_NAME_VALUES_SSL'}. + \#{'tls.protocol.name' => 'ssl'} ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 4b57c062..172741cc 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -39,7 +39,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do """ @type {{ c.func_name(attribute.name) }}_values() :: {{ c.enum_to_map(attribute.type.members) }} {%- endif -%} - + {% if attribute is deprecated %} @deprecated """ {{ attribute.deprecated | replace("\n", "\n ") }} @@ -74,10 +74,10 @@ defmodule {{ module_namespace }}.{{ module_name }} do iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() {{ c.to_atom(attribute.name) }} - + iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values().{{ attribute.type.members|first|attr('id') }} {{ c.enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }} - + iex> {% raw %}%{{% endraw %}{{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() => {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}_values().{{ attribute.type.members|first|attr('id') }}{% raw %}}{% endraw %} {% raw %}%{{% endraw %}{{ c.to_atom(attribute.name) }} => {{ c.enum_value_to_elixir_type(attribute.type.members|first|attr('value')) }}{% raw %}}{% endraw %} @@ -88,13 +88,13 @@ defmodule {{ module_namespace }}.{{ module_name }} do '{{ attribute.name }}' ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'. - {{ attribute.type.members|first|attr('value') }} - - {% raw %}\#{{% endraw %}?{{ c.erl_attr_name(attribute.name) }} => ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'{% raw %}}{% endraw %}. - {% raw %}\#{{% endraw %}'{{ attribute.name }}' => {{ attribute.type.members|first|attr('value') }}{% raw %}}{% endraw %} + '{{ attribute.type.members|first|attr('value') }}' + + {% raw %}\#{{% endraw %}?'{{ c.erl_attr_name(attribute.name) }}' => ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}'{{ attribute.name }}' => '{{ attribute.type.members|first|attr('value') }}'{% raw %}}{% endraw %} ``` {%- else %} - + ### Elixir iex> {{ module_namespace }}.{{ module_name }}.{{ c.func_name(attribute.name) }}() @@ -115,7 +115,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do def {{ c.func_name(attribute.name) }} do {{ c.to_atom(attribute.name) }} end - + {%- if attribute.type is mapping %} @spec {{ c.func_name(attribute.name) }}_values() :: {{ c.func_name(attribute.name) }}_values() def {{ c.func_name(attribute.name) }}_values() do @@ -123,4 +123,4 @@ defmodule {{ module_namespace }}.{{ module_name }} do end {%- endif %} {% endfor %} -end \ No newline at end of file +end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index a6ac17f8..f0e71c9e 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -16,7 +16,7 @@ %% limitations under the License. %%%------------------------------------------------------------------------- {%- if params.stability == "experimental" and (ctx.all_attributes | length) > (ctx.attributes | length) %} --include("attributes/{{ c.file_name(ctx.id) }}_attributes.hrl"). +-include_lib("opentelemetry_semantic_conventions/include/attributes/{{ c.file_name(ctx.id) }}_attributes.hrl"). {% endif -%} {%- for attribute in ctx.attributes | sort(attribute="name") %} {% if attribute is deprecated -%} From f377d87be815c2ffd73281a6fdf3015aa02982b1 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 17 Aug 2024 11:31:25 -0600 Subject: [PATCH 52/57] Remove unnecessary erl macro def quotes --- .../include/attributes/client_attributes.hrl | 4 +- .../include/attributes/error_attributes.hrl | 4 +- .../attributes/exception_attributes.hrl | 8 +- .../include/attributes/http_attributes.hrl | 34 +-- .../include/attributes/network_attributes.hrl | 28 +- .../include/attributes/otel_attributes.hrl | 12 +- .../include/attributes/server_attributes.hrl | 4 +- .../include/attributes/service_attributes.hrl | 4 +- .../attributes/telemetry_attributes.hrl | 30 +-- .../include/attributes/url_attributes.hrl | 10 +- .../attributes/user_agent_attributes.hrl | 2 +- .../incubating/attributes/aws_attributes.hrl | 88 +++---- .../attributes/browser_attributes.hrl | 8 +- .../attributes/cloud_attributes.hrl | 82 +++--- .../attributes/cloudevents_attributes.hrl | 10 +- .../incubating/attributes/code_attributes.hrl | 12 +- .../attributes/container_attributes.hrl | 32 +-- .../incubating/attributes/db_attributes.hrl | 246 +++++++++--------- .../attributes/deployment_attributes.hrl | 2 +- .../attributes/destination_attributes.hrl | 4 +- .../attributes/device_attributes.hrl | 8 +- .../incubating/attributes/disk_attributes.hrl | 6 +- .../incubating/attributes/dns_attributes.hrl | 2 +- .../attributes/enduser_attributes.hrl | 6 +- .../attributes/event_attributes.hrl | 2 +- .../incubating/attributes/faas_attributes.hrl | 58 ++--- .../attributes/feature_flag_attributes.hrl | 6 +- .../incubating/attributes/file_attributes.hrl | 10 +- .../incubating/attributes/gcp_attributes.hrl | 8 +- .../attributes/gen_ai_attributes.hrl | 26 +- .../attributes/graphql_attributes.hrl | 12 +- .../attributes/heroku_attributes.hrl | 6 +- .../incubating/attributes/host_attributes.hrl | 46 ++-- .../incubating/attributes/http_attributes.hrl | 54 ++-- .../incubating/attributes/k8s_attributes.hrl | 50 ++-- .../incubating/attributes/log_attributes.hrl | 16 +- .../attributes/messaging_attributes.hrl | 136 +++++----- .../attributes/network_attributes.hrl | 116 ++++----- .../incubating/attributes/oci_attributes.hrl | 2 +- .../attributes/opentracing_attributes.hrl | 6 +- .../incubating/attributes/os_attributes.hrl | 32 +-- .../incubating/attributes/otel_attributes.hrl | 4 +- .../incubating/attributes/peer_attributes.hrl | 2 +- .../attributes/process_attributes.hrl | 68 ++--- .../incubating/attributes/rpc_attributes.hrl | 126 ++++----- .../attributes/service_attributes.hrl | 4 +- .../attributes/session_attributes.hrl | 4 +- .../attributes/source_attributes.hrl | 4 +- .../attributes/system_attributes.hrl | 122 ++++----- .../attributes/telemetry_attributes.hrl | 4 +- .../attributes/thread_attributes.hrl | 4 +- .../incubating/attributes/tls_attributes.hrl | 62 ++--- .../incubating/attributes/url_attributes.hrl | 16 +- .../attributes/user_agent_attributes.hrl | 4 +- .../attributes/webengine_attributes.hrl | 6 +- .../incubating/metrics/container_metrics.hrl | 8 +- .../include/incubating/metrics/db_metrics.hrl | 38 +-- .../incubating/metrics/dns_metrics.hrl | 2 +- .../incubating/metrics/faas_metrics.hrl | 18 +- .../incubating/metrics/http_metrics.hrl | 16 +- .../incubating/metrics/messaging_metrics.hrl | 12 +- .../incubating/metrics/process_metrics.hrl | 20 +- .../incubating/metrics/rpc_metrics.hrl | 20 +- .../incubating/metrics/system_metrics.hrl | 56 ++-- .../include/metrics/http_metrics.hrl | 4 +- .../lib/attributes/client_attributes.ex | 4 +- .../lib/attributes/error_attributes.ex | 6 +- .../lib/attributes/exception_attributes.ex | 8 +- .../lib/attributes/http_attributes.ex | 18 +- .../lib/attributes/network_attributes.ex | 24 +- .../lib/attributes/otel_attributes.ex | 12 +- .../lib/attributes/server_attributes.ex | 4 +- .../lib/attributes/service_attributes.ex | 4 +- .../lib/attributes/telemetry_attributes.ex | 10 +- .../lib/attributes/url_attributes.ex | 10 +- .../lib/attributes/user_agent_attributes.ex | 2 +- .../incubating/attributes/aws_attributes.ex | 88 +++---- .../attributes/browser_attributes.ex | 8 +- .../incubating/attributes/cloud_attributes.ex | 20 +- .../attributes/cloudevents_attributes.ex | 10 +- .../incubating/attributes/code_attributes.ex | 12 +- .../attributes/container_attributes.ex | 28 +- .../incubating/attributes/db_attributes.ex | 68 ++--- .../attributes/deployment_attributes.ex | 2 +- .../attributes/destination_attributes.ex | 4 +- .../attributes/device_attributes.ex | 8 +- .../incubating/attributes/disk_attributes.ex | 6 +- .../incubating/attributes/dns_attributes.ex | 2 +- .../attributes/enduser_attributes.ex | 6 +- .../incubating/attributes/event_attributes.ex | 2 +- .../incubating/attributes/faas_attributes.ex | 44 ++-- .../attributes/feature_flag_attributes.ex | 6 +- .../incubating/attributes/file_attributes.ex | 10 +- .../incubating/attributes/gcp_attributes.ex | 8 +- .../attributes/gen_ai_attributes.ex | 28 +- .../attributes/graphql_attributes.ex | 10 +- .../attributes/heroku_attributes.ex | 6 +- .../incubating/attributes/host_attributes.ex | 34 +-- .../incubating/attributes/http_attributes.ex | 14 +- .../incubating/attributes/k8s_attributes.ex | 48 ++-- .../incubating/attributes/log_attributes.ex | 16 +- .../attributes/messaging_attributes.ex | 102 ++++---- .../attributes/network_attributes.ex | 26 +- .../incubating/attributes/oci_attributes.ex | 2 +- .../attributes/opentracing_attributes.ex | 6 +- .../incubating/attributes/os_attributes.ex | 14 +- .../incubating/attributes/peer_attributes.ex | 2 +- .../attributes/process_attributes.ex | 66 ++--- .../incubating/attributes/rpc_attributes.ex | 50 ++-- .../attributes/service_attributes.ex | 4 +- .../attributes/session_attributes.ex | 4 +- .../attributes/source_attributes.ex | 4 +- .../attributes/system_attributes.ex | 62 ++--- .../attributes/telemetry_attributes.ex | 4 +- .../attributes/thread_attributes.ex | 4 +- .../incubating/attributes/tls_attributes.ex | 62 ++--- .../incubating/attributes/url_attributes.ex | 16 +- .../attributes/user_agent_attributes.ex | 4 +- .../attributes/webengine_attributes.ex | 6 +- .../incubating/metrics/container_metrics.ex | 8 +- .../lib/incubating/metrics/db_metrics.ex | 20 +- .../lib/incubating/metrics/dns_metrics.ex | 2 +- .../lib/incubating/metrics/faas_metrics.ex | 18 +- .../lib/incubating/metrics/http_metrics.ex | 16 +- .../incubating/metrics/messaging_metrics.ex | 12 +- .../lib/incubating/metrics/process_metrics.ex | 20 +- .../lib/incubating/metrics/rpc_metrics.ex | 20 +- .../lib/incubating/metrics/system_metrics.ex | 56 ++-- .../lib/metrics/http_metrics.ex | 4 +- .../registry/elixir/semantic_attributes.ex.j2 | 8 +- .../registry/elixir/semantic_metrics.ex.j2 | 6 +- .../erlang/semantic_attributes.hrl.j2 | 4 +- .../registry/erlang/semantic_metrics.hrl.j2 | 2 +- 133 files changed, 1540 insertions(+), 1540 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/client_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/client_attributes.hrl index 760de3b0..193bca86 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/client_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/client_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define('CLIENT_ADDRESS', 'client.address'). +-define(CLIENT_ADDRESS, 'client.address'). %% Client port number. --define('CLIENT_PORT', 'client.port'). +-define(CLIENT_PORT, 'client.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/error_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/error_attributes.hrl index 39ae5373..640a982f 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/error_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/error_attributes.hrl @@ -16,7 +16,7 @@ %% Describes a class of error the operation ended with. %% --define('ERROR_TYPE', 'error.type'). +-define(ERROR_TYPE, 'error.type'). --define('ERROR_TYPE_VALUES_OTHER', '_OTHER'). +-define(ERROR_TYPE_VALUES_OTHER, '_OTHER'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl index 579cc674..fee6dd17 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/exception_attributes.hrl @@ -16,18 +16,18 @@ %% SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. %% --define('EXCEPTION_ESCAPED', 'exception.escaped'). +-define(EXCEPTION_ESCAPED, 'exception.escaped'). %% The exception message. --define('EXCEPTION_MESSAGE', 'exception.message'). +-define(EXCEPTION_MESSAGE, 'exception.message'). %% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. %% --define('EXCEPTION_STACKTRACE', 'exception.stacktrace'). +-define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). %% The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. %% --define('EXCEPTION_TYPE', 'exception.type'). +-define(EXCEPTION_TYPE, 'exception.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl index 0b887b38..014d1d70 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/http_attributes.hrl @@ -16,52 +16,52 @@ %% HTTP request headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. %% --define('HTTP_REQUEST_HEADER', 'http.request.header'). +-define(HTTP_REQUEST_HEADER, 'http.request.header'). %% HTTP request method. --define('HTTP_REQUEST_METHOD', 'http.request.method'). +-define(HTTP_REQUEST_METHOD, 'http.request.method'). --define('HTTP_REQUEST_METHOD_VALUES_CONNECT', 'CONNECT'). +-define(HTTP_REQUEST_METHOD_VALUES_CONNECT, 'CONNECT'). --define('HTTP_REQUEST_METHOD_VALUES_DELETE', 'DELETE'). +-define(HTTP_REQUEST_METHOD_VALUES_DELETE, 'DELETE'). --define('HTTP_REQUEST_METHOD_VALUES_GET', 'GET'). +-define(HTTP_REQUEST_METHOD_VALUES_GET, 'GET'). --define('HTTP_REQUEST_METHOD_VALUES_HEAD', 'HEAD'). +-define(HTTP_REQUEST_METHOD_VALUES_HEAD, 'HEAD'). --define('HTTP_REQUEST_METHOD_VALUES_OPTIONS', 'OPTIONS'). +-define(HTTP_REQUEST_METHOD_VALUES_OPTIONS, 'OPTIONS'). --define('HTTP_REQUEST_METHOD_VALUES_PATCH', 'PATCH'). +-define(HTTP_REQUEST_METHOD_VALUES_PATCH, 'PATCH'). --define('HTTP_REQUEST_METHOD_VALUES_POST', 'POST'). +-define(HTTP_REQUEST_METHOD_VALUES_POST, 'POST'). --define('HTTP_REQUEST_METHOD_VALUES_PUT', 'PUT'). +-define(HTTP_REQUEST_METHOD_VALUES_PUT, 'PUT'). --define('HTTP_REQUEST_METHOD_VALUES_TRACE', 'TRACE'). +-define(HTTP_REQUEST_METHOD_VALUES_TRACE, 'TRACE'). --define('HTTP_REQUEST_METHOD_VALUES_OTHER', '_OTHER'). +-define(HTTP_REQUEST_METHOD_VALUES_OTHER, '_OTHER'). %% Original HTTP method sent by the client in the request line. --define('HTTP_REQUEST_METHOD_ORIGINAL', 'http.request.method_original'). +-define(HTTP_REQUEST_METHOD_ORIGINAL, 'http.request.method_original'). %% The ordinal number of request resending attempt (for any reason, including redirects). %% --define('HTTP_REQUEST_RESEND_COUNT', 'http.request.resend_count'). +-define(HTTP_REQUEST_RESEND_COUNT, 'http.request.resend_count'). %% HTTP response headers, `` being the normalized HTTP Header name (lowercase), the value being the header values. %% --define('HTTP_RESPONSE_HEADER', 'http.response.header'). +-define(HTTP_RESPONSE_HEADER, 'http.response.header'). %% [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). --define('HTTP_RESPONSE_STATUS_CODE', 'http.response.status_code'). +-define(HTTP_RESPONSE_STATUS_CODE, 'http.response.status_code'). %% The matched route, that is, the path template in the format used by the respective server framework. %% --define('HTTP_ROUTE', 'http.route'). +-define(HTTP_ROUTE, 'http.route'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl index f26e442b..bbd2e7fa 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl @@ -15,47 +15,47 @@ %%%------------------------------------------------------------------------- %% Local address of the network connection - IP address or Unix domain socket name. --define('NETWORK_LOCAL_ADDRESS', 'network.local.address'). +-define(NETWORK_LOCAL_ADDRESS, 'network.local.address'). %% Local port number of the network connection. --define('NETWORK_LOCAL_PORT', 'network.local.port'). +-define(NETWORK_LOCAL_PORT, 'network.local.port'). %% Peer address of the network connection - IP address or Unix domain socket name. --define('NETWORK_PEER_ADDRESS', 'network.peer.address'). +-define(NETWORK_PEER_ADDRESS, 'network.peer.address'). %% Peer port number of the network connection. --define('NETWORK_PEER_PORT', 'network.peer.port'). +-define(NETWORK_PEER_PORT, 'network.peer.port'). %% [OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent. --define('NETWORK_PROTOCOL_NAME', 'network.protocol.name'). +-define(NETWORK_PROTOCOL_NAME, 'network.protocol.name'). %% The actual version of the protocol used for network communication. --define('NETWORK_PROTOCOL_VERSION', 'network.protocol.version'). +-define(NETWORK_PROTOCOL_VERSION, 'network.protocol.version'). %% [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). %% --define('NETWORK_TRANSPORT', 'network.transport'). +-define(NETWORK_TRANSPORT, 'network.transport'). --define('NETWORK_TRANSPORT_VALUES_TCP', 'tcp'). +-define(NETWORK_TRANSPORT_VALUES_TCP, 'tcp'). --define('NETWORK_TRANSPORT_VALUES_UDP', 'udp'). +-define(NETWORK_TRANSPORT_VALUES_UDP, 'udp'). --define('NETWORK_TRANSPORT_VALUES_PIPE', 'pipe'). +-define(NETWORK_TRANSPORT_VALUES_PIPE, 'pipe'). --define('NETWORK_TRANSPORT_VALUES_UNIX', 'unix'). +-define(NETWORK_TRANSPORT_VALUES_UNIX, 'unix'). %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. --define('NETWORK_TYPE', 'network.type'). +-define(NETWORK_TYPE, 'network.type'). --define('NETWORK_TYPE_VALUES_IPV_4', 'ipv4'). +-define(NETWORK_TYPE_VALUES_IPV_4, 'ipv4'). --define('NETWORK_TYPE_VALUES_IPV_6', 'ipv6'). +-define(NETWORK_TYPE_VALUES_IPV_6, 'ipv6'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/otel_attributes.hrl index cc6a90ba..6374bdec 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/otel_attributes.hrl @@ -15,21 +15,21 @@ %%%------------------------------------------------------------------------- %% The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). --define('OTEL_SCOPE_NAME', 'otel.scope.name'). +-define(OTEL_SCOPE_NAME, 'otel.scope.name'). %% The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). --define('OTEL_SCOPE_VERSION', 'otel.scope.version'). +-define(OTEL_SCOPE_VERSION, 'otel.scope.version'). %% Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. --define('OTEL_STATUS_CODE', 'otel.status_code'). +-define(OTEL_STATUS_CODE, 'otel.status_code'). --define('OTEL_STATUS_CODE_VALUES_OK', 'OK'). +-define(OTEL_STATUS_CODE_VALUES_OK, 'OK'). --define('OTEL_STATUS_CODE_VALUES_ERROR', 'ERROR'). +-define(OTEL_STATUS_CODE_VALUES_ERROR, 'ERROR'). %% Description of the Status if it has a value, otherwise not set. --define('OTEL_STATUS_DESCRIPTION', 'otel.status_description'). +-define(OTEL_STATUS_DESCRIPTION, 'otel.status_description'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/server_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/server_attributes.hrl index 4e0c99c0..0b31242b 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/server_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/server_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define('SERVER_ADDRESS', 'server.address'). +-define(SERVER_ADDRESS, 'server.address'). %% Server port number. --define('SERVER_PORT', 'server.port'). +-define(SERVER_PORT, 'server.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl index 8e9ec5d1..5a9422ad 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/service_attributes.hrl @@ -16,9 +16,9 @@ %% Logical name of the service. %% --define('SERVICE_NAME', 'service.name'). +-define(SERVICE_NAME, 'service.name'). %% The version string of the service API or implementation. The format is not defined by these conventions. %% --define('SERVICE_VERSION', 'service.version'). +-define(SERVICE_VERSION, 'service.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl index fbee75a0..85295608 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/telemetry_attributes.hrl @@ -16,39 +16,39 @@ %% The language of the telemetry SDK. %% --define('TELEMETRY_SDK_LANGUAGE', 'telemetry.sdk.language'). +-define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_CPP', 'cpp'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_CPP, 'cpp'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_DOTNET', 'dotnet'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_DOTNET, 'dotnet'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_ERLANG', 'erlang'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_ERLANG, 'erlang'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_GO', 'go'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_GO, 'go'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_JAVA', 'java'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_JAVA, 'java'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_NODEJS', 'nodejs'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_NODEJS, 'nodejs'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_PHP', 'php'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_PHP, 'php'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_PYTHON', 'python'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_PYTHON, 'python'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_RUBY', 'ruby'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_RUBY, 'ruby'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_RUST', 'rust'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_RUST, 'rust'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_SWIFT', 'swift'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_SWIFT, 'swift'). --define('TELEMETRY_SDK_LANGUAGE_VALUES_WEBJS', 'webjs'). +-define(TELEMETRY_SDK_LANGUAGE_VALUES_WEBJS, 'webjs'). %% The name of the telemetry SDK as defined above. %% --define('TELEMETRY_SDK_NAME', 'telemetry.sdk.name'). +-define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). %% The version string of the telemetry SDK. %% --define('TELEMETRY_SDK_VERSION', 'telemetry.sdk.version'). +-define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl index 05eae884..de20e51b 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/url_attributes.hrl @@ -16,23 +16,23 @@ %% The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component %% --define('URL_FRAGMENT', 'url.fragment'). +-define(URL_FRAGMENT, 'url.fragment'). %% Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) --define('URL_FULL', 'url.full'). +-define(URL_FULL, 'url.full'). %% The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component %% --define('URL_PATH', 'url.path'). +-define(URL_PATH, 'url.path'). %% The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component %% --define('URL_QUERY', 'url.query'). +-define(URL_QUERY, 'url.query'). %% The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. %% --define('URL_SCHEME', 'url.scheme'). +-define(URL_SCHEME, 'url.scheme'). diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl index f96a1b56..611dee21 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/user_agent_attributes.hrl @@ -16,4 +16,4 @@ %% Value of the [HTTP User-Agent](https://www.rfc-editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client. %% --define('USER_AGENT_ORIGINAL', 'user_agent.original'). +-define(USER_AGENT_ORIGINAL, 'user_agent.original'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl index 3ebabe16..a89d28fa 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl @@ -15,186 +15,186 @@ %%%------------------------------------------------------------------------- %% The JSON-serialized value of each item in the `AttributeDefinitions` request field. --define('AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS', 'aws.dynamodb.attribute_definitions'). +-define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). %% The value of the `AttributesToGet` request parameter. --define('AWS_DYNAMODB_ATTRIBUTES_TO_GET', 'aws.dynamodb.attributes_to_get'). +-define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). %% The value of the `ConsistentRead` request parameter. --define('AWS_DYNAMODB_CONSISTENT_READ', 'aws.dynamodb.consistent_read'). +-define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). %% The JSON-serialized value of each item in the `ConsumedCapacity` response field. --define('AWS_DYNAMODB_CONSUMED_CAPACITY', 'aws.dynamodb.consumed_capacity'). +-define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). %% The value of the `Count` response parameter. --define('AWS_DYNAMODB_COUNT', 'aws.dynamodb.count'). +-define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). %% The value of the `ExclusiveStartTableName` request parameter. --define('AWS_DYNAMODB_EXCLUSIVE_START_TABLE', 'aws.dynamodb.exclusive_start_table'). +-define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). %% The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. --define('AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES', 'aws.dynamodb.global_secondary_index_updates'). +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). %% The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field --define('AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES', 'aws.dynamodb.global_secondary_indexes'). +-define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). %% The value of the `IndexName` request parameter. --define('AWS_DYNAMODB_INDEX_NAME', 'aws.dynamodb.index_name'). +-define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). %% The JSON-serialized value of the `ItemCollectionMetrics` response field. --define('AWS_DYNAMODB_ITEM_COLLECTION_METRICS', 'aws.dynamodb.item_collection_metrics'). +-define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). %% The value of the `Limit` request parameter. --define('AWS_DYNAMODB_LIMIT', 'aws.dynamodb.limit'). +-define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). %% The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. --define('AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES', 'aws.dynamodb.local_secondary_indexes'). +-define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). %% The value of the `ProjectionExpression` request parameter. --define('AWS_DYNAMODB_PROJECTION', 'aws.dynamodb.projection'). +-define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). %% The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. --define('AWS_DYNAMODB_PROVISIONED_READ_CAPACITY', 'aws.dynamodb.provisioned_read_capacity'). +-define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). %% The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. --define('AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY', 'aws.dynamodb.provisioned_write_capacity'). +-define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). %% The value of the `ScanIndexForward` request parameter. --define('AWS_DYNAMODB_SCAN_FORWARD', 'aws.dynamodb.scan_forward'). +-define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). %% The value of the `ScannedCount` response parameter. --define('AWS_DYNAMODB_SCANNED_COUNT', 'aws.dynamodb.scanned_count'). +-define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). %% The value of the `Segment` request parameter. --define('AWS_DYNAMODB_SEGMENT', 'aws.dynamodb.segment'). +-define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). %% The value of the `Select` request parameter. --define('AWS_DYNAMODB_SELECT', 'aws.dynamodb.select'). +-define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). %% The number of items in the `TableNames` response parameter. --define('AWS_DYNAMODB_TABLE_COUNT', 'aws.dynamodb.table_count'). +-define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). %% The keys in the `RequestItems` object field. --define('AWS_DYNAMODB_TABLE_NAMES', 'aws.dynamodb.table_names'). +-define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). %% The value of the `TotalSegments` request parameter. --define('AWS_DYNAMODB_TOTAL_SEGMENTS', 'aws.dynamodb.total_segments'). +-define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). %% The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). %% --define('AWS_ECS_CLUSTER_ARN', 'aws.ecs.cluster.arn'). +-define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). %% The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). %% --define('AWS_ECS_CONTAINER_ARN', 'aws.ecs.container.arn'). +-define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). %% The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. %% --define('AWS_ECS_LAUNCHTYPE', 'aws.ecs.launchtype'). +-define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). --define('AWS_ECS_LAUNCHTYPE_VALUES_EC_2', 'ec2'). +-define(AWS_ECS_LAUNCHTYPE_VALUES_EC_2, 'ec2'). --define('AWS_ECS_LAUNCHTYPE_VALUES_FARGATE', 'fargate'). +-define(AWS_ECS_LAUNCHTYPE_VALUES_FARGATE, 'fargate'). %% The ARN of a running [ECS task](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html#ecs-resource-ids). %% --define('AWS_ECS_TASK_ARN', 'aws.ecs.task.arn'). +-define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). %% 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. %% --define('AWS_ECS_TASK_FAMILY', 'aws.ecs.task.family'). +-define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). %% The ID of a running ECS task. The ID MUST be extracted from `task.arn`. %% --define('AWS_ECS_TASK_ID', 'aws.ecs.task.id'). +-define(AWS_ECS_TASK_ID, 'aws.ecs.task.id'). %% The revision for the task definition used to create the ECS task. %% --define('AWS_ECS_TASK_REVISION', 'aws.ecs.task.revision'). +-define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). %% The ARN of an EKS cluster. %% --define('AWS_EKS_CLUSTER_ARN', 'aws.eks.cluster.arn'). +-define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). %% 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). %% --define('AWS_LAMBDA_INVOKED_ARN', 'aws.lambda.invoked_arn'). +-define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). %% The Amazon Resource Name(s) (ARN) of the AWS log group(s). %% --define('AWS_LOG_GROUP_ARNS', 'aws.log.group.arns'). +-define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). %% The name(s) of the AWS log group(s) an application is writing to. %% --define('AWS_LOG_GROUP_NAMES', 'aws.log.group.names'). +-define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). %% The ARN(s) of the AWS log stream(s). %% --define('AWS_LOG_STREAM_ARNS', 'aws.log.stream.arns'). +-define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). %% The name(s) of the AWS log stream(s) an application is writing to. %% --define('AWS_LOG_STREAM_NAMES', 'aws.log.stream.names'). +-define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). %% The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. --define('AWS_REQUEST_ID', 'aws.request_id'). +-define(AWS_REQUEST_ID, 'aws.request_id'). %% 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. --define('AWS_S3_BUCKET', 'aws.s3.bucket'). +-define(AWS_S3_BUCKET, 'aws.s3.bucket'). %% The source object (in the form `bucket`/`key`) for the copy operation. --define('AWS_S3_COPY_SOURCE', 'aws.s3.copy_source'). +-define(AWS_S3_COPY_SOURCE, 'aws.s3.copy_source'). %% The delete request container that specifies the objects to be deleted. --define('AWS_S3_DELETE', 'aws.s3.delete'). +-define(AWS_S3_DELETE, 'aws.s3.delete'). %% 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. --define('AWS_S3_KEY', 'aws.s3.key'). +-define(AWS_S3_KEY, 'aws.s3.key'). %% The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. --define('AWS_S3_PART_NUMBER', 'aws.s3.part_number'). +-define(AWS_S3_PART_NUMBER, 'aws.s3.part_number'). %% Upload ID that identifies the multipart upload. --define('AWS_S3_UPLOAD_ID', 'aws.s3.upload_id'). +-define(AWS_S3_UPLOAD_ID, 'aws.s3.upload_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/browser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/browser_attributes.hrl index a6d274a0..a016ca03 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/browser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/browser_attributes.hrl @@ -15,16 +15,16 @@ %%%------------------------------------------------------------------------- %% Array of brand name and version separated by a space --define('BROWSER_BRANDS', 'browser.brands'). +-define(BROWSER_BRANDS, 'browser.brands'). %% Preferred language of the user using the browser --define('BROWSER_LANGUAGE', 'browser.language'). +-define(BROWSER_LANGUAGE, 'browser.language'). %% A boolean that is true if the browser is running on a mobile device --define('BROWSER_MOBILE', 'browser.mobile'). +-define(BROWSER_MOBILE, 'browser.mobile'). %% The platform on which the browser is running --define('BROWSER_PLATFORM', 'browser.platform'). +-define(BROWSER_PLATFORM, 'browser.platform'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl index 17b72784..33862098 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl @@ -16,101 +16,101 @@ %% The cloud account ID the resource is assigned to. %% --define('CLOUD_ACCOUNT_ID', 'cloud.account.id'). +-define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). %% Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. %% --define('CLOUD_AVAILABILITY_ZONE', 'cloud.availability_zone'). +-define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). %% The cloud platform in use. %% --define('CLOUD_PLATFORM', 'cloud.platform'). +-define(CLOUD_PLATFORM, 'cloud.platform'). --define('CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS', 'alibaba_cloud_ecs'). +-define(CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS, 'alibaba_cloud_ecs'). --define('CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_FC', 'alibaba_cloud_fc'). +-define(CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_FC, 'alibaba_cloud_fc'). --define('CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_OPENSHIFT', 'alibaba_cloud_openshift'). +-define(CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_OPENSHIFT, 'alibaba_cloud_openshift'). --define('CLOUD_PLATFORM_VALUES_AWS_EC_2', 'aws_ec2'). +-define(CLOUD_PLATFORM_VALUES_AWS_EC_2, 'aws_ec2'). --define('CLOUD_PLATFORM_VALUES_AWS_ECS', 'aws_ecs'). +-define(CLOUD_PLATFORM_VALUES_AWS_ECS, 'aws_ecs'). --define('CLOUD_PLATFORM_VALUES_AWS_EKS', 'aws_eks'). +-define(CLOUD_PLATFORM_VALUES_AWS_EKS, 'aws_eks'). --define('CLOUD_PLATFORM_VALUES_AWS_LAMBDA', 'aws_lambda'). +-define(CLOUD_PLATFORM_VALUES_AWS_LAMBDA, 'aws_lambda'). --define('CLOUD_PLATFORM_VALUES_AWS_ELASTIC_BEANSTALK', 'aws_elastic_beanstalk'). +-define(CLOUD_PLATFORM_VALUES_AWS_ELASTIC_BEANSTALK, 'aws_elastic_beanstalk'). --define('CLOUD_PLATFORM_VALUES_AWS_APP_RUNNER', 'aws_app_runner'). +-define(CLOUD_PLATFORM_VALUES_AWS_APP_RUNNER, 'aws_app_runner'). --define('CLOUD_PLATFORM_VALUES_AWS_OPENSHIFT', 'aws_openshift'). +-define(CLOUD_PLATFORM_VALUES_AWS_OPENSHIFT, 'aws_openshift'). --define('CLOUD_PLATFORM_VALUES_AZURE_VM', 'azure_vm'). +-define(CLOUD_PLATFORM_VALUES_AZURE_VM, 'azure_vm'). --define('CLOUD_PLATFORM_VALUES_AZURE_CONTAINER_APPS', 'azure_container_apps'). +-define(CLOUD_PLATFORM_VALUES_AZURE_CONTAINER_APPS, 'azure_container_apps'). --define('CLOUD_PLATFORM_VALUES_AZURE_CONTAINER_INSTANCES', 'azure_container_instances'). +-define(CLOUD_PLATFORM_VALUES_AZURE_CONTAINER_INSTANCES, 'azure_container_instances'). --define('CLOUD_PLATFORM_VALUES_AZURE_AKS', 'azure_aks'). +-define(CLOUD_PLATFORM_VALUES_AZURE_AKS, 'azure_aks'). --define('CLOUD_PLATFORM_VALUES_AZURE_FUNCTIONS', 'azure_functions'). +-define(CLOUD_PLATFORM_VALUES_AZURE_FUNCTIONS, 'azure_functions'). --define('CLOUD_PLATFORM_VALUES_AZURE_APP_SERVICE', 'azure_app_service'). +-define(CLOUD_PLATFORM_VALUES_AZURE_APP_SERVICE, 'azure_app_service'). --define('CLOUD_PLATFORM_VALUES_AZURE_OPENSHIFT', 'azure_openshift'). +-define(CLOUD_PLATFORM_VALUES_AZURE_OPENSHIFT, 'azure_openshift'). --define('CLOUD_PLATFORM_VALUES_GCP_BARE_METAL_SOLUTION', 'gcp_bare_metal_solution'). +-define(CLOUD_PLATFORM_VALUES_GCP_BARE_METAL_SOLUTION, 'gcp_bare_metal_solution'). --define('CLOUD_PLATFORM_VALUES_GCP_COMPUTE_ENGINE', 'gcp_compute_engine'). +-define(CLOUD_PLATFORM_VALUES_GCP_COMPUTE_ENGINE, 'gcp_compute_engine'). --define('CLOUD_PLATFORM_VALUES_GCP_CLOUD_RUN', 'gcp_cloud_run'). +-define(CLOUD_PLATFORM_VALUES_GCP_CLOUD_RUN, 'gcp_cloud_run'). --define('CLOUD_PLATFORM_VALUES_GCP_KUBERNETES_ENGINE', 'gcp_kubernetes_engine'). +-define(CLOUD_PLATFORM_VALUES_GCP_KUBERNETES_ENGINE, 'gcp_kubernetes_engine'). --define('CLOUD_PLATFORM_VALUES_GCP_CLOUD_FUNCTIONS', 'gcp_cloud_functions'). +-define(CLOUD_PLATFORM_VALUES_GCP_CLOUD_FUNCTIONS, 'gcp_cloud_functions'). --define('CLOUD_PLATFORM_VALUES_GCP_APP_ENGINE', 'gcp_app_engine'). +-define(CLOUD_PLATFORM_VALUES_GCP_APP_ENGINE, 'gcp_app_engine'). --define('CLOUD_PLATFORM_VALUES_GCP_OPENSHIFT', 'gcp_openshift'). +-define(CLOUD_PLATFORM_VALUES_GCP_OPENSHIFT, 'gcp_openshift'). --define('CLOUD_PLATFORM_VALUES_IBM_CLOUD_OPENSHIFT', 'ibm_cloud_openshift'). +-define(CLOUD_PLATFORM_VALUES_IBM_CLOUD_OPENSHIFT, 'ibm_cloud_openshift'). --define('CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_CVM', 'tencent_cloud_cvm'). +-define(CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_CVM, 'tencent_cloud_cvm'). --define('CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_EKS', 'tencent_cloud_eks'). +-define(CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_EKS, 'tencent_cloud_eks'). --define('CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_SCF', 'tencent_cloud_scf'). +-define(CLOUD_PLATFORM_VALUES_TENCENT_CLOUD_SCF, 'tencent_cloud_scf'). %% Name of the cloud provider. %% --define('CLOUD_PROVIDER', 'cloud.provider'). +-define(CLOUD_PROVIDER, 'cloud.provider'). --define('CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD', 'alibaba_cloud'). +-define(CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD, 'alibaba_cloud'). --define('CLOUD_PROVIDER_VALUES_AWS', 'aws'). +-define(CLOUD_PROVIDER_VALUES_AWS, 'aws'). --define('CLOUD_PROVIDER_VALUES_AZURE', 'azure'). +-define(CLOUD_PROVIDER_VALUES_AZURE, 'azure'). --define('CLOUD_PROVIDER_VALUES_GCP', 'gcp'). +-define(CLOUD_PROVIDER_VALUES_GCP, 'gcp'). --define('CLOUD_PROVIDER_VALUES_HEROKU', 'heroku'). +-define(CLOUD_PROVIDER_VALUES_HEROKU, 'heroku'). --define('CLOUD_PROVIDER_VALUES_IBM_CLOUD', 'ibm_cloud'). +-define(CLOUD_PROVIDER_VALUES_IBM_CLOUD, 'ibm_cloud'). --define('CLOUD_PROVIDER_VALUES_TENCENT_CLOUD', 'tencent_cloud'). +-define(CLOUD_PROVIDER_VALUES_TENCENT_CLOUD, 'tencent_cloud'). %% The geographical region the resource is running. %% --define('CLOUD_REGION', 'cloud.region'). +-define(CLOUD_REGION, 'cloud.region'). %% 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://cloud.google.com/apis/design/resource_names#full_resource_name) on GCP) %% --define('CLOUD_RESOURCE_ID', 'cloud.resource_id'). +-define(CLOUD_RESOURCE_ID, 'cloud.resource_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloudevents_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloudevents_attributes.hrl index d84aa256..97ef4a27 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloudevents_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloudevents_attributes.hrl @@ -16,24 +16,24 @@ %% The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. %% --define('CLOUDEVENTS_EVENT_ID', 'cloudevents.event_id'). +-define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). %% The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. %% --define('CLOUDEVENTS_EVENT_SOURCE', 'cloudevents.event_source'). +-define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). %% The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. %% --define('CLOUDEVENTS_EVENT_SPEC_VERSION', 'cloudevents.event_spec_version'). +-define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). %% 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). %% --define('CLOUDEVENTS_EVENT_SUBJECT', 'cloudevents.event_subject'). +-define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). %% 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. %% --define('CLOUDEVENTS_EVENT_TYPE', 'cloudevents.event_type'). +-define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/code_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/code_attributes.hrl index 59c566b0..8500b126 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/code_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/code_attributes.hrl @@ -16,29 +16,29 @@ %% The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. %% --define('CODE_COLUMN', 'code.column'). +-define(CODE_COLUMN, 'code.column'). %% The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). %% --define('CODE_FILEPATH', 'code.filepath'). +-define(CODE_FILEPATH, 'code.filepath'). %% The method or function name, or equivalent (usually rightmost part of the code unit's name). %% --define('CODE_FUNCTION', 'code.function'). +-define(CODE_FUNCTION, 'code.function'). %% The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. %% --define('CODE_LINENO', 'code.lineno'). +-define(CODE_LINENO, 'code.lineno'). %% The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. %% --define('CODE_NAMESPACE', 'code.namespace'). +-define(CODE_NAMESPACE, 'code.namespace'). %% A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. %% --define('CODE_STACKTRACE', 'code.stacktrace'). +-define(CODE_STACKTRACE, 'code.stacktrace'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl index 6a768266..1e445d42 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl @@ -16,69 +16,69 @@ %% The command used to run the container (i.e. the command name). %% --define('CONTAINER_COMMAND', 'container.command'). +-define(CONTAINER_COMMAND, 'container.command'). %% All the command arguments (including the command/executable itself) run by the container. [2] %% --define('CONTAINER_COMMAND_ARGS', 'container.command_args'). +-define(CONTAINER_COMMAND_ARGS, 'container.command_args'). %% The full command run by the container as a single string representing the full command. [2] %% --define('CONTAINER_COMMAND_LINE', 'container.command_line'). +-define(CONTAINER_COMMAND_LINE, 'container.command_line'). %% The CPU state for this data point. --define('CONTAINER_CPU_STATE', 'container.cpu.state'). +-define(CONTAINER_CPU_STATE, 'container.cpu.state'). --define('CONTAINER_CPU_STATE_VALUES_USER', 'user'). +-define(CONTAINER_CPU_STATE_VALUES_USER, 'user'). --define('CONTAINER_CPU_STATE_VALUES_SYSTEM', 'system'). +-define(CONTAINER_CPU_STATE_VALUES_SYSTEM, 'system'). --define('CONTAINER_CPU_STATE_VALUES_KERNEL', 'kernel'). +-define(CONTAINER_CPU_STATE_VALUES_KERNEL, 'kernel'). %% Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. %% --define('CONTAINER_ID', 'container.id'). +-define(CONTAINER_ID, 'container.id'). %% Runtime specific image identifier. Usually a hash algorithm followed by a UUID. %% --define('CONTAINER_IMAGE_ID', 'container.image.id'). +-define(CONTAINER_IMAGE_ID, 'container.image.id'). %% Name of the image the container was built on. %% --define('CONTAINER_IMAGE_NAME', 'container.image.name'). +-define(CONTAINER_IMAGE_NAME, 'container.image.name'). %% Repo digests of the container image as provided by the container runtime. %% --define('CONTAINER_IMAGE_REPO_DIGESTS', 'container.image.repo_digests'). +-define(CONTAINER_IMAGE_REPO_DIGESTS, 'container.image.repo_digests'). %% 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:`. %% --define('CONTAINER_IMAGE_TAGS', 'container.image.tags'). +-define(CONTAINER_IMAGE_TAGS, 'container.image.tags'). %% Container labels, `` being the label name, the value being the label value. %% --define('CONTAINER_LABEL', 'container.label'). +-define(CONTAINER_LABEL, 'container.label'). %% @deprecated Replaced by `container.label`. %% Deprecated, use `container.label` instead. --define('CONTAINER_LABELS', 'container.labels'). +-define(CONTAINER_LABELS, 'container.labels'). %% Container name used by container runtime. %% --define('CONTAINER_NAME', 'container.name'). +-define(CONTAINER_NAME, 'container.name'). %% The container runtime managing this container. %% --define('CONTAINER_RUNTIME', 'container.runtime'). +-define(CONTAINER_RUNTIME, 'container.runtime'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl index 75c0282b..eb140d18 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl @@ -16,344 +16,344 @@ %% 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). %% --define('DB_CASSANDRA_CONSISTENCY_LEVEL', 'db.cassandra.consistency_level'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL', 'all'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL, 'all'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_EACH_QUORUM', 'each_quorum'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_EACH_QUORUM, 'each_quorum'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_QUORUM', 'quorum'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_QUORUM, 'quorum'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_QUORUM', 'local_quorum'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_QUORUM, 'local_quorum'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ONE', 'one'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ONE, 'one'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_TWO', 'two'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_TWO, 'two'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_THREE', 'three'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_THREE, 'three'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_ONE', 'local_one'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_ONE, 'local_one'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ANY', 'any'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ANY, 'any'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_SERIAL', 'serial'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_SERIAL, 'serial'). --define('DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_SERIAL', 'local_serial'). +-define(DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_LOCAL_SERIAL, 'local_serial'). %% The data center of the coordinating node for a query. %% --define('DB_CASSANDRA_COORDINATOR_DC', 'db.cassandra.coordinator.dc'). +-define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). %% The ID of the coordinating node for a query. %% --define('DB_CASSANDRA_COORDINATOR_ID', 'db.cassandra.coordinator.id'). +-define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). %% Whether or not the query is idempotent. %% --define('DB_CASSANDRA_IDEMPOTENCE', 'db.cassandra.idempotence'). +-define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). %% The fetch size used for paging, i.e. how many rows will be returned at once. %% --define('DB_CASSANDRA_PAGE_SIZE', 'db.cassandra.page_size'). +-define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). %% The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. %% --define('DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT', 'db.cassandra.speculative_execution_count'). +-define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define('DB_CASSANDRA_TABLE', 'db.cassandra.table'). +-define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). %% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. %% --define('DB_CLIENT_CONNECTIONS_POOL_NAME', 'db.client.connections.pool.name'). +-define(DB_CLIENT_CONNECTIONS_POOL_NAME, 'db.client.connections.pool.name'). %% The state of a connection in the pool --define('DB_CLIENT_CONNECTIONS_STATE', 'db.client.connections.state'). +-define(DB_CLIENT_CONNECTIONS_STATE, 'db.client.connections.state'). --define('DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE', 'idle'). +-define(DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE, 'idle'). --define('DB_CLIENT_CONNECTIONS_STATE_VALUES_USED', 'used'). +-define(DB_CLIENT_CONNECTIONS_STATE_VALUES_USED, 'used'). %% The name of a collection (table, container) within the database. --define('DB_COLLECTION_NAME', 'db.collection.name'). +-define(DB_COLLECTION_NAME, 'db.collection.name'). %% @deprecated "Replaced by `server.address` and `server.port`." %% %% Deprecated, use `server.address`, `server.port` attributes instead. --define('DB_CONNECTION_STRING', 'db.connection_string'). +-define(DB_CONNECTION_STRING, 'db.connection_string'). %% Unique Cosmos client instance id. --define('DB_COSMOSDB_CLIENT_ID', 'db.cosmosdb.client_id'). +-define(DB_COSMOSDB_CLIENT_ID, 'db.cosmosdb.client_id'). %% Cosmos client connection mode. --define('DB_COSMOSDB_CONNECTION_MODE', 'db.cosmosdb.connection_mode'). +-define(DB_COSMOSDB_CONNECTION_MODE, 'db.cosmosdb.connection_mode'). --define('DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY', 'gateway'). +-define(DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY, 'gateway'). --define('DB_COSMOSDB_CONNECTION_MODE_VALUES_DIRECT', 'direct'). +-define(DB_COSMOSDB_CONNECTION_MODE_VALUES_DIRECT, 'direct'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define('DB_COSMOSDB_CONTAINER', 'db.cosmosdb.container'). +-define(DB_COSMOSDB_CONTAINER, 'db.cosmosdb.container'). %% CosmosDB Operation Type. --define('DB_COSMOSDB_OPERATION_TYPE', 'db.cosmosdb.operation_type'). +-define(DB_COSMOSDB_OPERATION_TYPE, 'db.cosmosdb.operation_type'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID', 'Invalid'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID, 'Invalid'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_CREATE', 'Create'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_CREATE, 'Create'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_PATCH', 'Patch'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_PATCH, 'Patch'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_READ', 'Read'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_READ, 'Read'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_READ_FEED', 'ReadFeed'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_READ_FEED, 'ReadFeed'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_DELETE', 'Delete'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_DELETE, 'Delete'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_REPLACE', 'Replace'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_REPLACE, 'Replace'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_EXECUTE', 'Execute'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_EXECUTE, 'Execute'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_QUERY', 'Query'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_QUERY, 'Query'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_HEAD', 'Head'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_HEAD, 'Head'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_HEAD_FEED', 'HeadFeed'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_HEAD_FEED, 'HeadFeed'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_UPSERT', 'Upsert'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_UPSERT, 'Upsert'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_BATCH', 'Batch'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_BATCH, 'Batch'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_QUERY_PLAN', 'QueryPlan'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_QUERY_PLAN, 'QueryPlan'). --define('DB_COSMOSDB_OPERATION_TYPE_VALUES_EXECUTE_JAVASCRIPT', 'ExecuteJavaScript'). +-define(DB_COSMOSDB_OPERATION_TYPE_VALUES_EXECUTE_JAVASCRIPT, 'ExecuteJavaScript'). %% RU consumed for that operation --define('DB_COSMOSDB_REQUEST_CHARGE', 'db.cosmosdb.request_charge'). +-define(DB_COSMOSDB_REQUEST_CHARGE, 'db.cosmosdb.request_charge'). %% Request payload size in bytes --define('DB_COSMOSDB_REQUEST_CONTENT_LENGTH', 'db.cosmosdb.request_content_length'). +-define(DB_COSMOSDB_REQUEST_CONTENT_LENGTH, 'db.cosmosdb.request_content_length'). %% Cosmos DB status code. --define('DB_COSMOSDB_STATUS_CODE', 'db.cosmosdb.status_code'). +-define(DB_COSMOSDB_STATUS_CODE, 'db.cosmosdb.status_code'). %% Cosmos DB sub status code. --define('DB_COSMOSDB_SUB_STATUS_CODE', 'db.cosmosdb.sub_status_code'). +-define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). %% Represents the identifier of an Elasticsearch cluster. %% --define('DB_ELASTICSEARCH_CLUSTER_NAME', 'db.elasticsearch.cluster.name'). +-define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). %% Represents the human-readable identifier of the node/instance to which a request was routed. %% --define('DB_ELASTICSEARCH_NODE_NAME', 'db.elasticsearch.node.name'). +-define(DB_ELASTICSEARCH_NODE_NAME, 'db.elasticsearch.node.name'). %% A dynamic value in the url path. %% --define('DB_ELASTICSEARCH_PATH_PARTS', 'db.elasticsearch.path_parts'). +-define(DB_ELASTICSEARCH_PATH_PARTS, 'db.elasticsearch.path_parts'). %% @deprecated Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. %% Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead. --define('DB_INSTANCE_ID', 'db.instance.id'). +-define(DB_INSTANCE_ID, 'db.instance.id'). %% @deprecated Removed as not used. %% Removed, no replacement at this time. --define('DB_JDBC_DRIVER_CLASSNAME', 'db.jdbc.driver_classname'). +-define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define('DB_MONGODB_COLLECTION', 'db.mongodb.collection'). +-define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). %% @deprecated Deprecated, no replacement at this time. %% Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. --define('DB_MSSQL_INSTANCE_NAME', 'db.mssql.instance_name'). +-define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). %% @deprecated Replaced by `db.namespace`. %% Deprecated, use `db.namespace` instead. --define('DB_NAME', 'db.name'). +-define(DB_NAME, 'db.name'). %% The name of the database, fully qualified within the server address and port. %% --define('DB_NAMESPACE', 'db.namespace'). +-define(DB_NAMESPACE, 'db.namespace'). %% @deprecated Replaced by `db.operation.name`. %% Deprecated, use `db.operation.name` instead. --define('DB_OPERATION', 'db.operation'). +-define(DB_OPERATION, 'db.operation'). %% The name of the operation or command being executed. %% --define('DB_OPERATION_NAME', 'db.operation.name'). +-define(DB_OPERATION_NAME, 'db.operation.name'). %% The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. %% --define('DB_QUERY_PARAMETER', 'db.query.parameter'). +-define(DB_QUERY_PARAMETER, 'db.query.parameter'). %% The database query being executed. %% --define('DB_QUERY_TEXT', 'db.query.text'). +-define(DB_QUERY_TEXT, 'db.query.text'). %% @deprecated Replaced by `db.namespace`. %% Deprecated, use `db.namespace` instead. --define('DB_REDIS_DATABASE_INDEX', 'db.redis.database_index'). +-define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). %% @deprecated Replaced by `db.collection.name`. %% Deprecated, use `db.collection.name` instead. --define('DB_SQL_TABLE', 'db.sql.table'). +-define(DB_SQL_TABLE, 'db.sql.table'). %% @deprecated Replaced by `db.query.text`. %% The database statement being executed. --define('DB_STATEMENT', 'db.statement'). +-define(DB_STATEMENT, 'db.statement'). %% The database management system (DBMS) product as identified by the client instrumentation. --define('DB_SYSTEM', 'db.system'). +-define(DB_SYSTEM, 'db.system'). --define('DB_SYSTEM_VALUES_OTHER_SQL', 'other_sql'). +-define(DB_SYSTEM_VALUES_OTHER_SQL, 'other_sql'). --define('DB_SYSTEM_VALUES_MSSQL', 'mssql'). +-define(DB_SYSTEM_VALUES_MSSQL, 'mssql'). --define('DB_SYSTEM_VALUES_MSSQLCOMPACT', 'mssqlcompact'). +-define(DB_SYSTEM_VALUES_MSSQLCOMPACT, 'mssqlcompact'). --define('DB_SYSTEM_VALUES_MYSQL', 'mysql'). +-define(DB_SYSTEM_VALUES_MYSQL, 'mysql'). --define('DB_SYSTEM_VALUES_ORACLE', 'oracle'). +-define(DB_SYSTEM_VALUES_ORACLE, 'oracle'). --define('DB_SYSTEM_VALUES_DB_2', 'db2'). +-define(DB_SYSTEM_VALUES_DB_2, 'db2'). --define('DB_SYSTEM_VALUES_POSTGRESQL', 'postgresql'). +-define(DB_SYSTEM_VALUES_POSTGRESQL, 'postgresql'). --define('DB_SYSTEM_VALUES_REDSHIFT', 'redshift'). +-define(DB_SYSTEM_VALUES_REDSHIFT, 'redshift'). --define('DB_SYSTEM_VALUES_HIVE', 'hive'). +-define(DB_SYSTEM_VALUES_HIVE, 'hive'). --define('DB_SYSTEM_VALUES_CLOUDSCAPE', 'cloudscape'). +-define(DB_SYSTEM_VALUES_CLOUDSCAPE, 'cloudscape'). --define('DB_SYSTEM_VALUES_HSQLDB', 'hsqldb'). +-define(DB_SYSTEM_VALUES_HSQLDB, 'hsqldb'). --define('DB_SYSTEM_VALUES_PROGRESS', 'progress'). +-define(DB_SYSTEM_VALUES_PROGRESS, 'progress'). --define('DB_SYSTEM_VALUES_MAXDB', 'maxdb'). +-define(DB_SYSTEM_VALUES_MAXDB, 'maxdb'). --define('DB_SYSTEM_VALUES_HANADB', 'hanadb'). +-define(DB_SYSTEM_VALUES_HANADB, 'hanadb'). --define('DB_SYSTEM_VALUES_INGRES', 'ingres'). +-define(DB_SYSTEM_VALUES_INGRES, 'ingres'). --define('DB_SYSTEM_VALUES_FIRSTSQL', 'firstsql'). +-define(DB_SYSTEM_VALUES_FIRSTSQL, 'firstsql'). --define('DB_SYSTEM_VALUES_EDB', 'edb'). +-define(DB_SYSTEM_VALUES_EDB, 'edb'). --define('DB_SYSTEM_VALUES_CACHE', 'cache'). +-define(DB_SYSTEM_VALUES_CACHE, 'cache'). --define('DB_SYSTEM_VALUES_ADABAS', 'adabas'). +-define(DB_SYSTEM_VALUES_ADABAS, 'adabas'). --define('DB_SYSTEM_VALUES_FIREBIRD', 'firebird'). +-define(DB_SYSTEM_VALUES_FIREBIRD, 'firebird'). --define('DB_SYSTEM_VALUES_DERBY', 'derby'). +-define(DB_SYSTEM_VALUES_DERBY, 'derby'). --define('DB_SYSTEM_VALUES_FILEMAKER', 'filemaker'). +-define(DB_SYSTEM_VALUES_FILEMAKER, 'filemaker'). --define('DB_SYSTEM_VALUES_INFORMIX', 'informix'). +-define(DB_SYSTEM_VALUES_INFORMIX, 'informix'). --define('DB_SYSTEM_VALUES_INSTANTDB', 'instantdb'). +-define(DB_SYSTEM_VALUES_INSTANTDB, 'instantdb'). --define('DB_SYSTEM_VALUES_INTERBASE', 'interbase'). +-define(DB_SYSTEM_VALUES_INTERBASE, 'interbase'). --define('DB_SYSTEM_VALUES_MARIADB', 'mariadb'). +-define(DB_SYSTEM_VALUES_MARIADB, 'mariadb'). --define('DB_SYSTEM_VALUES_NETEZZA', 'netezza'). +-define(DB_SYSTEM_VALUES_NETEZZA, 'netezza'). --define('DB_SYSTEM_VALUES_PERVASIVE', 'pervasive'). +-define(DB_SYSTEM_VALUES_PERVASIVE, 'pervasive'). --define('DB_SYSTEM_VALUES_POINTBASE', 'pointbase'). +-define(DB_SYSTEM_VALUES_POINTBASE, 'pointbase'). --define('DB_SYSTEM_VALUES_SQLITE', 'sqlite'). +-define(DB_SYSTEM_VALUES_SQLITE, 'sqlite'). --define('DB_SYSTEM_VALUES_SYBASE', 'sybase'). +-define(DB_SYSTEM_VALUES_SYBASE, 'sybase'). --define('DB_SYSTEM_VALUES_TERADATA', 'teradata'). +-define(DB_SYSTEM_VALUES_TERADATA, 'teradata'). --define('DB_SYSTEM_VALUES_VERTICA', 'vertica'). +-define(DB_SYSTEM_VALUES_VERTICA, 'vertica'). --define('DB_SYSTEM_VALUES_H_2', 'h2'). +-define(DB_SYSTEM_VALUES_H_2, 'h2'). --define('DB_SYSTEM_VALUES_COLDFUSION', 'coldfusion'). +-define(DB_SYSTEM_VALUES_COLDFUSION, 'coldfusion'). --define('DB_SYSTEM_VALUES_CASSANDRA', 'cassandra'). +-define(DB_SYSTEM_VALUES_CASSANDRA, 'cassandra'). --define('DB_SYSTEM_VALUES_HBASE', 'hbase'). +-define(DB_SYSTEM_VALUES_HBASE, 'hbase'). --define('DB_SYSTEM_VALUES_MONGODB', 'mongodb'). +-define(DB_SYSTEM_VALUES_MONGODB, 'mongodb'). --define('DB_SYSTEM_VALUES_REDIS', 'redis'). +-define(DB_SYSTEM_VALUES_REDIS, 'redis'). --define('DB_SYSTEM_VALUES_COUCHBASE', 'couchbase'). +-define(DB_SYSTEM_VALUES_COUCHBASE, 'couchbase'). --define('DB_SYSTEM_VALUES_COUCHDB', 'couchdb'). +-define(DB_SYSTEM_VALUES_COUCHDB, 'couchdb'). --define('DB_SYSTEM_VALUES_COSMOSDB', 'cosmosdb'). +-define(DB_SYSTEM_VALUES_COSMOSDB, 'cosmosdb'). --define('DB_SYSTEM_VALUES_DYNAMODB', 'dynamodb'). +-define(DB_SYSTEM_VALUES_DYNAMODB, 'dynamodb'). --define('DB_SYSTEM_VALUES_NEO_4_J', 'neo4j'). +-define(DB_SYSTEM_VALUES_NEO_4_J, 'neo4j'). --define('DB_SYSTEM_VALUES_GEODE', 'geode'). +-define(DB_SYSTEM_VALUES_GEODE, 'geode'). --define('DB_SYSTEM_VALUES_ELASTICSEARCH', 'elasticsearch'). +-define(DB_SYSTEM_VALUES_ELASTICSEARCH, 'elasticsearch'). --define('DB_SYSTEM_VALUES_MEMCACHED', 'memcached'). +-define(DB_SYSTEM_VALUES_MEMCACHED, 'memcached'). --define('DB_SYSTEM_VALUES_COCKROACHDB', 'cockroachdb'). +-define(DB_SYSTEM_VALUES_COCKROACHDB, 'cockroachdb'). --define('DB_SYSTEM_VALUES_OPENSEARCH', 'opensearch'). +-define(DB_SYSTEM_VALUES_OPENSEARCH, 'opensearch'). --define('DB_SYSTEM_VALUES_CLICKHOUSE', 'clickhouse'). +-define(DB_SYSTEM_VALUES_CLICKHOUSE, 'clickhouse'). --define('DB_SYSTEM_VALUES_SPANNER', 'spanner'). +-define(DB_SYSTEM_VALUES_SPANNER, 'spanner'). --define('DB_SYSTEM_VALUES_TRINO', 'trino'). +-define(DB_SYSTEM_VALUES_TRINO, 'trino'). %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. --define('DB_USER', 'db.user'). +-define(DB_USER, 'db.user'). %% @deprecated Replaced by `db.client.connections.pool.name`. %% Deprecated, use `db.client.connections.pool.name` instead. --define('POOL_NAME', 'pool.name'). +-define(POOL_NAME, 'pool.name'). %% @deprecated Replaced by `db.client.connections.state`. %% Deprecated, use `db.client.connections.state` instead. --define('STATE', 'state'). +-define(STATE, 'state'). --define('STATE_VALUES_IDLE', 'idle'). +-define(STATE_VALUES_IDLE, 'idle'). --define('STATE_VALUES_USED', 'used'). +-define(STATE_VALUES_USED, 'used'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl index b26a1f34..51b0c3fe 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl @@ -16,4 +16,4 @@ %% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). %% --define('DEPLOYMENT_ENVIRONMENT', 'deployment.environment'). +-define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/destination_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/destination_attributes.hrl index d3cdc4ff..3239960a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/destination_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/destination_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define('DESTINATION_ADDRESS', 'destination.address'). +-define(DESTINATION_ADDRESS, 'destination.address'). %% Destination port number --define('DESTINATION_PORT', 'destination.port'). +-define(DESTINATION_PORT, 'destination.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl index 1f24922c..8b75ec21 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl @@ -16,19 +16,19 @@ %% A unique identifier representing the device %% --define('DEVICE_ID', 'device.id'). +-define(DEVICE_ID, 'device.id'). %% The name of the device manufacturer %% --define('DEVICE_MANUFACTURER', 'device.manufacturer'). +-define(DEVICE_MANUFACTURER, 'device.manufacturer'). %% The model identifier for the device %% --define('DEVICE_MODEL_IDENTIFIER', 'device.model.identifier'). +-define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). %% The marketing name for the device model %% --define('DEVICE_MODEL_NAME', 'device.model.name'). +-define(DEVICE_MODEL_NAME, 'device.model.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl index ba42cb70..7d6d8d96 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl @@ -15,9 +15,9 @@ %%%------------------------------------------------------------------------- %% The disk IO operation direction. --define('DISK_IO_DIRECTION', 'disk.io.direction'). +-define(DISK_IO_DIRECTION, 'disk.io.direction'). --define('DISK_IO_DIRECTION_VALUES_READ', 'read'). +-define(DISK_IO_DIRECTION_VALUES_READ, 'read'). --define('DISK_IO_DIRECTION_VALUES_WRITE', 'write'). +-define(DISK_IO_DIRECTION_VALUES_WRITE, 'write'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/dns_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/dns_attributes.hrl index e950de1a..b5399045 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/dns_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/dns_attributes.hrl @@ -15,4 +15,4 @@ %%%------------------------------------------------------------------------- %% The name being queried. --define('DNS_QUESTION_NAME', 'dns.question.name'). +-define(DNS_QUESTION_NAME, 'dns.question.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl index 9fa1c027..2afc72e4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl @@ -16,13 +16,13 @@ %% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. %% --define('ENDUSER_ID', 'enduser.id'). +-define(ENDUSER_ID, 'enduser.id'). %% Actual/assumed role the client is making the request under extracted from token or application security context. --define('ENDUSER_ROLE', 'enduser.role'). +-define(ENDUSER_ROLE, 'enduser.role'). %% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). %% --define('ENDUSER_SCOPE', 'enduser.scope'). +-define(ENDUSER_SCOPE, 'enduser.scope'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/event_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/event_attributes.hrl index be48574b..58b4dbd1 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/event_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/event_attributes.hrl @@ -16,4 +16,4 @@ %% Identifies the class / type of event. %% --define('EVENT_NAME', 'event.name'). +-define(EVENT_NAME, 'event.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/faas_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/faas_attributes.hrl index eddb5376..ab95f158 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/faas_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/faas_attributes.hrl @@ -16,106 +16,106 @@ %% A boolean that is true if the serverless function is executed for the first time (aka cold-start). %% --define('FAAS_COLDSTART', 'faas.coldstart'). +-define(FAAS_COLDSTART, 'faas.coldstart'). %% A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). %% --define('FAAS_CRON', 'faas.cron'). +-define(FAAS_CRON, 'faas.cron'). %% 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. %% --define('FAAS_DOCUMENT_COLLECTION', 'faas.document.collection'). +-define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). %% 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. %% --define('FAAS_DOCUMENT_NAME', 'faas.document.name'). +-define(FAAS_DOCUMENT_NAME, 'faas.document.name'). %% Describes the type of the operation that was performed on the data. --define('FAAS_DOCUMENT_OPERATION', 'faas.document.operation'). +-define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). --define('FAAS_DOCUMENT_OPERATION_VALUES_INSERT', 'insert'). +-define(FAAS_DOCUMENT_OPERATION_VALUES_INSERT, 'insert'). --define('FAAS_DOCUMENT_OPERATION_VALUES_EDIT', 'edit'). +-define(FAAS_DOCUMENT_OPERATION_VALUES_EDIT, 'edit'). --define('FAAS_DOCUMENT_OPERATION_VALUES_DELETE', 'delete'). +-define(FAAS_DOCUMENT_OPERATION_VALUES_DELETE, 'delete'). %% 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). %% --define('FAAS_DOCUMENT_TIME', 'faas.document.time'). +-define(FAAS_DOCUMENT_TIME, 'faas.document.time'). %% The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. %% --define('FAAS_INSTANCE', 'faas.instance'). +-define(FAAS_INSTANCE, 'faas.instance'). %% The invocation ID of the current function invocation. %% --define('FAAS_INVOCATION_ID', 'faas.invocation_id'). +-define(FAAS_INVOCATION_ID, 'faas.invocation_id'). %% The name of the invoked function. %% --define('FAAS_INVOKED_NAME', 'faas.invoked_name'). +-define(FAAS_INVOKED_NAME, 'faas.invoked_name'). %% The cloud provider of the invoked function. %% --define('FAAS_INVOKED_PROVIDER', 'faas.invoked_provider'). +-define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). --define('FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD', 'alibaba_cloud'). +-define(FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD, 'alibaba_cloud'). --define('FAAS_INVOKED_PROVIDER_VALUES_AWS', 'aws'). +-define(FAAS_INVOKED_PROVIDER_VALUES_AWS, 'aws'). --define('FAAS_INVOKED_PROVIDER_VALUES_AZURE', 'azure'). +-define(FAAS_INVOKED_PROVIDER_VALUES_AZURE, 'azure'). --define('FAAS_INVOKED_PROVIDER_VALUES_GCP', 'gcp'). +-define(FAAS_INVOKED_PROVIDER_VALUES_GCP, 'gcp'). --define('FAAS_INVOKED_PROVIDER_VALUES_TENCENT_CLOUD', 'tencent_cloud'). +-define(FAAS_INVOKED_PROVIDER_VALUES_TENCENT_CLOUD, 'tencent_cloud'). %% The cloud region of the invoked function. %% --define('FAAS_INVOKED_REGION', 'faas.invoked_region'). +-define(FAAS_INVOKED_REGION, 'faas.invoked_region'). %% The amount of memory available to the serverless function converted to Bytes. %% --define('FAAS_MAX_MEMORY', 'faas.max_memory'). +-define(FAAS_MAX_MEMORY, 'faas.max_memory'). %% The name of the single function that this runtime instance executes. %% --define('FAAS_NAME', 'faas.name'). +-define(FAAS_NAME, 'faas.name'). %% 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). %% --define('FAAS_TIME', 'faas.time'). +-define(FAAS_TIME, 'faas.time'). %% Type of the trigger which caused this function invocation. %% --define('FAAS_TRIGGER', 'faas.trigger'). +-define(FAAS_TRIGGER, 'faas.trigger'). --define('FAAS_TRIGGER_VALUES_DATASOURCE', 'datasource'). +-define(FAAS_TRIGGER_VALUES_DATASOURCE, 'datasource'). --define('FAAS_TRIGGER_VALUES_HTTP', 'http'). +-define(FAAS_TRIGGER_VALUES_HTTP, 'http'). --define('FAAS_TRIGGER_VALUES_PUBSUB', 'pubsub'). +-define(FAAS_TRIGGER_VALUES_PUBSUB, 'pubsub'). --define('FAAS_TRIGGER_VALUES_TIMER', 'timer'). +-define(FAAS_TRIGGER_VALUES_TIMER, 'timer'). --define('FAAS_TRIGGER_VALUES_OTHER', 'other'). +-define(FAAS_TRIGGER_VALUES_OTHER, 'other'). %% The immutable version of the function being executed. --define('FAAS_VERSION', 'faas.version'). +-define(FAAS_VERSION, 'faas.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/feature_flag_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/feature_flag_attributes.hrl index 6ac3d9c4..5b59e448 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/feature_flag_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/feature_flag_attributes.hrl @@ -15,13 +15,13 @@ %%%------------------------------------------------------------------------- %% The unique identifier of the feature flag. --define('FEATURE_FLAG_KEY', 'feature_flag.key'). +-define(FEATURE_FLAG_KEY, 'feature_flag.key'). %% The name of the service provider that performs the flag evaluation. --define('FEATURE_FLAG_PROVIDER_NAME', 'feature_flag.provider_name'). +-define(FEATURE_FLAG_PROVIDER_NAME, 'feature_flag.provider_name'). %% SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used. %% --define('FEATURE_FLAG_VARIANT', 'feature_flag.variant'). +-define(FEATURE_FLAG_VARIANT, 'feature_flag.variant'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/file_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/file_attributes.hrl index dfcf8793..0ea28994 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/file_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/file_attributes.hrl @@ -16,24 +16,24 @@ %% Directory where the file is located. It should include the drive letter, when appropriate. %% --define('FILE_DIRECTORY', 'file.directory'). +-define(FILE_DIRECTORY, 'file.directory'). %% File extension, excluding the leading dot. %% --define('FILE_EXTENSION', 'file.extension'). +-define(FILE_EXTENSION, 'file.extension'). %% Name of the file including the extension, without the directory. %% --define('FILE_NAME', 'file.name'). +-define(FILE_NAME, 'file.name'). %% Full path to the file, including the file name. It should include the drive letter, when appropriate. %% --define('FILE_PATH', 'file.path'). +-define(FILE_PATH, 'file.path'). %% File size in bytes. %% --define('FILE_SIZE', 'file.size'). +-define(FILE_SIZE, 'file.size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl index 6e5ffb20..3404be06 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl @@ -16,19 +16,19 @@ %% 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. %% --define('GCP_CLOUD_RUN_JOB_EXECUTION', 'gcp.cloud_run.job.execution'). +-define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). %% 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. %% --define('GCP_CLOUD_RUN_JOB_TASK_INDEX', 'gcp.cloud_run.job.task_index'). +-define(GCP_CLOUD_RUN_JOB_TASK_INDEX, 'gcp.cloud_run.job.task_index'). %% 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). %% --define('GCP_GCE_INSTANCE_HOSTNAME', 'gcp.gce.instance.hostname'). +-define(GCP_GCE_INSTANCE_HOSTNAME, 'gcp.gce.instance.hostname'). %% 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). %% --define('GCP_GCE_INSTANCE_NAME', 'gcp.gce.instance.name'). +-define(GCP_GCE_INSTANCE_NAME, 'gcp.gce.instance.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl index dc038d87..21910317 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl @@ -15,51 +15,51 @@ %%%------------------------------------------------------------------------- %% The full response received from the LLM. --define('GEN_AI_COMPLETION', 'gen_ai.completion'). +-define(GEN_AI_COMPLETION, 'gen_ai.completion'). %% The full prompt sent to an LLM. --define('GEN_AI_PROMPT', 'gen_ai.prompt'). +-define(GEN_AI_PROMPT, 'gen_ai.prompt'). %% The maximum number of tokens the LLM generates for a request. --define('GEN_AI_REQUEST_MAX_TOKENS', 'gen_ai.request.max_tokens'). +-define(GEN_AI_REQUEST_MAX_TOKENS, 'gen_ai.request.max_tokens'). %% The name of the LLM a request is being made to. --define('GEN_AI_REQUEST_MODEL', 'gen_ai.request.model'). +-define(GEN_AI_REQUEST_MODEL, 'gen_ai.request.model'). %% The temperature setting for the LLM request. --define('GEN_AI_REQUEST_TEMPERATURE', 'gen_ai.request.temperature'). +-define(GEN_AI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). %% The top_p sampling setting for the LLM request. --define('GEN_AI_REQUEST_TOP_P', 'gen_ai.request.top_p'). +-define(GEN_AI_REQUEST_TOP_P, 'gen_ai.request.top_p'). %% Array of reasons the model stopped generating tokens, corresponding to each generation received. --define('GEN_AI_RESPONSE_FINISH_REASONS', 'gen_ai.response.finish_reasons'). +-define(GEN_AI_RESPONSE_FINISH_REASONS, 'gen_ai.response.finish_reasons'). %% The unique identifier for the completion. --define('GEN_AI_RESPONSE_ID', 'gen_ai.response.id'). +-define(GEN_AI_RESPONSE_ID, 'gen_ai.response.id'). %% The name of the LLM a response was generated from. --define('GEN_AI_RESPONSE_MODEL', 'gen_ai.response.model'). +-define(GEN_AI_RESPONSE_MODEL, 'gen_ai.response.model'). %% The Generative AI product as identified by the client instrumentation. --define('GEN_AI_SYSTEM', 'gen_ai.system'). +-define(GEN_AI_SYSTEM, 'gen_ai.system'). --define('GEN_AI_SYSTEM_VALUES_OPENAI', 'openai'). +-define(GEN_AI_SYSTEM_VALUES_OPENAI, 'openai'). %% The number of tokens used in the LLM response (completion). --define('GEN_AI_USAGE_COMPLETION_TOKENS', 'gen_ai.usage.completion_tokens'). +-define(GEN_AI_USAGE_COMPLETION_TOKENS, 'gen_ai.usage.completion_tokens'). %% The number of tokens used in the LLM prompt. --define('GEN_AI_USAGE_PROMPT_TOKENS', 'gen_ai.usage.prompt_tokens'). +-define(GEN_AI_USAGE_PROMPT_TOKENS, 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/graphql_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/graphql_attributes.hrl index 251129b7..18b58ba4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/graphql_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/graphql_attributes.hrl @@ -15,19 +15,19 @@ %%%------------------------------------------------------------------------- %% The GraphQL document being executed. --define('GRAPHQL_DOCUMENT', 'graphql.document'). +-define(GRAPHQL_DOCUMENT, 'graphql.document'). %% The name of the operation being executed. --define('GRAPHQL_OPERATION_NAME', 'graphql.operation.name'). +-define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). %% The type of the operation being executed. --define('GRAPHQL_OPERATION_TYPE', 'graphql.operation.type'). +-define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). --define('GRAPHQL_OPERATION_TYPE_VALUES_QUERY', 'query'). +-define(GRAPHQL_OPERATION_TYPE_VALUES_QUERY, 'query'). --define('GRAPHQL_OPERATION_TYPE_VALUES_MUTATION', 'mutation'). +-define(GRAPHQL_OPERATION_TYPE_VALUES_MUTATION, 'mutation'). --define('GRAPHQL_OPERATION_TYPE_VALUES_SUBSCRIPTION', 'subscription'). +-define(GRAPHQL_OPERATION_TYPE_VALUES_SUBSCRIPTION, 'subscription'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/heroku_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/heroku_attributes.hrl index f5da1e77..96595577 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/heroku_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/heroku_attributes.hrl @@ -16,14 +16,14 @@ %% Unique identifier for the application %% --define('HEROKU_APP_ID', 'heroku.app.id'). +-define(HEROKU_APP_ID, 'heroku.app.id'). %% Commit hash for the current release %% --define('HEROKU_RELEASE_COMMIT', 'heroku.release.commit'). +-define(HEROKU_RELEASE_COMMIT, 'heroku.release.commit'). %% Time and date the release was created %% --define('HEROKU_RELEASE_CREATION_TIMESTAMP', 'heroku.release.creation_timestamp'). +-define(HEROKU_RELEASE_CREATION_TIMESTAMP, 'heroku.release.creation_timestamp'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl index 1693de69..8d298fac 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl @@ -16,91 +16,91 @@ %% The CPU architecture the host system is running on. %% --define('HOST_ARCH', 'host.arch'). +-define(HOST_ARCH, 'host.arch'). --define('HOST_ARCH_VALUES_AMD_64', 'amd64'). +-define(HOST_ARCH_VALUES_AMD_64, 'amd64'). --define('HOST_ARCH_VALUES_ARM_32', 'arm32'). +-define(HOST_ARCH_VALUES_ARM_32, 'arm32'). --define('HOST_ARCH_VALUES_ARM_64', 'arm64'). +-define(HOST_ARCH_VALUES_ARM_64, 'arm64'). --define('HOST_ARCH_VALUES_IA_64', 'ia64'). +-define(HOST_ARCH_VALUES_IA_64, 'ia64'). --define('HOST_ARCH_VALUES_PPC_32', 'ppc32'). +-define(HOST_ARCH_VALUES_PPC_32, 'ppc32'). --define('HOST_ARCH_VALUES_PPC_64', 'ppc64'). +-define(HOST_ARCH_VALUES_PPC_64, 'ppc64'). --define('HOST_ARCH_VALUES_S_390_X', 's390x'). +-define(HOST_ARCH_VALUES_S_390_X, 's390x'). --define('HOST_ARCH_VALUES_X_86', 'x86'). +-define(HOST_ARCH_VALUES_X_86, 'x86'). %% The amount of level 2 memory cache available to the processor (in Bytes). %% --define('HOST_CPU_CACHE_L2_SIZE', 'host.cpu.cache.l2.size'). +-define(HOST_CPU_CACHE_L2_SIZE, 'host.cpu.cache.l2.size'). %% Family or generation of the CPU. %% --define('HOST_CPU_FAMILY', 'host.cpu.family'). +-define(HOST_CPU_FAMILY, 'host.cpu.family'). %% Model identifier. It provides more granular information about the CPU, distinguishing it from other CPUs within the same family. %% --define('HOST_CPU_MODEL_ID', 'host.cpu.model.id'). +-define(HOST_CPU_MODEL_ID, 'host.cpu.model.id'). %% Model designation of the processor. %% --define('HOST_CPU_MODEL_NAME', 'host.cpu.model.name'). +-define(HOST_CPU_MODEL_NAME, 'host.cpu.model.name'). %% Stepping or core revisions. %% --define('HOST_CPU_STEPPING', 'host.cpu.stepping'). +-define(HOST_CPU_STEPPING, 'host.cpu.stepping'). %% Processor manufacturer identifier. A maximum 12-character string. %% --define('HOST_CPU_VENDOR_ID', 'host.cpu.vendor.id'). +-define(HOST_CPU_VENDOR_ID, 'host.cpu.vendor.id'). %% 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. %% --define('HOST_ID', 'host.id'). +-define(HOST_ID, 'host.id'). %% VM image ID or host OS image ID. For Cloud, this value is from the provider. %% --define('HOST_IMAGE_ID', 'host.image.id'). +-define(HOST_IMAGE_ID, 'host.image.id'). %% Name of the VM image or OS install the host was instantiated from. %% --define('HOST_IMAGE_NAME', 'host.image.name'). +-define(HOST_IMAGE_NAME, 'host.image.name'). %% The version string of the VM image or host OS as defined in [Version Attributes](/docs/resource/README.md#version-attributes). %% --define('HOST_IMAGE_VERSION', 'host.image.version'). +-define(HOST_IMAGE_VERSION, 'host.image.version'). %% Available IP addresses of the host, excluding loopback interfaces. %% --define('HOST_IP', 'host.ip'). +-define(HOST_IP, 'host.ip'). %% Available MAC addresses of the host, excluding loopback interfaces. %% --define('HOST_MAC', 'host.mac'). +-define(HOST_MAC, 'host.mac'). %% 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. %% --define('HOST_NAME', 'host.name'). +-define(HOST_NAME, 'host.name'). %% Type of host. For Cloud, this must be the machine type. %% --define('HOST_TYPE', 'host.type'). +-define(HOST_TYPE, 'host.type'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl index bcbd1d8a..cf098bbb 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/http_attributes.hrl @@ -17,98 +17,98 @@ %% @deprecated Replaced by `client.address`. %% Deprecated, use `client.address` instead. --define('HTTP_CLIENT_IP', 'http.client_ip'). +-define(HTTP_CLIENT_IP, 'http.client_ip'). %% State of the HTTP connection in the HTTP connection pool. --define('HTTP_CONNECTION_STATE', 'http.connection.state'). +-define(HTTP_CONNECTION_STATE, 'http.connection.state'). --define('HTTP_CONNECTION_STATE_VALUES_ACTIVE', 'active'). +-define(HTTP_CONNECTION_STATE_VALUES_ACTIVE, 'active'). --define('HTTP_CONNECTION_STATE_VALUES_IDLE', 'idle'). +-define(HTTP_CONNECTION_STATE_VALUES_IDLE, 'idle'). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name` instead. --define('HTTP_FLAVOR', 'http.flavor'). +-define(HTTP_FLAVOR, 'http.flavor'). --define('HTTP_FLAVOR_VALUES_HTTP_1_0', '1.0'). +-define(HTTP_FLAVOR_VALUES_HTTP_1_0, '1.0'). --define('HTTP_FLAVOR_VALUES_HTTP_1_1', '1.1'). +-define(HTTP_FLAVOR_VALUES_HTTP_1_1, '1.1'). --define('HTTP_FLAVOR_VALUES_HTTP_2_0', '2.0'). +-define(HTTP_FLAVOR_VALUES_HTTP_2_0, '2.0'). --define('HTTP_FLAVOR_VALUES_HTTP_3_0', '3.0'). +-define(HTTP_FLAVOR_VALUES_HTTP_3_0, '3.0'). --define('HTTP_FLAVOR_VALUES_SPDY', 'SPDY'). +-define(HTTP_FLAVOR_VALUES_SPDY, 'SPDY'). --define('HTTP_FLAVOR_VALUES_QUIC', 'QUIC'). +-define(HTTP_FLAVOR_VALUES_QUIC, 'QUIC'). %% @deprecated Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage. %% Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage. --define('HTTP_HOST', 'http.host'). +-define(HTTP_HOST, 'http.host'). %% @deprecated Replaced by `http.request.method`. %% Deprecated, use `http.request.method` instead. --define('HTTP_METHOD', 'http.method'). +-define(HTTP_METHOD, 'http.method'). %% 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. %% --define('HTTP_REQUEST_BODY_SIZE', 'http.request.body.size'). +-define(HTTP_REQUEST_BODY_SIZE, 'http.request.body.size'). %% 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. %% --define('HTTP_REQUEST_SIZE', 'http.request.size'). +-define(HTTP_REQUEST_SIZE, 'http.request.size'). %% @deprecated Replaced by `http.request.header.content-length`. %% Deprecated, use `http.request.header.content-length` instead. --define('HTTP_REQUEST_CONTENT_LENGTH', 'http.request_content_length'). +-define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). %% @deprecated Replaced by `http.request.body.size`. %% Deprecated, use `http.request.body.size` instead. --define('HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED', 'http.request_content_length_uncompressed'). +-define(HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED, 'http.request_content_length_uncompressed'). %% 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. %% --define('HTTP_RESPONSE_BODY_SIZE', 'http.response.body.size'). +-define(HTTP_RESPONSE_BODY_SIZE, 'http.response.body.size'). %% 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. %% --define('HTTP_RESPONSE_SIZE', 'http.response.size'). +-define(HTTP_RESPONSE_SIZE, 'http.response.size'). %% @deprecated Replaced by `http.response.header.content-length`. %% Deprecated, use `http.response.header.content-length` instead. --define('HTTP_RESPONSE_CONTENT_LENGTH', 'http.response_content_length'). +-define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). %% @deprecated Replace by `http.response.body.size`. %% Deprecated, use `http.response.body.size` instead. --define('HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED', 'http.response_content_length_uncompressed'). +-define(HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED, 'http.response_content_length_uncompressed'). %% @deprecated Replaced by `url.scheme` instead. %% Deprecated, use `url.scheme` instead. --define('HTTP_SCHEME', 'http.scheme'). +-define(HTTP_SCHEME, 'http.scheme'). %% @deprecated Replaced by `server.address`. %% Deprecated, use `server.address` instead. --define('HTTP_SERVER_NAME', 'http.server_name'). +-define(HTTP_SERVER_NAME, 'http.server_name'). %% @deprecated Replaced by `http.response.status_code`. %% Deprecated, use `http.response.status_code` instead. --define('HTTP_STATUS_CODE', 'http.status_code'). +-define(HTTP_STATUS_CODE, 'http.status_code'). %% @deprecated Split to `url.path` and `url.query. %% Deprecated, use `url.path` and `url.query` instead. --define('HTTP_TARGET', 'http.target'). +-define(HTTP_TARGET, 'http.target'). %% @deprecated Replaced by `url.full`. %% Deprecated, use `url.full` instead. --define('HTTP_URL', 'http.url'). +-define(HTTP_URL, 'http.url'). %% @deprecated Replaced by `user_agent.original`. %% Deprecated, use `user_agent.original` instead. --define('HTTP_USER_AGENT', 'http.user_agent'). +-define(HTTP_USER_AGENT, 'http.user_agent'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl index 4360bfff..61ccc98d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/k8s_attributes.hrl @@ -16,123 +16,123 @@ %% The name of the cluster. %% --define('K8S_CLUSTER_NAME', 'k8s.cluster.name'). +-define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). %% A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace. %% --define('K8S_CLUSTER_UID', 'k8s.cluster.uid'). +-define(K8S_CLUSTER_UID, 'k8s.cluster.uid'). %% The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`). %% --define('K8S_CONTAINER_NAME', 'k8s.container.name'). +-define(K8S_CONTAINER_NAME, 'k8s.container.name'). %% Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec. %% --define('K8S_CONTAINER_RESTART_COUNT', 'k8s.container.restart_count'). +-define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). %% Last terminated reason of the Container. %% --define('K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON', 'k8s.container.status.last_terminated_reason'). +-define(K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON, 'k8s.container.status.last_terminated_reason'). %% The name of the CronJob. %% --define('K8S_CRONJOB_NAME', 'k8s.cronjob.name'). +-define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). %% The UID of the CronJob. %% --define('K8S_CRONJOB_UID', 'k8s.cronjob.uid'). +-define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). %% The name of the DaemonSet. %% --define('K8S_DAEMONSET_NAME', 'k8s.daemonset.name'). +-define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). %% The UID of the DaemonSet. %% --define('K8S_DAEMONSET_UID', 'k8s.daemonset.uid'). +-define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). %% The name of the Deployment. %% --define('K8S_DEPLOYMENT_NAME', 'k8s.deployment.name'). +-define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). %% The UID of the Deployment. %% --define('K8S_DEPLOYMENT_UID', 'k8s.deployment.uid'). +-define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). %% The name of the Job. %% --define('K8S_JOB_NAME', 'k8s.job.name'). +-define(K8S_JOB_NAME, 'k8s.job.name'). %% The UID of the Job. %% --define('K8S_JOB_UID', 'k8s.job.uid'). +-define(K8S_JOB_UID, 'k8s.job.uid'). %% The name of the namespace that the pod is running in. %% --define('K8S_NAMESPACE_NAME', 'k8s.namespace.name'). +-define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). %% The name of the Node. %% --define('K8S_NODE_NAME', 'k8s.node.name'). +-define(K8S_NODE_NAME, 'k8s.node.name'). %% The UID of the Node. %% --define('K8S_NODE_UID', 'k8s.node.uid'). +-define(K8S_NODE_UID, 'k8s.node.uid'). %% The annotation key-value pairs placed on the Pod, the `` being the annotation name, the value being the annotation value. %% --define('K8S_POD_ANNOTATION', 'k8s.pod.annotation'). +-define(K8S_POD_ANNOTATION, 'k8s.pod.annotation'). %% The label key-value pairs placed on the Pod, the `` being the label name, the value being the label value. %% --define('K8S_POD_LABEL', 'k8s.pod.label'). +-define(K8S_POD_LABEL, 'k8s.pod.label'). %% @deprecated Replaced by `k8s.pod.label`. %% Deprecated, use `k8s.pod.label` instead. --define('K8S_POD_LABELS', 'k8s.pod.labels'). +-define(K8S_POD_LABELS, 'k8s.pod.labels'). %% The name of the Pod. %% --define('K8S_POD_NAME', 'k8s.pod.name'). +-define(K8S_POD_NAME, 'k8s.pod.name'). %% The UID of the Pod. %% --define('K8S_POD_UID', 'k8s.pod.uid'). +-define(K8S_POD_UID, 'k8s.pod.uid'). %% The name of the ReplicaSet. %% --define('K8S_REPLICASET_NAME', 'k8s.replicaset.name'). +-define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). %% The UID of the ReplicaSet. %% --define('K8S_REPLICASET_UID', 'k8s.replicaset.uid'). +-define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). %% The name of the StatefulSet. %% --define('K8S_STATEFULSET_NAME', 'k8s.statefulset.name'). +-define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). %% The UID of the StatefulSet. %% --define('K8S_STATEFULSET_UID', 'k8s.statefulset.uid'). +-define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl index 7adfa0bd..d2963b0e 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl @@ -16,34 +16,34 @@ %% The basename of the file. %% --define('LOG_FILE_NAME', 'log.file.name'). +-define(LOG_FILE_NAME, 'log.file.name'). %% The basename of the file, with symlinks resolved. %% --define('LOG_FILE_NAME_RESOLVED', 'log.file.name_resolved'). +-define(LOG_FILE_NAME_RESOLVED, 'log.file.name_resolved'). %% The full path to the file. %% --define('LOG_FILE_PATH', 'log.file.path'). +-define(LOG_FILE_PATH, 'log.file.path'). %% The full path to the file, with symlinks resolved. %% --define('LOG_FILE_PATH_RESOLVED', 'log.file.path_resolved'). +-define(LOG_FILE_PATH_RESOLVED, 'log.file.path_resolved'). %% The stream associated with the log. See below for a list of well-known values. %% --define('LOG_IOSTREAM', 'log.iostream'). +-define(LOG_IOSTREAM, 'log.iostream'). --define('LOG_IOSTREAM_VALUES_STDOUT', 'stdout'). +-define(LOG_IOSTREAM_VALUES_STDOUT, 'stdout'). --define('LOG_IOSTREAM_VALUES_STDERR', 'stderr'). +-define(LOG_IOSTREAM_VALUES_STDERR, 'stderr'). %% A unique identifier for the Log Record. %% --define('LOG_RECORD_UID', 'log.record.uid'). +-define(LOG_RECORD_UID, 'log.record.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl index 892224fa..70f3a22b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl @@ -17,260 +17,260 @@ %% The number of messages sent, received, or processed in the scope of the batching operation. --define('MESSAGING_BATCH_MESSAGE_COUNT', 'messaging.batch.message_count'). +-define(MESSAGING_BATCH_MESSAGE_COUNT, 'messaging.batch.message_count'). %% A unique identifier for the client that consumes or produces a message. %% --define('MESSAGING_CLIENT_ID', 'messaging.client.id'). +-define(MESSAGING_CLIENT_ID, 'messaging.client.id'). %% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). --define('MESSAGING_DESTINATION_ANONYMOUS', 'messaging.destination.anonymous'). +-define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). %% The message destination name --define('MESSAGING_DESTINATION_NAME', 'messaging.destination.name'). +-define(MESSAGING_DESTINATION_NAME, 'messaging.destination.name'). %% The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. %% --define('MESSAGING_DESTINATION_PARTITION_ID', 'messaging.destination.partition.id'). +-define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). %% Low cardinality representation of the messaging destination name --define('MESSAGING_DESTINATION_TEMPLATE', 'messaging.destination.template'). +-define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). %% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. --define('MESSAGING_DESTINATION_TEMPORARY', 'messaging.destination.temporary'). +-define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). %% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). --define('MESSAGING_DESTINATION_PUBLISH_ANONYMOUS', 'messaging.destination_publish.anonymous'). +-define(MESSAGING_DESTINATION_PUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). %% The name of the original destination the message was published to --define('MESSAGING_DESTINATION_PUBLISH_NAME', 'messaging.destination_publish.name'). +-define(MESSAGING_DESTINATION_PUBLISH_NAME, 'messaging.destination_publish.name'). %% The name of the consumer group the event consumer is associated with. %% --define('MESSAGING_EVENTHUBS_CONSUMER_GROUP', 'messaging.eventhubs.consumer.group'). +-define(MESSAGING_EVENTHUBS_CONSUMER_GROUP, 'messaging.eventhubs.consumer.group'). %% The UTC epoch seconds at which the message has been accepted and stored in the entity. %% --define('MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME', 'messaging.eventhubs.message.enqueued_time'). +-define(MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME, 'messaging.eventhubs.message.enqueued_time'). %% The ack deadline in seconds set for the modify ack deadline request. %% --define('MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE', 'messaging.gcp_pubsub.message.ack_deadline'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE, 'messaging.gcp_pubsub.message.ack_deadline'). %% The ack id for a given message. %% --define('MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID', 'messaging.gcp_pubsub.message.ack_id'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID, 'messaging.gcp_pubsub.message.ack_id'). %% The delivery attempt for a given message. %% --define('MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT', 'messaging.gcp_pubsub.message.delivery_attempt'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT, 'messaging.gcp_pubsub.message.delivery_attempt'). %% The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. %% --define('MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY', 'messaging.gcp_pubsub.message.ordering_key'). +-define(MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY, 'messaging.gcp_pubsub.message.ordering_key'). %% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. %% --define('MESSAGING_KAFKA_CONSUMER_GROUP', 'messaging.kafka.consumer.group'). +-define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer.group'). %% @deprecated Replaced by `messaging.destination.partition.id`. %% Deprecated, use `messaging.destination.partition.id` instead. %% --define('MESSAGING_KAFKA_DESTINATION_PARTITION', 'messaging.kafka.destination.partition'). +-define(MESSAGING_KAFKA_DESTINATION_PARTITION, 'messaging.kafka.destination.partition'). %% Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message.id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. %% --define('MESSAGING_KAFKA_MESSAGE_KEY', 'messaging.kafka.message.key'). +-define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message.key'). %% The offset of a record in the corresponding Kafka partition. %% --define('MESSAGING_KAFKA_MESSAGE_OFFSET', 'messaging.kafka.message.offset'). +-define(MESSAGING_KAFKA_MESSAGE_OFFSET, 'messaging.kafka.message.offset'). %% A boolean that is true if the message is a tombstone. --define('MESSAGING_KAFKA_MESSAGE_TOMBSTONE', 'messaging.kafka.message.tombstone'). +-define(MESSAGING_KAFKA_MESSAGE_TOMBSTONE, 'messaging.kafka.message.tombstone'). %% The size of the message body in bytes. %% --define('MESSAGING_MESSAGE_BODY_SIZE', 'messaging.message.body.size'). +-define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). %% The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". %% --define('MESSAGING_MESSAGE_CONVERSATION_ID', 'messaging.message.conversation_id'). +-define(MESSAGING_MESSAGE_CONVERSATION_ID, 'messaging.message.conversation_id'). %% The size of the message body and metadata in bytes. %% --define('MESSAGING_MESSAGE_ENVELOPE_SIZE', 'messaging.message.envelope.size'). +-define(MESSAGING_MESSAGE_ENVELOPE_SIZE, 'messaging.message.envelope.size'). %% A value used by the messaging system as an identifier for the message, represented as a string. --define('MESSAGING_MESSAGE_ID', 'messaging.message.id'). +-define(MESSAGING_MESSAGE_ID, 'messaging.message.id'). %% @deprecated Replaced by `messaging.operation.type`. %% Deprecated, use `messaging.operation.type` instead. %% --define('MESSAGING_OPERATION', 'messaging.operation'). +-define(MESSAGING_OPERATION, 'messaging.operation'). %% The system-specific name of the messaging operation. %% --define('MESSAGING_OPERATION_NAME', 'messaging.operation.name'). +-define(MESSAGING_OPERATION_NAME, 'messaging.operation.name'). %% A string identifying the type of the messaging operation. %% --define('MESSAGING_OPERATION_TYPE', 'messaging.operation.type'). +-define(MESSAGING_OPERATION_TYPE, 'messaging.operation.type'). --define('MESSAGING_OPERATION_TYPE_VALUES_PUBLISH', 'publish'). +-define(MESSAGING_OPERATION_TYPE_VALUES_PUBLISH, 'publish'). --define('MESSAGING_OPERATION_TYPE_VALUES_CREATE', 'create'). +-define(MESSAGING_OPERATION_TYPE_VALUES_CREATE, 'create'). --define('MESSAGING_OPERATION_TYPE_VALUES_RECEIVE', 'receive'). +-define(MESSAGING_OPERATION_TYPE_VALUES_RECEIVE, 'receive'). --define('MESSAGING_OPERATION_TYPE_VALUES_DELIVER', 'process'). +-define(MESSAGING_OPERATION_TYPE_VALUES_DELIVER, 'process'). --define('MESSAGING_OPERATION_TYPE_VALUES_SETTLE', 'settle'). +-define(MESSAGING_OPERATION_TYPE_VALUES_SETTLE, 'settle'). %% RabbitMQ message routing key. %% --define('MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY', 'messaging.rabbitmq.destination.routing_key'). +-define(MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY, 'messaging.rabbitmq.destination.routing_key'). %% RabbitMQ message delivery tag %% --define('MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG', 'messaging.rabbitmq.message.delivery_tag'). +-define(MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG, 'messaging.rabbitmq.message.delivery_tag'). %% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. %% --define('MESSAGING_ROCKETMQ_CLIENT_GROUP', 'messaging.rocketmq.client_group'). +-define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). %% Model of message consumption. This only applies to consumer spans. %% --define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL', 'messaging.rocketmq.consumption_model'). +-define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). --define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING', 'clustering'). +-define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING, 'clustering'). --define('MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_BROADCASTING', 'broadcasting'). +-define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_BROADCASTING, 'broadcasting'). %% The delay time level for delay message, which determines the message delay time. %% --define('MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL', 'messaging.rocketmq.message.delay_time_level'). +-define(MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL, 'messaging.rocketmq.message.delay_time_level'). %% The timestamp in milliseconds that the delay message is expected to be delivered to consumer. %% --define('MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP', 'messaging.rocketmq.message.delivery_timestamp'). +-define(MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP, 'messaging.rocketmq.message.delivery_timestamp'). %% It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. %% --define('MESSAGING_ROCKETMQ_MESSAGE_GROUP', 'messaging.rocketmq.message.group'). +-define(MESSAGING_ROCKETMQ_MESSAGE_GROUP, 'messaging.rocketmq.message.group'). %% Key(s) of message, another way to mark message besides message id. %% --define('MESSAGING_ROCKETMQ_MESSAGE_KEYS', 'messaging.rocketmq.message.keys'). +-define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message.keys'). %% The secondary classifier of message besides topic. %% --define('MESSAGING_ROCKETMQ_MESSAGE_TAG', 'messaging.rocketmq.message.tag'). +-define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message.tag'). %% Type of message. %% --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE', 'messaging.rocketmq.message.type'). +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message.type'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL', 'normal'). +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL, 'normal'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_FIFO', 'fifo'). +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_FIFO, 'fifo'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_DELAY', 'delay'). +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_DELAY, 'delay'). --define('MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_TRANSACTION', 'transaction'). +-define(MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_TRANSACTION, 'transaction'). %% Namespace of RocketMQ resources, resources in different namespaces are individual. %% --define('MESSAGING_ROCKETMQ_NAMESPACE', 'messaging.rocketmq.namespace'). +-define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). %% The name of the subscription in the topic messages are received from. %% --define('MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME', 'messaging.servicebus.destination.subscription_name'). +-define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME, 'messaging.servicebus.destination.subscription_name'). %% Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). %% --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS', 'messaging.servicebus.disposition_status'). +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS, 'messaging.servicebus.disposition_status'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE', 'complete'). +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE, 'complete'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_ABANDON', 'abandon'). +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_ABANDON, 'abandon'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_DEAD_LETTER', 'dead_letter'). +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_DEAD_LETTER, 'dead_letter'). --define('MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_DEFER', 'defer'). +-define(MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_DEFER, 'defer'). %% Number of deliveries that have been attempted for this message. %% --define('MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT', 'messaging.servicebus.message.delivery_count'). +-define(MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT, 'messaging.servicebus.message.delivery_count'). %% The UTC epoch seconds at which the message has been accepted and stored in the entity. %% --define('MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME', 'messaging.servicebus.message.enqueued_time'). +-define(MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME, 'messaging.servicebus.message.enqueued_time'). %% The messaging system as identified by the client instrumentation. --define('MESSAGING_SYSTEM', 'messaging.system'). +-define(MESSAGING_SYSTEM, 'messaging.system'). --define('MESSAGING_SYSTEM_VALUES_ACTIVEMQ', 'activemq'). +-define(MESSAGING_SYSTEM_VALUES_ACTIVEMQ, 'activemq'). --define('MESSAGING_SYSTEM_VALUES_AWS_SQS', 'aws_sqs'). +-define(MESSAGING_SYSTEM_VALUES_AWS_SQS, 'aws_sqs'). --define('MESSAGING_SYSTEM_VALUES_EVENTGRID', 'eventgrid'). +-define(MESSAGING_SYSTEM_VALUES_EVENTGRID, 'eventgrid'). --define('MESSAGING_SYSTEM_VALUES_EVENTHUBS', 'eventhubs'). +-define(MESSAGING_SYSTEM_VALUES_EVENTHUBS, 'eventhubs'). --define('MESSAGING_SYSTEM_VALUES_SERVICEBUS', 'servicebus'). +-define(MESSAGING_SYSTEM_VALUES_SERVICEBUS, 'servicebus'). --define('MESSAGING_SYSTEM_VALUES_GCP_PUBSUB', 'gcp_pubsub'). +-define(MESSAGING_SYSTEM_VALUES_GCP_PUBSUB, 'gcp_pubsub'). --define('MESSAGING_SYSTEM_VALUES_JMS', 'jms'). +-define(MESSAGING_SYSTEM_VALUES_JMS, 'jms'). --define('MESSAGING_SYSTEM_VALUES_KAFKA', 'kafka'). +-define(MESSAGING_SYSTEM_VALUES_KAFKA, 'kafka'). --define('MESSAGING_SYSTEM_VALUES_RABBITMQ', 'rabbitmq'). +-define(MESSAGING_SYSTEM_VALUES_RABBITMQ, 'rabbitmq'). --define('MESSAGING_SYSTEM_VALUES_ROCKETMQ', 'rocketmq'). +-define(MESSAGING_SYSTEM_VALUES_ROCKETMQ, 'rocketmq'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl index c5e1a7a4..4e46f1c1 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl @@ -17,165 +17,165 @@ %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. --define('NET_HOST_IP', 'net.host.ip'). +-define(NET_HOST_IP, 'net.host.ip'). %% @deprecated Replaced by `server.address`. %% Deprecated, use `server.address`. --define('NET_HOST_NAME', 'net.host.name'). +-define(NET_HOST_NAME, 'net.host.name'). %% @deprecated Replaced by `server.port`. %% Deprecated, use `server.port`. --define('NET_HOST_PORT', 'net.host.port'). +-define(NET_HOST_PORT, 'net.host.port'). %% @deprecated Replaced by `network.peer.address`. %% Deprecated, use `network.peer.address`. --define('NET_PEER_IP', 'net.peer.ip'). +-define(NET_PEER_IP, 'net.peer.ip'). %% @deprecated Replaced by `server.address` on client spans and `client.address` on server spans. %% Deprecated, use `server.address` on client spans and `client.address` on server spans. --define('NET_PEER_NAME', 'net.peer.name'). +-define(NET_PEER_NAME, 'net.peer.name'). %% @deprecated Replaced by `server.port` on client spans and `client.port` on server spans. %% Deprecated, use `server.port` on client spans and `client.port` on server spans. --define('NET_PEER_PORT', 'net.peer.port'). +-define(NET_PEER_PORT, 'net.peer.port'). %% @deprecated Replaced by `network.protocol.name`. %% Deprecated, use `network.protocol.name`. --define('NET_PROTOCOL_NAME', 'net.protocol.name'). +-define(NET_PROTOCOL_NAME, 'net.protocol.name'). %% @deprecated Replaced by `network.protocol.version`. %% Deprecated, use `network.protocol.version`. --define('NET_PROTOCOL_VERSION', 'net.protocol.version'). +-define(NET_PROTOCOL_VERSION, 'net.protocol.version'). %% @deprecated Split to `network.transport` and `network.type`. %% Deprecated, use `network.transport` and `network.type`. --define('NET_SOCK_FAMILY', 'net.sock.family'). +-define(NET_SOCK_FAMILY, 'net.sock.family'). --define('NET_SOCK_FAMILY_VALUES_INET', 'inet'). +-define(NET_SOCK_FAMILY_VALUES_INET, 'inet'). --define('NET_SOCK_FAMILY_VALUES_INET_6', 'inet6'). +-define(NET_SOCK_FAMILY_VALUES_INET_6, 'inet6'). --define('NET_SOCK_FAMILY_VALUES_UNIX', 'unix'). +-define(NET_SOCK_FAMILY_VALUES_UNIX, 'unix'). %% @deprecated Replaced by `network.local.address`. %% Deprecated, use `network.local.address`. --define('NET_SOCK_HOST_ADDR', 'net.sock.host.addr'). +-define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). %% @deprecated Replaced by `network.local.port`. %% Deprecated, use `network.local.port`. --define('NET_SOCK_HOST_PORT', 'net.sock.host.port'). +-define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). %% @deprecated Replaced by `network.peer.address`. %% Deprecated, use `network.peer.address`. --define('NET_SOCK_PEER_ADDR', 'net.sock.peer.addr'). +-define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). %% @deprecated Removed. %% Deprecated, no replacement at this time. --define('NET_SOCK_PEER_NAME', 'net.sock.peer.name'). +-define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). %% @deprecated Replaced by `network.peer.port`. %% Deprecated, use `network.peer.port`. --define('NET_SOCK_PEER_PORT', 'net.sock.peer.port'). +-define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). %% @deprecated Replaced by `network.transport`. %% Deprecated, use `network.transport`. --define('NET_TRANSPORT', 'net.transport'). +-define(NET_TRANSPORT, 'net.transport'). --define('NET_TRANSPORT_VALUES_IP_TCP', 'ip_tcp'). +-define(NET_TRANSPORT_VALUES_IP_TCP, 'ip_tcp'). --define('NET_TRANSPORT_VALUES_IP_UDP', 'ip_udp'). +-define(NET_TRANSPORT_VALUES_IP_UDP, 'ip_udp'). --define('NET_TRANSPORT_VALUES_PIPE', 'pipe'). +-define(NET_TRANSPORT_VALUES_PIPE, 'pipe'). --define('NET_TRANSPORT_VALUES_INPROC', 'inproc'). +-define(NET_TRANSPORT_VALUES_INPROC, 'inproc'). --define('NET_TRANSPORT_VALUES_OTHER', 'other'). +-define(NET_TRANSPORT_VALUES_OTHER, 'other'). %% The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. --define('NETWORK_CARRIER_ICC', 'network.carrier.icc'). +-define(NETWORK_CARRIER_ICC, 'network.carrier.icc'). %% The mobile carrier country code. --define('NETWORK_CARRIER_MCC', 'network.carrier.mcc'). +-define(NETWORK_CARRIER_MCC, 'network.carrier.mcc'). %% The mobile carrier network code. --define('NETWORK_CARRIER_MNC', 'network.carrier.mnc'). +-define(NETWORK_CARRIER_MNC, 'network.carrier.mnc'). %% The name of the mobile carrier. --define('NETWORK_CARRIER_NAME', 'network.carrier.name'). +-define(NETWORK_CARRIER_NAME, 'network.carrier.name'). %% This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. --define('NETWORK_CONNECTION_SUBTYPE', 'network.connection.subtype'). +-define(NETWORK_CONNECTION_SUBTYPE, 'network.connection.subtype'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS', 'gprs'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS, 'gprs'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_EDGE', 'edge'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_EDGE, 'edge'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_UMTS', 'umts'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_UMTS, 'umts'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA', 'cdma'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA, 'cdma'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_0', 'evdo_0'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_0, 'evdo_0'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_A', 'evdo_a'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_A, 'evdo_a'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA_2000_1_XRTT', 'cdma2000_1xrtt'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA_2000_1_XRTT, 'cdma2000_1xrtt'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSDPA', 'hsdpa'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_HSDPA, 'hsdpa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSUPA', 'hsupa'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_HSUPA, 'hsupa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSPA', 'hspa'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_HSPA, 'hspa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_IDEN', 'iden'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_IDEN, 'iden'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_B', 'evdo_b'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_B, 'evdo_b'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_LTE', 'lte'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_LTE, 'lte'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_EHRPD', 'ehrpd'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_EHRPD, 'ehrpd'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_HSPAP', 'hspap'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_HSPAP, 'hspap'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_GSM', 'gsm'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_GSM, 'gsm'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_TD_SCDMA', 'td_scdma'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_TD_SCDMA, 'td_scdma'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_IWLAN', 'iwlan'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_IWLAN, 'iwlan'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_NR', 'nr'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_NR, 'nr'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_NRNSA', 'nrnsa'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_NRNSA, 'nrnsa'). --define('NETWORK_CONNECTION_SUBTYPE_VALUES_LTE_CA', 'lte_ca'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_LTE_CA, 'lte_ca'). %% The internet connection type. --define('NETWORK_CONNECTION_TYPE', 'network.connection.type'). +-define(NETWORK_CONNECTION_TYPE, 'network.connection.type'). --define('NETWORK_CONNECTION_TYPE_VALUES_WIFI', 'wifi'). +-define(NETWORK_CONNECTION_TYPE_VALUES_WIFI, 'wifi'). --define('NETWORK_CONNECTION_TYPE_VALUES_WIRED', 'wired'). +-define(NETWORK_CONNECTION_TYPE_VALUES_WIRED, 'wired'). --define('NETWORK_CONNECTION_TYPE_VALUES_CELL', 'cell'). +-define(NETWORK_CONNECTION_TYPE_VALUES_CELL, 'cell'). --define('NETWORK_CONNECTION_TYPE_VALUES_UNAVAILABLE', 'unavailable'). +-define(NETWORK_CONNECTION_TYPE_VALUES_UNAVAILABLE, 'unavailable'). --define('NETWORK_CONNECTION_TYPE_VALUES_UNKNOWN', 'unknown'). +-define(NETWORK_CONNECTION_TYPE_VALUES_UNKNOWN, 'unknown'). %% The network IO operation direction. --define('NETWORK_IO_DIRECTION', 'network.io.direction'). +-define(NETWORK_IO_DIRECTION, 'network.io.direction'). --define('NETWORK_IO_DIRECTION_VALUES_TRANSMIT', 'transmit'). +-define(NETWORK_IO_DIRECTION_VALUES_TRANSMIT, 'transmit'). --define('NETWORK_IO_DIRECTION_VALUES_RECEIVE', 'receive'). +-define(NETWORK_IO_DIRECTION_VALUES_RECEIVE, 'receive'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/oci_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/oci_attributes.hrl index e040906e..18bab4a8 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/oci_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/oci_attributes.hrl @@ -16,4 +16,4 @@ %% The digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. %% --define('OCI_MANIFEST_DIGEST', 'oci.manifest.digest'). +-define(OCI_MANIFEST_DIGEST, 'oci.manifest.digest'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/opentracing_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/opentracing_attributes.hrl index a0cbf36e..6ac28d2d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/opentracing_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/opentracing_attributes.hrl @@ -15,9 +15,9 @@ %%%------------------------------------------------------------------------- %% Parent-child Reference type --define('OPENTRACING_REF_TYPE', 'opentracing.ref_type'). +-define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). --define('OPENTRACING_REF_TYPE_VALUES_CHILD_OF', 'child_of'). +-define(OPENTRACING_REF_TYPE_VALUES_CHILD_OF, 'child_of'). --define('OPENTRACING_REF_TYPE_VALUES_FOLLOWS_FROM', 'follows_from'). +-define(OPENTRACING_REF_TYPE_VALUES_FOLLOWS_FROM, 'follows_from'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/os_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/os_attributes.hrl index 1f6875d6..93a0b251 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/os_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/os_attributes.hrl @@ -15,46 +15,46 @@ %%%------------------------------------------------------------------------- %% Unique identifier for a particular build or compilation of the operating system. --define('OS_BUILD_ID', 'os.build_id'). +-define(OS_BUILD_ID, 'os.build_id'). %% Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. %% --define('OS_DESCRIPTION', 'os.description'). +-define(OS_DESCRIPTION, 'os.description'). %% Human readable operating system name. --define('OS_NAME', 'os.name'). +-define(OS_NAME, 'os.name'). %% The operating system type. %% --define('OS_TYPE', 'os.type'). +-define(OS_TYPE, 'os.type'). --define('OS_TYPE_VALUES_WINDOWS', 'windows'). +-define(OS_TYPE_VALUES_WINDOWS, 'windows'). --define('OS_TYPE_VALUES_LINUX', 'linux'). +-define(OS_TYPE_VALUES_LINUX, 'linux'). --define('OS_TYPE_VALUES_DARWIN', 'darwin'). +-define(OS_TYPE_VALUES_DARWIN, 'darwin'). --define('OS_TYPE_VALUES_FREEBSD', 'freebsd'). +-define(OS_TYPE_VALUES_FREEBSD, 'freebsd'). --define('OS_TYPE_VALUES_NETBSD', 'netbsd'). +-define(OS_TYPE_VALUES_NETBSD, 'netbsd'). --define('OS_TYPE_VALUES_OPENBSD', 'openbsd'). +-define(OS_TYPE_VALUES_OPENBSD, 'openbsd'). --define('OS_TYPE_VALUES_DRAGONFLYBSD', 'dragonflybsd'). +-define(OS_TYPE_VALUES_DRAGONFLYBSD, 'dragonflybsd'). --define('OS_TYPE_VALUES_HPUX', 'hpux'). +-define(OS_TYPE_VALUES_HPUX, 'hpux'). --define('OS_TYPE_VALUES_AIX', 'aix'). +-define(OS_TYPE_VALUES_AIX, 'aix'). --define('OS_TYPE_VALUES_SOLARIS', 'solaris'). +-define(OS_TYPE_VALUES_SOLARIS, 'solaris'). --define('OS_TYPE_VALUES_Z_OS', 'z_os'). +-define(OS_TYPE_VALUES_Z_OS, 'z_os'). %% The version string of the operating system as defined in [Version Attributes](/docs/resource/README.md#version-attributes). %% --define('OS_VERSION', 'os.version'). +-define(OS_VERSION, 'os.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/otel_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/otel_attributes.hrl index 09e88fd0..13575604 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/otel_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/otel_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% @deprecated use the `otel.scope.name` attribute. %% --define('OTEL_LIBRARY_NAME', 'otel.library.name'). +-define(OTEL_LIBRARY_NAME, 'otel.library.name'). %% @deprecated use the `otel.scope.version` attribute. %% --define('OTEL_LIBRARY_VERSION', 'otel.library.version'). +-define(OTEL_LIBRARY_VERSION, 'otel.library.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/peer_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/peer_attributes.hrl index c122ff80..3dfee4e6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/peer_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/peer_attributes.hrl @@ -16,4 +16,4 @@ %% The [`service.name`](/docs/resource/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. %% --define('PEER_SERVICE', 'peer.service'). +-define(PEER_SERVICE, 'peer.service'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl index 21362f71..79f9aef5 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl @@ -16,150 +16,150 @@ %% The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. %% --define('PROCESS_COMMAND', 'process.command'). +-define(PROCESS_COMMAND, 'process.command'). %% All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. %% --define('PROCESS_COMMAND_ARGS', 'process.command_args'). +-define(PROCESS_COMMAND_ARGS, 'process.command_args'). %% The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. %% --define('PROCESS_COMMAND_LINE', 'process.command_line'). +-define(PROCESS_COMMAND_LINE, 'process.command_line'). %% Specifies whether the context switches for this data point were voluntary or involuntary. --define('PROCESS_CONTEXT_SWITCH_TYPE', 'process.context_switch_type'). +-define(PROCESS_CONTEXT_SWITCH_TYPE, 'process.context_switch_type'). --define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY', 'voluntary'). +-define(PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY, 'voluntary'). --define('PROCESS_CONTEXT_SWITCH_TYPE_VALUES_INVOLUNTARY', 'involuntary'). +-define(PROCESS_CONTEXT_SWITCH_TYPE_VALUES_INVOLUNTARY, 'involuntary'). %% The CPU state of the process. %% --define('PROCESS_CPU_STATE', 'process.cpu.state'). +-define(PROCESS_CPU_STATE, 'process.cpu.state'). --define('PROCESS_CPU_STATE_VALUES_SYSTEM', 'system'). +-define(PROCESS_CPU_STATE_VALUES_SYSTEM, 'system'). --define('PROCESS_CPU_STATE_VALUES_USER', 'user'). +-define(PROCESS_CPU_STATE_VALUES_USER, 'user'). --define('PROCESS_CPU_STATE_VALUES_WAIT', 'wait'). +-define(PROCESS_CPU_STATE_VALUES_WAIT, 'wait'). %% The date and time the process was created, in ISO 8601 format. %% --define('PROCESS_CREATION_TIME', 'process.creation.time'). +-define(PROCESS_CREATION_TIME, 'process.creation.time'). %% The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. %% --define('PROCESS_EXECUTABLE_NAME', 'process.executable.name'). +-define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). %% The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. %% --define('PROCESS_EXECUTABLE_PATH', 'process.executable.path'). +-define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). %% The exit code of the process. %% --define('PROCESS_EXIT_CODE', 'process.exit.code'). +-define(PROCESS_EXIT_CODE, 'process.exit.code'). %% The date and time the process exited, in ISO 8601 format. %% --define('PROCESS_EXIT_TIME', 'process.exit.time'). +-define(PROCESS_EXIT_TIME, 'process.exit.time'). %% The PID of the process's group leader. This is also the process group ID (PGID) of the process. %% --define('PROCESS_GROUP_LEADER_PID', 'process.group_leader.pid'). +-define(PROCESS_GROUP_LEADER_PID, 'process.group_leader.pid'). %% Whether the process is connected to an interactive shell. %% --define('PROCESS_INTERACTIVE', 'process.interactive'). +-define(PROCESS_INTERACTIVE, 'process.interactive'). %% The username of the user that owns the process. %% --define('PROCESS_OWNER', 'process.owner'). +-define(PROCESS_OWNER, 'process.owner'). %% The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults. %% --define('PROCESS_PAGING_FAULT_TYPE', 'process.paging.fault_type'). +-define(PROCESS_PAGING_FAULT_TYPE, 'process.paging.fault_type'). --define('PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR', 'major'). +-define(PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR, 'major'). --define('PROCESS_PAGING_FAULT_TYPE_VALUES_MINOR', 'minor'). +-define(PROCESS_PAGING_FAULT_TYPE_VALUES_MINOR, 'minor'). %% Parent Process identifier (PPID). %% --define('PROCESS_PARENT_PID', 'process.parent_pid'). +-define(PROCESS_PARENT_PID, 'process.parent_pid'). %% Process identifier (PID). %% --define('PROCESS_PID', 'process.pid'). +-define(PROCESS_PID, 'process.pid'). %% The real user ID (RUID) of the process. %% --define('PROCESS_REAL_USER_ID', 'process.real_user.id'). +-define(PROCESS_REAL_USER_ID, 'process.real_user.id'). %% The username of the real user of the process. %% --define('PROCESS_REAL_USER_NAME', 'process.real_user.name'). +-define(PROCESS_REAL_USER_NAME, 'process.real_user.name'). %% An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. %% --define('PROCESS_RUNTIME_DESCRIPTION', 'process.runtime.description'). +-define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). %% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. %% --define('PROCESS_RUNTIME_NAME', 'process.runtime.name'). +-define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). %% The version of the runtime of this process, as returned by the runtime without modification. %% --define('PROCESS_RUNTIME_VERSION', 'process.runtime.version'). +-define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). %% The saved user ID (SUID) of the process. %% --define('PROCESS_SAVED_USER_ID', 'process.saved_user.id'). +-define(PROCESS_SAVED_USER_ID, 'process.saved_user.id'). %% The username of the saved user. %% --define('PROCESS_SAVED_USER_NAME', 'process.saved_user.name'). +-define(PROCESS_SAVED_USER_NAME, 'process.saved_user.name'). %% The PID of the process's session leader. This is also the session ID (SID) of the process. %% --define('PROCESS_SESSION_LEADER_PID', 'process.session_leader.pid'). +-define(PROCESS_SESSION_LEADER_PID, 'process.session_leader.pid'). %% The effective user ID (EUID) of the process. %% --define('PROCESS_USER_ID', 'process.user.id'). +-define(PROCESS_USER_ID, 'process.user.id'). %% The username of the effective user of the process. %% --define('PROCESS_USER_NAME', 'process.user.name'). +-define(PROCESS_USER_NAME, 'process.user.name'). %% Virtual process identifier. %% --define('PROCESS_VPID', 'process.vpid'). +-define(PROCESS_VPID, 'process.vpid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/rpc_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/rpc_attributes.hrl index 9ee44837..a8bdc1e4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/rpc_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/rpc_attributes.hrl @@ -15,178 +15,178 @@ %%%------------------------------------------------------------------------- %% @deprecated Replaced by `rpc.message.compressed_size`. %% Deprecated, use `rpc.message.compressed_size` instead. --define('MESSAGE_COMPRESSED_SIZE', 'message.compressed_size'). +-define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). %% @deprecated Replaced by `rpc.message.id`. %% Deprecated, use `rpc.message.id` instead. --define('MESSAGE_ID', 'message.id'). +-define(MESSAGE_ID, 'message.id'). %% @deprecated Replaced by `rpc.message.type`. %% Deprecated, use `rpc.message.type` instead. --define('MESSAGE_TYPE', 'message.type'). +-define(MESSAGE_TYPE, 'message.type'). --define('MESSAGE_TYPE_VALUES_SENT', 'SENT'). +-define(MESSAGE_TYPE_VALUES_SENT, 'SENT'). --define('MESSAGE_TYPE_VALUES_RECEIVED', 'RECEIVED'). +-define(MESSAGE_TYPE_VALUES_RECEIVED, 'RECEIVED'). %% @deprecated Replaced by `rpc.message.uncompressed_size`. %% Deprecated, use `rpc.message.uncompressed_size` instead. --define('MESSAGE_UNCOMPRESSED_SIZE', 'message.uncompressed_size'). +-define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). %% The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values. --define('RPC_CONNECT_RPC_ERROR_CODE', 'rpc.connect_rpc.error_code'). +-define(RPC_CONNECT_RPC_ERROR_CODE, 'rpc.connect_rpc.error_code'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED', 'cancelled'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED, 'cancelled'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNKNOWN', 'unknown'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNKNOWN, 'unknown'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_INVALID_ARGUMENT', 'invalid_argument'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_INVALID_ARGUMENT, 'invalid_argument'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_DEADLINE_EXCEEDED', 'deadline_exceeded'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_DEADLINE_EXCEEDED, 'deadline_exceeded'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_NOT_FOUND', 'not_found'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_NOT_FOUND, 'not_found'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_ALREADY_EXISTS', 'already_exists'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_ALREADY_EXISTS, 'already_exists'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_PERMISSION_DENIED', 'permission_denied'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_PERMISSION_DENIED, 'permission_denied'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_RESOURCE_EXHAUSTED', 'resource_exhausted'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_RESOURCE_EXHAUSTED, 'resource_exhausted'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_FAILED_PRECONDITION', 'failed_precondition'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_FAILED_PRECONDITION, 'failed_precondition'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_ABORTED', 'aborted'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_ABORTED, 'aborted'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_OUT_OF_RANGE', 'out_of_range'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_OUT_OF_RANGE, 'out_of_range'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNIMPLEMENTED', 'unimplemented'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNIMPLEMENTED, 'unimplemented'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_INTERNAL', 'internal'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_INTERNAL, 'internal'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNAVAILABLE', 'unavailable'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNAVAILABLE, 'unavailable'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_DATA_LOSS', 'data_loss'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_DATA_LOSS, 'data_loss'). --define('RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNAUTHENTICATED', 'unauthenticated'). +-define(RPC_CONNECT_RPC_ERROR_CODE_VALUES_UNAUTHENTICATED, 'unauthenticated'). %% Connect request metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. %% --define('RPC_CONNECT_RPC_REQUEST_METADATA', 'rpc.connect_rpc.request.metadata'). +-define(RPC_CONNECT_RPC_REQUEST_METADATA, 'rpc.connect_rpc.request.metadata'). %% Connect response metadata, `` being the normalized Connect Metadata key (lowercase), the value being the metadata values. %% --define('RPC_CONNECT_RPC_RESPONSE_METADATA', 'rpc.connect_rpc.response.metadata'). +-define(RPC_CONNECT_RPC_RESPONSE_METADATA, 'rpc.connect_rpc.response.metadata'). %% gRPC request metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. %% --define('RPC_GRPC_REQUEST_METADATA', 'rpc.grpc.request.metadata'). +-define(RPC_GRPC_REQUEST_METADATA, 'rpc.grpc.request.metadata'). %% gRPC response metadata, `` being the normalized gRPC Metadata key (lowercase), the value being the metadata values. %% --define('RPC_GRPC_RESPONSE_METADATA', 'rpc.grpc.response.metadata'). +-define(RPC_GRPC_RESPONSE_METADATA, 'rpc.grpc.response.metadata'). %% The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. --define('RPC_GRPC_STATUS_CODE', 'rpc.grpc.status_code'). +-define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). --define('RPC_GRPC_STATUS_CODE_VALUES_OK', '0'). +-define(RPC_GRPC_STATUS_CODE_VALUES_OK, '0'). --define('RPC_GRPC_STATUS_CODE_VALUES_CANCELLED', '1'). +-define(RPC_GRPC_STATUS_CODE_VALUES_CANCELLED, '1'). --define('RPC_GRPC_STATUS_CODE_VALUES_UNKNOWN', '2'). +-define(RPC_GRPC_STATUS_CODE_VALUES_UNKNOWN, '2'). --define('RPC_GRPC_STATUS_CODE_VALUES_INVALID_ARGUMENT', '3'). +-define(RPC_GRPC_STATUS_CODE_VALUES_INVALID_ARGUMENT, '3'). --define('RPC_GRPC_STATUS_CODE_VALUES_DEADLINE_EXCEEDED', '4'). +-define(RPC_GRPC_STATUS_CODE_VALUES_DEADLINE_EXCEEDED, '4'). --define('RPC_GRPC_STATUS_CODE_VALUES_NOT_FOUND', '5'). +-define(RPC_GRPC_STATUS_CODE_VALUES_NOT_FOUND, '5'). --define('RPC_GRPC_STATUS_CODE_VALUES_ALREADY_EXISTS', '6'). +-define(RPC_GRPC_STATUS_CODE_VALUES_ALREADY_EXISTS, '6'). --define('RPC_GRPC_STATUS_CODE_VALUES_PERMISSION_DENIED', '7'). +-define(RPC_GRPC_STATUS_CODE_VALUES_PERMISSION_DENIED, '7'). --define('RPC_GRPC_STATUS_CODE_VALUES_RESOURCE_EXHAUSTED', '8'). +-define(RPC_GRPC_STATUS_CODE_VALUES_RESOURCE_EXHAUSTED, '8'). --define('RPC_GRPC_STATUS_CODE_VALUES_FAILED_PRECONDITION', '9'). +-define(RPC_GRPC_STATUS_CODE_VALUES_FAILED_PRECONDITION, '9'). --define('RPC_GRPC_STATUS_CODE_VALUES_ABORTED', '10'). +-define(RPC_GRPC_STATUS_CODE_VALUES_ABORTED, '10'). --define('RPC_GRPC_STATUS_CODE_VALUES_OUT_OF_RANGE', '11'). +-define(RPC_GRPC_STATUS_CODE_VALUES_OUT_OF_RANGE, '11'). --define('RPC_GRPC_STATUS_CODE_VALUES_UNIMPLEMENTED', '12'). +-define(RPC_GRPC_STATUS_CODE_VALUES_UNIMPLEMENTED, '12'). --define('RPC_GRPC_STATUS_CODE_VALUES_INTERNAL', '13'). +-define(RPC_GRPC_STATUS_CODE_VALUES_INTERNAL, '13'). --define('RPC_GRPC_STATUS_CODE_VALUES_UNAVAILABLE', '14'). +-define(RPC_GRPC_STATUS_CODE_VALUES_UNAVAILABLE, '14'). --define('RPC_GRPC_STATUS_CODE_VALUES_DATA_LOSS', '15'). +-define(RPC_GRPC_STATUS_CODE_VALUES_DATA_LOSS, '15'). --define('RPC_GRPC_STATUS_CODE_VALUES_UNAUTHENTICATED', '16'). +-define(RPC_GRPC_STATUS_CODE_VALUES_UNAUTHENTICATED, '16'). %% `error.code` property of response if it is an error response. --define('RPC_JSONRPC_ERROR_CODE', 'rpc.jsonrpc.error_code'). +-define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). %% `error.message` property of response if it is an error response. --define('RPC_JSONRPC_ERROR_MESSAGE', 'rpc.jsonrpc.error_message'). +-define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). %% `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. %% --define('RPC_JSONRPC_REQUEST_ID', 'rpc.jsonrpc.request_id'). +-define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). %% Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted. --define('RPC_JSONRPC_VERSION', 'rpc.jsonrpc.version'). +-define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). %% Compressed size of the message in bytes. --define('RPC_MESSAGE_COMPRESSED_SIZE', 'rpc.message.compressed_size'). +-define(RPC_MESSAGE_COMPRESSED_SIZE, 'rpc.message.compressed_size'). %% MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. --define('RPC_MESSAGE_ID', 'rpc.message.id'). +-define(RPC_MESSAGE_ID, 'rpc.message.id'). %% Whether this is a received or sent message. --define('RPC_MESSAGE_TYPE', 'rpc.message.type'). +-define(RPC_MESSAGE_TYPE, 'rpc.message.type'). --define('RPC_MESSAGE_TYPE_VALUES_SENT', 'SENT'). +-define(RPC_MESSAGE_TYPE_VALUES_SENT, 'SENT'). --define('RPC_MESSAGE_TYPE_VALUES_RECEIVED', 'RECEIVED'). +-define(RPC_MESSAGE_TYPE_VALUES_RECEIVED, 'RECEIVED'). %% Uncompressed size of the message in bytes. --define('RPC_MESSAGE_UNCOMPRESSED_SIZE', 'rpc.message.uncompressed_size'). +-define(RPC_MESSAGE_UNCOMPRESSED_SIZE, 'rpc.message.uncompressed_size'). %% The name of the (logical) method being called, must be equal to the $method part in the span name. --define('RPC_METHOD', 'rpc.method'). +-define(RPC_METHOD, 'rpc.method'). %% The full (logical) name of the service being called, including its package name, if applicable. --define('RPC_SERVICE', 'rpc.service'). +-define(RPC_SERVICE, 'rpc.service'). %% A string identifying the remoting system. See below for a list of well-known identifiers. --define('RPC_SYSTEM', 'rpc.system'). +-define(RPC_SYSTEM, 'rpc.system'). --define('RPC_SYSTEM_VALUES_GRPC', 'grpc'). +-define(RPC_SYSTEM_VALUES_GRPC, 'grpc'). --define('RPC_SYSTEM_VALUES_JAVA_RMI', 'java_rmi'). +-define(RPC_SYSTEM_VALUES_JAVA_RMI, 'java_rmi'). --define('RPC_SYSTEM_VALUES_DOTNET_WCF', 'dotnet_wcf'). +-define(RPC_SYSTEM_VALUES_DOTNET_WCF, 'dotnet_wcf'). --define('RPC_SYSTEM_VALUES_APACHE_DUBBO', 'apache_dubbo'). +-define(RPC_SYSTEM_VALUES_APACHE_DUBBO, 'apache_dubbo'). --define('RPC_SYSTEM_VALUES_CONNECT_RPC', 'connect_rpc'). +-define(RPC_SYSTEM_VALUES_CONNECT_RPC, 'connect_rpc'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl index 90bbd1e6..e0896b2a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/service_attributes.hrl @@ -18,9 +18,9 @@ %% The string ID of the service instance. %% --define('SERVICE_INSTANCE_ID', 'service.instance.id'). +-define(SERVICE_INSTANCE_ID, 'service.instance.id'). %% A namespace for `service.name`. %% --define('SERVICE_NAMESPACE', 'service.namespace'). +-define(SERVICE_NAMESPACE, 'service.namespace'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/session_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/session_attributes.hrl index 45626102..b44e753a 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/session_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/session_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% A unique id to identify a session. --define('SESSION_ID', 'session.id'). +-define(SESSION_ID, 'session.id'). %% The previous `session.id` for this user, when known. --define('SESSION_PREVIOUS_ID', 'session.previous_id'). +-define(SESSION_PREVIOUS_ID, 'session.previous_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/source_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/source_attributes.hrl index 2935863a..4f7c3f9b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/source_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/source_attributes.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. --define('SOURCE_ADDRESS', 'source.address'). +-define(SOURCE_ADDRESS, 'source.address'). %% Source port number --define('SOURCE_PORT', 'source.port'). +-define(SOURCE_PORT, 'source.port'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl index 2585f28e..a97033c9 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl @@ -15,161 +15,161 @@ %%%------------------------------------------------------------------------- %% The logical CPU number [0..n-1] --define('SYSTEM_CPU_LOGICAL_NUMBER', 'system.cpu.logical_number'). +-define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). %% The state of the CPU --define('SYSTEM_CPU_STATE', 'system.cpu.state'). +-define(SYSTEM_CPU_STATE, 'system.cpu.state'). --define('SYSTEM_CPU_STATE_VALUES_USER', 'user'). +-define(SYSTEM_CPU_STATE_VALUES_USER, 'user'). --define('SYSTEM_CPU_STATE_VALUES_SYSTEM', 'system'). +-define(SYSTEM_CPU_STATE_VALUES_SYSTEM, 'system'). --define('SYSTEM_CPU_STATE_VALUES_NICE', 'nice'). +-define(SYSTEM_CPU_STATE_VALUES_NICE, 'nice'). --define('SYSTEM_CPU_STATE_VALUES_IDLE', 'idle'). +-define(SYSTEM_CPU_STATE_VALUES_IDLE, 'idle'). --define('SYSTEM_CPU_STATE_VALUES_IOWAIT', 'iowait'). +-define(SYSTEM_CPU_STATE_VALUES_IOWAIT, 'iowait'). --define('SYSTEM_CPU_STATE_VALUES_INTERRUPT', 'interrupt'). +-define(SYSTEM_CPU_STATE_VALUES_INTERRUPT, 'interrupt'). --define('SYSTEM_CPU_STATE_VALUES_STEAL', 'steal'). +-define(SYSTEM_CPU_STATE_VALUES_STEAL, 'steal'). %% The device identifier --define('SYSTEM_DEVICE', 'system.device'). +-define(SYSTEM_DEVICE, 'system.device'). %% The filesystem mode --define('SYSTEM_FILESYSTEM_MODE', 'system.filesystem.mode'). +-define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). %% The filesystem mount path --define('SYSTEM_FILESYSTEM_MOUNTPOINT', 'system.filesystem.mountpoint'). +-define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). %% The filesystem state --define('SYSTEM_FILESYSTEM_STATE', 'system.filesystem.state'). +-define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). --define('SYSTEM_FILESYSTEM_STATE_VALUES_USED', 'used'). +-define(SYSTEM_FILESYSTEM_STATE_VALUES_USED, 'used'). --define('SYSTEM_FILESYSTEM_STATE_VALUES_FREE', 'free'). +-define(SYSTEM_FILESYSTEM_STATE_VALUES_FREE, 'free'). --define('SYSTEM_FILESYSTEM_STATE_VALUES_RESERVED', 'reserved'). +-define(SYSTEM_FILESYSTEM_STATE_VALUES_RESERVED, 'reserved'). %% The filesystem type --define('SYSTEM_FILESYSTEM_TYPE', 'system.filesystem.type'). +-define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32', 'fat32'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32, 'fat32'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES_EXFAT', 'exfat'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXFAT, 'exfat'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES_NTFS', 'ntfs'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_NTFS, 'ntfs'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES_REFS', 'refs'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_REFS, 'refs'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES_HFSPLUS', 'hfsplus'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_HFSPLUS, 'hfsplus'). --define('SYSTEM_FILESYSTEM_TYPE_VALUES_EXT_4', 'ext4'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXT_4, 'ext4'). %% The memory state --define('SYSTEM_MEMORY_STATE', 'system.memory.state'). +-define(SYSTEM_MEMORY_STATE, 'system.memory.state'). --define('SYSTEM_MEMORY_STATE_VALUES_USED', 'used'). +-define(SYSTEM_MEMORY_STATE_VALUES_USED, 'used'). --define('SYSTEM_MEMORY_STATE_VALUES_FREE', 'free'). +-define(SYSTEM_MEMORY_STATE_VALUES_FREE, 'free'). --define('SYSTEM_MEMORY_STATE_VALUES_SHARED', 'shared'). +-define(SYSTEM_MEMORY_STATE_VALUES_SHARED, 'shared'). --define('SYSTEM_MEMORY_STATE_VALUES_BUFFERS', 'buffers'). +-define(SYSTEM_MEMORY_STATE_VALUES_BUFFERS, 'buffers'). --define('SYSTEM_MEMORY_STATE_VALUES_CACHED', 'cached'). +-define(SYSTEM_MEMORY_STATE_VALUES_CACHED, 'cached'). %% A stateless protocol MUST NOT set this attribute --define('SYSTEM_NETWORK_STATE', 'system.network.state'). +-define(SYSTEM_NETWORK_STATE, 'system.network.state'). --define('SYSTEM_NETWORK_STATE_VALUES_CLOSE', 'close'). +-define(SYSTEM_NETWORK_STATE_VALUES_CLOSE, 'close'). --define('SYSTEM_NETWORK_STATE_VALUES_CLOSE_WAIT', 'close_wait'). +-define(SYSTEM_NETWORK_STATE_VALUES_CLOSE_WAIT, 'close_wait'). --define('SYSTEM_NETWORK_STATE_VALUES_CLOSING', 'closing'). +-define(SYSTEM_NETWORK_STATE_VALUES_CLOSING, 'closing'). --define('SYSTEM_NETWORK_STATE_VALUES_DELETE', 'delete'). +-define(SYSTEM_NETWORK_STATE_VALUES_DELETE, 'delete'). --define('SYSTEM_NETWORK_STATE_VALUES_ESTABLISHED', 'established'). +-define(SYSTEM_NETWORK_STATE_VALUES_ESTABLISHED, 'established'). --define('SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_1', 'fin_wait_1'). +-define(SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_1, 'fin_wait_1'). --define('SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_2', 'fin_wait_2'). +-define(SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_2, 'fin_wait_2'). --define('SYSTEM_NETWORK_STATE_VALUES_LAST_ACK', 'last_ack'). +-define(SYSTEM_NETWORK_STATE_VALUES_LAST_ACK, 'last_ack'). --define('SYSTEM_NETWORK_STATE_VALUES_LISTEN', 'listen'). +-define(SYSTEM_NETWORK_STATE_VALUES_LISTEN, 'listen'). --define('SYSTEM_NETWORK_STATE_VALUES_SYN_RECV', 'syn_recv'). +-define(SYSTEM_NETWORK_STATE_VALUES_SYN_RECV, 'syn_recv'). --define('SYSTEM_NETWORK_STATE_VALUES_SYN_SENT', 'syn_sent'). +-define(SYSTEM_NETWORK_STATE_VALUES_SYN_SENT, 'syn_sent'). --define('SYSTEM_NETWORK_STATE_VALUES_TIME_WAIT', 'time_wait'). +-define(SYSTEM_NETWORK_STATE_VALUES_TIME_WAIT, 'time_wait'). %% The paging access direction --define('SYSTEM_PAGING_DIRECTION', 'system.paging.direction'). +-define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). --define('SYSTEM_PAGING_DIRECTION_VALUES_IN', 'in'). +-define(SYSTEM_PAGING_DIRECTION_VALUES_IN, 'in'). --define('SYSTEM_PAGING_DIRECTION_VALUES_OUT', 'out'). +-define(SYSTEM_PAGING_DIRECTION_VALUES_OUT, 'out'). %% The memory paging state --define('SYSTEM_PAGING_STATE', 'system.paging.state'). +-define(SYSTEM_PAGING_STATE, 'system.paging.state'). --define('SYSTEM_PAGING_STATE_VALUES_USED', 'used'). +-define(SYSTEM_PAGING_STATE_VALUES_USED, 'used'). --define('SYSTEM_PAGING_STATE_VALUES_FREE', 'free'). +-define(SYSTEM_PAGING_STATE_VALUES_FREE, 'free'). %% The memory paging type --define('SYSTEM_PAGING_TYPE', 'system.paging.type'). +-define(SYSTEM_PAGING_TYPE, 'system.paging.type'). --define('SYSTEM_PAGING_TYPE_VALUES_MAJOR', 'major'). +-define(SYSTEM_PAGING_TYPE_VALUES_MAJOR, 'major'). --define('SYSTEM_PAGING_TYPE_VALUES_MINOR', 'minor'). +-define(SYSTEM_PAGING_TYPE_VALUES_MINOR, 'minor'). %% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) %% --define('SYSTEM_PROCESS_STATUS', 'system.process.status'). +-define(SYSTEM_PROCESS_STATUS, 'system.process.status'). --define('SYSTEM_PROCESS_STATUS_VALUES_RUNNING', 'running'). +-define(SYSTEM_PROCESS_STATUS_VALUES_RUNNING, 'running'). --define('SYSTEM_PROCESS_STATUS_VALUES_SLEEPING', 'sleeping'). +-define(SYSTEM_PROCESS_STATUS_VALUES_SLEEPING, 'sleeping'). --define('SYSTEM_PROCESS_STATUS_VALUES_STOPPED', 'stopped'). +-define(SYSTEM_PROCESS_STATUS_VALUES_STOPPED, 'stopped'). --define('SYSTEM_PROCESS_STATUS_VALUES_DEFUNCT', 'defunct'). +-define(SYSTEM_PROCESS_STATUS_VALUES_DEFUNCT, 'defunct'). %% @deprecated Replaced by `system.process.status`. %% Deprecated, use `system.process.status` instead. --define('SYSTEM_PROCESSES_STATUS', 'system.processes.status'). +-define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). --define('SYSTEM_PROCESSES_STATUS_VALUES_RUNNING', 'running'). +-define(SYSTEM_PROCESSES_STATUS_VALUES_RUNNING, 'running'). --define('SYSTEM_PROCESSES_STATUS_VALUES_SLEEPING', 'sleeping'). +-define(SYSTEM_PROCESSES_STATUS_VALUES_SLEEPING, 'sleeping'). --define('SYSTEM_PROCESSES_STATUS_VALUES_STOPPED', 'stopped'). +-define(SYSTEM_PROCESSES_STATUS_VALUES_STOPPED, 'stopped'). --define('SYSTEM_PROCESSES_STATUS_VALUES_DEFUNCT', 'defunct'). +-define(SYSTEM_PROCESSES_STATUS_VALUES_DEFUNCT, 'defunct'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl index 7709e295..9b231394 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/telemetry_attributes.hrl @@ -18,9 +18,9 @@ %% The name of the auto instrumentation agent or distribution, if used. %% --define('TELEMETRY_DISTRO_NAME', 'telemetry.distro.name'). +-define(TELEMETRY_DISTRO_NAME, 'telemetry.distro.name'). %% The version string of the auto instrumentation agent or distribution, if used. %% --define('TELEMETRY_DISTRO_VERSION', 'telemetry.distro.version'). +-define(TELEMETRY_DISTRO_VERSION, 'telemetry.distro.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/thread_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/thread_attributes.hrl index 1b5e17df..8eec8d36 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/thread_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/thread_attributes.hrl @@ -16,9 +16,9 @@ %% Current "managed" thread ID (as opposed to OS thread ID). %% --define('THREAD_ID', 'thread.id'). +-define(THREAD_ID, 'thread.id'). %% Current thread name. %% --define('THREAD_NAME', 'thread.name'). +-define(THREAD_NAME, 'thread.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl index 3fd7d49c..8486f70f 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl @@ -16,134 +16,134 @@ %% String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. %% --define('TLS_CIPHER', 'tls.cipher'). +-define(TLS_CIPHER, 'tls.cipher'). %% PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. %% --define('TLS_CLIENT_CERTIFICATE', 'tls.client.certificate'). +-define(TLS_CLIENT_CERTIFICATE, 'tls.client.certificate'). %% Array of PEM-encoded certificates that make up the certificate chain offered by the client. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. %% --define('TLS_CLIENT_CERTIFICATE_CHAIN', 'tls.client.certificate_chain'). +-define(TLS_CLIENT_CERTIFICATE_CHAIN, 'tls.client.certificate_chain'). %% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define('TLS_CLIENT_HASH_MD5', 'tls.client.hash.md5'). +-define(TLS_CLIENT_HASH_MD5, 'tls.client.hash.md5'). %% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define('TLS_CLIENT_HASH_SHA1', 'tls.client.hash.sha1'). +-define(TLS_CLIENT_HASH_SHA1, 'tls.client.hash.sha1'). %% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the client. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define('TLS_CLIENT_HASH_SHA256', 'tls.client.hash.sha256'). +-define(TLS_CLIENT_HASH_SHA256, 'tls.client.hash.sha256'). %% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. --define('TLS_CLIENT_ISSUER', 'tls.client.issuer'). +-define(TLS_CLIENT_ISSUER, 'tls.client.issuer'). %% A hash that identifies clients based on how they perform an SSL/TLS handshake. --define('TLS_CLIENT_JA3', 'tls.client.ja3'). +-define(TLS_CLIENT_JA3, 'tls.client.ja3'). %% Date/Time indicating when client certificate is no longer considered valid. --define('TLS_CLIENT_NOT_AFTER', 'tls.client.not_after'). +-define(TLS_CLIENT_NOT_AFTER, 'tls.client.not_after'). %% Date/Time indicating when client certificate is first considered valid. --define('TLS_CLIENT_NOT_BEFORE', 'tls.client.not_before'). +-define(TLS_CLIENT_NOT_BEFORE, 'tls.client.not_before'). %% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. --define('TLS_CLIENT_SERVER_NAME', 'tls.client.server_name'). +-define(TLS_CLIENT_SERVER_NAME, 'tls.client.server_name'). %% Distinguished name of subject of the x.509 certificate presented by the client. --define('TLS_CLIENT_SUBJECT', 'tls.client.subject'). +-define(TLS_CLIENT_SUBJECT, 'tls.client.subject'). %% Array of ciphers offered by the client during the client hello. --define('TLS_CLIENT_SUPPORTED_CIPHERS', 'tls.client.supported_ciphers'). +-define(TLS_CLIENT_SUPPORTED_CIPHERS, 'tls.client.supported_ciphers'). %% String indicating the curve used for the given cipher, when applicable --define('TLS_CURVE', 'tls.curve'). +-define(TLS_CURVE, 'tls.curve'). %% Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel. --define('TLS_ESTABLISHED', 'tls.established'). +-define(TLS_ESTABLISHED, 'tls.established'). %% String indicating the protocol being tunneled. Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), this string should be lower case. %% --define('TLS_NEXT_PROTOCOL', 'tls.next_protocol'). +-define(TLS_NEXT_PROTOCOL, 'tls.next_protocol'). %% Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) %% --define('TLS_PROTOCOL_NAME', 'tls.protocol.name'). +-define(TLS_PROTOCOL_NAME, 'tls.protocol.name'). --define('TLS_PROTOCOL_NAME_VALUES_SSL', 'ssl'). +-define(TLS_PROTOCOL_NAME_VALUES_SSL, 'ssl'). --define('TLS_PROTOCOL_NAME_VALUES_TLS', 'tls'). +-define(TLS_PROTOCOL_NAME_VALUES_TLS, 'tls'). %% Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) %% --define('TLS_PROTOCOL_VERSION', 'tls.protocol.version'). +-define(TLS_PROTOCOL_VERSION, 'tls.protocol.version'). %% Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation. --define('TLS_RESUMED', 'tls.resumed'). +-define(TLS_RESUMED, 'tls.resumed'). %% PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. %% --define('TLS_SERVER_CERTIFICATE', 'tls.server.certificate'). +-define(TLS_SERVER_CERTIFICATE, 'tls.server.certificate'). %% Array of PEM-encoded certificates that make up the certificate chain offered by the server. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. %% --define('TLS_SERVER_CERTIFICATE_CHAIN', 'tls.server.certificate_chain'). +-define(TLS_SERVER_CERTIFICATE_CHAIN, 'tls.server.certificate_chain'). %% Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define('TLS_SERVER_HASH_MD5', 'tls.server.hash.md5'). +-define(TLS_SERVER_HASH_MD5, 'tls.server.hash.md5'). %% Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define('TLS_SERVER_HASH_SHA1', 'tls.server.hash.sha1'). +-define(TLS_SERVER_HASH_SHA1, 'tls.server.hash.sha1'). %% Certificate fingerprint using the SHA256 digest of DER-encoded version of certificate offered by the server. For consistency with other hash values, this value should be formatted as an uppercase hash. %% --define('TLS_SERVER_HASH_SHA256', 'tls.server.hash.sha256'). +-define(TLS_SERVER_HASH_SHA256, 'tls.server.hash.sha256'). %% Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client. --define('TLS_SERVER_ISSUER', 'tls.server.issuer'). +-define(TLS_SERVER_ISSUER, 'tls.server.issuer'). %% A hash that identifies servers based on how they perform an SSL/TLS handshake. --define('TLS_SERVER_JA3S', 'tls.server.ja3s'). +-define(TLS_SERVER_JA3S, 'tls.server.ja3s'). %% Date/Time indicating when server certificate is no longer considered valid. --define('TLS_SERVER_NOT_AFTER', 'tls.server.not_after'). +-define(TLS_SERVER_NOT_AFTER, 'tls.server.not_after'). %% Date/Time indicating when server certificate is first considered valid. --define('TLS_SERVER_NOT_BEFORE', 'tls.server.not_before'). +-define(TLS_SERVER_NOT_BEFORE, 'tls.server.not_before'). %% Distinguished name of subject of the x.509 certificate presented by the server. --define('TLS_SERVER_SUBJECT', 'tls.server.subject'). +-define(TLS_SERVER_SUBJECT, 'tls.server.subject'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl index 0b026079..0ed66fbd 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/url_attributes.hrl @@ -18,39 +18,39 @@ %% Domain extracted from the `url.full`, such as "opentelemetry.io". %% --define('URL_DOMAIN', 'url.domain'). +-define(URL_DOMAIN, 'url.domain'). %% The file extension extracted from the `url.full`, excluding the leading dot. %% --define('URL_EXTENSION', 'url.extension'). +-define(URL_EXTENSION, 'url.extension'). %% Unmodified original URL as seen in the event source. %% --define('URL_ORIGINAL', 'url.original'). +-define(URL_ORIGINAL, 'url.original'). %% Port extracted from the `url.full` %% --define('URL_PORT', 'url.port'). +-define(URL_PORT, 'url.port'). %% The highest registered url domain, stripped of the subdomain. %% --define('URL_REGISTERED_DOMAIN', 'url.registered_domain'). +-define(URL_REGISTERED_DOMAIN, 'url.registered_domain'). %% The subdomain portion of a fully qualified domain name includes all of the names except the host name under the registered_domain. In a partially qualified domain, or if the qualification level of the full name cannot be determined, subdomain contains all of the names below the registered domain. %% --define('URL_SUBDOMAIN', 'url.subdomain'). +-define(URL_SUBDOMAIN, 'url.subdomain'). %% The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). %% --define('URL_TEMPLATE', 'url.template'). +-define(URL_TEMPLATE, 'url.template'). %% The effective top level domain (eTLD), also known as the domain suffix, is the last part of the domain name. For example, the top level domain for example.com is `com`. %% --define('URL_TOP_LEVEL_DOMAIN', 'url.top_level_domain'). +-define(URL_TOP_LEVEL_DOMAIN, 'url.top_level_domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl index 67ab48b6..b60d96c8 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_agent_attributes.hrl @@ -18,9 +18,9 @@ %% Name of the user-agent extracted from original. Usually refers to the browser's name. %% --define('USER_AGENT_NAME', 'user_agent.name'). +-define(USER_AGENT_NAME, 'user_agent.name'). %% Version of the user-agent extracted from original. Usually refers to the browser's version %% --define('USER_AGENT_VERSION', 'user_agent.version'). +-define(USER_AGENT_VERSION, 'user_agent.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl index ca19ecce..fe6cd563 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl @@ -16,14 +16,14 @@ %% Additional description of the web engine (e.g. detailed version and edition information). %% --define('WEBENGINE_DESCRIPTION', 'webengine.description'). +-define(WEBENGINE_DESCRIPTION, 'webengine.description'). %% The name of the web engine. %% --define('WEBENGINE_NAME', 'webengine.name'). +-define(WEBENGINE_NAME, 'webengine.name'). %% The version of the web engine. %% --define('WEBENGINE_VERSION', 'webengine.version'). +-define(WEBENGINE_VERSION, 'webengine.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl index 3f95abb7..70487615 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/container_metrics.hrl @@ -15,16 +15,16 @@ %%%------------------------------------------------------------------------- %% Total CPU time consumed --define('CONTAINER_CPU_TIME', 'container.cpu.time'). +-define(CONTAINER_CPU_TIME, 'container.cpu.time'). %% Disk bytes for the container. --define('CONTAINER_DISK_IO', 'container.disk.io'). +-define(CONTAINER_DISK_IO, 'container.disk.io'). %% Memory usage of the container. --define('CONTAINER_MEMORY_USAGE', 'container.memory.usage'). +-define(CONTAINER_MEMORY_USAGE, 'container.memory.usage'). %% Network bytes for the container. --define('CONTAINER_NETWORK_IO', 'container.network.io'). +-define(CONTAINER_NETWORK_IO, 'container.network.io'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl index 15e7132b..d68836a3 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/db_metrics.hrl @@ -15,76 +15,76 @@ %%%------------------------------------------------------------------------- %% The number of connections that are currently in state described by the `state` attribute --define('DB_CLIENT_CONNECTION_COUNT', 'db.client.connection.count'). +-define(DB_CLIENT_CONNECTION_COUNT, 'db.client.connection.count'). %% The time it took to create a new connection --define('DB_CLIENT_CONNECTION_CREATE_TIME', 'db.client.connection.create_time'). +-define(DB_CLIENT_CONNECTION_CREATE_TIME, 'db.client.connection.create_time'). %% The maximum number of idle open connections allowed --define('DB_CLIENT_CONNECTION_IDLE_MAX', 'db.client.connection.idle.max'). +-define(DB_CLIENT_CONNECTION_IDLE_MAX, 'db.client.connection.idle.max'). %% The minimum number of idle open connections allowed --define('DB_CLIENT_CONNECTION_IDLE_MIN', 'db.client.connection.idle.min'). +-define(DB_CLIENT_CONNECTION_IDLE_MIN, 'db.client.connection.idle.min'). %% The maximum number of open connections allowed --define('DB_CLIENT_CONNECTION_MAX', 'db.client.connection.max'). +-define(DB_CLIENT_CONNECTION_MAX, 'db.client.connection.max'). %% The number of pending requests for an open connection, cumulative for the entire pool --define('DB_CLIENT_CONNECTION_PENDING_REQUESTS', 'db.client.connection.pending_requests'). +-define(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 --define('DB_CLIENT_CONNECTION_TIMEOUTS', 'db.client.connection.timeouts'). +-define(DB_CLIENT_CONNECTION_TIMEOUTS, 'db.client.connection.timeouts'). %% The time between borrowing a connection and returning it to the pool --define('DB_CLIENT_CONNECTION_USE_TIME', 'db.client.connection.use_time'). +-define(DB_CLIENT_CONNECTION_USE_TIME, 'db.client.connection.use_time'). %% The time it took to obtain an open connection from the pool --define('DB_CLIENT_CONNECTION_WAIT_TIME', 'db.client.connection.wait_time'). +-define(DB_CLIENT_CONNECTION_WAIT_TIME, 'db.client.connection.wait_time'). %% @deprecated Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. --define('DB_CLIENT_CONNECTIONS_CREATE_TIME', 'db.client.connections.create_time'). +-define(DB_CLIENT_CONNECTIONS_CREATE_TIME, 'db.client.connections.create_time'). %% @deprecated Replaced by `db.client.connection.idle.max`. %% Deprecated, use `db.client.connection.idle.max` instead. --define('DB_CLIENT_CONNECTIONS_IDLE_MAX', 'db.client.connections.idle.max'). +-define(DB_CLIENT_CONNECTIONS_IDLE_MAX, 'db.client.connections.idle.max'). %% @deprecated Replaced by `db.client.connection.idle.min`. %% Deprecated, use `db.client.connection.idle.min` instead. --define('DB_CLIENT_CONNECTIONS_IDLE_MIN', 'db.client.connections.idle.min'). +-define(DB_CLIENT_CONNECTIONS_IDLE_MIN, 'db.client.connections.idle.min'). %% @deprecated Replaced by `db.client.connection.max`. %% Deprecated, use `db.client.connection.max` instead. --define('DB_CLIENT_CONNECTIONS_MAX', 'db.client.connections.max'). +-define(DB_CLIENT_CONNECTIONS_MAX, 'db.client.connections.max'). %% @deprecated Replaced by `db.client.connection.pending_requests`. %% Deprecated, use `db.client.connection.pending_requests` instead. --define('DB_CLIENT_CONNECTIONS_PENDING_REQUESTS', 'db.client.connections.pending_requests'). +-define(DB_CLIENT_CONNECTIONS_PENDING_REQUESTS, 'db.client.connections.pending_requests'). %% @deprecated Replaced by `db.client.connection.timeouts`. %% Deprecated, use `db.client.connection.timeouts` instead. --define('DB_CLIENT_CONNECTIONS_TIMEOUTS', 'db.client.connections.timeouts'). +-define(DB_CLIENT_CONNECTIONS_TIMEOUTS, 'db.client.connections.timeouts'). %% @deprecated Replaced by `db.client.connection.count`. %% Deprecated, use `db.client.connection.count` instead. --define('DB_CLIENT_CONNECTIONS_USAGE', 'db.client.connections.usage'). +-define(DB_CLIENT_CONNECTIONS_USAGE, 'db.client.connections.usage'). %% @deprecated Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. --define('DB_CLIENT_CONNECTIONS_USE_TIME', 'db.client.connections.use_time'). +-define(DB_CLIENT_CONNECTIONS_USE_TIME, 'db.client.connections.use_time'). %% @deprecated Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`. %% Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. --define('DB_CLIENT_CONNECTIONS_WAIT_TIME', 'db.client.connections.wait_time'). +-define(DB_CLIENT_CONNECTIONS_WAIT_TIME, 'db.client.connections.wait_time'). %% Duration of database client operations. --define('DB_CLIENT_OPERATION_DURATION', 'db.client.operation.duration'). +-define(DB_CLIENT_OPERATION_DURATION, 'db.client.operation.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl index 5bd550f0..52c3855b 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/dns_metrics.hrl @@ -15,4 +15,4 @@ %%%------------------------------------------------------------------------- %% Measures the time taken to perform a DNS lookup. --define('DNS_LOOKUP_DURATION', 'dns.lookup.duration'). +-define(DNS_LOOKUP_DURATION, 'dns.lookup.duration'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl index 504a7f57..3f777ac4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/faas_metrics.hrl @@ -15,36 +15,36 @@ %%%------------------------------------------------------------------------- %% Number of invocation cold starts --define('FAAS_COLDSTARTS', 'faas.coldstarts'). +-define(FAAS_COLDSTARTS, 'faas.coldstarts'). %% Distribution of CPU usage per invocation --define('FAAS_CPU_USAGE', 'faas.cpu_usage'). +-define(FAAS_CPU_USAGE, 'faas.cpu_usage'). %% Number of invocation errors --define('FAAS_ERRORS', 'faas.errors'). +-define(FAAS_ERRORS, 'faas.errors'). %% Measures the duration of the function's initialization, such as a cold start --define('FAAS_INIT_DURATION', 'faas.init_duration'). +-define(FAAS_INIT_DURATION, 'faas.init_duration'). %% Number of successful invocations --define('FAAS_INVOCATIONS', 'faas.invocations'). +-define(FAAS_INVOCATIONS, 'faas.invocations'). %% Measures the duration of the function's logic execution --define('FAAS_INVOKE_DURATION', 'faas.invoke_duration'). +-define(FAAS_INVOKE_DURATION, 'faas.invoke_duration'). %% Distribution of max memory usage per invocation --define('FAAS_MEM_USAGE', 'faas.mem_usage'). +-define(FAAS_MEM_USAGE, 'faas.mem_usage'). %% Distribution of net I/O usage per invocation --define('FAAS_NET_IO', 'faas.net_io'). +-define(FAAS_NET_IO, 'faas.net_io'). %% Number of invocation timeouts --define('FAAS_TIMEOUTS', 'faas.timeouts'). +-define(FAAS_TIMEOUTS, 'faas.timeouts'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl index 5167fc5d..c18cf169 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/http_metrics.hrl @@ -15,32 +15,32 @@ %%%------------------------------------------------------------------------- %% Number of active HTTP requests. --define('HTTP_CLIENT_ACTIVE_REQUESTS', 'http.client.active_requests'). +-define(HTTP_CLIENT_ACTIVE_REQUESTS, 'http.client.active_requests'). %% The duration of the successfully established outbound HTTP connections. --define('HTTP_CLIENT_CONNECTION_DURATION', 'http.client.connection.duration'). +-define(HTTP_CLIENT_CONNECTION_DURATION, 'http.client.connection.duration'). %% Number of outbound HTTP connections that are currently active or idle on the client. --define('HTTP_CLIENT_OPEN_CONNECTIONS', 'http.client.open_connections'). +-define(HTTP_CLIENT_OPEN_CONNECTIONS, 'http.client.open_connections'). %% Size of HTTP client request bodies. --define('HTTP_CLIENT_REQUEST_BODY_SIZE', 'http.client.request.body.size'). +-define(HTTP_CLIENT_REQUEST_BODY_SIZE, 'http.client.request.body.size'). %% Size of HTTP client response bodies. --define('HTTP_CLIENT_RESPONSE_BODY_SIZE', 'http.client.response.body.size'). +-define(HTTP_CLIENT_RESPONSE_BODY_SIZE, 'http.client.response.body.size'). %% Number of active HTTP server requests. --define('HTTP_SERVER_ACTIVE_REQUESTS', 'http.server.active_requests'). +-define(HTTP_SERVER_ACTIVE_REQUESTS, 'http.server.active_requests'). %% Size of HTTP server request bodies. --define('HTTP_SERVER_REQUEST_BODY_SIZE', 'http.server.request.body.size'). +-define(HTTP_SERVER_REQUEST_BODY_SIZE, 'http.server.request.body.size'). %% Size of HTTP server response bodies. --define('HTTP_SERVER_RESPONSE_BODY_SIZE', 'http.server.response.body.size'). +-define(HTTP_SERVER_RESPONSE_BODY_SIZE, 'http.server.response.body.size'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl index f29f965e..adf9a2c6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl @@ -15,24 +15,24 @@ %%%------------------------------------------------------------------------- %% Measures the duration of process operation. --define('MESSAGING_PROCESS_DURATION', 'messaging.process.duration'). +-define(MESSAGING_PROCESS_DURATION, 'messaging.process.duration'). %% Measures the number of processed messages. --define('MESSAGING_PROCESS_MESSAGES', 'messaging.process.messages'). +-define(MESSAGING_PROCESS_MESSAGES, 'messaging.process.messages'). %% Measures the duration of publish operation. --define('MESSAGING_PUBLISH_DURATION', 'messaging.publish.duration'). +-define(MESSAGING_PUBLISH_DURATION, 'messaging.publish.duration'). %% Measures the number of published messages. --define('MESSAGING_PUBLISH_MESSAGES', 'messaging.publish.messages'). +-define(MESSAGING_PUBLISH_MESSAGES, 'messaging.publish.messages'). %% Measures the duration of receive operation. --define('MESSAGING_RECEIVE_DURATION', 'messaging.receive.duration'). +-define(MESSAGING_RECEIVE_DURATION, 'messaging.receive.duration'). %% Measures the number of received messages. --define('MESSAGING_RECEIVE_MESSAGES', 'messaging.receive.messages'). +-define(MESSAGING_RECEIVE_MESSAGES, 'messaging.receive.messages'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl index 7289fb52..e4dbe3ba 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/process_metrics.hrl @@ -15,40 +15,40 @@ %%%------------------------------------------------------------------------- %% Number of times the process has been context switched. --define('PROCESS_CONTEXT_SWITCHES', 'process.context_switches'). +-define(PROCESS_CONTEXT_SWITCHES, 'process.context_switches'). %% Total CPU seconds broken down by different states. --define('PROCESS_CPU_TIME', 'process.cpu.time'). +-define(PROCESS_CPU_TIME, 'process.cpu.time'). %% Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. --define('PROCESS_CPU_UTILIZATION', 'process.cpu.utilization'). +-define(PROCESS_CPU_UTILIZATION, 'process.cpu.utilization'). %% Disk bytes transferred. --define('PROCESS_DISK_IO', 'process.disk.io'). +-define(PROCESS_DISK_IO, 'process.disk.io'). %% The amount of physical memory in use. --define('PROCESS_MEMORY_USAGE', 'process.memory.usage'). +-define(PROCESS_MEMORY_USAGE, 'process.memory.usage'). %% The amount of committed virtual memory. --define('PROCESS_MEMORY_VIRTUAL', 'process.memory.virtual'). +-define(PROCESS_MEMORY_VIRTUAL, 'process.memory.virtual'). %% Network bytes transferred. --define('PROCESS_NETWORK_IO', 'process.network.io'). +-define(PROCESS_NETWORK_IO, 'process.network.io'). %% Number of file descriptors in use by the process. --define('PROCESS_OPEN_FILE_DESCRIPTOR_COUNT', 'process.open_file_descriptor.count'). +-define(PROCESS_OPEN_FILE_DESCRIPTOR_COUNT, 'process.open_file_descriptor.count'). %% Number of page faults the process has made. --define('PROCESS_PAGING_FAULTS', 'process.paging.faults'). +-define(PROCESS_PAGING_FAULTS, 'process.paging.faults'). %% Process threads count. --define('PROCESS_THREAD_COUNT', 'process.thread.count'). +-define(PROCESS_THREAD_COUNT, 'process.thread.count'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl index a88dad49..44ec47ff 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/rpc_metrics.hrl @@ -15,40 +15,40 @@ %%%------------------------------------------------------------------------- %% Measures the duration of outbound RPC. --define('RPC_CLIENT_DURATION', 'rpc.client.duration'). +-define(RPC_CLIENT_DURATION, 'rpc.client.duration'). %% Measures the size of RPC request messages (uncompressed). --define('RPC_CLIENT_REQUEST_SIZE', 'rpc.client.request.size'). +-define(RPC_CLIENT_REQUEST_SIZE, 'rpc.client.request.size'). %% Measures the number of messages received per RPC. --define('RPC_CLIENT_REQUESTS_PER_RPC', 'rpc.client.requests_per_rpc'). +-define(RPC_CLIENT_REQUESTS_PER_RPC, 'rpc.client.requests_per_rpc'). %% Measures the size of RPC response messages (uncompressed). --define('RPC_CLIENT_RESPONSE_SIZE', 'rpc.client.response.size'). +-define(RPC_CLIENT_RESPONSE_SIZE, 'rpc.client.response.size'). %% Measures the number of messages sent per RPC. --define('RPC_CLIENT_RESPONSES_PER_RPC', 'rpc.client.responses_per_rpc'). +-define(RPC_CLIENT_RESPONSES_PER_RPC, 'rpc.client.responses_per_rpc'). %% Measures the duration of inbound RPC. --define('RPC_SERVER_DURATION', 'rpc.server.duration'). +-define(RPC_SERVER_DURATION, 'rpc.server.duration'). %% Measures the size of RPC request messages (uncompressed). --define('RPC_SERVER_REQUEST_SIZE', 'rpc.server.request.size'). +-define(RPC_SERVER_REQUEST_SIZE, 'rpc.server.request.size'). %% Measures the number of messages received per RPC. --define('RPC_SERVER_REQUESTS_PER_RPC', 'rpc.server.requests_per_rpc'). +-define(RPC_SERVER_REQUESTS_PER_RPC, 'rpc.server.requests_per_rpc'). %% Measures the size of RPC response messages (uncompressed). --define('RPC_SERVER_RESPONSE_SIZE', 'rpc.server.response.size'). +-define(RPC_SERVER_RESPONSE_SIZE, 'rpc.server.response.size'). %% Measures the number of messages sent per RPC. --define('RPC_SERVER_RESPONSES_PER_RPC', 'rpc.server.responses_per_rpc'). +-define(RPC_SERVER_RESPONSES_PER_RPC, 'rpc.server.responses_per_rpc'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl index 0887775e..eb00e9e2 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl @@ -15,112 +15,112 @@ %%%------------------------------------------------------------------------- %% Reports the current frequency of the CPU in Hz --define('SYSTEM_CPU_FREQUENCY', 'system.cpu.frequency'). +-define(SYSTEM_CPU_FREQUENCY, 'system.cpu.frequency'). %% Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking --define('SYSTEM_CPU_LOGICAL_COUNT', 'system.cpu.logical.count'). +-define(SYSTEM_CPU_LOGICAL_COUNT, 'system.cpu.logical.count'). %% Reports the number of actual physical processor cores on the hardware --define('SYSTEM_CPU_PHYSICAL_COUNT', 'system.cpu.physical.count'). +-define(SYSTEM_CPU_PHYSICAL_COUNT, 'system.cpu.physical.count'). %% Seconds each logical CPU spent on each mode --define('SYSTEM_CPU_TIME', 'system.cpu.time'). +-define(SYSTEM_CPU_TIME, 'system.cpu.time'). %% Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs --define('SYSTEM_CPU_UTILIZATION', 'system.cpu.utilization'). +-define(SYSTEM_CPU_UTILIZATION, 'system.cpu.utilization'). %% none --define('SYSTEM_DISK_IO', 'system.disk.io'). +-define(SYSTEM_DISK_IO, 'system.disk.io'). %% Time disk spent activated --define('SYSTEM_DISK_IO_TIME', 'system.disk.io_time'). +-define(SYSTEM_DISK_IO_TIME, 'system.disk.io_time'). %% none --define('SYSTEM_DISK_MERGED', 'system.disk.merged'). +-define(SYSTEM_DISK_MERGED, 'system.disk.merged'). %% Sum of the time each operation took to complete --define('SYSTEM_DISK_OPERATION_TIME', 'system.disk.operation_time'). +-define(SYSTEM_DISK_OPERATION_TIME, 'system.disk.operation_time'). %% none --define('SYSTEM_DISK_OPERATIONS', 'system.disk.operations'). +-define(SYSTEM_DISK_OPERATIONS, 'system.disk.operations'). %% none --define('SYSTEM_FILESYSTEM_USAGE', 'system.filesystem.usage'). +-define(SYSTEM_FILESYSTEM_USAGE, 'system.filesystem.usage'). %% none --define('SYSTEM_FILESYSTEM_UTILIZATION', 'system.filesystem.utilization'). +-define(SYSTEM_FILESYSTEM_UTILIZATION, 'system.filesystem.utilization'). %% An estimate of how much memory is available for starting new applications, without causing swapping --define('SYSTEM_LINUX_MEMORY_AVAILABLE', 'system.linux.memory.available'). +-define(SYSTEM_LINUX_MEMORY_AVAILABLE, 'system.linux.memory.available'). %% Total memory available in the system. --define('SYSTEM_MEMORY_LIMIT', 'system.memory.limit'). +-define(SYSTEM_MEMORY_LIMIT, 'system.memory.limit'). %% Shared memory used (mostly by tmpfs). --define('SYSTEM_MEMORY_SHARED', 'system.memory.shared'). +-define(SYSTEM_MEMORY_SHARED, 'system.memory.shared'). %% Reports memory in use by state. --define('SYSTEM_MEMORY_USAGE', 'system.memory.usage'). +-define(SYSTEM_MEMORY_USAGE, 'system.memory.usage'). %% none --define('SYSTEM_MEMORY_UTILIZATION', 'system.memory.utilization'). +-define(SYSTEM_MEMORY_UTILIZATION, 'system.memory.utilization'). %% none --define('SYSTEM_NETWORK_CONNECTIONS', 'system.network.connections'). +-define(SYSTEM_NETWORK_CONNECTIONS, 'system.network.connections'). %% Count of packets that are dropped or discarded even though there was no error --define('SYSTEM_NETWORK_DROPPED', 'system.network.dropped'). +-define(SYSTEM_NETWORK_DROPPED, 'system.network.dropped'). %% Count of network errors detected --define('SYSTEM_NETWORK_ERRORS', 'system.network.errors'). +-define(SYSTEM_NETWORK_ERRORS, 'system.network.errors'). %% none --define('SYSTEM_NETWORK_IO', 'system.network.io'). +-define(SYSTEM_NETWORK_IO, 'system.network.io'). %% none --define('SYSTEM_NETWORK_PACKETS', 'system.network.packets'). +-define(SYSTEM_NETWORK_PACKETS, 'system.network.packets'). %% none --define('SYSTEM_PAGING_FAULTS', 'system.paging.faults'). +-define(SYSTEM_PAGING_FAULTS, 'system.paging.faults'). %% none --define('SYSTEM_PAGING_OPERATIONS', 'system.paging.operations'). +-define(SYSTEM_PAGING_OPERATIONS, 'system.paging.operations'). %% Unix swap or windows pagefile usage --define('SYSTEM_PAGING_USAGE', 'system.paging.usage'). +-define(SYSTEM_PAGING_USAGE, 'system.paging.usage'). %% none --define('SYSTEM_PAGING_UTILIZATION', 'system.paging.utilization'). +-define(SYSTEM_PAGING_UTILIZATION, 'system.paging.utilization'). %% Total number of processes in each state --define('SYSTEM_PROCESS_COUNT', 'system.process.count'). +-define(SYSTEM_PROCESS_COUNT, 'system.process.count'). %% Total number of processes created over uptime of the host --define('SYSTEM_PROCESS_CREATED', 'system.process.created'). +-define(SYSTEM_PROCESS_CREATED, 'system.process.created'). diff --git a/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl index 96e26101..32212de8 100644 --- a/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/metrics/http_metrics.hrl @@ -15,8 +15,8 @@ %%%------------------------------------------------------------------------- %% Duration of HTTP client requests. --define('HTTP_CLIENT_REQUEST_DURATION', 'http.client.request.duration'). +-define(HTTP_CLIENT_REQUEST_DURATION, 'http.client.request.duration'). %% Duration of HTTP server requests. --define('HTTP_SERVER_REQUEST_DURATION', 'http.server.request.duration'). +-define(HTTP_SERVER_REQUEST_DURATION, 'http.server.request.duration'). diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/client_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/client_attributes.ex index 74f1a08b..bcedc924 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/client_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/client_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.ClientAttributes do ### Erlang ```erlang - ?'CLIENT_ADDRESS'. + ?CLIENT_ADDRESS. 'client.address' ``` @@ -65,7 +65,7 @@ defmodule OpenTelemetry.SemConv.ClientAttributes do ### Erlang ```erlang - ?'CLIENT_PORT'. + ?CLIENT_PORT. 'client.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex index 84335796..be7cbd23 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/error_attributes.ex @@ -63,13 +63,13 @@ defmodule OpenTelemetry.SemConv.ErrorAttributes do ### Erlang ```erlang - ?'ERROR_TYPE'. + ?ERROR_TYPE. 'error.type' - ?'ERROR_TYPE_VALUES_OTHER'. + ?ERROR_TYPE_VALUES_OTHER. '_OTHER' - \#{?'ERROR_TYPE' => ?'ERROR_TYPE_VALUES_OTHER'}. + \#{?ERROR_TYPE => ?ERROR_TYPE_VALUES_OTHER}. \#{'error.type' => '_OTHER'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/exception_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/exception_attributes.ex index a89dc0af..7bb01402 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/exception_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/exception_attributes.ex @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?'EXCEPTION_ESCAPED'. + ?EXCEPTION_ESCAPED. 'exception.escaped' ``` @@ -71,7 +71,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?'EXCEPTION_MESSAGE'. + ?EXCEPTION_MESSAGE. 'exception.message' ``` @@ -104,7 +104,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?'EXCEPTION_STACKTRACE'. + ?EXCEPTION_STACKTRACE. 'exception.stacktrace' ``` @@ -137,7 +137,7 @@ defmodule OpenTelemetry.SemConv.ExceptionAttributes do ### Erlang ```erlang - ?'EXCEPTION_TYPE'. + ?EXCEPTION_TYPE. 'exception.type' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex index 38223be3..2264b2a9 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/http_attributes.ex @@ -32,7 +32,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_REQUEST_HEADER'. + ?HTTP_REQUEST_HEADER. 'http.request.header' ``` @@ -112,13 +112,13 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_REQUEST_METHOD'. + ?HTTP_REQUEST_METHOD. 'http.request.method' - ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'. + ?HTTP_REQUEST_METHOD_VALUES_CONNECT. 'CONNECT' - \#{?'HTTP_REQUEST_METHOD' => ?'HTTP_REQUEST_METHOD_VALUES_CONNECT'}. + \#{?HTTP_REQUEST_METHOD => ?HTTP_REQUEST_METHOD_VALUES_CONNECT}. \#{'http.request.method' => 'CONNECT'} ``` @@ -166,7 +166,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_REQUEST_METHOD_ORIGINAL'. + ?HTTP_REQUEST_METHOD_ORIGINAL. 'http.request.method_original' ``` @@ -203,7 +203,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_REQUEST_RESEND_COUNT'. + ?HTTP_REQUEST_RESEND_COUNT. 'http.request.resend_count' ``` @@ -242,7 +242,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_RESPONSE_HEADER'. + ?HTTP_RESPONSE_HEADER. 'http.response.header' ``` @@ -274,7 +274,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_RESPONSE_STATUS_CODE'. + ?HTTP_RESPONSE_STATUS_CODE. 'http.response.status_code' ``` @@ -312,7 +312,7 @@ defmodule OpenTelemetry.SemConv.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_ROUTE'. + ?HTTP_ROUTE. 'http.route' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex index 7a1e11ef..3cbf4ca5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_LOCAL_ADDRESS'. + ?NETWORK_LOCAL_ADDRESS. 'network.local.address' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_LOCAL_PORT'. + ?NETWORK_LOCAL_PORT. 'network.local.port' ``` @@ -89,7 +89,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_PEER_ADDRESS'. + ?NETWORK_PEER_ADDRESS. 'network.peer.address' ``` @@ -121,7 +121,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_PEER_PORT'. + ?NETWORK_PEER_PORT. 'network.peer.port' ``` @@ -156,7 +156,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_PROTOCOL_NAME'. + ?NETWORK_PROTOCOL_NAME. 'network.protocol.name' ``` @@ -192,7 +192,7 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_PROTOCOL_VERSION'. + ?NETWORK_PROTOCOL_VERSION. 'network.protocol.version' ``` @@ -253,13 +253,13 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_TRANSPORT'. + ?NETWORK_TRANSPORT. 'network.transport' - ?'NETWORK_TRANSPORT_VALUES_TCP'. + ?NETWORK_TRANSPORT_VALUES_TCP. 'tcp' - \#{?'NETWORK_TRANSPORT' => ?'NETWORK_TRANSPORT_VALUES_TCP'}. + \#{?NETWORK_TRANSPORT => ?NETWORK_TRANSPORT_VALUES_TCP}. \#{'network.transport' => 'tcp'} ``` @@ -319,13 +319,13 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_TYPE'. + ?NETWORK_TYPE. 'network.type' - ?'NETWORK_TYPE_VALUES_IPV_4'. + ?NETWORK_TYPE_VALUES_IPV_4. 'ipv4' - \#{?'NETWORK_TYPE' => ?'NETWORK_TYPE_VALUES_IPV_4'}. + \#{?NETWORK_TYPE => ?NETWORK_TYPE_VALUES_IPV_4}. \#{'network.type' => 'ipv4'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex index 9380be2c..6f07f4a1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/otel_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?'OTEL_SCOPE_NAME'. + ?OTEL_SCOPE_NAME. 'otel.scope.name' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?'OTEL_SCOPE_VERSION'. + ?OTEL_SCOPE_VERSION. 'otel.scope.version' ``` @@ -99,13 +99,13 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?'OTEL_STATUS_CODE'. + ?OTEL_STATUS_CODE. 'otel.status_code' - ?'OTEL_STATUS_CODE_VALUES_OK'. + ?OTEL_STATUS_CODE_VALUES_OK. 'OK' - \#{?'OTEL_STATUS_CODE' => ?'OTEL_STATUS_CODE_VALUES_OK'}. + \#{?OTEL_STATUS_CODE => ?OTEL_STATUS_CODE_VALUES_OK}. \#{'otel.status_code' => 'OK'} ``` @@ -145,7 +145,7 @@ defmodule OpenTelemetry.SemConv.OtelAttributes do ### Erlang ```erlang - ?'OTEL_STATUS_DESCRIPTION'. + ?OTEL_STATUS_DESCRIPTION. 'otel.status_description' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/server_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/server_attributes.ex index 7cf5a5a0..65bf7803 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/server_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/server_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.ServerAttributes do ### Erlang ```erlang - ?'SERVER_ADDRESS'. + ?SERVER_ADDRESS. 'server.address' ``` @@ -65,7 +65,7 @@ defmodule OpenTelemetry.SemConv.ServerAttributes do ### Erlang ```erlang - ?'SERVER_PORT'. + ?SERVER_PORT. 'server.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/service_attributes.ex index 2b4ed15e..6605df53 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/service_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/service_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.ServiceAttributes do ### Erlang ```erlang - ?'SERVICE_NAME'. + ?SERVICE_NAME. 'service.name' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.ServiceAttributes do ### Erlang ```erlang - ?'SERVICE_VERSION'. + ?SERVICE_VERSION. 'service.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex index 291eb58d..32c76e32 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/telemetry_attributes.ex @@ -57,13 +57,13 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Erlang ```erlang - ?'TELEMETRY_SDK_LANGUAGE'. + ?TELEMETRY_SDK_LANGUAGE. 'telemetry.sdk.language' - ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'. + ?TELEMETRY_SDK_LANGUAGE_VALUES_CPP. 'cpp' - \#{?'TELEMETRY_SDK_LANGUAGE' => ?'TELEMETRY_SDK_LANGUAGE_VALUES_CPP'}. + \#{?TELEMETRY_SDK_LANGUAGE => ?TELEMETRY_SDK_LANGUAGE_VALUES_CPP}. \#{'telemetry.sdk.language' => 'cpp'} ``` @@ -123,7 +123,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Erlang ```erlang - ?'TELEMETRY_SDK_NAME'. + ?TELEMETRY_SDK_NAME. 'telemetry.sdk.name' ``` @@ -156,7 +156,7 @@ defmodule OpenTelemetry.SemConv.TelemetryAttributes do ### Erlang ```erlang - ?'TELEMETRY_SDK_VERSION'. + ?TELEMETRY_SDK_VERSION. 'telemetry.sdk.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/url_attributes.ex index dc5bd413..a5fa0b6c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/url_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?'URL_FRAGMENT'. + ?URL_FRAGMENT. 'url.fragment' ``` @@ -64,7 +64,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?'URL_FULL'. + ?URL_FULL. 'url.full' ``` @@ -101,7 +101,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?'URL_PATH'. + ?URL_PATH. 'url.path' ``` @@ -138,7 +138,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?'URL_QUERY'. + ?URL_QUERY. 'url.query' ``` @@ -171,7 +171,7 @@ defmodule OpenTelemetry.SemConv.URLAttributes do ### Erlang ```erlang - ?'URL_SCHEME'. + ?URL_SCHEME. 'url.scheme' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/user_agent_attributes.ex index e380f44a..70106c8b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/user_agent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/user_agent_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.UserAgentAttributes do ### Erlang ```erlang - ?'USER_AGENT_ORIGINAL'. + ?USER_AGENT_ORIGINAL. 'user_agent.original' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex index a6efdd40..1d473ee3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS'. + ?AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS. 'aws.dynamodb.attribute_definitions' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_ATTRIBUTES_TO_GET'. + ?AWS_DYNAMODB_ATTRIBUTES_TO_GET. 'aws.dynamodb.attributes_to_get' ``` @@ -84,7 +84,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_CONSISTENT_READ'. + ?AWS_DYNAMODB_CONSISTENT_READ. 'aws.dynamodb.consistent_read' ``` @@ -116,7 +116,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_CONSUMED_CAPACITY'. + ?AWS_DYNAMODB_CONSUMED_CAPACITY. 'aws.dynamodb.consumed_capacity' ``` @@ -148,7 +148,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_COUNT'. + ?AWS_DYNAMODB_COUNT. 'aws.dynamodb.count' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_EXCLUSIVE_START_TABLE'. + ?AWS_DYNAMODB_EXCLUSIVE_START_TABLE. 'aws.dynamodb.exclusive_start_table' ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES'. + ?AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES. 'aws.dynamodb.global_secondary_index_updates' ``` @@ -245,7 +245,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES'. + ?AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES. 'aws.dynamodb.global_secondary_indexes' ``` @@ -277,7 +277,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_INDEX_NAME'. + ?AWS_DYNAMODB_INDEX_NAME. 'aws.dynamodb.index_name' ``` @@ -309,7 +309,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_ITEM_COLLECTION_METRICS'. + ?AWS_DYNAMODB_ITEM_COLLECTION_METRICS. 'aws.dynamodb.item_collection_metrics' ``` @@ -341,7 +341,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_LIMIT'. + ?AWS_DYNAMODB_LIMIT. 'aws.dynamodb.limit' ``` @@ -373,7 +373,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES'. + ?AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES. 'aws.dynamodb.local_secondary_indexes' ``` @@ -405,7 +405,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_PROJECTION'. + ?AWS_DYNAMODB_PROJECTION. 'aws.dynamodb.projection' ``` @@ -437,7 +437,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_PROVISIONED_READ_CAPACITY'. + ?AWS_DYNAMODB_PROVISIONED_READ_CAPACITY. 'aws.dynamodb.provisioned_read_capacity' ``` @@ -469,7 +469,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY'. + ?AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY. 'aws.dynamodb.provisioned_write_capacity' ``` @@ -496,7 +496,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_SCAN_FORWARD'. + ?AWS_DYNAMODB_SCAN_FORWARD. 'aws.dynamodb.scan_forward' ``` @@ -528,7 +528,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_SCANNED_COUNT'. + ?AWS_DYNAMODB_SCANNED_COUNT. 'aws.dynamodb.scanned_count' ``` @@ -560,7 +560,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_SEGMENT'. + ?AWS_DYNAMODB_SEGMENT. 'aws.dynamodb.segment' ``` @@ -592,7 +592,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_SELECT'. + ?AWS_DYNAMODB_SELECT. 'aws.dynamodb.select' ``` @@ -624,7 +624,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_TABLE_COUNT'. + ?AWS_DYNAMODB_TABLE_COUNT. 'aws.dynamodb.table_count' ``` @@ -656,7 +656,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_TABLE_NAMES'. + ?AWS_DYNAMODB_TABLE_NAMES. 'aws.dynamodb.table_names' ``` @@ -688,7 +688,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_DYNAMODB_TOTAL_SEGMENTS'. + ?AWS_DYNAMODB_TOTAL_SEGMENTS. 'aws.dynamodb.total_segments' ``` @@ -721,7 +721,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_CLUSTER_ARN'. + ?AWS_ECS_CLUSTER_ARN. 'aws.ecs.cluster.arn' ``` @@ -754,7 +754,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_CONTAINER_ARN'. + ?AWS_ECS_CONTAINER_ARN. 'aws.ecs.container.arn' ``` @@ -798,13 +798,13 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_LAUNCHTYPE'. + ?AWS_ECS_LAUNCHTYPE. 'aws.ecs.launchtype' - ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'. + ?AWS_ECS_LAUNCHTYPE_VALUES_EC_2. 'ec2' - \#{?'AWS_ECS_LAUNCHTYPE' => ?'AWS_ECS_LAUNCHTYPE_VALUES_EC_2'}. + \#{?AWS_ECS_LAUNCHTYPE => ?AWS_ECS_LAUNCHTYPE_VALUES_EC_2}. \#{'aws.ecs.launchtype' => 'ec2'} ``` @@ -845,7 +845,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_TASK_ARN'. + ?AWS_ECS_TASK_ARN. 'aws.ecs.task.arn' ``` @@ -878,7 +878,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_TASK_FAMILY'. + ?AWS_ECS_TASK_FAMILY. 'aws.ecs.task.family' ``` @@ -911,7 +911,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_TASK_ID'. + ?AWS_ECS_TASK_ID. 'aws.ecs.task.id' ``` @@ -944,7 +944,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_ECS_TASK_REVISION'. + ?AWS_ECS_TASK_REVISION. 'aws.ecs.task.revision' ``` @@ -977,7 +977,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_EKS_CLUSTER_ARN'. + ?AWS_EKS_CLUSTER_ARN. 'aws.eks.cluster.arn' ``` @@ -1013,7 +1013,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_LAMBDA_INVOKED_ARN'. + ?AWS_LAMBDA_INVOKED_ARN. 'aws.lambda.invoked_arn' ``` @@ -1050,7 +1050,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_LOG_GROUP_ARNS'. + ?AWS_LOG_GROUP_ARNS. 'aws.log.group.arns' ``` @@ -1087,7 +1087,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_LOG_GROUP_NAMES'. + ?AWS_LOG_GROUP_NAMES. 'aws.log.group.names' ``` @@ -1124,7 +1124,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_LOG_STREAM_ARNS'. + ?AWS_LOG_STREAM_ARNS. 'aws.log.stream.arns' ``` @@ -1157,7 +1157,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_LOG_STREAM_NAMES'. + ?AWS_LOG_STREAM_NAMES. 'aws.log.stream.names' ``` @@ -1189,7 +1189,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_REQUEST_ID'. + ?AWS_REQUEST_ID. 'aws.request_id' ``` @@ -1226,7 +1226,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_S3_BUCKET'. + ?AWS_S3_BUCKET. 'aws.s3.bucket' ``` @@ -1267,7 +1267,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_S3_COPY_SOURCE'. + ?AWS_S3_COPY_SOURCE. 'aws.s3.copy_source' ``` @@ -1305,7 +1305,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_S3_DELETE'. + ?AWS_S3_DELETE. 'aws.s3.delete' ``` @@ -1356,7 +1356,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_S3_KEY'. + ?AWS_S3_KEY. 'aws.s3.key' ``` @@ -1395,7 +1395,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_S3_PART_NUMBER'. + ?AWS_S3_PART_NUMBER. 'aws.s3.part_number' ``` @@ -1439,7 +1439,7 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ### Erlang ```erlang - ?'AWS_S3_UPLOAD_ID'. + ?AWS_S3_UPLOAD_ID. 'aws.s3.upload_id' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/browser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/browser_attributes.ex index 128f0d08..63b85baf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/browser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/browser_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?'BROWSER_BRANDS'. + ?BROWSER_BRANDS. 'browser.brands' ``` @@ -65,7 +65,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?'BROWSER_LANGUAGE'. + ?BROWSER_LANGUAGE. 'browser.language' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?'BROWSER_MOBILE'. + ?BROWSER_MOBILE. 'browser.mobile' ``` @@ -133,7 +133,7 @@ defmodule OpenTelemetry.SemConv.Incubating.BrowserAttributes do ### Erlang ```erlang - ?'BROWSER_PLATFORM'. + ?BROWSER_PLATFORM. 'browser.platform' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex index 09b1476e..d73217e7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?'CLOUD_ACCOUNT_ID'. + ?CLOUD_ACCOUNT_ID. 'cloud.account.id' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?'CLOUD_AVAILABILITY_ZONE'. + ?CLOUD_AVAILABILITY_ZONE. 'cloud.availability_zone' ``` @@ -163,13 +163,13 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?'CLOUD_PLATFORM'. + ?CLOUD_PLATFORM. 'cloud.platform' - ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'. + ?CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS. 'alibaba_cloud_ecs' - \#{?'CLOUD_PLATFORM' => ?'CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS'}. + \#{?CLOUD_PLATFORM => ?CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_ECS}. \#{'cloud.platform' => 'alibaba_cloud_ecs'} ``` @@ -257,13 +257,13 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?'CLOUD_PROVIDER'. + ?CLOUD_PROVIDER. 'cloud.provider' - ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'. + ?CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD. 'alibaba_cloud' - \#{?'CLOUD_PROVIDER' => ?'CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD'}. + \#{?CLOUD_PROVIDER => ?CLOUD_PROVIDER_VALUES_ALIBABA_CLOUD}. \#{'cloud.provider' => 'alibaba_cloud'} ``` @@ -313,7 +313,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?'CLOUD_REGION'. + ?CLOUD_REGION. 'cloud.region' ``` @@ -366,7 +366,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do ### Erlang ```erlang - ?'CLOUD_RESOURCE_ID'. + ?CLOUD_RESOURCE_ID. 'cloud.resource_id' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloudevents_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloudevents_attributes.ex index be83fd4e..a4501492 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloudevents_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloudevents_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?'CLOUDEVENTS_EVENT_ID'. + ?CLOUDEVENTS_EVENT_ID. 'cloudevents.event_id' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?'CLOUDEVENTS_EVENT_SOURCE'. + ?CLOUDEVENTS_EVENT_SOURCE. 'cloudevents.event_source' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?'CLOUDEVENTS_EVENT_SPEC_VERSION'. + ?CLOUDEVENTS_EVENT_SPEC_VERSION. 'cloudevents.event_spec_version' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?'CLOUDEVENTS_EVENT_SUBJECT'. + ?CLOUDEVENTS_EVENT_SUBJECT. 'cloudevents.event_subject' ``` @@ -158,7 +158,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudeventsAttributes do ### Erlang ```erlang - ?'CLOUDEVENTS_EVENT_TYPE'. + ?CLOUDEVENTS_EVENT_TYPE. 'cloudevents.event_type' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/code_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/code_attributes.ex index f04879be..154e989a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/code_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/code_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?'CODE_COLUMN'. + ?CODE_COLUMN. 'code.column' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?'CODE_FILEPATH'. + ?CODE_FILEPATH. 'code.filepath' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?'CODE_FUNCTION'. + ?CODE_FUNCTION. 'code.function' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?'CODE_LINENO'. + ?CODE_LINENO. 'code.lineno' ``` @@ -158,7 +158,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?'CODE_NAMESPACE'. + ?CODE_NAMESPACE. 'code.namespace' ``` @@ -191,7 +191,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CodeAttributes do ### Erlang ```erlang - ?'CODE_STACKTRACE'. + ?CODE_STACKTRACE. 'code.stacktrace' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex index bf59727e..06e6ff3e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_COMMAND'. + ?CONTAINER_COMMAND. 'container.command' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_COMMAND_ARGS'. + ?CONTAINER_COMMAND_ARGS. 'container.command_args' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_COMMAND_LINE'. + ?CONTAINER_COMMAND_LINE. 'container.command_line' ``` @@ -145,13 +145,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_CPU_STATE'. + ?CONTAINER_CPU_STATE. 'container.cpu.state' - ?'CONTAINER_CPU_STATE_VALUES_USER'. + ?CONTAINER_CPU_STATE_VALUES_USER. 'user' - \#{?'CONTAINER_CPU_STATE' => ?'CONTAINER_CPU_STATE_VALUES_USER'}. + \#{?CONTAINER_CPU_STATE => ?CONTAINER_CPU_STATE_VALUES_USER}. \#{'container.cpu.state' => 'user'} ``` @@ -193,7 +193,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_ID'. + ?CONTAINER_ID. 'container.id' ``` @@ -232,7 +232,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_IMAGE_ID'. + ?CONTAINER_IMAGE_ID. 'container.image.id' ``` @@ -265,7 +265,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_IMAGE_NAME'. + ?CONTAINER_IMAGE_NAME. 'container.image.name' ``` @@ -302,7 +302,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_IMAGE_REPO_DIGESTS'. + ?CONTAINER_IMAGE_REPO_DIGESTS. 'container.image.repo_digests' ``` @@ -335,7 +335,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_IMAGE_TAGS'. + ?CONTAINER_IMAGE_TAGS. 'container.image.tags' ``` @@ -368,7 +368,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_LABEL'. + ?CONTAINER_LABEL. 'container.label' ``` @@ -409,7 +409,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_NAME'. + ?CONTAINER_NAME. 'container.name' ``` @@ -442,7 +442,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do ### Erlang ```erlang - ?'CONTAINER_RUNTIME'. + ?CONTAINER_RUNTIME. 'container.runtime' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex index 1d24fcbe..d47ab5be 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex @@ -55,13 +55,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CASSANDRA_CONSISTENCY_LEVEL'. + ?DB_CASSANDRA_CONSISTENCY_LEVEL. 'db.cassandra.consistency_level' - ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'. + ?DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL. 'all' - \#{?'DB_CASSANDRA_CONSISTENCY_LEVEL' => ?'DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL'}. + \#{?DB_CASSANDRA_CONSISTENCY_LEVEL => ?DB_CASSANDRA_CONSISTENCY_LEVEL_VALUES_ALL}. \#{'db.cassandra.consistency_level' => 'all'} ``` @@ -111,7 +111,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CASSANDRA_COORDINATOR_DC'. + ?DB_CASSANDRA_COORDINATOR_DC. 'db.cassandra.coordinator.dc' ``` @@ -144,7 +144,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CASSANDRA_COORDINATOR_ID'. + ?DB_CASSANDRA_COORDINATOR_ID. 'db.cassandra.coordinator.id' ``` @@ -172,7 +172,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CASSANDRA_IDEMPOTENCE'. + ?DB_CASSANDRA_IDEMPOTENCE. 'db.cassandra.idempotence' ``` @@ -205,7 +205,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CASSANDRA_PAGE_SIZE'. + ?DB_CASSANDRA_PAGE_SIZE. 'db.cassandra.page_size' ``` @@ -238,7 +238,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT'. + ?DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT. 'db.cassandra.speculative_execution_count' ``` @@ -279,7 +279,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTIONS_POOL_NAME'. + ?DB_CLIENT_CONNECTIONS_POOL_NAME. 'db.client.connections.pool.name' ``` @@ -326,13 +326,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTIONS_STATE'. + ?DB_CLIENT_CONNECTIONS_STATE. 'db.client.connections.state' - ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'. + ?DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE. 'idle' - \#{?'DB_CLIENT_CONNECTIONS_STATE' => ?'DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE'}. + \#{?DB_CLIENT_CONNECTIONS_STATE => ?DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE}. \#{'db.client.connections.state' => 'idle'} ``` @@ -377,7 +377,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COLLECTION_NAME'. + ?DB_COLLECTION_NAME. 'db.collection.name' ``` @@ -418,7 +418,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_CLIENT_ID'. + ?DB_COSMOSDB_CLIENT_ID. 'db.cosmosdb.client_id' ``` @@ -460,13 +460,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_CONNECTION_MODE'. + ?DB_COSMOSDB_CONNECTION_MODE. 'db.cosmosdb.connection_mode' - ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'. + ?DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY. 'gateway' - \#{?'DB_COSMOSDB_CONNECTION_MODE' => ?'DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY'}. + \#{?DB_COSMOSDB_CONNECTION_MODE => ?DB_COSMOSDB_CONNECTION_MODE_VALUES_GATEWAY}. \#{'db.cosmosdb.connection_mode' => 'gateway'} ``` @@ -550,13 +550,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_OPERATION_TYPE'. + ?DB_COSMOSDB_OPERATION_TYPE. 'db.cosmosdb.operation_type' - ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'. + ?DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID. 'Invalid' - \#{?'DB_COSMOSDB_OPERATION_TYPE' => ?'DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID'}. + \#{?DB_COSMOSDB_OPERATION_TYPE => ?DB_COSMOSDB_OPERATION_TYPE_VALUES_INVALID}. \#{'db.cosmosdb.operation_type' => 'Invalid'} ``` @@ -609,7 +609,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_REQUEST_CHARGE'. + ?DB_COSMOSDB_REQUEST_CHARGE. 'db.cosmosdb.request_charge' ``` @@ -636,7 +636,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_REQUEST_CONTENT_LENGTH'. + ?DB_COSMOSDB_REQUEST_CONTENT_LENGTH. 'db.cosmosdb.request_content_length' ``` @@ -668,7 +668,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_STATUS_CODE'. + ?DB_COSMOSDB_STATUS_CODE. 'db.cosmosdb.status_code' ``` @@ -700,7 +700,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_COSMOSDB_SUB_STATUS_CODE'. + ?DB_COSMOSDB_SUB_STATUS_CODE. 'db.cosmosdb.sub_status_code' ``` @@ -733,7 +733,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_ELASTICSEARCH_CLUSTER_NAME'. + ?DB_ELASTICSEARCH_CLUSTER_NAME. 'db.elasticsearch.cluster.name' ``` @@ -766,7 +766,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_ELASTICSEARCH_NODE_NAME'. + ?DB_ELASTICSEARCH_NODE_NAME. 'db.elasticsearch.node.name' ``` @@ -803,7 +803,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_ELASTICSEARCH_PATH_PARTS'. + ?DB_ELASTICSEARCH_PATH_PARTS. 'db.elasticsearch.path_parts' ``` @@ -882,7 +882,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_NAMESPACE'. + ?DB_NAMESPACE. 'db.namespace' ``` @@ -927,7 +927,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_OPERATION_NAME'. + ?DB_OPERATION_NAME. 'db.operation.name' ``` @@ -965,7 +965,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_QUERY_PARAMETER'. + ?DB_QUERY_PARAMETER. 'db.query.parameter' ``` @@ -998,7 +998,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_QUERY_TEXT'. + ?DB_QUERY_TEXT. 'db.query.text' ``` @@ -1168,13 +1168,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Erlang ```erlang - ?'DB_SYSTEM'. + ?DB_SYSTEM. 'db.system' - ?'DB_SYSTEM_VALUES_OTHER_SQL'. + ?DB_SYSTEM_VALUES_OTHER_SQL. 'other_sql' - \#{?'DB_SYSTEM' => ?'DB_SYSTEM_VALUES_OTHER_SQL'}. + \#{?DB_SYSTEM => ?DB_SYSTEM_VALUES_OTHER_SQL}. \#{'db.system' => 'other_sql'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex index 0a032035..7b9b9166 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex @@ -36,7 +36,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeploymentAttributes do ### Erlang ```erlang - ?'DEPLOYMENT_ENVIRONMENT'. + ?DEPLOYMENT_ENVIRONMENT. 'deployment.environment' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/destination_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/destination_attributes.ex index 2d97f41c..79f50f43 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/destination_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/destination_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DestinationAttributes do ### Erlang ```erlang - ?'DESTINATION_ADDRESS'. + ?DESTINATION_ADDRESS. 'destination.address' ``` @@ -61,7 +61,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DestinationAttributes do ### Erlang ```erlang - ?'DESTINATION_PORT'. + ?DESTINATION_PORT. 'destination.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex index b830bee1..3e77f70f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?'DEVICE_ID'. + ?DEVICE_ID. 'device.id' ``` @@ -67,7 +67,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?'DEVICE_MANUFACTURER'. + ?DEVICE_MANUFACTURER. 'device.manufacturer' ``` @@ -104,7 +104,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?'DEVICE_MODEL_IDENTIFIER'. + ?DEVICE_MODEL_IDENTIFIER. 'device.model.identifier' ``` @@ -141,7 +141,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do ### Erlang ```erlang - ?'DEVICE_MODEL_NAME'. + ?DEVICE_MODEL_NAME. 'device.model.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex index 05f5b771..cc70bbd1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex @@ -40,13 +40,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do ### Erlang ```erlang - ?'DISK_IO_DIRECTION'. + ?DISK_IO_DIRECTION. 'disk.io.direction' - ?'DISK_IO_DIRECTION_VALUES_READ'. + ?DISK_IO_DIRECTION_VALUES_READ. 'read' - \#{?'DISK_IO_DIRECTION' => ?'DISK_IO_DIRECTION_VALUES_READ'}. + \#{?DISK_IO_DIRECTION => ?DISK_IO_DIRECTION_VALUES_READ}. \#{'disk.io.direction' => 'read'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/dns_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/dns_attributes.ex index e55e6a3a..0931ca23 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/dns_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/dns_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DNSAttributes do ### Erlang ```erlang - ?'DNS_QUESTION_NAME'. + ?DNS_QUESTION_NAME. 'dns.question.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex index 4f7ba139..519cb767 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do ### Erlang ```erlang - ?'ENDUSER_ID'. + ?ENDUSER_ID. 'enduser.id' ``` @@ -58,7 +58,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do ### Erlang ```erlang - ?'ENDUSER_ROLE'. + ?ENDUSER_ROLE. 'enduser.role' ``` @@ -91,7 +91,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do ### Erlang ```erlang - ?'ENDUSER_SCOPE'. + ?ENDUSER_SCOPE. 'enduser.scope' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex index aa1702d9..77309279 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EventAttributes do ### Erlang ```erlang - ?'EVENT_NAME'. + ?EVENT_NAME. 'event.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex index 2128b9dc..d8b01347 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/faas_attributes.ex @@ -21,7 +21,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_COLDSTART'. + ?FAAS_COLDSTART. 'faas.coldstart' ``` @@ -54,7 +54,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_CRON'. + ?FAAS_CRON. 'faas.cron' ``` @@ -87,7 +87,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_DOCUMENT_COLLECTION'. + ?FAAS_DOCUMENT_COLLECTION. 'faas.document.collection' ``` @@ -120,7 +120,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_DOCUMENT_NAME'. + ?FAAS_DOCUMENT_NAME. 'faas.document.name' ``` @@ -164,13 +164,13 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_DOCUMENT_OPERATION'. + ?FAAS_DOCUMENT_OPERATION. 'faas.document.operation' - ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'. + ?FAAS_DOCUMENT_OPERATION_VALUES_INSERT. 'insert' - \#{?'FAAS_DOCUMENT_OPERATION' => ?'FAAS_DOCUMENT_OPERATION_VALUES_INSERT'}. + \#{?FAAS_DOCUMENT_OPERATION => ?FAAS_DOCUMENT_OPERATION_VALUES_INSERT}. \#{'faas.document.operation' => 'insert'} ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_DOCUMENT_TIME'. + ?FAAS_DOCUMENT_TIME. 'faas.document.time' ``` @@ -249,7 +249,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_INSTANCE'. + ?FAAS_INSTANCE. 'faas.instance' ``` @@ -282,7 +282,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_INVOCATION_ID'. + ?FAAS_INVOCATION_ID. 'faas.invocation_id' ``` @@ -319,7 +319,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_INVOKED_NAME'. + ?FAAS_INVOKED_NAME. 'faas.invoked_name' ``` @@ -373,13 +373,13 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_INVOKED_PROVIDER'. + ?FAAS_INVOKED_PROVIDER. 'faas.invoked_provider' - ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'. + ?FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD. 'alibaba_cloud' - \#{?'FAAS_INVOKED_PROVIDER' => ?'FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD'}. + \#{?FAAS_INVOKED_PROVIDER => ?FAAS_INVOKED_PROVIDER_VALUES_ALIBABA_CLOUD}. \#{'faas.invoked_provider' => 'alibaba_cloud'} ``` @@ -427,7 +427,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_INVOKED_REGION'. + ?FAAS_INVOKED_REGION. 'faas.invoked_region' ``` @@ -464,7 +464,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_MAX_MEMORY'. + ?FAAS_MAX_MEMORY. 'faas.max_memory' ``` @@ -516,7 +516,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_NAME'. + ?FAAS_NAME. 'faas.name' ``` @@ -549,7 +549,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_TIME'. + ?FAAS_TIME. 'faas.time' ``` @@ -599,13 +599,13 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_TRIGGER'. + ?FAAS_TRIGGER. 'faas.trigger' - ?'FAAS_TRIGGER_VALUES_DATASOURCE'. + ?FAAS_TRIGGER_VALUES_DATASOURCE. 'datasource' - \#{?'FAAS_TRIGGER' => ?'FAAS_TRIGGER_VALUES_DATASOURCE'}. + \#{?FAAS_TRIGGER => ?FAAS_TRIGGER_VALUES_DATASOURCE}. \#{'faas.trigger' => 'datasource'} ``` @@ -660,7 +660,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FAASAttributes do ### Erlang ```erlang - ?'FAAS_VERSION'. + ?FAAS_VERSION. 'faas.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/feature_flag_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/feature_flag_attributes.ex index 6a6572bf..b4a89310 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/feature_flag_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/feature_flag_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Erlang ```erlang - ?'FEATURE_FLAG_KEY'. + ?FEATURE_FLAG_KEY. 'feature_flag.key' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Erlang ```erlang - ?'FEATURE_FLAG_PROVIDER_NAME'. + ?FEATURE_FLAG_PROVIDER_NAME. 'feature_flag.provider_name' ``` @@ -100,7 +100,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes do ### Erlang ```erlang - ?'FEATURE_FLAG_VARIANT'. + ?FEATURE_FLAG_VARIANT. 'feature_flag.variant' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/file_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/file_attributes.ex index 8d29f02e..8f960803 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/file_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/file_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?'FILE_DIRECTORY'. + ?FILE_DIRECTORY. 'file.directory' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?'FILE_EXTENSION'. + ?FILE_EXTENSION. 'file.extension' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?'FILE_NAME'. + ?FILE_NAME. 'file.name' ``` @@ -129,7 +129,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?'FILE_PATH'. + ?FILE_PATH. 'file.path' ``` @@ -157,7 +157,7 @@ defmodule OpenTelemetry.SemConv.Incubating.FileAttributes do ### Erlang ```erlang - ?'FILE_SIZE'. + ?FILE_SIZE. 'file.size' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex index c0b4dd57..cc668ee0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?'GCP_CLOUD_RUN_JOB_EXECUTION'. + ?GCP_CLOUD_RUN_JOB_EXECUTION. 'gcp.cloud_run.job.execution' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?'GCP_CLOUD_RUN_JOB_TASK_INDEX'. + ?GCP_CLOUD_RUN_JOB_TASK_INDEX. 'gcp.cloud_run.job.task_index' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?'GCP_GCE_INSTANCE_HOSTNAME'. + ?GCP_GCE_INSTANCE_HOSTNAME. 'gcp.gce.instance.hostname' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do ### Erlang ```erlang - ?'GCP_GCE_INSTANCE_NAME'. + ?GCP_GCE_INSTANCE_NAME. 'gcp.gce.instance.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex index b2214639..3f15ecaf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex @@ -28,7 +28,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_COMPLETION'. + ?GEN_AI_COMPLETION. 'gen_ai.completion' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_PROMPT'. + ?GEN_AI_PROMPT. 'gen_ai.prompt' ``` @@ -95,7 +95,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_REQUEST_MAX_TOKENS'. + ?GEN_AI_REQUEST_MAX_TOKENS. 'gen_ai.request.max_tokens' ``` @@ -127,7 +127,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_REQUEST_MODEL'. + ?GEN_AI_REQUEST_MODEL. 'gen_ai.request.model' ``` @@ -159,7 +159,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_REQUEST_TEMPERATURE'. + ?GEN_AI_REQUEST_TEMPERATURE. 'gen_ai.request.temperature' ``` @@ -191,7 +191,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_REQUEST_TOP_P'. + ?GEN_AI_REQUEST_TOP_P. 'gen_ai.request.top_p' ``` @@ -223,7 +223,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_RESPONSE_FINISH_REASONS'. + ?GEN_AI_RESPONSE_FINISH_REASONS. 'gen_ai.response.finish_reasons' ``` @@ -255,7 +255,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_RESPONSE_ID'. + ?GEN_AI_RESPONSE_ID. 'gen_ai.response.id' ``` @@ -287,7 +287,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_RESPONSE_MODEL'. + ?GEN_AI_RESPONSE_MODEL. 'gen_ai.response.model' ``` @@ -336,13 +336,13 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_SYSTEM'. + ?GEN_AI_SYSTEM. 'gen_ai.system' - ?'GEN_AI_SYSTEM_VALUES_OPENAI'. + ?GEN_AI_SYSTEM_VALUES_OPENAI. 'openai' - \#{?'GEN_AI_SYSTEM' => ?'GEN_AI_SYSTEM_VALUES_OPENAI'}. + \#{?GEN_AI_SYSTEM => ?GEN_AI_SYSTEM_VALUES_OPENAI}. \#{'gen_ai.system' => 'openai'} ``` @@ -381,7 +381,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_USAGE_COMPLETION_TOKENS'. + ?GEN_AI_USAGE_COMPLETION_TOKENS. 'gen_ai.usage.completion_tokens' ``` @@ -413,7 +413,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Erlang ```erlang - ?'GEN_AI_USAGE_PROMPT_TOKENS'. + ?GEN_AI_USAGE_PROMPT_TOKENS. 'gen_ai.usage.prompt_tokens' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex index 7deb9a81..65ec9801 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/graphql_attributes.ex @@ -28,7 +28,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Erlang ```erlang - ?'GRAPHQL_DOCUMENT'. + ?GRAPHQL_DOCUMENT. 'graphql.document' ``` @@ -60,7 +60,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Erlang ```erlang - ?'GRAPHQL_OPERATION_NAME'. + ?GRAPHQL_OPERATION_NAME. 'graphql.operation.name' ``` @@ -109,13 +109,13 @@ defmodule OpenTelemetry.SemConv.Incubating.GraphqlAttributes do ### Erlang ```erlang - ?'GRAPHQL_OPERATION_TYPE'. + ?GRAPHQL_OPERATION_TYPE. 'graphql.operation.type' - ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'. + ?GRAPHQL_OPERATION_TYPE_VALUES_QUERY. 'query' - \#{?'GRAPHQL_OPERATION_TYPE' => ?'GRAPHQL_OPERATION_TYPE_VALUES_QUERY'}. + \#{?GRAPHQL_OPERATION_TYPE => ?GRAPHQL_OPERATION_TYPE_VALUES_QUERY}. \#{'graphql.operation.type' => 'query'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/heroku_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/heroku_attributes.ex index c0f5dd11..3f744824 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/heroku_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/heroku_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Erlang ```erlang - ?'HEROKU_APP_ID'. + ?HEROKU_APP_ID. 'heroku.app.id' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Erlang ```erlang - ?'HEROKU_RELEASE_COMMIT'. + ?HEROKU_RELEASE_COMMIT. 'heroku.release.commit' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HerokuAttributes do ### Erlang ```erlang - ?'HEROKU_RELEASE_CREATION_TIMESTAMP'. + ?HEROKU_RELEASE_CREATION_TIMESTAMP. 'heroku.release.creation_timestamp' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex index 268a62b5..178074f5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex @@ -49,13 +49,13 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_ARCH'. + ?HOST_ARCH. 'host.arch' - ?'HOST_ARCH_VALUES_AMD_64'. + ?HOST_ARCH_VALUES_AMD_64. 'amd64' - \#{?'HOST_ARCH' => ?'HOST_ARCH_VALUES_AMD_64'}. + \#{?HOST_ARCH => ?HOST_ARCH_VALUES_AMD_64}. \#{'host.arch' => 'amd64'} ``` @@ -102,7 +102,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_CPU_CACHE_L2_SIZE'. + ?HOST_CPU_CACHE_L2_SIZE. 'host.cpu.cache.l2.size' ``` @@ -135,7 +135,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_CPU_FAMILY'. + ?HOST_CPU_FAMILY. 'host.cpu.family' ``` @@ -168,7 +168,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_CPU_MODEL_ID'. + ?HOST_CPU_MODEL_ID. 'host.cpu.model.id' ``` @@ -201,7 +201,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_CPU_MODEL_NAME'. + ?HOST_CPU_MODEL_NAME. 'host.cpu.model.name' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_CPU_STEPPING'. + ?HOST_CPU_STEPPING. 'host.cpu.stepping' ``` @@ -271,7 +271,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_CPU_VENDOR_ID'. + ?HOST_CPU_VENDOR_ID. 'host.cpu.vendor.id' ``` @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_ID'. + ?HOST_ID. 'host.id' ``` @@ -337,7 +337,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_IMAGE_ID'. + ?HOST_IMAGE_ID. 'host.image.id' ``` @@ -370,7 +370,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_IMAGE_NAME'. + ?HOST_IMAGE_NAME. 'host.image.name' ``` @@ -403,7 +403,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_IMAGE_VERSION'. + ?HOST_IMAGE_VERSION. 'host.image.version' ``` @@ -440,7 +440,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_IP'. + ?HOST_IP. 'host.ip' ``` @@ -477,7 +477,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_MAC'. + ?HOST_MAC. 'host.mac' ``` @@ -510,7 +510,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_NAME'. + ?HOST_NAME. 'host.name' ``` @@ -543,7 +543,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ### Erlang ```erlang - ?'HOST_TYPE'. + ?HOST_TYPE. 'host.type' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex index 23471f7d..87d7789b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/http_attributes.ex @@ -63,13 +63,13 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_CONNECTION_STATE'. + ?HTTP_CONNECTION_STATE. 'http.connection.state' - ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'. + ?HTTP_CONNECTION_STATE_VALUES_ACTIVE. 'active' - \#{?'HTTP_CONNECTION_STATE' => ?'HTTP_CONNECTION_STATE_VALUES_ACTIVE'}. + \#{?HTTP_CONNECTION_STATE => ?HTTP_CONNECTION_STATE_VALUES_ACTIVE}. \#{'http.connection.state' => 'active'} ``` @@ -165,7 +165,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_REQUEST_BODY_SIZE'. + ?HTTP_REQUEST_BODY_SIZE. 'http.request.body.size' ``` @@ -198,7 +198,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_REQUEST_SIZE'. + ?HTTP_REQUEST_SIZE. 'http.request.size' ``` @@ -247,7 +247,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_RESPONSE_BODY_SIZE'. + ?HTTP_RESPONSE_BODY_SIZE. 'http.response.body.size' ``` @@ -280,7 +280,7 @@ defmodule OpenTelemetry.SemConv.Incubating.HTTPAttributes do ### Erlang ```erlang - ?'HTTP_RESPONSE_SIZE'. + ?HTTP_RESPONSE_SIZE. 'http.response.size' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/k8s_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/k8s_attributes.ex index d6aebd74..e220fd82 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/k8s_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/k8s_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CLUSTER_NAME'. + ?K8S_CLUSTER_NAME. 'k8s.cluster.name' ``` @@ -84,7 +84,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CLUSTER_UID'. + ?K8S_CLUSTER_UID. 'k8s.cluster.uid' ``` @@ -117,7 +117,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CONTAINER_NAME'. + ?K8S_CONTAINER_NAME. 'k8s.container.name' ``` @@ -145,7 +145,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CONTAINER_RESTART_COUNT'. + ?K8S_CONTAINER_RESTART_COUNT. 'k8s.container.restart_count' ``` @@ -178,7 +178,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON'. + ?K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON. 'k8s.container.status.last_terminated_reason' ``` @@ -212,7 +212,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CRONJOB_NAME'. + ?K8S_CRONJOB_NAME. 'k8s.cronjob.name' ``` @@ -245,7 +245,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_CRONJOB_UID'. + ?K8S_CRONJOB_UID. 'k8s.cronjob.uid' ``` @@ -278,7 +278,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_DAEMONSET_NAME'. + ?K8S_DAEMONSET_NAME. 'k8s.daemonset.name' ``` @@ -311,7 +311,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_DAEMONSET_UID'. + ?K8S_DAEMONSET_UID. 'k8s.daemonset.uid' ``` @@ -344,7 +344,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_DEPLOYMENT_NAME'. + ?K8S_DEPLOYMENT_NAME. 'k8s.deployment.name' ``` @@ -377,7 +377,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_DEPLOYMENT_UID'. + ?K8S_DEPLOYMENT_UID. 'k8s.deployment.uid' ``` @@ -410,7 +410,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_JOB_NAME'. + ?K8S_JOB_NAME. 'k8s.job.name' ``` @@ -443,7 +443,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_JOB_UID'. + ?K8S_JOB_UID. 'k8s.job.uid' ``` @@ -476,7 +476,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_NAMESPACE_NAME'. + ?K8S_NAMESPACE_NAME. 'k8s.namespace.name' ``` @@ -509,7 +509,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_NODE_NAME'. + ?K8S_NODE_NAME. 'k8s.node.name' ``` @@ -542,7 +542,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_NODE_UID'. + ?K8S_NODE_UID. 'k8s.node.uid' ``` @@ -575,7 +575,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_POD_ANNOTATION'. + ?K8S_POD_ANNOTATION. 'k8s.pod.annotation' ``` @@ -608,7 +608,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_POD_LABEL'. + ?K8S_POD_LABEL. 'k8s.pod.label' ``` @@ -649,7 +649,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_POD_NAME'. + ?K8S_POD_NAME. 'k8s.pod.name' ``` @@ -682,7 +682,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_POD_UID'. + ?K8S_POD_UID. 'k8s.pod.uid' ``` @@ -715,7 +715,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_REPLICASET_NAME'. + ?K8S_REPLICASET_NAME. 'k8s.replicaset.name' ``` @@ -748,7 +748,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_REPLICASET_UID'. + ?K8S_REPLICASET_UID. 'k8s.replicaset.uid' ``` @@ -781,7 +781,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_STATEFULSET_NAME'. + ?K8S_STATEFULSET_NAME. 'k8s.statefulset.name' ``` @@ -814,7 +814,7 @@ defmodule OpenTelemetry.SemConv.Incubating.K8SAttributes do ### Erlang ```erlang - ?'K8S_STATEFULSET_UID'. + ?K8S_STATEFULSET_UID. 'k8s.statefulset.uid' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex index 68cbd092..b60196ea 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?'LOG_FILE_NAME'. + ?LOG_FILE_NAME. 'log.file.name' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?'LOG_FILE_NAME_RESOLVED'. + ?LOG_FILE_NAME_RESOLVED. 'log.file.name_resolved' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?'LOG_FILE_PATH'. + ?LOG_FILE_PATH. 'log.file.path' ``` @@ -125,7 +125,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?'LOG_FILE_PATH_RESOLVED'. + ?LOG_FILE_PATH_RESOLVED. 'log.file.path_resolved' ``` @@ -169,13 +169,13 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?'LOG_IOSTREAM'. + ?LOG_IOSTREAM. 'log.iostream' - ?'LOG_IOSTREAM_VALUES_STDOUT'. + ?LOG_IOSTREAM_VALUES_STDOUT. 'stdout' - \#{?'LOG_IOSTREAM' => ?'LOG_IOSTREAM_VALUES_STDOUT'}. + \#{?LOG_IOSTREAM => ?LOG_IOSTREAM_VALUES_STDOUT}. \#{'log.iostream' => 'stdout'} ``` @@ -221,7 +221,7 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do ### Erlang ```erlang - ?'LOG_RECORD_UID'. + ?LOG_RECORD_UID. 'log.record.uid' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex index 36e04146..5c70a4ec 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_BATCH_MESSAGE_COUNT'. + ?MESSAGING_BATCH_MESSAGE_COUNT. 'messaging.batch.message_count' ``` @@ -62,7 +62,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_CLIENT_ID'. + ?MESSAGING_CLIENT_ID. 'messaging.client.id' ``` @@ -89,7 +89,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_ANONYMOUS'. + ?MESSAGING_DESTINATION_ANONYMOUS. 'messaging.destination.anonymous' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_NAME'. + ?MESSAGING_DESTINATION_NAME. 'messaging.destination.name' ``` @@ -159,7 +159,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_PARTITION_ID'. + ?MESSAGING_DESTINATION_PARTITION_ID. 'messaging.destination.partition.id' ``` @@ -195,7 +195,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_TEMPLATE'. + ?MESSAGING_DESTINATION_TEMPLATE. 'messaging.destination.template' ``` @@ -222,7 +222,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_TEMPORARY'. + ?MESSAGING_DESTINATION_TEMPORARY. 'messaging.destination.temporary' ``` @@ -249,7 +249,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_PUBLISH_ANONYMOUS'. + ?MESSAGING_DESTINATION_PUBLISH_ANONYMOUS. 'messaging.destination_publish.anonymous' ``` @@ -286,7 +286,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_DESTINATION_PUBLISH_NAME'. + ?MESSAGING_DESTINATION_PUBLISH_NAME. 'messaging.destination_publish.name' ``` @@ -319,7 +319,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_EVENTHUBS_CONSUMER_GROUP'. + ?MESSAGING_EVENTHUBS_CONSUMER_GROUP. 'messaging.eventhubs.consumer.group' ``` @@ -352,7 +352,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME'. + ?MESSAGING_EVENTHUBS_MESSAGE_ENQUEUED_TIME. 'messaging.eventhubs.message.enqueued_time' ``` @@ -385,7 +385,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE'. + ?MESSAGING_GCP_PUBSUB_MESSAGE_ACK_DEADLINE. 'messaging.gcp_pubsub.message.ack_deadline' ``` @@ -418,7 +418,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID'. + ?MESSAGING_GCP_PUBSUB_MESSAGE_ACK_ID. 'messaging.gcp_pubsub.message.ack_id' ``` @@ -451,7 +451,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT'. + ?MESSAGING_GCP_PUBSUB_MESSAGE_DELIVERY_ATTEMPT. 'messaging.gcp_pubsub.message.delivery_attempt' ``` @@ -485,7 +485,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY'. + ?MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY. 'messaging.gcp_pubsub.message.ordering_key' ``` @@ -518,7 +518,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_KAFKA_CONSUMER_GROUP'. + ?MESSAGING_KAFKA_CONSUMER_GROUP. 'messaging.kafka.consumer.group' ``` @@ -563,7 +563,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_KAFKA_MESSAGE_KEY'. + ?MESSAGING_KAFKA_MESSAGE_KEY. 'messaging.kafka.message.key' ``` @@ -596,7 +596,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_KAFKA_MESSAGE_OFFSET'. + ?MESSAGING_KAFKA_MESSAGE_OFFSET. 'messaging.kafka.message.offset' ``` @@ -623,7 +623,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_KAFKA_MESSAGE_TOMBSTONE'. + ?MESSAGING_KAFKA_MESSAGE_TOMBSTONE. 'messaging.kafka.message.tombstone' ``` @@ -661,7 +661,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_MESSAGE_BODY_SIZE'. + ?MESSAGING_MESSAGE_BODY_SIZE. 'messaging.message.body.size' ``` @@ -694,7 +694,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_MESSAGE_CONVERSATION_ID'. + ?MESSAGING_MESSAGE_CONVERSATION_ID. 'messaging.message.conversation_id' ``` @@ -732,7 +732,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_MESSAGE_ENVELOPE_SIZE'. + ?MESSAGING_MESSAGE_ENVELOPE_SIZE. 'messaging.message.envelope.size' ``` @@ -764,7 +764,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_MESSAGE_ID'. + ?MESSAGING_MESSAGE_ID. 'messaging.message.id' ``` @@ -805,7 +805,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_OPERATION_NAME'. + ?MESSAGING_OPERATION_NAME. 'messaging.operation.name' ``` @@ -863,13 +863,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_OPERATION_TYPE'. + ?MESSAGING_OPERATION_TYPE. 'messaging.operation.type' - ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'. + ?MESSAGING_OPERATION_TYPE_VALUES_PUBLISH. 'publish' - \#{?'MESSAGING_OPERATION_TYPE' => ?'MESSAGING_OPERATION_TYPE_VALUES_PUBLISH'}. + \#{?MESSAGING_OPERATION_TYPE => ?MESSAGING_OPERATION_TYPE_VALUES_PUBLISH}. \#{'messaging.operation.type' => 'publish'} ``` @@ -913,7 +913,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY'. + ?MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY. 'messaging.rabbitmq.destination.routing_key' ``` @@ -947,7 +947,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG'. + ?MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG. 'messaging.rabbitmq.message.delivery_tag' ``` @@ -980,7 +980,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_CLIENT_GROUP'. + ?MESSAGING_ROCKETMQ_CLIENT_GROUP. 'messaging.rocketmq.client_group' ``` @@ -1024,13 +1024,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL'. + ?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL. 'messaging.rocketmq.consumption_model' - ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'. + ?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING. 'clustering' - \#{?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL' => ?'MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING'}. + \#{?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL => ?MESSAGING_ROCKETMQ_CONSUMPTION_MODEL_VALUES_CLUSTERING}. \#{'messaging.rocketmq.consumption_model' => 'clustering'} ``` @@ -1072,7 +1072,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL'. + ?MESSAGING_ROCKETMQ_MESSAGE_DELAY_TIME_LEVEL. 'messaging.rocketmq.message.delay_time_level' ``` @@ -1106,7 +1106,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP'. + ?MESSAGING_ROCKETMQ_MESSAGE_DELIVERY_TIMESTAMP. 'messaging.rocketmq.message.delivery_timestamp' ``` @@ -1140,7 +1140,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_MESSAGE_GROUP'. + ?MESSAGING_ROCKETMQ_MESSAGE_GROUP. 'messaging.rocketmq.message.group' ``` @@ -1173,7 +1173,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_MESSAGE_KEYS'. + ?MESSAGING_ROCKETMQ_MESSAGE_KEYS. 'messaging.rocketmq.message.keys' ``` @@ -1206,7 +1206,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_MESSAGE_TAG'. + ?MESSAGING_ROCKETMQ_MESSAGE_TAG. 'messaging.rocketmq.message.tag' ``` @@ -1254,13 +1254,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE'. + ?MESSAGING_ROCKETMQ_MESSAGE_TYPE. 'messaging.rocketmq.message.type' - ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'. + ?MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL. 'normal' - \#{?'MESSAGING_ROCKETMQ_MESSAGE_TYPE' => ?'MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL'}. + \#{?MESSAGING_ROCKETMQ_MESSAGE_TYPE => ?MESSAGING_ROCKETMQ_MESSAGE_TYPE_VALUES_NORMAL}. \#{'messaging.rocketmq.message.type' => 'normal'} ``` @@ -1303,7 +1303,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_ROCKETMQ_NAMESPACE'. + ?MESSAGING_ROCKETMQ_NAMESPACE. 'messaging.rocketmq.namespace' ``` @@ -1336,7 +1336,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME'. + ?MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME. 'messaging.servicebus.destination.subscription_name' ``` @@ -1385,13 +1385,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS'. + ?MESSAGING_SERVICEBUS_DISPOSITION_STATUS. 'messaging.servicebus.disposition_status' - ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'. + ?MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE. 'complete' - \#{?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS' => ?'MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE'}. + \#{?MESSAGING_SERVICEBUS_DISPOSITION_STATUS => ?MESSAGING_SERVICEBUS_DISPOSITION_STATUS_VALUES_COMPLETE}. \#{'messaging.servicebus.disposition_status' => 'complete'} ``` @@ -1435,7 +1435,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT'. + ?MESSAGING_SERVICEBUS_MESSAGE_DELIVERY_COUNT. 'messaging.servicebus.message.delivery_count' ``` @@ -1469,7 +1469,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME'. + ?MESSAGING_SERVICEBUS_MESSAGE_ENQUEUED_TIME. 'messaging.servicebus.message.enqueued_time' ``` @@ -1532,13 +1532,13 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do ### Erlang ```erlang - ?'MESSAGING_SYSTEM'. + ?MESSAGING_SYSTEM. 'messaging.system' - ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'. + ?MESSAGING_SYSTEM_VALUES_ACTIVEMQ. 'activemq' - \#{?'MESSAGING_SYSTEM' => ?'MESSAGING_SYSTEM_VALUES_ACTIVEMQ'}. + \#{?MESSAGING_SYSTEM => ?MESSAGING_SYSTEM_VALUES_ACTIVEMQ}. \#{'messaging.system' => 'activemq'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex index 073621ab..dafaa058 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/network_attributes.ex @@ -214,7 +214,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_CARRIER_ICC'. + ?NETWORK_CARRIER_ICC. 'network.carrier.icc' ``` @@ -246,7 +246,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_CARRIER_MCC'. + ?NETWORK_CARRIER_MCC. 'network.carrier.mcc' ``` @@ -278,7 +278,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_CARRIER_MNC'. + ?NETWORK_CARRIER_MNC. 'network.carrier.mnc' ``` @@ -310,7 +310,7 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_CARRIER_NAME'. + ?NETWORK_CARRIER_NAME. 'network.carrier.name' ``` @@ -395,13 +395,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_CONNECTION_SUBTYPE'. + ?NETWORK_CONNECTION_SUBTYPE. 'network.connection.subtype' - ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'. + ?NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS. 'gprs' - \#{?'NETWORK_CONNECTION_SUBTYPE' => ?'NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS'}. + \#{?NETWORK_CONNECTION_SUBTYPE => ?NETWORK_CONNECTION_SUBTYPE_VALUES_GPRS}. \#{'network.connection.subtype' => 'gprs'} ``` @@ -481,13 +481,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_CONNECTION_TYPE'. + ?NETWORK_CONNECTION_TYPE. 'network.connection.type' - ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'. + ?NETWORK_CONNECTION_TYPE_VALUES_WIFI. 'wifi' - \#{?'NETWORK_CONNECTION_TYPE' => ?'NETWORK_CONNECTION_TYPE_VALUES_WIFI'}. + \#{?NETWORK_CONNECTION_TYPE => ?NETWORK_CONNECTION_TYPE_VALUES_WIFI}. \#{'network.connection.type' => 'wifi'} ``` @@ -545,13 +545,13 @@ defmodule OpenTelemetry.SemConv.Incubating.NetworkAttributes do ### Erlang ```erlang - ?'NETWORK_IO_DIRECTION'. + ?NETWORK_IO_DIRECTION. 'network.io.direction' - ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'. + ?NETWORK_IO_DIRECTION_VALUES_TRANSMIT. 'transmit' - \#{?'NETWORK_IO_DIRECTION' => ?'NETWORK_IO_DIRECTION_VALUES_TRANSMIT'}. + \#{?NETWORK_IO_DIRECTION => ?NETWORK_IO_DIRECTION_VALUES_TRANSMIT}. \#{'network.io.direction' => 'transmit'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/oci_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/oci_attributes.ex index a758bfcf..7bed10ea 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/oci_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/oci_attributes.ex @@ -31,7 +31,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OCIAttributes do ### Erlang ```erlang - ?'OCI_MANIFEST_DIGEST'. + ?OCI_MANIFEST_DIGEST. 'oci.manifest.digest' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex index 90b75641..106b3a6c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/opentracing_attributes.ex @@ -39,13 +39,13 @@ defmodule OpenTelemetry.SemConv.Incubating.OpentracingAttributes do ### Erlang ```erlang - ?'OPENTRACING_REF_TYPE'. + ?OPENTRACING_REF_TYPE. 'opentracing.ref_type' - ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'. + ?OPENTRACING_REF_TYPE_VALUES_CHILD_OF. 'child_of' - \#{?'OPENTRACING_REF_TYPE' => ?'OPENTRACING_REF_TYPE_VALUES_CHILD_OF'}. + \#{?OPENTRACING_REF_TYPE => ?OPENTRACING_REF_TYPE_VALUES_CHILD_OF}. \#{'opentracing.ref_type' => 'child_of'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex index 886abe76..26c35d09 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/os_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?'OS_BUILD_ID'. + ?OS_BUILD_ID. 'os.build_id' ``` @@ -58,7 +58,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?'OS_DESCRIPTION'. + ?OS_DESCRIPTION. 'os.description' ``` @@ -90,7 +90,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?'OS_NAME'. + ?OS_NAME. 'os.name' ``` @@ -152,13 +152,13 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?'OS_TYPE'. + ?OS_TYPE. 'os.type' - ?'OS_TYPE_VALUES_WINDOWS'. + ?OS_TYPE_VALUES_WINDOWS. 'windows' - \#{?'OS_TYPE' => ?'OS_TYPE_VALUES_WINDOWS'}. + \#{?OS_TYPE => ?OS_TYPE_VALUES_WINDOWS}. \#{'os.type' => 'windows'} ``` @@ -208,7 +208,7 @@ defmodule OpenTelemetry.SemConv.Incubating.OSAttributes do ### Erlang ```erlang - ?'OS_VERSION'. + ?OS_VERSION. 'os.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/peer_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/peer_attributes.ex index 3a8d21ef..1ea717e0 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/peer_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/peer_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.PeerAttributes do ### Erlang ```erlang - ?'PEER_SERVICE'. + ?PEER_SERVICE. 'peer.service' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex index 23e90751..1dccfbb6 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_COMMAND'. + ?PROCESS_COMMAND. 'process.command' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_COMMAND_ARGS'. + ?PROCESS_COMMAND_ARGS. 'process.command_args' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_COMMAND_LINE'. + ?PROCESS_COMMAND_LINE. 'process.command_line' ``` @@ -134,13 +134,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_CONTEXT_SWITCH_TYPE'. + ?PROCESS_CONTEXT_SWITCH_TYPE. 'process.context_switch_type' - ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'. + ?PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY. 'voluntary' - \#{?'PROCESS_CONTEXT_SWITCH_TYPE' => ?'PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY'}. + \#{?PROCESS_CONTEXT_SWITCH_TYPE => ?PROCESS_CONTEXT_SWITCH_TYPE_VALUES_VOLUNTARY}. \#{'process.context_switch_type' => 'voluntary'} ``` @@ -194,13 +194,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_CPU_STATE'. + ?PROCESS_CPU_STATE. 'process.cpu.state' - ?'PROCESS_CPU_STATE_VALUES_SYSTEM'. + ?PROCESS_CPU_STATE_VALUES_SYSTEM. 'system' - \#{?'PROCESS_CPU_STATE' => ?'PROCESS_CPU_STATE_VALUES_SYSTEM'}. + \#{?PROCESS_CPU_STATE => ?PROCESS_CPU_STATE_VALUES_SYSTEM}. \#{'process.cpu.state' => 'system'} ``` @@ -242,7 +242,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_CREATION_TIME'. + ?PROCESS_CREATION_TIME. 'process.creation.time' ``` @@ -275,7 +275,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_EXECUTABLE_NAME'. + ?PROCESS_EXECUTABLE_NAME. 'process.executable.name' ``` @@ -308,7 +308,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_EXECUTABLE_PATH'. + ?PROCESS_EXECUTABLE_PATH. 'process.executable.path' ``` @@ -341,7 +341,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_EXIT_CODE'. + ?PROCESS_EXIT_CODE. 'process.exit.code' ``` @@ -374,7 +374,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_EXIT_TIME'. + ?PROCESS_EXIT_TIME. 'process.exit.time' ``` @@ -407,7 +407,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_GROUP_LEADER_PID'. + ?PROCESS_GROUP_LEADER_PID. 'process.group_leader.pid' ``` @@ -435,7 +435,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_INTERACTIVE'. + ?PROCESS_INTERACTIVE. 'process.interactive' ``` @@ -468,7 +468,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_OWNER'. + ?PROCESS_OWNER. 'process.owner' ``` @@ -512,13 +512,13 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_PAGING_FAULT_TYPE'. + ?PROCESS_PAGING_FAULT_TYPE. 'process.paging.fault_type' - ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'. + ?PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR. 'major' - \#{?'PROCESS_PAGING_FAULT_TYPE' => ?'PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR'}. + \#{?PROCESS_PAGING_FAULT_TYPE => ?PROCESS_PAGING_FAULT_TYPE_VALUES_MAJOR}. \#{'process.paging.fault_type' => 'major'} ``` @@ -559,7 +559,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_PARENT_PID'. + ?PROCESS_PARENT_PID. 'process.parent_pid' ``` @@ -592,7 +592,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_PID'. + ?PROCESS_PID. 'process.pid' ``` @@ -625,7 +625,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_REAL_USER_ID'. + ?PROCESS_REAL_USER_ID. 'process.real_user.id' ``` @@ -658,7 +658,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_REAL_USER_NAME'. + ?PROCESS_REAL_USER_NAME. 'process.real_user.name' ``` @@ -691,7 +691,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_RUNTIME_DESCRIPTION'. + ?PROCESS_RUNTIME_DESCRIPTION. 'process.runtime.description' ``` @@ -724,7 +724,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_RUNTIME_NAME'. + ?PROCESS_RUNTIME_NAME. 'process.runtime.name' ``` @@ -757,7 +757,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_RUNTIME_VERSION'. + ?PROCESS_RUNTIME_VERSION. 'process.runtime.version' ``` @@ -790,7 +790,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_SAVED_USER_ID'. + ?PROCESS_SAVED_USER_ID. 'process.saved_user.id' ``` @@ -823,7 +823,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_SAVED_USER_NAME'. + ?PROCESS_SAVED_USER_NAME. 'process.saved_user.name' ``` @@ -856,7 +856,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_SESSION_LEADER_PID'. + ?PROCESS_SESSION_LEADER_PID. 'process.session_leader.pid' ``` @@ -889,7 +889,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_USER_ID'. + ?PROCESS_USER_ID. 'process.user.id' ``` @@ -922,7 +922,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_USER_NAME'. + ?PROCESS_USER_NAME. 'process.user.name' ``` @@ -959,7 +959,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do ### Erlang ```erlang - ?'PROCESS_VPID'. + ?PROCESS_VPID. 'process.vpid' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex index 6ac4582a..21ff59ae 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/rpc_attributes.ex @@ -114,13 +114,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_CONNECT_RPC_ERROR_CODE'. + ?RPC_CONNECT_RPC_ERROR_CODE. 'rpc.connect_rpc.error_code' - ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'. + ?RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED. 'cancelled' - \#{?'RPC_CONNECT_RPC_ERROR_CODE' => ?'RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED'}. + \#{?RPC_CONNECT_RPC_ERROR_CODE => ?RPC_CONNECT_RPC_ERROR_CODE_VALUES_CANCELLED}. \#{'rpc.connect_rpc.error_code' => 'cancelled'} ``` @@ -179,7 +179,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_CONNECT_RPC_REQUEST_METADATA'. + ?RPC_CONNECT_RPC_REQUEST_METADATA. 'rpc.connect_rpc.request.metadata' ``` @@ -216,7 +216,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_CONNECT_RPC_RESPONSE_METADATA'. + ?RPC_CONNECT_RPC_RESPONSE_METADATA. 'rpc.connect_rpc.response.metadata' ``` @@ -253,7 +253,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_GRPC_REQUEST_METADATA'. + ?RPC_GRPC_REQUEST_METADATA. 'rpc.grpc.request.metadata' ``` @@ -290,7 +290,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_GRPC_RESPONSE_METADATA'. + ?RPC_GRPC_RESPONSE_METADATA. 'rpc.grpc.response.metadata' ``` @@ -362,13 +362,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_GRPC_STATUS_CODE'. + ?RPC_GRPC_STATUS_CODE. 'rpc.grpc.status_code' - ?'RPC_GRPC_STATUS_CODE_VALUES_OK'. + ?RPC_GRPC_STATUS_CODE_VALUES_OK. '0' - \#{?'RPC_GRPC_STATUS_CODE' => ?'RPC_GRPC_STATUS_CODE_VALUES_OK'}. + \#{?RPC_GRPC_STATUS_CODE => ?RPC_GRPC_STATUS_CODE_VALUES_OK}. \#{'rpc.grpc.status_code' => '0'} ``` @@ -423,7 +423,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_JSONRPC_ERROR_CODE'. + ?RPC_JSONRPC_ERROR_CODE. 'rpc.jsonrpc.error_code' ``` @@ -455,7 +455,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_JSONRPC_ERROR_MESSAGE'. + ?RPC_JSONRPC_ERROR_MESSAGE. 'rpc.jsonrpc.error_message' ``` @@ -488,7 +488,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_JSONRPC_REQUEST_ID'. + ?RPC_JSONRPC_REQUEST_ID. 'rpc.jsonrpc.request_id' ``` @@ -520,7 +520,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_JSONRPC_VERSION'. + ?RPC_JSONRPC_VERSION. 'rpc.jsonrpc.version' ``` @@ -547,7 +547,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_MESSAGE_COMPRESSED_SIZE'. + ?RPC_MESSAGE_COMPRESSED_SIZE. 'rpc.message.compressed_size' ``` @@ -577,7 +577,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_MESSAGE_ID'. + ?RPC_MESSAGE_ID. 'rpc.message.id' ``` @@ -619,13 +619,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_MESSAGE_TYPE'. + ?RPC_MESSAGE_TYPE. 'rpc.message.type' - ?'RPC_MESSAGE_TYPE_VALUES_SENT'. + ?RPC_MESSAGE_TYPE_VALUES_SENT. 'SENT' - \#{?'RPC_MESSAGE_TYPE' => ?'RPC_MESSAGE_TYPE_VALUES_SENT'}. + \#{?RPC_MESSAGE_TYPE => ?RPC_MESSAGE_TYPE_VALUES_SENT}. \#{'rpc.message.type' => 'SENT'} ``` @@ -660,7 +660,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_MESSAGE_UNCOMPRESSED_SIZE'. + ?RPC_MESSAGE_UNCOMPRESSED_SIZE. 'rpc.message.uncompressed_size' ``` @@ -696,7 +696,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_METHOD'. + ?RPC_METHOD. 'rpc.method' ``` @@ -732,7 +732,7 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_SERVICE'. + ?RPC_SERVICE. 'rpc.service' ``` @@ -780,13 +780,13 @@ defmodule OpenTelemetry.SemConv.Incubating.RPCAttributes do ### Erlang ```erlang - ?'RPC_SYSTEM'. + ?RPC_SYSTEM. 'rpc.system' - ?'RPC_SYSTEM_VALUES_GRPC'. + ?RPC_SYSTEM_VALUES_GRPC. 'grpc' - \#{?'RPC_SYSTEM' => ?'RPC_SYSTEM_VALUES_GRPC'}. + \#{?RPC_SYSTEM => ?RPC_SYSTEM_VALUES_GRPC}. \#{'rpc.system' => 'grpc'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex index e8c41a4c..9654e319 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/service_attributes.ex @@ -58,7 +58,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ServiceAttributes do ### Erlang ```erlang - ?'SERVICE_INSTANCE_ID'. + ?SERVICE_INSTANCE_ID. 'service.instance.id' ``` @@ -95,7 +95,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ServiceAttributes do ### Erlang ```erlang - ?'SERVICE_NAMESPACE'. + ?SERVICE_NAMESPACE. 'service.namespace' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/session_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/session_attributes.ex index c79b7133..4611443f 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/session_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/session_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SessionAttributes do ### Erlang ```erlang - ?'SESSION_ID'. + ?SESSION_ID. 'session.id' ``` @@ -57,7 +57,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SessionAttributes do ### Erlang ```erlang - ?'SESSION_PREVIOUS_ID'. + ?SESSION_PREVIOUS_ID. 'session.previous_id' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/source_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/source_attributes.ex index 34fc26d3..a8cb54b3 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/source_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/source_attributes.ex @@ -29,7 +29,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SourceAttributes do ### Erlang ```erlang - ?'SOURCE_ADDRESS'. + ?SOURCE_ADDRESS. 'source.address' ``` @@ -61,7 +61,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SourceAttributes do ### Erlang ```erlang - ?'SOURCE_PORT'. + ?SOURCE_PORT. 'source.port' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex index 54e3677c..5e54cccf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_CPU_LOGICAL_NUMBER'. + ?SYSTEM_CPU_LOGICAL_NUMBER. 'system.cpu.logical_number' ``` @@ -82,13 +82,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_CPU_STATE'. + ?SYSTEM_CPU_STATE. 'system.cpu.state' - ?'SYSTEM_CPU_STATE_VALUES_USER'. + ?SYSTEM_CPU_STATE_VALUES_USER. 'user' - \#{?'SYSTEM_CPU_STATE' => ?'SYSTEM_CPU_STATE_VALUES_USER'}. + \#{?SYSTEM_CPU_STATE => ?SYSTEM_CPU_STATE_VALUES_USER}. \#{'system.cpu.state' => 'user'} ``` @@ -133,7 +133,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_DEVICE'. + ?SYSTEM_DEVICE. 'system.device' ``` @@ -165,7 +165,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_FILESYSTEM_MODE'. + ?SYSTEM_FILESYSTEM_MODE. 'system.filesystem.mode' ``` @@ -197,7 +197,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_FILESYSTEM_MOUNTPOINT'. + ?SYSTEM_FILESYSTEM_MOUNTPOINT. 'system.filesystem.mountpoint' ``` @@ -246,13 +246,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_FILESYSTEM_STATE'. + ?SYSTEM_FILESYSTEM_STATE. 'system.filesystem.state' - ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'. + ?SYSTEM_FILESYSTEM_STATE_VALUES_USED. 'used' - \#{?'SYSTEM_FILESYSTEM_STATE' => ?'SYSTEM_FILESYSTEM_STATE_VALUES_USED'}. + \#{?SYSTEM_FILESYSTEM_STATE => ?SYSTEM_FILESYSTEM_STATE_VALUES_USED}. \#{'system.filesystem.state' => 'used'} ``` @@ -316,13 +316,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_FILESYSTEM_TYPE'. + ?SYSTEM_FILESYSTEM_TYPE. 'system.filesystem.type' - ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'. + ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32. 'fat32' - \#{?'SYSTEM_FILESYSTEM_TYPE' => ?'SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32'}. + \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32}. \#{'system.filesystem.type' => 'fat32'} ``` @@ -387,13 +387,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_MEMORY_STATE'. + ?SYSTEM_MEMORY_STATE. 'system.memory.state' - ?'SYSTEM_MEMORY_STATE_VALUES_USED'. + ?SYSTEM_MEMORY_STATE_VALUES_USED. 'used' - \#{?'SYSTEM_MEMORY_STATE' => ?'SYSTEM_MEMORY_STATE_VALUES_USED'}. + \#{?SYSTEM_MEMORY_STATE => ?SYSTEM_MEMORY_STATE_VALUES_USED}. \#{'system.memory.state' => 'used'} ``` @@ -471,13 +471,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_NETWORK_STATE'. + ?SYSTEM_NETWORK_STATE. 'system.network.state' - ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'. + ?SYSTEM_NETWORK_STATE_VALUES_CLOSE. 'close' - \#{?'SYSTEM_NETWORK_STATE' => ?'SYSTEM_NETWORK_STATE_VALUES_CLOSE'}. + \#{?SYSTEM_NETWORK_STATE => ?SYSTEM_NETWORK_STATE_VALUES_CLOSE}. \#{'system.network.state' => 'close'} ``` @@ -542,13 +542,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_PAGING_DIRECTION'. + ?SYSTEM_PAGING_DIRECTION. 'system.paging.direction' - ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'. + ?SYSTEM_PAGING_DIRECTION_VALUES_IN. 'in' - \#{?'SYSTEM_PAGING_DIRECTION' => ?'SYSTEM_PAGING_DIRECTION_VALUES_IN'}. + \#{?SYSTEM_PAGING_DIRECTION => ?SYSTEM_PAGING_DIRECTION_VALUES_IN}. \#{'system.paging.direction' => 'in'} ``` @@ -603,13 +603,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_PAGING_STATE'. + ?SYSTEM_PAGING_STATE. 'system.paging.state' - ?'SYSTEM_PAGING_STATE_VALUES_USED'. + ?SYSTEM_PAGING_STATE_VALUES_USED. 'used' - \#{?'SYSTEM_PAGING_STATE' => ?'SYSTEM_PAGING_STATE_VALUES_USED'}. + \#{?SYSTEM_PAGING_STATE => ?SYSTEM_PAGING_STATE_VALUES_USED}. \#{'system.paging.state' => 'used'} ``` @@ -664,13 +664,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_PAGING_TYPE'. + ?SYSTEM_PAGING_TYPE. 'system.paging.type' - ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'. + ?SYSTEM_PAGING_TYPE_VALUES_MAJOR. 'major' - \#{?'SYSTEM_PAGING_TYPE' => ?'SYSTEM_PAGING_TYPE_VALUES_MAJOR'}. + \#{?SYSTEM_PAGING_TYPE => ?SYSTEM_PAGING_TYPE_VALUES_MAJOR}. \#{'system.paging.type' => 'major'} ``` @@ -731,13 +731,13 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ### Erlang ```erlang - ?'SYSTEM_PROCESS_STATUS'. + ?SYSTEM_PROCESS_STATUS. 'system.process.status' - ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'. + ?SYSTEM_PROCESS_STATUS_VALUES_RUNNING. 'running' - \#{?'SYSTEM_PROCESS_STATUS' => ?'SYSTEM_PROCESS_STATUS_VALUES_RUNNING'}. + \#{?SYSTEM_PROCESS_STATUS => ?SYSTEM_PROCESS_STATUS_VALUES_RUNNING}. \#{'system.process.status' => 'running'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex index 2f64dd5d..c78bb01b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/telemetry_attributes.ex @@ -38,7 +38,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do ### Erlang ```erlang - ?'TELEMETRY_DISTRO_NAME'. + ?TELEMETRY_DISTRO_NAME. 'telemetry.distro.name' ``` @@ -71,7 +71,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TelemetryAttributes do ### Erlang ```erlang - ?'TELEMETRY_DISTRO_VERSION'. + ?TELEMETRY_DISTRO_VERSION. 'telemetry.distro.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/thread_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/thread_attributes.ex index f89ac81f..4d236c82 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/thread_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/thread_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ThreadAttributes do ### Erlang ```erlang - ?'THREAD_ID'. + ?THREAD_ID. 'thread.id' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ThreadAttributes do ### Erlang ```erlang - ?'THREAD_NAME'. + ?THREAD_NAME. 'thread.name' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex index 0a56399e..568089d4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex @@ -30,7 +30,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CIPHER'. + ?TLS_CIPHER. 'tls.cipher' ``` @@ -63,7 +63,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_CERTIFICATE'. + ?TLS_CLIENT_CERTIFICATE. 'tls.client.certificate' ``` @@ -96,7 +96,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_CERTIFICATE_CHAIN'. + ?TLS_CLIENT_CERTIFICATE_CHAIN. 'tls.client.certificate_chain' ``` @@ -129,7 +129,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_HASH_MD5'. + ?TLS_CLIENT_HASH_MD5. 'tls.client.hash.md5' ``` @@ -162,7 +162,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_HASH_SHA1'. + ?TLS_CLIENT_HASH_SHA1. 'tls.client.hash.sha1' ``` @@ -195,7 +195,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_HASH_SHA256'. + ?TLS_CLIENT_HASH_SHA256. 'tls.client.hash.sha256' ``` @@ -227,7 +227,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_ISSUER'. + ?TLS_CLIENT_ISSUER. 'tls.client.issuer' ``` @@ -259,7 +259,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_JA3'. + ?TLS_CLIENT_JA3. 'tls.client.ja3' ``` @@ -291,7 +291,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_NOT_AFTER'. + ?TLS_CLIENT_NOT_AFTER. 'tls.client.not_after' ``` @@ -323,7 +323,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_NOT_BEFORE'. + ?TLS_CLIENT_NOT_BEFORE. 'tls.client.not_before' ``` @@ -355,7 +355,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_SERVER_NAME'. + ?TLS_CLIENT_SERVER_NAME. 'tls.client.server_name' ``` @@ -387,7 +387,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_SUBJECT'. + ?TLS_CLIENT_SUBJECT. 'tls.client.subject' ``` @@ -419,7 +419,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CLIENT_SUPPORTED_CIPHERS'. + ?TLS_CLIENT_SUPPORTED_CIPHERS. 'tls.client.supported_ciphers' ``` @@ -451,7 +451,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_CURVE'. + ?TLS_CURVE. 'tls.curve' ``` @@ -483,7 +483,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_ESTABLISHED'. + ?TLS_ESTABLISHED. 'tls.established' ``` @@ -516,7 +516,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_NEXT_PROTOCOL'. + ?TLS_NEXT_PROTOCOL. 'tls.next_protocol' ``` @@ -560,13 +560,13 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_PROTOCOL_NAME'. + ?TLS_PROTOCOL_NAME. 'tls.protocol.name' - ?'TLS_PROTOCOL_NAME_VALUES_SSL'. + ?TLS_PROTOCOL_NAME_VALUES_SSL. 'ssl' - \#{?'TLS_PROTOCOL_NAME' => ?'TLS_PROTOCOL_NAME_VALUES_SSL'}. + \#{?TLS_PROTOCOL_NAME => ?TLS_PROTOCOL_NAME_VALUES_SSL}. \#{'tls.protocol.name' => 'ssl'} ``` @@ -607,7 +607,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_PROTOCOL_VERSION'. + ?TLS_PROTOCOL_VERSION. 'tls.protocol.version' ``` @@ -639,7 +639,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_RESUMED'. + ?TLS_RESUMED. 'tls.resumed' ``` @@ -672,7 +672,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_CERTIFICATE'. + ?TLS_SERVER_CERTIFICATE. 'tls.server.certificate' ``` @@ -705,7 +705,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_CERTIFICATE_CHAIN'. + ?TLS_SERVER_CERTIFICATE_CHAIN. 'tls.server.certificate_chain' ``` @@ -738,7 +738,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_HASH_MD5'. + ?TLS_SERVER_HASH_MD5. 'tls.server.hash.md5' ``` @@ -771,7 +771,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_HASH_SHA1'. + ?TLS_SERVER_HASH_SHA1. 'tls.server.hash.sha1' ``` @@ -804,7 +804,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_HASH_SHA256'. + ?TLS_SERVER_HASH_SHA256. 'tls.server.hash.sha256' ``` @@ -836,7 +836,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_ISSUER'. + ?TLS_SERVER_ISSUER. 'tls.server.issuer' ``` @@ -868,7 +868,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_JA3S'. + ?TLS_SERVER_JA3S. 'tls.server.ja3s' ``` @@ -900,7 +900,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_NOT_AFTER'. + ?TLS_SERVER_NOT_AFTER. 'tls.server.not_after' ``` @@ -932,7 +932,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_NOT_BEFORE'. + ?TLS_SERVER_NOT_BEFORE. 'tls.server.not_before' ``` @@ -964,7 +964,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Erlang ```erlang - ?'TLS_SERVER_SUBJECT'. + ?TLS_SERVER_SUBJECT. 'tls.server.subject' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex index 9f381771..82665c4a 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/url_attributes.ex @@ -39,7 +39,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_DOMAIN'. + ?URL_DOMAIN. 'url.domain' ``` @@ -76,7 +76,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_EXTENSION'. + ?URL_EXTENSION. 'url.extension' ``` @@ -114,7 +114,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_ORIGINAL'. + ?URL_ORIGINAL. 'url.original' ``` @@ -147,7 +147,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_PORT'. + ?URL_PORT. 'url.port' ``` @@ -184,7 +184,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_REGISTERED_DOMAIN'. + ?URL_REGISTERED_DOMAIN. 'url.registered_domain' ``` @@ -221,7 +221,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_SUBDOMAIN'. + ?URL_SUBDOMAIN. 'url.subdomain' ``` @@ -254,7 +254,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_TEMPLATE'. + ?URL_TEMPLATE. 'url.template' ``` @@ -291,7 +291,7 @@ defmodule OpenTelemetry.SemConv.Incubating.URLAttributes do ### Erlang ```erlang - ?'URL_TOP_LEVEL_DOMAIN'. + ?URL_TOP_LEVEL_DOMAIN. 'url.top_level_domain' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex index 8b619fd7..b9d8c84c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_agent_attributes.ex @@ -31,7 +31,7 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do ### Erlang ```erlang - ?'USER_AGENT_NAME'. + ?USER_AGENT_NAME. 'user_agent.name' ``` @@ -68,7 +68,7 @@ defmodule OpenTelemetry.SemConv.Incubating.UserAgentAttributes do ### Erlang ```erlang - ?'USER_AGENT_VERSION'. + ?USER_AGENT_VERSION. 'user_agent.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex index 7fae2e3f..c6824610 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex @@ -26,7 +26,7 @@ defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do ### Erlang ```erlang - ?'WEBENGINE_DESCRIPTION'. + ?WEBENGINE_DESCRIPTION. 'webengine.description' ``` @@ -59,7 +59,7 @@ defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do ### Erlang ```erlang - ?'WEBENGINE_NAME'. + ?WEBENGINE_NAME. 'webengine.name' ``` @@ -92,7 +92,7 @@ defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do ### Erlang ```erlang - ?'WEBENGINE_VERSION'. + ?WEBENGINE_VERSION. 'webengine.version' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex index 28cbe596..afb594d1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/container_metrics.ex @@ -22,7 +22,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?'CONTAINER_CPU_TIME'. + ?CONTAINER_CPU_TIME. 'container.cpu.time' ``` @@ -53,7 +53,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?'CONTAINER_DISK_IO'. + ?CONTAINER_DISK_IO. 'container.disk.io' ``` @@ -84,7 +84,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?'CONTAINER_MEMORY_USAGE'. + ?CONTAINER_MEMORY_USAGE. 'container.memory.usage' ``` @@ -115,7 +115,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ContainerMetrics do ### Erlang ```erlang - ?'CONTAINER_NETWORK_IO'. + ?CONTAINER_NETWORK_IO. 'container.network.io' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex index 7de28dce..c0a2e122 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_COUNT'. + ?DB_CLIENT_CONNECTION_COUNT. 'db.client.connection.count' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_CREATE_TIME'. + ?DB_CLIENT_CONNECTION_CREATE_TIME. 'db.client.connection.create_time' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_IDLE_MAX'. + ?DB_CLIENT_CONNECTION_IDLE_MAX. 'db.client.connection.idle.max' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_IDLE_MIN'. + ?DB_CLIENT_CONNECTION_IDLE_MIN. 'db.client.connection.idle.min' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_MAX'. + ?DB_CLIENT_CONNECTION_MAX. 'db.client.connection.max' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_PENDING_REQUESTS'. + ?DB_CLIENT_CONNECTION_PENDING_REQUESTS. 'db.client.connection.pending_requests' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_TIMEOUTS'. + ?DB_CLIENT_CONNECTION_TIMEOUTS. 'db.client.connection.timeouts' ``` @@ -207,7 +207,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_USE_TIME'. + ?DB_CLIENT_CONNECTION_USE_TIME. 'db.client.connection.use_time' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_CONNECTION_WAIT_TIME'. + ?DB_CLIENT_CONNECTION_WAIT_TIME. 'db.client.connection.wait_time' ``` @@ -342,7 +342,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do ### Erlang ```erlang - ?'DB_CLIENT_OPERATION_DURATION'. + ?DB_CLIENT_OPERATION_DURATION. 'db.client.operation.duration' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex index 87730079..030d7e3c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/dns_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DNSMetrics do ### Erlang ```erlang - ?'DNS_LOOKUP_DURATION'. + ?DNS_LOOKUP_DURATION. 'dns.lookup.duration' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex index c3aa4c37..950c5f9c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/faas_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_COLDSTARTS'. + ?FAAS_COLDSTARTS. 'faas.coldstarts' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_CPU_USAGE'. + ?FAAS_CPU_USAGE. 'faas.cpu_usage' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_ERRORS'. + ?FAAS_ERRORS. 'faas.errors' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_INIT_DURATION'. + ?FAAS_INIT_DURATION. 'faas.init_duration' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_INVOCATIONS'. + ?FAAS_INVOCATIONS. 'faas.invocations' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_INVOKE_DURATION'. + ?FAAS_INVOKE_DURATION. 'faas.invoke_duration' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_MEM_USAGE'. + ?FAAS_MEM_USAGE. 'faas.mem_usage' ``` @@ -207,7 +207,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_NET_IO'. + ?FAAS_NET_IO. 'faas.net_io' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.FAASMetrics do ### Erlang ```erlang - ?'FAAS_TIMEOUTS'. + ?FAAS_TIMEOUTS. 'faas.timeouts' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex index 83a82efb..525b8079 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/http_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_CLIENT_ACTIVE_REQUESTS'. + ?HTTP_CLIENT_ACTIVE_REQUESTS. 'http.client.active_requests' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_CLIENT_CONNECTION_DURATION'. + ?HTTP_CLIENT_CONNECTION_DURATION. 'http.client.connection.duration' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_CLIENT_OPEN_CONNECTIONS'. + ?HTTP_CLIENT_OPEN_CONNECTIONS. 'http.client.open_connections' ``` @@ -103,7 +103,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_CLIENT_REQUEST_BODY_SIZE'. + ?HTTP_CLIENT_REQUEST_BODY_SIZE. 'http.client.request.body.size' ``` @@ -134,7 +134,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_CLIENT_RESPONSE_BODY_SIZE'. + ?HTTP_CLIENT_RESPONSE_BODY_SIZE. 'http.client.response.body.size' ``` @@ -161,7 +161,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_SERVER_ACTIVE_REQUESTS'. + ?HTTP_SERVER_ACTIVE_REQUESTS. 'http.server.active_requests' ``` @@ -192,7 +192,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_SERVER_REQUEST_BODY_SIZE'. + ?HTTP_SERVER_REQUEST_BODY_SIZE. 'http.server.request.body.size' ``` @@ -223,7 +223,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_SERVER_RESPONSE_BODY_SIZE'. + ?HTTP_SERVER_RESPONSE_BODY_SIZE. 'http.server.response.body.size' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex index 2764f59c..f1380483 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?'MESSAGING_PROCESS_DURATION'. + ?MESSAGING_PROCESS_DURATION. 'messaging.process.duration' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?'MESSAGING_PROCESS_MESSAGES'. + ?MESSAGING_PROCESS_MESSAGES. 'messaging.process.messages' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?'MESSAGING_PUBLISH_DURATION'. + ?MESSAGING_PUBLISH_DURATION. 'messaging.publish.duration' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?'MESSAGING_PUBLISH_MESSAGES'. + ?MESSAGING_PUBLISH_MESSAGES. 'messaging.publish.messages' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?'MESSAGING_RECEIVE_DURATION'. + ?MESSAGING_RECEIVE_DURATION. 'messaging.receive.duration' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do ### Erlang ```erlang - ?'MESSAGING_RECEIVE_MESSAGES'. + ?MESSAGING_RECEIVE_MESSAGES. 'messaging.receive.messages' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex index 56e67a7f..07b3f74d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/process_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_CONTEXT_SWITCHES'. + ?PROCESS_CONTEXT_SWITCHES. 'process.context_switches' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_CPU_TIME'. + ?PROCESS_CPU_TIME. 'process.cpu.time' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_CPU_UTILIZATION'. + ?PROCESS_CPU_UTILIZATION. 'process.cpu.utilization' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_DISK_IO'. + ?PROCESS_DISK_IO. 'process.disk.io' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_MEMORY_USAGE'. + ?PROCESS_MEMORY_USAGE. 'process.memory.usage' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_MEMORY_VIRTUAL'. + ?PROCESS_MEMORY_VIRTUAL. 'process.memory.virtual' ``` @@ -180,7 +180,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_NETWORK_IO'. + ?PROCESS_NETWORK_IO. 'process.network.io' ``` @@ -207,7 +207,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_OPEN_FILE_DESCRIPTOR_COUNT'. + ?PROCESS_OPEN_FILE_DESCRIPTOR_COUNT. 'process.open_file_descriptor.count' ``` @@ -234,7 +234,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_PAGING_FAULTS'. + ?PROCESS_PAGING_FAULTS. 'process.paging.faults' ``` @@ -261,7 +261,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.ProcessMetrics do ### Erlang ```erlang - ?'PROCESS_THREAD_COUNT'. + ?PROCESS_THREAD_COUNT. 'process.thread.count' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex index d6f25be5..5b7396f1 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/rpc_metrics.ex @@ -25,7 +25,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_CLIENT_DURATION'. + ?RPC_CLIENT_DURATION. 'rpc.client.duration' ``` @@ -56,7 +56,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_CLIENT_REQUEST_SIZE'. + ?RPC_CLIENT_REQUEST_SIZE. 'rpc.client.request.size' ``` @@ -89,7 +89,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_CLIENT_REQUESTS_PER_RPC'. + ?RPC_CLIENT_REQUESTS_PER_RPC. 'rpc.client.requests_per_rpc' ``` @@ -120,7 +120,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_CLIENT_RESPONSE_SIZE'. + ?RPC_CLIENT_RESPONSE_SIZE. 'rpc.client.response.size' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_CLIENT_RESPONSES_PER_RPC'. + ?RPC_CLIENT_RESPONSES_PER_RPC. 'rpc.client.responses_per_rpc' ``` @@ -187,7 +187,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_SERVER_DURATION'. + ?RPC_SERVER_DURATION. 'rpc.server.duration' ``` @@ -218,7 +218,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_SERVER_REQUEST_SIZE'. + ?RPC_SERVER_REQUEST_SIZE. 'rpc.server.request.size' ``` @@ -251,7 +251,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_SERVER_REQUESTS_PER_RPC'. + ?RPC_SERVER_REQUESTS_PER_RPC. 'rpc.server.requests_per_rpc' ``` @@ -282,7 +282,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_SERVER_RESPONSE_SIZE'. + ?RPC_SERVER_RESPONSE_SIZE. 'rpc.server.response.size' ``` @@ -315,7 +315,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.RPCMetrics do ### Erlang ```erlang - ?'RPC_SERVER_RESPONSES_PER_RPC'. + ?RPC_SERVER_RESPONSES_PER_RPC. 'rpc.server.responses_per_rpc' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex index 51bda442..bc379bf4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_CPU_FREQUENCY'. + ?SYSTEM_CPU_FREQUENCY. 'system.cpu.frequency' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_CPU_LOGICAL_COUNT'. + ?SYSTEM_CPU_LOGICAL_COUNT. 'system.cpu.logical.count' ``` @@ -72,7 +72,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_CPU_PHYSICAL_COUNT'. + ?SYSTEM_CPU_PHYSICAL_COUNT. 'system.cpu.physical.count' ``` @@ -99,7 +99,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_CPU_TIME'. + ?SYSTEM_CPU_TIME. 'system.cpu.time' ``` @@ -126,7 +126,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_CPU_UTILIZATION'. + ?SYSTEM_CPU_UTILIZATION. 'system.cpu.utilization' ``` @@ -153,7 +153,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_DISK_IO'. + ?SYSTEM_DISK_IO. 'system.disk.io' ``` @@ -189,7 +189,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_DISK_IO_TIME'. + ?SYSTEM_DISK_IO_TIME. 'system.disk.io_time' ``` @@ -216,7 +216,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_DISK_MERGED'. + ?SYSTEM_DISK_MERGED. 'system.disk.merged' ``` @@ -250,7 +250,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_DISK_OPERATION_TIME'. + ?SYSTEM_DISK_OPERATION_TIME. 'system.disk.operation_time' ``` @@ -277,7 +277,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_DISK_OPERATIONS'. + ?SYSTEM_DISK_OPERATIONS. 'system.disk.operations' ``` @@ -304,7 +304,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_FILESYSTEM_USAGE'. + ?SYSTEM_FILESYSTEM_USAGE. 'system.filesystem.usage' ``` @@ -331,7 +331,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_FILESYSTEM_UTILIZATION'. + ?SYSTEM_FILESYSTEM_UTILIZATION. 'system.filesystem.utilization' ``` @@ -366,7 +366,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_LINUX_MEMORY_AVAILABLE'. + ?SYSTEM_LINUX_MEMORY_AVAILABLE. 'system.linux.memory.available' ``` @@ -397,7 +397,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_MEMORY_LIMIT'. + ?SYSTEM_MEMORY_LIMIT. 'system.memory.limit' ``` @@ -429,7 +429,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_MEMORY_SHARED'. + ?SYSTEM_MEMORY_SHARED. 'system.memory.shared' ``` @@ -461,7 +461,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_MEMORY_USAGE'. + ?SYSTEM_MEMORY_USAGE. 'system.memory.usage' ``` @@ -488,7 +488,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_MEMORY_UTILIZATION'. + ?SYSTEM_MEMORY_UTILIZATION. 'system.memory.utilization' ``` @@ -515,7 +515,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_NETWORK_CONNECTIONS'. + ?SYSTEM_NETWORK_CONNECTIONS. 'system.network.connections' ``` @@ -550,7 +550,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_NETWORK_DROPPED'. + ?SYSTEM_NETWORK_DROPPED. 'system.network.dropped' ``` @@ -585,7 +585,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_NETWORK_ERRORS'. + ?SYSTEM_NETWORK_ERRORS. 'system.network.errors' ``` @@ -612,7 +612,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_NETWORK_IO'. + ?SYSTEM_NETWORK_IO. 'system.network.io' ``` @@ -639,7 +639,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_NETWORK_PACKETS'. + ?SYSTEM_NETWORK_PACKETS. 'system.network.packets' ``` @@ -666,7 +666,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_PAGING_FAULTS'. + ?SYSTEM_PAGING_FAULTS. 'system.paging.faults' ``` @@ -693,7 +693,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_PAGING_OPERATIONS'. + ?SYSTEM_PAGING_OPERATIONS. 'system.paging.operations' ``` @@ -720,7 +720,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_PAGING_USAGE'. + ?SYSTEM_PAGING_USAGE. 'system.paging.usage' ``` @@ -747,7 +747,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_PAGING_UTILIZATION'. + ?SYSTEM_PAGING_UTILIZATION. 'system.paging.utilization' ``` @@ -774,7 +774,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_PROCESS_COUNT'. + ?SYSTEM_PROCESS_COUNT. 'system.process.count' ``` @@ -801,7 +801,7 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do ### Erlang ```erlang - ?'SYSTEM_PROCESS_CREATED'. + ?SYSTEM_PROCESS_CREATED. 'system.process.created' ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex index 43045d11..d2e8f13b 100644 --- a/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/metrics/http_metrics.ex @@ -18,7 +18,7 @@ defmodule OpenTelemetry.SemConv.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_CLIENT_REQUEST_DURATION'. + ?HTTP_CLIENT_REQUEST_DURATION. 'http.client.request.duration' ``` @@ -45,7 +45,7 @@ defmodule OpenTelemetry.SemConv.Metrics.HTTPMetrics do ### Erlang ```erlang - ?'HTTP_SERVER_REQUEST_DURATION'. + ?HTTP_SERVER_REQUEST_DURATION. 'http.server.request.duration' ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 index 172741cc..0509b475 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_attributes.ex.j2 @@ -84,13 +84,13 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?'{{ c.erl_attr_name(attribute.name) }}'. + ?{{ c.erl_attr_name(attribute.name) }}. '{{ attribute.name }}' - ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'. + ?{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}. '{{ attribute.type.members|first|attr('value') }}' - {% raw %}\#{{% endraw %}?'{{ c.erl_attr_name(attribute.name) }}' => ?'{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}'{% raw %}}{% endraw %}. + {% raw %}\#{{% endraw %}?{{ c.erl_attr_name(attribute.name) }} => ?{{ c.erl_attr_name(attribute.name) }}_VALUES_{{ attribute.type.members|first|attr('id') | screaming_snake_case }}{% raw %}}{% endraw %}. {% raw %}\#{{% endraw %}'{{ attribute.name }}' => '{{ attribute.type.members|first|attr('value') }}'{% raw %}}{% endraw %} ``` {%- else %} @@ -103,7 +103,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?'{{ c.erl_attr_name(attribute.name) }}'. + ?{{ c.erl_attr_name(attribute.name) }}. '{{ attribute.name }}' ``` {%- endif %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index 770b2877..bed5a9ad 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -26,7 +26,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do Instrument: `{{ metric.instrument }}` Unit: `{{ metric.unit }}` - + {%- if metric.note %} ### Notes @@ -42,7 +42,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?'{{ metric.metric_name | snake_case | upper }}'. + ?{{ metric.metric_name | snake_case | upper }}. '{{ metric.metric_name }}' ``` @@ -55,4 +55,4 @@ defmodule {{ module_namespace }}.{{ module_name }} do {{ c.to_atom(metric.metric_name) }} end {% endfor %} -end \ No newline at end of file +end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 index f0e71c9e..edc3f77d 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_attributes.hrl.j2 @@ -23,10 +23,10 @@ %% @deprecated {{ attribute.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ attribute.brief | replace("\n", "\n%% ") }} --define('{{ c.attr_name(attribute.name) }}', '{{ attribute.name }}'). +-define({{ c.attr_name(attribute.name) }}, '{{ attribute.name }}'). {%- if attribute.type is mapping %} {% for member in attribute.type.members %} --define('{{ c.attr_name(attribute.name) }}_VALUES_{{ member.id | screaming_snake_case }}', '{{ member.value }}'). +-define({{ c.attr_name(attribute.name) }}_VALUES_{{ member.id | screaming_snake_case }}, '{{ member.value }}'). {% endfor %} {%- endif %} {% endfor %} diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 index fd919989..169b7e2a 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/semantic_metrics.hrl.j2 @@ -21,5 +21,5 @@ %% @deprecated {{ metric.deprecated | replace("\n", "\n%% ") }} {%- endif %} %% {{ metric.brief | replace("\n", "\n%% ") }} --define('{{ c.attr_name(metric.metric_name) }}', '{{ metric.metric_name }}'). +-define({{ c.attr_name(metric.metric_name) }}, '{{ metric.metric_name }}'). {% endfor %} From 2fa006d3e2015b1db24dd0e4c180b0aff47c4d6a Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Sat, 17 Aug 2024 11:37:45 -0600 Subject: [PATCH 53/57] deprecated compose cmd --- .github/workflows/erlang.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 10067ba2..731cce18 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -32,7 +32,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run Collector - run: docker-compose up -d + run: docker compose up -d - uses: erlef/setup-beam@v1 with: otp-version: ${{ matrix.otp_version }} From cbe3e416c9121a5ad8918070daedf61cfbed194e Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 13 Sep 2024 18:40:04 -0600 Subject: [PATCH 54/57] v1.27.0 start --- .../include/attributes/network_attributes.hrl | 6 +- .../incubating/attributes/aws_attributes.hrl | 2 +- .../attributes/azure_attributes.hrl | 18 + .../attributes/cloud_attributes.hrl | 2 +- .../attributes/container_attributes.hrl | 4 +- .../incubating/attributes/cpu_attributes.hrl | 35 ++ .../incubating/attributes/db_attributes.hrl | 137 +++--- .../attributes/deployment_attributes.hrl | 27 +- .../attributes/enduser_attributes.hrl | 14 +- .../incubating/attributes/gcp_attributes.hrl | 4 + .../attributes/gen_ai_attributes.hrl | 68 ++- .../incubating/attributes/host_attributes.hrl | 16 +- .../incubating/attributes/log_attributes.hrl | 5 + .../attributes/messaging_attributes.hrl | 53 ++- .../attributes/network_attributes.hrl | 4 +- .../attributes/process_attributes.hrl | 7 +- .../attributes/system_attributes.hrl | 8 +- .../incubating/attributes/tls_attributes.hrl | 4 +- .../incubating/attributes/user_attributes.hrl | 44 ++ .../incubating/metrics/gen_ai_metrics.hrl | 34 ++ .../incubating/metrics/messaging_metrics.hrl | 34 +- .../incubating/metrics/system_metrics.hrl | 4 + .../include/schema_urls.hrl | 1 + .../lib/attributes/network_attributes.ex | 11 +- .../incubating/attributes/aws_attributes.ex | 4 +- .../incubating/attributes/azure_attributes.ex | 38 ++ .../incubating/attributes/cloud_attributes.ex | 2 +- .../attributes/container_attributes.ex | 40 +- .../incubating/attributes/db_attributes.ex | 389 ++++++++++-------- .../attributes/deployment_attributes.ex | 152 ++++++- .../attributes/enduser_attributes.ex | 86 +--- .../incubating/attributes/gcp_attributes.ex | 36 ++ .../attributes/gen_ai_attributes.ex | 332 +++++++++++++-- .../incubating/attributes/host_attributes.ex | 4 +- .../incubating/attributes/log_attributes.ex | 37 ++ .../attributes/messaging_attributes.ex | 318 ++++++-------- .../attributes/process_attributes.ex | 39 +- .../attributes/system_attributes.ex | 44 +- .../incubating/attributes/tls_attributes.ex | 30 +- .../incubating/attributes/user_attributes.ex | 208 ++++++++++ .../lib/incubating/metrics/db_metrics.ex | 4 + .../lib/incubating/metrics/gen_ai_metrics.ex | 140 +++++++ .../incubating/metrics/messaging_metrics.ex | 154 +++---- .../lib/schema_urls.ex | 1 + .../makefile | 4 +- .../registry/elixir/semantic_metrics.ex.j2 | 2 +- .../templates/registry/elixir/weaver.yaml | 2 +- .../templates/registry/erlang/weaver.yaml | 2 +- 48 files changed, 1790 insertions(+), 820 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/azure_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/gen_ai_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/azure_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/gen_ai_metrics.ex diff --git a/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl index bbd2e7fa..2bc501ca 100644 --- a/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/attributes/network_attributes.hrl @@ -50,12 +50,14 @@ -define(NETWORK_TRANSPORT_VALUES_UNIX, 'unix'). +-define(NETWORK_TRANSPORT_VALUES_QUIC, 'quic'). + %% [OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent. -define(NETWORK_TYPE, 'network.type'). --define(NETWORK_TYPE_VALUES_IPV_4, 'ipv4'). +-define(NETWORK_TYPE_VALUES_IPV4, 'ipv4'). --define(NETWORK_TYPE_VALUES_IPV_6, 'ipv6'). +-define(NETWORK_TYPE_VALUES_IPV6, 'ipv6'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl index a89d28fa..219b9082 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/aws_attributes.hrl @@ -116,7 +116,7 @@ %% -define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). --define(AWS_ECS_LAUNCHTYPE_VALUES_EC_2, 'ec2'). +-define(AWS_ECS_LAUNCHTYPE_VALUES_EC2, 'ec2'). -define(AWS_ECS_LAUNCHTYPE_VALUES_FARGATE, 'fargate'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/azure_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/azure_attributes.hrl new file mode 100644 index 00000000..7038ced4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/azure_attributes.hrl @@ -0,0 +1,18 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The unique identifier of the service request. It's generated by the Azure service and returned with the response. +-define(AZ_SERVICE_REQUEST_ID, 'az.service_request_id'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl index 33862098..687a9374 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cloud_attributes.hrl @@ -34,7 +34,7 @@ -define(CLOUD_PLATFORM_VALUES_ALIBABA_CLOUD_OPENSHIFT, 'alibaba_cloud_openshift'). --define(CLOUD_PLATFORM_VALUES_AWS_EC_2, 'aws_ec2'). +-define(CLOUD_PLATFORM_VALUES_AWS_EC2, 'aws_ec2'). -define(CLOUD_PLATFORM_VALUES_AWS_ECS, 'aws_ecs'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl index 1e445d42..f99c32b8 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/container_attributes.hrl @@ -28,8 +28,8 @@ %% -define(CONTAINER_COMMAND_LINE, 'container.command_line'). - -%% The CPU state for this data point. +%% @deprecated Replaced by `cpu.mode` +%% Deprecated, use `cpu.mode` instead. -define(CONTAINER_CPU_STATE, 'container.cpu.state'). -define(CONTAINER_CPU_STATE_VALUES_USER, 'user'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl new file mode 100644 index 00000000..9ed41c80 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl @@ -0,0 +1,35 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The mode of the CPU +-define(CPU_MODE, 'cpu.mode'). + +-define(CPU_MODE_VALUES_USER, 'user'). + +-define(CPU_MODE_VALUES_SYSTEM, 'system'). + +-define(CPU_MODE_VALUES_NICE, 'nice'). + +-define(CPU_MODE_VALUES_IDLE, 'idle'). + +-define(CPU_MODE_VALUES_IOWAIT, 'iowait'). + +-define(CPU_MODE_VALUES_INTERRUPT, 'interrupt'). + +-define(CPU_MODE_VALUES_STEAL, 'steal'). + +-define(CPU_MODE_VALUES_KERNEL, 'kernel'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl index eb140d18..237c3025 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/db_attributes.hrl @@ -71,12 +71,25 @@ -define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). -%% 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. +%% 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. %% --define(DB_CLIENT_CONNECTIONS_POOL_NAME, 'db.client.connections.pool.name'). +-define(DB_CLIENT_CONNECTION_POOL_NAME, 'db.client.connection.pool.name'). %% The state of a connection in the pool +-define(DB_CLIENT_CONNECTION_STATE, 'db.client.connection.state'). + +-define(DB_CLIENT_CONNECTION_STATE_VALUES_IDLE, 'idle'). + +-define(DB_CLIENT_CONNECTION_STATE_VALUES_USED, 'used'). + + +%% @deprecated Replaced by `db.client.connection.pool.name`. +%% Deprecated, use `db.client.connection.pool.name` instead. +-define(DB_CLIENT_CONNECTIONS_POOL_NAME, 'db.client.connections.pool.name'). + +%% @deprecated Replaced by `db.client.connection.state`. +%% Deprecated, use `db.client.connection.state` instead. -define(DB_CLIENT_CONNECTIONS_STATE, 'db.client.connections.state'). -define(DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE, 'idle'). @@ -161,8 +174,8 @@ %% Cosmos DB sub status code. -define(DB_COSMOSDB_SUB_STATUS_CODE, 'db.cosmosdb.sub_status_code'). - -%% Represents the identifier of an Elasticsearch cluster. +%% @deprecated Replaced by `db.namespace`. +%% Deprecated, use `db.namespace` instead. %% -define(DB_ELASTICSEARCH_CLUSTER_NAME, 'db.elasticsearch.cluster.name'). @@ -206,12 +219,16 @@ -define(DB_OPERATION, 'db.operation'). +%% The number of queries included in a [batch operation](/docs/database/database-spans.md#batch-operations). +-define(DB_OPERATION_BATCH_SIZE, 'db.operation.batch.size'). + + %% The name of the operation or command being executed. %% -define(DB_OPERATION_NAME, 'db.operation.name'). -%% The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. +%% A query parameter used in `db.query.text`, with `` being the parameter name, and the attribute value being a string representation of the parameter value. %% -define(DB_QUERY_PARAMETER, 'db.query.parameter'). @@ -238,119 +255,123 @@ -define(DB_SYSTEM_VALUES_OTHER_SQL, 'other_sql'). --define(DB_SYSTEM_VALUES_MSSQL, 'mssql'). - --define(DB_SYSTEM_VALUES_MSSQLCOMPACT, 'mssqlcompact'). +-define(DB_SYSTEM_VALUES_ADABAS, 'adabas'). --define(DB_SYSTEM_VALUES_MYSQL, 'mysql'). +-define(DB_SYSTEM_VALUES_CACHE, 'cache'). --define(DB_SYSTEM_VALUES_ORACLE, 'oracle'). +-define(DB_SYSTEM_VALUES_INTERSYSTEMS_CACHE, 'intersystems_cache'). --define(DB_SYSTEM_VALUES_DB_2, 'db2'). +-define(DB_SYSTEM_VALUES_CASSANDRA, 'cassandra'). --define(DB_SYSTEM_VALUES_POSTGRESQL, 'postgresql'). +-define(DB_SYSTEM_VALUES_CLICKHOUSE, 'clickhouse'). --define(DB_SYSTEM_VALUES_REDSHIFT, 'redshift'). +-define(DB_SYSTEM_VALUES_CLOUDSCAPE, 'cloudscape'). --define(DB_SYSTEM_VALUES_HIVE, 'hive'). +-define(DB_SYSTEM_VALUES_COCKROACHDB, 'cockroachdb'). --define(DB_SYSTEM_VALUES_CLOUDSCAPE, 'cloudscape'). +-define(DB_SYSTEM_VALUES_COLDFUSION, 'coldfusion'). --define(DB_SYSTEM_VALUES_HSQLDB, 'hsqldb'). +-define(DB_SYSTEM_VALUES_COSMOSDB, 'cosmosdb'). --define(DB_SYSTEM_VALUES_PROGRESS, 'progress'). +-define(DB_SYSTEM_VALUES_COUCHBASE, 'couchbase'). --define(DB_SYSTEM_VALUES_MAXDB, 'maxdb'). +-define(DB_SYSTEM_VALUES_COUCHDB, 'couchdb'). --define(DB_SYSTEM_VALUES_HANADB, 'hanadb'). +-define(DB_SYSTEM_VALUES_DB2, 'db2'). --define(DB_SYSTEM_VALUES_INGRES, 'ingres'). +-define(DB_SYSTEM_VALUES_DERBY, 'derby'). --define(DB_SYSTEM_VALUES_FIRSTSQL, 'firstsql'). +-define(DB_SYSTEM_VALUES_DYNAMODB, 'dynamodb'). -define(DB_SYSTEM_VALUES_EDB, 'edb'). --define(DB_SYSTEM_VALUES_CACHE, 'cache'). +-define(DB_SYSTEM_VALUES_ELASTICSEARCH, 'elasticsearch'). --define(DB_SYSTEM_VALUES_ADABAS, 'adabas'). +-define(DB_SYSTEM_VALUES_FILEMAKER, 'filemaker'). -define(DB_SYSTEM_VALUES_FIREBIRD, 'firebird'). --define(DB_SYSTEM_VALUES_DERBY, 'derby'). - --define(DB_SYSTEM_VALUES_FILEMAKER, 'filemaker'). - --define(DB_SYSTEM_VALUES_INFORMIX, 'informix'). +-define(DB_SYSTEM_VALUES_FIRSTSQL, 'firstsql'). --define(DB_SYSTEM_VALUES_INSTANTDB, 'instantdb'). +-define(DB_SYSTEM_VALUES_GEODE, 'geode'). --define(DB_SYSTEM_VALUES_INTERBASE, 'interbase'). +-define(DB_SYSTEM_VALUES_H2, 'h2'). --define(DB_SYSTEM_VALUES_MARIADB, 'mariadb'). +-define(DB_SYSTEM_VALUES_HANADB, 'hanadb'). --define(DB_SYSTEM_VALUES_NETEZZA, 'netezza'). +-define(DB_SYSTEM_VALUES_HBASE, 'hbase'). --define(DB_SYSTEM_VALUES_PERVASIVE, 'pervasive'). +-define(DB_SYSTEM_VALUES_HIVE, 'hive'). --define(DB_SYSTEM_VALUES_POINTBASE, 'pointbase'). +-define(DB_SYSTEM_VALUES_HSQLDB, 'hsqldb'). --define(DB_SYSTEM_VALUES_SQLITE, 'sqlite'). +-define(DB_SYSTEM_VALUES_INFLUXDB, 'influxdb'). --define(DB_SYSTEM_VALUES_SYBASE, 'sybase'). +-define(DB_SYSTEM_VALUES_INFORMIX, 'informix'). --define(DB_SYSTEM_VALUES_TERADATA, 'teradata'). +-define(DB_SYSTEM_VALUES_INGRES, 'ingres'). --define(DB_SYSTEM_VALUES_VERTICA, 'vertica'). +-define(DB_SYSTEM_VALUES_INSTANTDB, 'instantdb'). --define(DB_SYSTEM_VALUES_H_2, 'h2'). +-define(DB_SYSTEM_VALUES_INTERBASE, 'interbase'). --define(DB_SYSTEM_VALUES_COLDFUSION, 'coldfusion'). +-define(DB_SYSTEM_VALUES_MARIADB, 'mariadb'). --define(DB_SYSTEM_VALUES_CASSANDRA, 'cassandra'). +-define(DB_SYSTEM_VALUES_MAXDB, 'maxdb'). --define(DB_SYSTEM_VALUES_HBASE, 'hbase'). +-define(DB_SYSTEM_VALUES_MEMCACHED, 'memcached'). -define(DB_SYSTEM_VALUES_MONGODB, 'mongodb'). --define(DB_SYSTEM_VALUES_REDIS, 'redis'). +-define(DB_SYSTEM_VALUES_MSSQL, 'mssql'). --define(DB_SYSTEM_VALUES_COUCHBASE, 'couchbase'). +-define(DB_SYSTEM_VALUES_MSSQLCOMPACT, 'mssqlcompact'). --define(DB_SYSTEM_VALUES_COUCHDB, 'couchdb'). +-define(DB_SYSTEM_VALUES_MYSQL, 'mysql'). --define(DB_SYSTEM_VALUES_COSMOSDB, 'cosmosdb'). +-define(DB_SYSTEM_VALUES_NEO4J, 'neo4j'). --define(DB_SYSTEM_VALUES_DYNAMODB, 'dynamodb'). +-define(DB_SYSTEM_VALUES_NETEZZA, 'netezza'). --define(DB_SYSTEM_VALUES_NEO_4_J, 'neo4j'). +-define(DB_SYSTEM_VALUES_OPENSEARCH, 'opensearch'). --define(DB_SYSTEM_VALUES_GEODE, 'geode'). +-define(DB_SYSTEM_VALUES_ORACLE, 'oracle'). --define(DB_SYSTEM_VALUES_ELASTICSEARCH, 'elasticsearch'). +-define(DB_SYSTEM_VALUES_PERVASIVE, 'pervasive'). --define(DB_SYSTEM_VALUES_MEMCACHED, 'memcached'). +-define(DB_SYSTEM_VALUES_POINTBASE, 'pointbase'). --define(DB_SYSTEM_VALUES_COCKROACHDB, 'cockroachdb'). +-define(DB_SYSTEM_VALUES_POSTGRESQL, 'postgresql'). --define(DB_SYSTEM_VALUES_OPENSEARCH, 'opensearch'). +-define(DB_SYSTEM_VALUES_PROGRESS, 'progress'). --define(DB_SYSTEM_VALUES_CLICKHOUSE, 'clickhouse'). +-define(DB_SYSTEM_VALUES_REDIS, 'redis'). + +-define(DB_SYSTEM_VALUES_REDSHIFT, 'redshift'). -define(DB_SYSTEM_VALUES_SPANNER, 'spanner'). +-define(DB_SYSTEM_VALUES_SQLITE, 'sqlite'). + +-define(DB_SYSTEM_VALUES_SYBASE, 'sybase'). + +-define(DB_SYSTEM_VALUES_TERADATA, 'teradata'). + -define(DB_SYSTEM_VALUES_TRINO, 'trino'). +-define(DB_SYSTEM_VALUES_VERTICA, 'vertica'). + %% @deprecated No replacement at this time. %% Deprecated, no replacement at this time. -define(DB_USER, 'db.user'). -%% @deprecated Replaced by `db.client.connections.pool.name`. -%% Deprecated, use `db.client.connections.pool.name` instead. +%% @deprecated Replaced by `db.client.connection.pool.name`. +%% Deprecated, use `db.client.connection.pool.name` instead. -define(POOL_NAME, 'pool.name'). -%% @deprecated Replaced by `db.client.connections.state`. -%% Deprecated, use `db.client.connections.state` instead. +%% @deprecated Replaced by `db.client.connection.state`. +%% Deprecated, use `db.client.connection.state` instead. -define(STATE, 'state'). -define(STATE_VALUES_IDLE, 'idle'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl index 51b0c3fe..6c72d077 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/deployment_attributes.hrl @@ -13,7 +13,32 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- +%% @deprecated Deprecated, use `deployment.environment.name` instead. +%% 'Deprecated, use `deployment.environment.name` instead.' +%% +-define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). + %% Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). %% --define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). +-define(DEPLOYMENT_ENVIRONMENT_NAME, 'deployment.environment.name'). + + +%% The id of the deployment. +%% +-define(DEPLOYMENT_ID, 'deployment.id'). + + +%% The name of the deployment. +%% +-define(DEPLOYMENT_NAME, 'deployment.name'). + + +%% The status of the deployment. +%% +-define(DEPLOYMENT_STATUS, 'deployment.status'). + +-define(DEPLOYMENT_STATUS_VALUES_FAILED, 'failed'). + +-define(DEPLOYMENT_STATUS_VALUES_SUCCEEDED, 'succeeded'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl index 2afc72e4..82a015db 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/enduser_attributes.hrl @@ -13,16 +13,14 @@ %% See the License for the specific language governing permissions and %% limitations under the License. %%%------------------------------------------------------------------------- - -%% Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. -%% +%% @deprecated Replaced by `user.id` attribute. +%% Deprecated, use `user.id` instead. -define(ENDUSER_ID, 'enduser.id'). - -%% Actual/assumed role the client is making the request under extracted from token or application security context. +%% @deprecated Replaced by `user.roles` attribute. +%% Deprecated, use `user.roles` instead. -define(ENDUSER_ROLE, 'enduser.role'). - -%% Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). -%% +%% @deprecated Removed. +%% Deprecated, no replacement at this time. -define(ENDUSER_SCOPE, 'enduser.scope'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl index 3404be06..e361f859 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gcp_attributes.hrl @@ -14,6 +14,10 @@ %% limitations under the License. %%%------------------------------------------------------------------------- +%% Identifies the Google Cloud service for which the official client library is intended. +-define(GCP_CLIENT_SERVICE, 'gcp.client.service'). + + %% 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. %% -define(GCP_CLOUD_RUN_JOB_EXECUTION, 'gcp.cloud_run.job.execution'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl index 21910317..08e4ac33 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/gen_ai_attributes.hrl @@ -14,27 +14,52 @@ %% limitations under the License. %%%------------------------------------------------------------------------- -%% The full response received from the LLM. +%% The full response received from the GenAI model. -define(GEN_AI_COMPLETION, 'gen_ai.completion'). -%% The full prompt sent to an LLM. +%% The name of the operation being performed. +-define(GEN_AI_OPERATION_NAME, 'gen_ai.operation.name'). + +-define(GEN_AI_OPERATION_NAME_VALUES_CHAT, 'chat'). + +-define(GEN_AI_OPERATION_NAME_VALUES_TEXT_COMPLETION, 'text_completion'). + + + +%% The full prompt sent to the GenAI model. -define(GEN_AI_PROMPT, 'gen_ai.prompt'). -%% The maximum number of tokens the LLM generates for a request. +%% The frequency penalty setting for the GenAI request. +-define(GEN_AI_REQUEST_FREQUENCY_PENALTY, 'gen_ai.request.frequency_penalty'). + + +%% The maximum number of tokens the model generates for a request. -define(GEN_AI_REQUEST_MAX_TOKENS, 'gen_ai.request.max_tokens'). -%% The name of the LLM a request is being made to. +%% The name of the GenAI model a request is being made to. -define(GEN_AI_REQUEST_MODEL, 'gen_ai.request.model'). -%% The temperature setting for the LLM request. +%% The presence penalty setting for the GenAI request. +-define(GEN_AI_REQUEST_PRESENCE_PENALTY, 'gen_ai.request.presence_penalty'). + + +%% List of sequences that the model will use to stop generating further tokens. +-define(GEN_AI_REQUEST_STOP_SEQUENCES, 'gen_ai.request.stop_sequences'). + + +%% The temperature setting for the GenAI request. -define(GEN_AI_REQUEST_TEMPERATURE, 'gen_ai.request.temperature'). -%% The top_p sampling setting for the LLM request. +%% The top_k sampling setting for the GenAI request. +-define(GEN_AI_REQUEST_TOP_K, 'gen_ai.request.top_k'). + + +%% The top_p sampling setting for the GenAI request. -define(GEN_AI_REQUEST_TOP_P, 'gen_ai.request.top_p'). @@ -46,20 +71,43 @@ -define(GEN_AI_RESPONSE_ID, 'gen_ai.response.id'). -%% The name of the LLM a response was generated from. +%% The name of the model that generated the response. -define(GEN_AI_RESPONSE_MODEL, 'gen_ai.response.model'). -%% The Generative AI product as identified by the client instrumentation. +%% The Generative AI product as identified by the client or server instrumentation. -define(GEN_AI_SYSTEM, 'gen_ai.system'). -define(GEN_AI_SYSTEM_VALUES_OPENAI, 'openai'). +-define(GEN_AI_SYSTEM_VALUES_VERTEX_AI, 'vertex_ai'). + +-define(GEN_AI_SYSTEM_VALUES_ANTHROPIC, 'anthropic'). + +-define(GEN_AI_SYSTEM_VALUES_COHERE, 'cohere'). + + + +%% The type of token being counted. +-define(GEN_AI_TOKEN_TYPE, 'gen_ai.token.type'). +-define(GEN_AI_TOKEN_TYPE_VALUES_INPUT, 'input'). -%% The number of tokens used in the LLM response (completion). +-define(GEN_AI_TOKEN_TYPE_VALUES_COMPLETION, 'output'). + + +%% @deprecated Replaced by `gen_ai.usage.output_tokens` attribute. +%% Deprecated, use `gen_ai.usage.output_tokens` instead. -define(GEN_AI_USAGE_COMPLETION_TOKENS, 'gen_ai.usage.completion_tokens'). -%% The number of tokens used in the LLM prompt. +%% The number of tokens used in the GenAI input (prompt). +-define(GEN_AI_USAGE_INPUT_TOKENS, 'gen_ai.usage.input_tokens'). + + +%% The number of tokens used in the GenAI response (completion). +-define(GEN_AI_USAGE_OUTPUT_TOKENS, 'gen_ai.usage.output_tokens'). + +%% @deprecated Replaced by `gen_ai.usage.input_tokens` attribute. +%% Deprecated, use `gen_ai.usage.input_tokens` instead. -define(GEN_AI_USAGE_PROMPT_TOKENS, 'gen_ai.usage.prompt_tokens'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl index 8d298fac..0a1e9e1c 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/host_attributes.hrl @@ -18,21 +18,21 @@ %% -define(HOST_ARCH, 'host.arch'). --define(HOST_ARCH_VALUES_AMD_64, 'amd64'). +-define(HOST_ARCH_VALUES_AMD64, 'amd64'). --define(HOST_ARCH_VALUES_ARM_32, 'arm32'). +-define(HOST_ARCH_VALUES_ARM32, 'arm32'). --define(HOST_ARCH_VALUES_ARM_64, 'arm64'). +-define(HOST_ARCH_VALUES_ARM64, 'arm64'). --define(HOST_ARCH_VALUES_IA_64, 'ia64'). +-define(HOST_ARCH_VALUES_IA64, 'ia64'). --define(HOST_ARCH_VALUES_PPC_32, 'ppc32'). +-define(HOST_ARCH_VALUES_PPC32, 'ppc32'). --define(HOST_ARCH_VALUES_PPC_64, 'ppc64'). +-define(HOST_ARCH_VALUES_PPC64, 'ppc64'). --define(HOST_ARCH_VALUES_S_390_X, 's390x'). +-define(HOST_ARCH_VALUES_S390X, 's390x'). --define(HOST_ARCH_VALUES_X_86, 'x86'). +-define(HOST_ARCH_VALUES_X86, 'x86'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl index d2963b0e..770f3718 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/log_attributes.hrl @@ -44,6 +44,11 @@ +%% The complete orignal Log Record. +%% +-define(LOG_RECORD_ORIGINAL, 'log.record.original'). + + %% A unique identifier for the Log Record. %% -define(LOG_RECORD_UID, 'log.record.uid'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl index 70f3a22b..0fec8ffc 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/messaging_attributes.hrl @@ -25,6 +25,11 @@ -define(MESSAGING_CLIENT_ID, 'messaging.client.id'). +%% The name of the consumer group with which a consumer is associated. +%% +-define(MESSAGING_CONSUMER_GROUP_NAME, 'messaging.consumer.group.name'). + + %% A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). -define(MESSAGING_DESTINATION_ANONYMOUS, 'messaging.destination.anonymous'). @@ -38,6 +43,10 @@ -define(MESSAGING_DESTINATION_PARTITION_ID, 'messaging.destination.partition.id'). +%% The name of the destination subscription from which a message is consumed. +-define(MESSAGING_DESTINATION_SUBSCRIPTION_NAME, 'messaging.destination.subscription.name'). + + %% Low cardinality representation of the messaging destination name -define(MESSAGING_DESTINATION_TEMPLATE, 'messaging.destination.template'). @@ -45,16 +54,17 @@ %% A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed. -define(MESSAGING_DESTINATION_TEMPORARY, 'messaging.destination.temporary'). - -%% A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). +%% @deprecated No replacement at this time. +%% Deprecated, no replacement at this time. -define(MESSAGING_DESTINATION_PUBLISH_ANONYMOUS, 'messaging.destination_publish.anonymous'). - -%% The name of the original destination the message was published to +%% @deprecated No replacement at this time. +%% Deprecated, no replacement at this time. -define(MESSAGING_DESTINATION_PUBLISH_NAME, 'messaging.destination_publish.name'). - -%% The name of the consumer group the event consumer is associated with. +%% @deprecated Replaced by `messaging.consumer.group.name`. +%% +%% Deprecated, use `messaging.consumer.group.name` instead. %% -define(MESSAGING_EVENTHUBS_CONSUMER_GROUP, 'messaging.eventhubs.consumer.group'). @@ -83,8 +93,9 @@ %% -define(MESSAGING_GCP_PUBSUB_MESSAGE_ORDERING_KEY, 'messaging.gcp_pubsub.message.ordering_key'). - -%% Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. +%% @deprecated Replaced by `messaging.consumer.group.name`. +%% +%% Deprecated, use `messaging.consumer.group.name` instead. %% -define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer.group'). @@ -98,8 +109,9 @@ %% -define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message.key'). - -%% The offset of a record in the corresponding Kafka partition. +%% @deprecated Replaced by `messaging.kafka.offset`. +%% +%% Deprecated, use `messaging.kafka.offset` instead. %% -define(MESSAGING_KAFKA_MESSAGE_OFFSET, 'messaging.kafka.message.offset'). @@ -108,6 +120,11 @@ -define(MESSAGING_KAFKA_MESSAGE_TOMBSTONE, 'messaging.kafka.message.tombstone'). +%% The offset of a record in the corresponding Kafka partition. +%% +-define(MESSAGING_KAFKA_OFFSET, 'messaging.kafka.offset'). + + %% The size of the message body in bytes. %% -define(MESSAGING_MESSAGE_BODY_SIZE, 'messaging.message.body.size'). @@ -147,10 +164,12 @@ -define(MESSAGING_OPERATION_TYPE_VALUES_RECEIVE, 'receive'). --define(MESSAGING_OPERATION_TYPE_VALUES_DELIVER, 'process'). +-define(MESSAGING_OPERATION_TYPE_VALUES_PROCESS, 'process'). -define(MESSAGING_OPERATION_TYPE_VALUES_SETTLE, 'settle'). +-define(MESSAGING_OPERATION_TYPE_VALUES_DELIVER, 'deliver'). + %% RabbitMQ message routing key. @@ -162,8 +181,9 @@ %% -define(MESSAGING_RABBITMQ_MESSAGE_DELIVERY_TAG, 'messaging.rabbitmq.message.delivery_tag'). - -%% Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. +%% @deprecated Replaced by `messaging.consumer.group.name` on the consumer spans. No replacement for producer spans. +%% +%% Deprecated, use `messaging.consumer.group.name` instead. %% -define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). @@ -221,8 +241,9 @@ %% -define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). - -%% The name of the subscription in the topic messages are received from. +%% @deprecated Replaced by `messaging.servicebus.destination.subscription_name`. +%% +%% Deprecated, use `messaging.servicebus.destination.subscription_name` instead. %% -define(MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME, 'messaging.servicebus.destination.subscription_name'). @@ -274,3 +295,5 @@ -define(MESSAGING_SYSTEM_VALUES_ROCKETMQ, 'rocketmq'). +-define(MESSAGING_SYSTEM_VALUES_PULSAR, 'pulsar'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl index 4e46f1c1..01a700e4 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/network_attributes.hrl @@ -53,7 +53,7 @@ -define(NET_SOCK_FAMILY_VALUES_INET, 'inet'). --define(NET_SOCK_FAMILY_VALUES_INET_6, 'inet6'). +-define(NET_SOCK_FAMILY_VALUES_INET6, 'inet6'). -define(NET_SOCK_FAMILY_VALUES_UNIX, 'unix'). @@ -125,7 +125,7 @@ -define(NETWORK_CONNECTION_SUBTYPE_VALUES_EVDO_A, 'evdo_a'). --define(NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA_2000_1_XRTT, 'cdma2000_1xrtt'). +-define(NETWORK_CONNECTION_SUBTYPE_VALUES_CDMA2000_1XRTT, 'cdma2000_1xrtt'). -define(NETWORK_CONNECTION_SUBTYPE_VALUES_HSDPA, 'hsdpa'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl index 79f9aef5..9910359d 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/process_attributes.hrl @@ -37,9 +37,8 @@ -define(PROCESS_CONTEXT_SWITCH_TYPE_VALUES_INVOLUNTARY, 'involuntary'). - -%% The CPU state of the process. -%% +%% @deprecated Replaced by `cpu.mode` +%% Deprecated, use `cpu.mode` instead. -define(PROCESS_CPU_STATE, 'process.cpu.state'). -define(PROCESS_CPU_STATE_VALUES_SYSTEM, 'system'). @@ -125,7 +124,7 @@ -define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). -%% The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. +%% The name of the runtime of this process. %% -define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl index a97033c9..0b874cc0 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl @@ -17,8 +17,8 @@ %% The logical CPU number [0..n-1] -define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). - -%% The state of the CPU +%% @deprecated Replaced by `cpu.mode` +%% Deprecated, use `cpu.mode` instead. -define(SYSTEM_CPU_STATE, 'system.cpu.state'). -define(SYSTEM_CPU_STATE_VALUES_USER, 'user'). @@ -63,7 +63,7 @@ %% The filesystem type -define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). --define(SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32, 'fat32'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32, 'fat32'). -define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXFAT, 'exfat'). @@ -73,7 +73,7 @@ -define(SYSTEM_FILESYSTEM_TYPE_VALUES_HFSPLUS, 'hfsplus'). --define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXT_4, 'ext4'). +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXT4, 'ext4'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl index 8486f70f..7918f446 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/tls_attributes.hrl @@ -59,8 +59,8 @@ %% Date/Time indicating when client certificate is first considered valid. -define(TLS_CLIENT_NOT_BEFORE, 'tls.client.not_before'). - -%% Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. +%% @deprecated Replaced by `server.address. +%% Deprecated, use `server.address` instead. -define(TLS_CLIENT_SERVER_NAME, 'tls.client.server_name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_attributes.hrl new file mode 100644 index 00000000..9ac3fe22 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/user_attributes.hrl @@ -0,0 +1,44 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% User email address. +%% +-define(USER_EMAIL, 'user.email'). + + +%% User's full name +%% +-define(USER_FULL_NAME, 'user.full_name'). + + +%% Unique user hash to correlate information for a user in anonymized form. +%% +-define(USER_HASH, 'user.hash'). + + +%% Unique identifier of the user. +%% +-define(USER_ID, 'user.id'). + + +%% Short name or login/username of the user. +%% +-define(USER_NAME, 'user.name'). + + +%% Array of user roles at the time of the event. +%% +-define(USER_ROLES, 'user.roles'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/gen_ai_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/gen_ai_metrics.hrl new file mode 100644 index 00000000..9db211af --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/gen_ai_metrics.hrl @@ -0,0 +1,34 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% GenAI operation duration +-define(GEN_AI_CLIENT_OPERATION_DURATION, 'gen_ai.client.operation.duration'). + + +%% Measures number of input and output tokens used +-define(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 +-define(GEN_AI_SERVER_REQUEST_DURATION, 'gen_ai.server.request.duration'). + + +%% Time per output token generated after the first token for successful responses +-define(GEN_AI_SERVER_TIME_PER_OUTPUT_TOKEN, 'gen_ai.server.time_per_output_token'). + + +%% Time to generate first token for successful responses +-define(GEN_AI_SERVER_TIME_TO_FIRST_TOKEN, 'gen_ai.server.time_to_first_token'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl index adf9a2c6..381d81d6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/messaging_metrics.hrl @@ -14,25 +14,37 @@ %% limitations under the License. %%%------------------------------------------------------------------------- -%% Measures the duration of process operation. --define(MESSAGING_PROCESS_DURATION, 'messaging.process.duration'). +%% Number of messages that were delivered to the application. +-define(MESSAGING_CLIENT_CONSUMED_MESSAGES, 'messaging.client.consumed.messages'). -%% Measures the number of processed messages. --define(MESSAGING_PROCESS_MESSAGES, 'messaging.process.messages'). +%% Duration of messaging operation initiated by a producer or consumer client. +-define(MESSAGING_CLIENT_OPERATION_DURATION, 'messaging.client.operation.duration'). -%% Measures the duration of publish operation. --define(MESSAGING_PUBLISH_DURATION, 'messaging.publish.duration'). +%% Number of messages producer attempted to publish to the broker. +-define(MESSAGING_CLIENT_PUBLISHED_MESSAGES, 'messaging.client.published.messages'). -%% Measures the number of published messages. --define(MESSAGING_PUBLISH_MESSAGES, 'messaging.publish.messages'). +%% Duration of processing operation. +-define(MESSAGING_PROCESS_DURATION, 'messaging.process.duration'). +%% @deprecated Replaced by `messaging.client.consumed.messages`. +%% Deprecated. Use `messaging.client.consumed.messages` instead. +-define(MESSAGING_PROCESS_MESSAGES, 'messaging.process.messages'). -%% Measures the duration of receive operation. --define(MESSAGING_RECEIVE_DURATION, 'messaging.receive.duration'). +%% @deprecated Replaced by `messaging.client.operation.duration`. +%% Deprecated. Use `messaging.client.operation.duration` instead. +-define(MESSAGING_PUBLISH_DURATION, 'messaging.publish.duration'). +%% @deprecated Replaced by `messaging.client.produced.messages`. +%% Deprecated. Use `messaging.client.produced.messages` instead. +-define(MESSAGING_PUBLISH_MESSAGES, 'messaging.publish.messages'). + +%% @deprecated Replaced by `messaging.client.operation.duration`. +%% Deprecated. Use `messaging.client.operation.duration` instead. +-define(MESSAGING_RECEIVE_DURATION, 'messaging.receive.duration'). -%% Measures the number of received messages. +%% @deprecated Replaced by `messaging.client.consumed.messages`. +%% Deprecated. Use `messaging.client.consumed.messages` instead. -define(MESSAGING_RECEIVE_MESSAGES, 'messaging.receive.messages'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl index eb00e9e2..5e38b8d6 100644 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl @@ -66,6 +66,10 @@ -define(SYSTEM_LINUX_MEMORY_AVAILABLE, 'system.linux.memory.available'). +%% Reports the memory used by the Linux kernel for managing caches of frequently used objects. +-define(SYSTEM_LINUX_MEMORY_SLAB_USAGE, 'system.linux.memory.slab.usage'). + + %% Total memory available in the system. -define(SYSTEM_MEMORY_LIMIT, 'system.memory.limit'). diff --git a/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl b/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl index d0ea02d3..5561e1c8 100644 --- a/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl +++ b/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl @@ -1 +1,2 @@ -define('V1_26_0', <<"https://opentelemetry.io/schemas/1.26.0">>). +-define('V1_27_0', <<"https://opentelemetry.io/schemas/1.27.0">>). diff --git a/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex index 3cbf4ca5..75aa42f4 100644 --- a/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/attributes/network_attributes.ex @@ -212,12 +212,14 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do * `:udp` - UDP * `:pipe` - Named or anonymous pipe. * `:unix` - Unix domain socket + * `:quic` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - QUIC """ @type network_transport_values() :: %{ :tcp => :tcp, :udp => :udp, :pipe => :pipe, - :unix => :unix + :unix => :unix, + :quic => :quic } @doc """ [OSI transport layer](https://osi-model.com/transport-layer/) or [inter-process communication method](https://wikipedia.org/wiki/Inter-process_communication). @@ -276,7 +278,8 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do :tcp => :tcp, :udp => :udp, :pipe => :pipe, - :unix => :unix + :unix => :unix, + :quic => :quic } end @@ -322,10 +325,10 @@ defmodule OpenTelemetry.SemConv.NetworkAttributes do ?NETWORK_TYPE. 'network.type' - ?NETWORK_TYPE_VALUES_IPV_4. + ?NETWORK_TYPE_VALUES_IPV4. 'ipv4' - \#{?NETWORK_TYPE => ?NETWORK_TYPE_VALUES_IPV_4}. + \#{?NETWORK_TYPE => ?NETWORK_TYPE_VALUES_IPV4}. \#{'network.type' => 'ipv4'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex index 1d473ee3..4adf3a02 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/aws_attributes.ex @@ -801,10 +801,10 @@ defmodule OpenTelemetry.SemConv.Incubating.AWSAttributes do ?AWS_ECS_LAUNCHTYPE. 'aws.ecs.launchtype' - ?AWS_ECS_LAUNCHTYPE_VALUES_EC_2. + ?AWS_ECS_LAUNCHTYPE_VALUES_EC2. 'ec2' - \#{?AWS_ECS_LAUNCHTYPE => ?AWS_ECS_LAUNCHTYPE_VALUES_EC_2}. + \#{?AWS_ECS_LAUNCHTYPE => ?AWS_ECS_LAUNCHTYPE_VALUES_EC2}. \#{'aws.ecs.launchtype' => 'ec2'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/azure_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/azure_attributes.ex new file mode 100644 index 00000000..e7ef58e0 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/azure_attributes.ex @@ -0,0 +1,38 @@ +defmodule OpenTelemetry.SemConv.Incubating.AzureAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Azure attributes. + """ + + @doc """ + The unique identifier of the service request. It's generated by the Azure service and returned with the response. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["00000000-0000-0000-0000-000000000000"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AzureAttributes.az_service_request_id() + :"az.service_request_id" + + ### Erlang + + ```erlang + ?AZ_SERVICE_REQUEST_ID. + 'az.service_request_id' + ``` + + + """ + @spec az_service_request_id :: :"az.service_request_id" + def az_service_request_id do + :"az.service_request_id" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex index d73217e7..9301dfce 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cloud_attributes.ex @@ -341,7 +341,7 @@ defmodule OpenTelemetry.SemConv.Incubating.CloudAttributes do * **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 invokable with + 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://docs.microsoft.com/rest/api/resources/resources/get-by-id) of the invoked function, diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex index 06e6ff3e..531bd0fb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/container_attributes.ex @@ -108,7 +108,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do end @typedoc """ - The CPU state for this data point. + Deprecated, use `cpu.mode` instead. ### Enum Values * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - When tasks of the cgroup are in user mode (Linux). When all container processes are in user mode (Windows). @@ -120,42 +120,8 @@ defmodule OpenTelemetry.SemConv.Incubating.ContainerAttributes do :system => :system, :kernel => :kernel } - @doc """ - The CPU state for this data point. - - ### Examples - - ``` - ["user", "kernel"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() - :"container.cpu.state" - - iex> OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user - :user - - iex> %{OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state() => OpenTelemetry.SemConv.Incubating.ContainerAttributes.container_cpu_state_values().user} - %{:"container.cpu.state" => :user} - - ### Erlang - - ```erlang - ?CONTAINER_CPU_STATE. - 'container.cpu.state' - - ?CONTAINER_CPU_STATE_VALUES_USER. - 'user' - - \#{?CONTAINER_CPU_STATE => ?CONTAINER_CPU_STATE_VALUES_USER}. - \#{'container.cpu.state' => 'user'} - ``` - - + @deprecated """ + Replaced by `cpu.mode` """ @spec container_cpu_state :: :"container.cpu.state" def container_cpu_state do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex index d47ab5be..7cc22a87 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/db_attributes.ex @@ -258,7 +258,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do end @doc """ - 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 `server.address` and `server.port` attributes formatted as `server.address:server.port`. + 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. ### Value type @@ -273,21 +273,21 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_pool_name() - :"db.client.connections.pool.name" + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connection_pool_name() + :"db.client.connection.pool.name" ### Erlang ```erlang - ?DB_CLIENT_CONNECTIONS_POOL_NAME. - 'db.client.connections.pool.name' + ?DB_CLIENT_CONNECTION_POOL_NAME. + 'db.client.connection.pool.name' ``` """ - @spec db_client_connections_pool_name :: :"db.client.connections.pool.name" - def db_client_connections_pool_name do - :"db.client.connections.pool.name" + @spec db_client_connection_pool_name :: :"db.client.connection.pool.name" + def db_client_connection_pool_name do + :"db.client.connection.pool.name" end @typedoc """ @@ -297,7 +297,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ """ - @type db_client_connections_state_values() :: %{ + @type db_client_connection_state_values() :: %{ :idle => :idle, :used => :used } @@ -314,30 +314,65 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() - :"db.client.connections.state" + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connection_state() + :"db.client.connection.state" - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connection_state_values().idle :idle - iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connections_state_values().idle} - %{:"db.client.connections.state" => :idle} + iex> %{OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connection_state() => OpenTelemetry.SemConv.Incubating.DBAttributes.db_client_connection_state_values().idle} + %{:"db.client.connection.state" => :idle} ### Erlang ```erlang - ?DB_CLIENT_CONNECTIONS_STATE. - 'db.client.connections.state' + ?DB_CLIENT_CONNECTION_STATE. + 'db.client.connection.state' - ?DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE. + ?DB_CLIENT_CONNECTION_STATE_VALUES_IDLE. 'idle' - \#{?DB_CLIENT_CONNECTIONS_STATE => ?DB_CLIENT_CONNECTIONS_STATE_VALUES_IDLE}. - \#{'db.client.connections.state' => 'idle'} + \#{?DB_CLIENT_CONNECTION_STATE => ?DB_CLIENT_CONNECTION_STATE_VALUES_IDLE}. + \#{'db.client.connection.state' => 'idle'} ``` """ + @spec db_client_connection_state :: :"db.client.connection.state" + def db_client_connection_state do + :"db.client.connection.state" + end + + @spec db_client_connection_state_values() :: db_client_connection_state_values() + def db_client_connection_state_values() do + %{ + :idle => :idle, + :used => :used + } + end + + @deprecated """ + Replaced by `db.client.connection.pool.name`. + """ + @spec db_client_connections_pool_name :: :"db.client.connections.pool.name" + def db_client_connections_pool_name do + :"db.client.connections.pool.name" + end + + @typedoc """ + Deprecated, use `db.client.connection.state` instead. + + ### Enum Values + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type db_client_connections_state_values() :: %{ + :idle => :idle, + :used => :used + } + @deprecated """ + Replaced by `db.client.connection.state`. + """ @spec db_client_connections_state :: :"db.client.connections.state" def db_client_connections_state do :"db.client.connections.state" @@ -358,8 +393,9 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do Value must be of type `atom() | String.t()`. ### Notes - If the collection name is parsed from the query, it **SHOULD** match the value provided in the query and may be qualified with the schema and database name. It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + If the collection name is parsed from the query text, it **SHOULD** be the first collection name found in the query and it **SHOULD** match the value provided in the query text including any schema and database name prefix. + For batch operations, if the individual operations are known to have the same collection name then that collection name **SHOULD** be used, otherwise `db.collection.name` **SHOULD** **NOT** be captured. ### Examples @@ -711,33 +747,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do :"db.cosmosdb.sub_status_code" end - @doc """ - Represents the identifier of an Elasticsearch cluster. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["e9106fc68e3044f0b1475b04bf4ffd5f"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_elasticsearch_cluster_name() - :"db.elasticsearch.cluster.name" - - ### Erlang - - ```erlang - ?DB_ELASTICSEARCH_CLUSTER_NAME. - 'db.elasticsearch.cluster.name' - ``` - - + @deprecated """ + Replaced by `db.namespace`. """ @spec db_elasticsearch_cluster_name :: :"db.elasticsearch.cluster.name" def db_elasticsearch_cluster_name do @@ -901,6 +912,42 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do :"db.operation" end + @doc """ + The number of queries included in a [batch operation](/docs/database/database-spans.md#batch-operations). + ### Value type + + Value must be of type `integer()`. + ### Notes + + Operations are only considered batches when they contain two or more operations, and so `db.operation.batch.size` **SHOULD** never be `1`. + + ### Examples + + ``` + [2, 3, 4] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DBAttributes.db_operation_batch_size() + :"db.operation.batch.size" + + ### Erlang + + ```erlang + ?DB_OPERATION_BATCH_SIZE. + 'db.operation.batch.size' + ``` + + + """ + @spec db_operation_batch_size :: :"db.operation.batch.size" + def db_operation_batch_size do + :"db.operation.batch.size" + end + @doc """ The name of the operation or command being executed. @@ -910,6 +957,8 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Notes It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. + If the operation name is parsed from the query text, it **SHOULD** be the first operation name found in the query. + For batch operations, if the individual operations are known to have the same operation name then that operation name **SHOULD** be used prepended by `BATCH `, otherwise `db.operation.name` **SHOULD** be `BATCH` or some other database system specific term if more applicable. ### Examples @@ -939,7 +988,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do end @doc """ - The query parameters used in `db.query.text`, with `` being the parameter name, and the attribute value being the parameter value. + A query parameter used in `db.query.text`, with `` being the parameter name, and the attribute value being a string representation of the parameter value. ### Value type @@ -982,6 +1031,12 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Value type Value must be of type `atom() | String.t()`. + ### Notes + + For sanitization see [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext). + For batch operations, if the individual operations are known to have the same query text then that query text **SHOULD** be used, otherwise all of the individual query texts **SHOULD** be concatenated with separator `; ` or some other database system specific separator if more applicable. + Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk. + ### Examples ``` @@ -1038,111 +1093,115 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do ### Enum Values * `:other_sql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Some other SQL database. Fallback only. See notes. - * `:mssql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft SQL Server - * `:mssqlcompact` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft SQL Server Compact - * `:mysql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MySQL - * `:oracle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Oracle Database - * `:db2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM Db2 - * `:postgresql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - PostgreSQL - * `:redshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon Redshift - * `:hive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Hive - * `:cloudscape` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cloudscape - * `:hsqldb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HyperSQL DataBase - * `:progress` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Progress Database - * `:maxdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SAP MaxDB - * `:hanadb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SAP HANA - * `:ingres` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Ingres - * `:firstsql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FirstSQL - * `:edb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EnterpriseDB - * `:cache` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InterSystems Caché * `:adabas` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Adabas (Adaptable Database System) - * `:firebird` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Firebird + * `:cache` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - **deprecated** ~~Deprecated, use `intersystems_cache` instead.~~ + * `:intersystems_cache` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InterSystems Caché + * `:cassandra` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Cassandra + * `:clickhouse` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ClickHouse + * `:cloudscape` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - **deprecated** ~~Deprecated, use `other_sql` instead.~~ + * `:cockroachdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CockroachDB + * `:coldfusion` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - **deprecated** ~~Deprecated, no replacement at this time.~~ + * `:cosmosdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft Azure Cosmos DB + * `:couchbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Couchbase + * `:couchdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CouchDB + * `:db2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - IBM Db2 * `:derby` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Derby + * `:dynamodb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon DynamoDB + * `:edb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - EnterpriseDB + * `:elasticsearch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Elasticsearch * `:filemaker` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - FileMaker + * `:firebird` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Firebird + * `:firstsql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - **deprecated** ~~Deprecated, use `other_sql` instead.~~ + * `:geode` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Geode + * `:h2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - H2 + * `:hanadb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SAP HANA + * `:hbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache HBase + * `:hive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Hive + * `:hsqldb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - HyperSQL DataBase + * `:influxdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InfluxDB * `:informix` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Informix + * `:ingres` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Ingres * `:instantdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InstantDB * `:interbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - InterBase * `:mariadb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MariaDB + * `:maxdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SAP MaxDB + * `:memcached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Memcached + * `:mongodb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MongoDB + * `:mssql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft SQL Server + * `:mssqlcompact` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - **deprecated** ~~Deprecated, Microsoft SQL Server Compact is discontinued.~~ + * `:mysql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MySQL + * `:neo4j` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Neo4j * `:netezza` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Netezza + * `:opensearch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenSearch + * `:oracle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Oracle Database * `:pervasive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Pervasive PSQL * `:pointbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - PointBase + * `:postgresql` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - PostgreSQL + * `:progress` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Progress Database + * `:redis` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Redis + * `:redshift` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon Redshift + * `:spanner` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cloud Spanner * `:sqlite` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - SQLite * `:sybase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Sybase * `:teradata` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Teradata - * `:vertica` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Vertica - * `:h2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - H2 - * `:coldfusion` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ColdFusion IMQ - * `:cassandra` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Cassandra - * `:hbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache HBase - * `:mongodb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - MongoDB - * `:redis` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Redis - * `:couchbase` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Couchbase - * `:couchdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CouchDB - * `:cosmosdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Microsoft Azure Cosmos DB - * `:dynamodb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Amazon DynamoDB - * `:neo4j` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Neo4j - * `:geode` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Geode - * `:elasticsearch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Elasticsearch - * `:memcached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Memcached - * `:cockroachdb` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - CockroachDB - * `:opensearch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenSearch - * `:clickhouse` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - ClickHouse - * `:spanner` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cloud Spanner * `:trino` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Trino + * `:vertica` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Vertica """ @type db_system_values() :: %{ :other_sql => :other_sql, - :mssql => :mssql, - :mssqlcompact => :mssqlcompact, - :mysql => :mysql, - :oracle => :oracle, - :db2 => :db2, - :postgresql => :postgresql, - :redshift => :redshift, - :hive => :hive, - :cloudscape => :cloudscape, - :hsqldb => :hsqldb, - :progress => :progress, - :maxdb => :maxdb, - :hanadb => :hanadb, - :ingres => :ingres, - :firstsql => :firstsql, - :edb => :edb, - :cache => :cache, :adabas => :adabas, - :firebird => :firebird, + :cache => :cache, + :intersystems_cache => :intersystems_cache, + :cassandra => :cassandra, + :clickhouse => :clickhouse, + :cloudscape => :cloudscape, + :cockroachdb => :cockroachdb, + :coldfusion => :coldfusion, + :cosmosdb => :cosmosdb, + :couchbase => :couchbase, + :couchdb => :couchdb, + :db2 => :db2, :derby => :derby, + :dynamodb => :dynamodb, + :edb => :edb, + :elasticsearch => :elasticsearch, :filemaker => :filemaker, + :firebird => :firebird, + :firstsql => :firstsql, + :geode => :geode, + :h2 => :h2, + :hanadb => :hanadb, + :hbase => :hbase, + :hive => :hive, + :hsqldb => :hsqldb, + :influxdb => :influxdb, :informix => :informix, + :ingres => :ingres, :instantdb => :instantdb, :interbase => :interbase, :mariadb => :mariadb, + :maxdb => :maxdb, + :memcached => :memcached, + :mongodb => :mongodb, + :mssql => :mssql, + :mssqlcompact => :mssqlcompact, + :mysql => :mysql, + :neo4j => :neo4j, :netezza => :netezza, + :opensearch => :opensearch, + :oracle => :oracle, :pervasive => :pervasive, :pointbase => :pointbase, + :postgresql => :postgresql, + :progress => :progress, + :redis => :redis, + :redshift => :redshift, + :spanner => :spanner, :sqlite => :sqlite, :sybase => :sybase, :teradata => :teradata, - :vertica => :vertica, - :h2 => :h2, - :coldfusion => :coldfusion, - :cassandra => :cassandra, - :hbase => :hbase, - :mongodb => :mongodb, - :redis => :redis, - :couchbase => :couchbase, - :couchdb => :couchdb, - :cosmosdb => :cosmosdb, - :dynamodb => :dynamodb, - :neo4j => :neo4j, - :geode => :geode, - :elasticsearch => :elasticsearch, - :memcached => :memcached, - :cockroachdb => :cockroachdb, - :opensearch => :opensearch, - :clickhouse => :clickhouse, - :spanner => :spanner, - :trino => :trino + :trino => :trino, + :vertica => :vertica } @doc """ The database management system (DBMS) product as identified by the client instrumentation. @@ -1189,57 +1248,59 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do def db_system_values() do %{ :other_sql => :other_sql, - :mssql => :mssql, - :mssqlcompact => :mssqlcompact, - :mysql => :mysql, - :oracle => :oracle, - :db2 => :db2, - :postgresql => :postgresql, - :redshift => :redshift, - :hive => :hive, - :cloudscape => :cloudscape, - :hsqldb => :hsqldb, - :progress => :progress, - :maxdb => :maxdb, - :hanadb => :hanadb, - :ingres => :ingres, - :firstsql => :firstsql, - :edb => :edb, - :cache => :cache, :adabas => :adabas, - :firebird => :firebird, + :cache => :cache, + :intersystems_cache => :intersystems_cache, + :cassandra => :cassandra, + :clickhouse => :clickhouse, + :cloudscape => :cloudscape, + :cockroachdb => :cockroachdb, + :coldfusion => :coldfusion, + :cosmosdb => :cosmosdb, + :couchbase => :couchbase, + :couchdb => :couchdb, + :db2 => :db2, :derby => :derby, + :dynamodb => :dynamodb, + :edb => :edb, + :elasticsearch => :elasticsearch, :filemaker => :filemaker, + :firebird => :firebird, + :firstsql => :firstsql, + :geode => :geode, + :h2 => :h2, + :hanadb => :hanadb, + :hbase => :hbase, + :hive => :hive, + :hsqldb => :hsqldb, + :influxdb => :influxdb, :informix => :informix, + :ingres => :ingres, :instantdb => :instantdb, :interbase => :interbase, :mariadb => :mariadb, + :maxdb => :maxdb, + :memcached => :memcached, + :mongodb => :mongodb, + :mssql => :mssql, + :mssqlcompact => :mssqlcompact, + :mysql => :mysql, + :neo4j => :neo4j, :netezza => :netezza, + :opensearch => :opensearch, + :oracle => :oracle, :pervasive => :pervasive, :pointbase => :pointbase, + :postgresql => :postgresql, + :progress => :progress, + :redis => :redis, + :redshift => :redshift, + :spanner => :spanner, :sqlite => :sqlite, :sybase => :sybase, :teradata => :teradata, - :vertica => :vertica, - :h2 => :h2, - :coldfusion => :coldfusion, - :cassandra => :cassandra, - :hbase => :hbase, - :mongodb => :mongodb, - :redis => :redis, - :couchbase => :couchbase, - :couchdb => :couchdb, - :cosmosdb => :cosmosdb, - :dynamodb => :dynamodb, - :neo4j => :neo4j, - :geode => :geode, - :elasticsearch => :elasticsearch, - :memcached => :memcached, - :cockroachdb => :cockroachdb, - :opensearch => :opensearch, - :clickhouse => :clickhouse, - :spanner => :spanner, - :trino => :trino + :trino => :trino, + :vertica => :vertica } end @@ -1252,7 +1313,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do end @deprecated """ - Replaced by `db.client.connections.pool.name`. + Replaced by `db.client.connection.pool.name`. """ @spec pool_name :: :"pool.name" def pool_name do @@ -1260,7 +1321,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do end @typedoc """ - Deprecated, use `db.client.connections.state` instead. + Deprecated, use `db.client.connection.state` instead. ### Enum Values * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ @@ -1271,7 +1332,7 @@ defmodule OpenTelemetry.SemConv.Incubating.DBAttributes do :used => :used } @deprecated """ - Replaced by `db.client.connections.state`. + Replaced by `db.client.connection.state`. """ @spec state :: :state def state do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex index 7b9b9166..daf364bf 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/deployment_attributes.ex @@ -4,6 +4,14 @@ defmodule OpenTelemetry.SemConv.Incubating.DeploymentAttributes do OpenTelemetry Semantic Conventions for Deployment attributes. """ + @deprecated """ + Deprecated, use `deployment.environment.name` instead. + """ + @spec deployment_environment :: :"deployment.environment" + def deployment_environment do + :"deployment.environment" + end + @doc """ Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier). @@ -12,13 +20,13 @@ defmodule OpenTelemetry.SemConv.Incubating.DeploymentAttributes do Value must be of type `atom() | String.t()`. ### Notes - `deployment.environment` does not affect the uniqueness constraints defined through + `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=production` - * `service.name=frontend`, `deployment.environment=staging`. + * `service.name=frontend`, `deployment.environment.name=production` + * `service.name=frontend`, `deployment.environment.name=staging`. ### Examples @@ -30,20 +38,144 @@ defmodule OpenTelemetry.SemConv.Incubating.DeploymentAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_environment() - :"deployment.environment" + iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_environment_name() + :"deployment.environment.name" ### Erlang ```erlang - ?DEPLOYMENT_ENVIRONMENT. - 'deployment.environment' + ?DEPLOYMENT_ENVIRONMENT_NAME. + 'deployment.environment.name' ``` """ - @spec deployment_environment :: :"deployment.environment" - def deployment_environment do - :"deployment.environment" + @spec deployment_environment_name :: :"deployment.environment.name" + def deployment_environment_name do + :"deployment.environment.name" + end + + @doc """ + The id of the deployment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1208"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_id() + :"deployment.id" + + ### Erlang + + ```erlang + ?DEPLOYMENT_ID. + 'deployment.id' + ``` + + + """ + @spec deployment_id :: :"deployment.id" + def deployment_id do + :"deployment.id" + end + + @doc """ + The name of the deployment. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["deploy my app", "deploy-frontend"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_name() + :"deployment.name" + + ### Erlang + + ```erlang + ?DEPLOYMENT_NAME. + 'deployment.name' + ``` + + + """ + @spec deployment_name :: :"deployment.name" + def deployment_name do + :"deployment.name" + end + + @typedoc """ + The status of the deployment. + + + ### Enum Values + * `:failed` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - failed + * `:succeeded` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - succeeded + """ + @type deployment_status_values() :: %{ + :failed => :failed, + :succeeded => :succeeded + } + @doc """ + The status of the deployment. + + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_status() + :"deployment.status" + + iex> OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_status_values().failed + :failed + + iex> %{OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_status() => OpenTelemetry.SemConv.Incubating.DeploymentAttributes.deployment_status_values().failed} + %{:"deployment.status" => :failed} + + ### Erlang + + ```erlang + ?DEPLOYMENT_STATUS. + 'deployment.status' + + ?DEPLOYMENT_STATUS_VALUES_FAILED. + 'failed' + + \#{?DEPLOYMENT_STATUS => ?DEPLOYMENT_STATUS_VALUES_FAILED}. + \#{'deployment.status' => 'failed'} + ``` + + + """ + @spec deployment_status :: :"deployment.status" + def deployment_status do + :"deployment.status" + end + + @spec deployment_status_values() :: deployment_status_values() + def deployment_status_values() do + %{ + :failed => :failed, + :succeeded => :succeeded + } end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex index 519cb767..6afd155d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/enduser_attributes.ex @@ -4,98 +4,24 @@ defmodule OpenTelemetry.SemConv.Incubating.EnduserAttributes do OpenTelemetry Semantic Conventions for Enduser attributes. """ - @doc """ - Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - username - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.EnduserAttributes.enduser_id() - :"enduser.id" - - ### Erlang - - ```erlang - ?ENDUSER_ID. - 'enduser.id' - ``` - - + @deprecated """ + Replaced by `user.id` attribute. """ @spec enduser_id :: :"enduser.id" def enduser_id do :"enduser.id" end - @doc """ - Actual/assumed role the client is making the request under extracted from token or application security context. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - admin - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.EnduserAttributes.enduser_role() - :"enduser.role" - - ### Erlang - - ```erlang - ?ENDUSER_ROLE. - 'enduser.role' - ``` - - + @deprecated """ + Replaced by `user.roles` attribute. """ @spec enduser_role :: :"enduser.role" def enduser_role do :"enduser.role" end - @doc """ - Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - read:message, write:files - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.EnduserAttributes.enduser_scope() - :"enduser.scope" - - ### Erlang - - ```erlang - ?ENDUSER_SCOPE. - 'enduser.scope' - ``` - - + @deprecated """ + Removed. """ @spec enduser_scope :: :"enduser.scope" def enduser_scope do diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex index cc668ee0..7026b158 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gcp_attributes.ex @@ -4,6 +4,42 @@ defmodule OpenTelemetry.SemConv.Incubating.GCPAttributes do OpenTelemetry Semantic Conventions for GCP attributes. """ + @doc """ + Identifies the Google Cloud service for which the official client library is intended. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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'. + + ### Examples + + ``` + ["appengine", "run", "firestore", "alloydb", "spanner"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GCPAttributes.gcp_client_service() + :"gcp.client.service" + + ### Erlang + + ```erlang + ?GCP_CLIENT_SERVICE. + 'gcp.client.service' + ``` + + + """ + @spec gcp_client_service :: :"gcp.client.service" + def gcp_client_service do + :"gcp.client.service" + end + @doc """ 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. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex index 3f15ecaf..b697684d 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/gen_ai_attributes.ex @@ -5,7 +5,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do """ @doc """ - The full response received from the LLM. + The full response received from the GenAI model. ### Value type Value must be of type `atom() | String.t()`. @@ -39,8 +39,68 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do :"gen_ai.completion" end + @typedoc """ + The name of the operation being performed. + + ### Enum Values + * `:chat` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Chat completion operation such as [OpenAI Chat API](https://platform.openai.com/docs/api-reference/chat) + * `:text_completion` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Text completions operation such as [OpenAI Completions API (Legacy)](https://platform.openai.com/docs/api-reference/completions) + """ + @type gen_ai_operation_name_values() :: %{ + :chat => :chat, + :text_completion => :text_completion + } + @doc """ + The name of the operation being performed. + + ### Notes + + 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. + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_operation_name() + :"gen_ai.operation.name" + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_operation_name_values().chat + :chat + + iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_operation_name() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_operation_name_values().chat} + %{:"gen_ai.operation.name" => :chat} + + ### Erlang + + ```erlang + ?GEN_AI_OPERATION_NAME. + 'gen_ai.operation.name' + + ?GEN_AI_OPERATION_NAME_VALUES_CHAT. + 'chat' + + \#{?GEN_AI_OPERATION_NAME => ?GEN_AI_OPERATION_NAME_VALUES_CHAT}. + \#{'gen_ai.operation.name' => 'chat'} + ``` + + + """ + @spec gen_ai_operation_name :: :"gen_ai.operation.name" + def gen_ai_operation_name do + :"gen_ai.operation.name" + end + + @spec gen_ai_operation_name_values() :: gen_ai_operation_name_values() + def gen_ai_operation_name_values() do + %{ + :chat => :chat, + :text_completion => :text_completion + } + end + @doc """ - The full prompt sent to an LLM. + The full prompt sent to the GenAI model. ### Value type Value must be of type `atom() | String.t()`. @@ -75,7 +135,39 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do end @doc """ - The maximum number of tokens the LLM generates for a request. + The frequency penalty setting for the GenAI request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [0.1] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_frequency_penalty() + :"gen_ai.request.frequency_penalty" + + ### Erlang + + ```erlang + ?GEN_AI_REQUEST_FREQUENCY_PENALTY. + 'gen_ai.request.frequency_penalty' + ``` + + + """ + @spec gen_ai_request_frequency_penalty :: :"gen_ai.request.frequency_penalty" + def gen_ai_request_frequency_penalty do + :"gen_ai.request.frequency_penalty" + end + + @doc """ + The maximum number of tokens the model generates for a request. ### Value type Value must be of type `integer()`. @@ -107,7 +199,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do end @doc """ - The name of the LLM a request is being made to. + The name of the GenAI model a request is being made to. ### Value type Value must be of type `atom() | String.t()`. @@ -139,7 +231,71 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do end @doc """ - The temperature setting for the LLM request. + The presence penalty setting for the GenAI request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [0.1] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_presence_penalty() + :"gen_ai.request.presence_penalty" + + ### Erlang + + ```erlang + ?GEN_AI_REQUEST_PRESENCE_PENALTY. + 'gen_ai.request.presence_penalty' + ``` + + + """ + @spec gen_ai_request_presence_penalty :: :"gen_ai.request.presence_penalty" + def gen_ai_request_presence_penalty do + :"gen_ai.request.presence_penalty" + end + + @doc """ + List of sequences that the model will use to stop generating further tokens. + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["forest", "lived"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_stop_sequences() + :"gen_ai.request.stop_sequences" + + ### Erlang + + ```erlang + ?GEN_AI_REQUEST_STOP_SEQUENCES. + 'gen_ai.request.stop_sequences' + ``` + + + """ + @spec gen_ai_request_stop_sequences :: :"gen_ai.request.stop_sequences" + def gen_ai_request_stop_sequences do + :"gen_ai.request.stop_sequences" + end + + @doc """ + The temperature setting for the GenAI request. ### Value type Value must be of type `float()`. @@ -171,7 +327,39 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do end @doc """ - The top_p sampling setting for the LLM request. + The top_k sampling setting for the GenAI request. + ### Value type + + Value must be of type `float()`. + ### Examples + + ``` + [1.0] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_request_top_k() + :"gen_ai.request.top_k" + + ### Erlang + + ```erlang + ?GEN_AI_REQUEST_TOP_K. + 'gen_ai.request.top_k' + ``` + + + """ + @spec gen_ai_request_top_k :: :"gen_ai.request.top_k" + def gen_ai_request_top_k do + :"gen_ai.request.top_k" + end + + @doc """ + The top_p sampling setting for the GenAI request. ### Value type Value must be of type `float()`. @@ -267,7 +455,7 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do end @doc """ - The name of the LLM a response was generated from. + The name of the model that generated the response. ### Value type Value must be of type `atom() | String.t()`. @@ -299,20 +487,34 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do end @typedoc """ - The Generative AI product as identified by the client instrumentation. + The Generative AI product as identified by the client or server instrumentation. ### Enum Values * `:openai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - OpenAI + * `:vertex_ai` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Vertex AI + * `:anthropic` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Anthropic + * `:cohere` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Cohere """ @type gen_ai_system_values() :: %{ - :openai => :openai + :openai => :openai, + :vertex_ai => :vertex_ai, + :anthropic => :anthropic, + :cohere => :cohere } @doc """ - The Generative AI product as identified by the client instrumentation. + The Generative AI product as identified by the client or server instrumentation. ### Notes - The actual GenAI product may differ from the one identified by the client. For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` is set to `openai` based on the instrumentation's best knowledge. + 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. + For example, when using OpenAI client libraries to communicate with Mistral, the `gen_ai.system` + is set to `openai` based on the instrumentation's best knowledge. + + 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`. ### Examples @@ -356,44 +558,84 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do @spec gen_ai_system_values() :: gen_ai_system_values() def gen_ai_system_values() do %{ - :openai => :openai + :openai => :openai, + :vertex_ai => :vertex_ai, + :anthropic => :anthropic, + :cohere => :cohere } end + @typedoc """ + The type of token being counted. + + ### Enum Values + * `:input` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Input tokens (prompt, input, etc.) + * `:completion` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Output tokens (completion, response, etc.) + """ + @type gen_ai_token_type_values() :: %{ + :input => :input, + :completion => :output + } @doc """ - The number of tokens used in the LLM response (completion). - ### Value type + The type of token being counted. - Value must be of type `integer()`. ### Examples ``` - [180] + ["input", "output"] ``` ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_usage_completion_tokens() - :"gen_ai.usage.completion_tokens" + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_token_type() + :"gen_ai.token.type" + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_token_type_values().input + :input + + iex> %{OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_token_type() => OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_token_type_values().input} + %{:"gen_ai.token.type" => :input} ### Erlang ```erlang - ?GEN_AI_USAGE_COMPLETION_TOKENS. - 'gen_ai.usage.completion_tokens' + ?GEN_AI_TOKEN_TYPE. + 'gen_ai.token.type' + + ?GEN_AI_TOKEN_TYPE_VALUES_INPUT. + 'input' + + \#{?GEN_AI_TOKEN_TYPE => ?GEN_AI_TOKEN_TYPE_VALUES_INPUT}. + \#{'gen_ai.token.type' => 'input'} ``` """ + @spec gen_ai_token_type :: :"gen_ai.token.type" + def gen_ai_token_type do + :"gen_ai.token.type" + end + + @spec gen_ai_token_type_values() :: gen_ai_token_type_values() + def gen_ai_token_type_values() do + %{ + :input => :input, + :completion => :output + } + end + + @deprecated """ + Replaced by `gen_ai.usage.output_tokens` attribute. + """ @spec gen_ai_usage_completion_tokens :: :"gen_ai.usage.completion_tokens" def gen_ai_usage_completion_tokens do :"gen_ai.usage.completion_tokens" end @doc """ - The number of tokens used in the LLM prompt. + The number of tokens used in the GenAI input (prompt). ### Value type Value must be of type `integer()`. @@ -407,18 +649,58 @@ defmodule OpenTelemetry.SemConv.Incubating.GenAiAttributes do ### Elixir - iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_usage_prompt_tokens() - :"gen_ai.usage.prompt_tokens" + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_usage_input_tokens() + :"gen_ai.usage.input_tokens" ### Erlang ```erlang - ?GEN_AI_USAGE_PROMPT_TOKENS. - 'gen_ai.usage.prompt_tokens' + ?GEN_AI_USAGE_INPUT_TOKENS. + 'gen_ai.usage.input_tokens' ``` """ + @spec gen_ai_usage_input_tokens :: :"gen_ai.usage.input_tokens" + def gen_ai_usage_input_tokens do + :"gen_ai.usage.input_tokens" + end + + @doc """ + The number of tokens used in the GenAI response (completion). + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [180] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.GenAiAttributes.gen_ai_usage_output_tokens() + :"gen_ai.usage.output_tokens" + + ### Erlang + + ```erlang + ?GEN_AI_USAGE_OUTPUT_TOKENS. + 'gen_ai.usage.output_tokens' + ``` + + + """ + @spec gen_ai_usage_output_tokens :: :"gen_ai.usage.output_tokens" + def gen_ai_usage_output_tokens do + :"gen_ai.usage.output_tokens" + end + + @deprecated """ + Replaced by `gen_ai.usage.input_tokens` attribute. + """ @spec gen_ai_usage_prompt_tokens :: :"gen_ai.usage.prompt_tokens" def gen_ai_usage_prompt_tokens do :"gen_ai.usage.prompt_tokens" diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex index 178074f5..a84f7612 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/host_attributes.ex @@ -52,10 +52,10 @@ defmodule OpenTelemetry.SemConv.Incubating.HostAttributes do ?HOST_ARCH. 'host.arch' - ?HOST_ARCH_VALUES_AMD_64. + ?HOST_ARCH_VALUES_AMD64. 'amd64' - \#{?HOST_ARCH => ?HOST_ARCH_VALUES_AMD_64}. + \#{?HOST_ARCH => ?HOST_ARCH_VALUES_AMD64}. \#{'host.arch' => 'amd64'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex index b60196ea..4e896783 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/log_attributes.ex @@ -194,6 +194,43 @@ defmodule OpenTelemetry.SemConv.Incubating.LogAttributes do } end + @doc """ + The complete orignal Log Record. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + This value **MAY** be added when processing a Log Record which was originally transmitted as a string or equivalent data type AND the Body field of the Log Record does not contain the same value. (e.g. a syslog or a log record read from a file.) + + ### Examples + + ``` + ["77 <86>1 2015-08-06T21:58:59.694Z 192.168.2.133 inactive - - - Something happened", "[INFO] 8/3/24 12:34:56 Something happened"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LogAttributes.log_record_original() + :"log.record.original" + + ### Erlang + + ```erlang + ?LOG_RECORD_ORIGINAL. + 'log.record.original' + ``` + + + """ + @spec log_record_original :: :"log.record.original" + def log_record_original do + :"log.record.original" + end + @doc """ A unique identifier for the Log Record. diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex index 5c70a4ec..a9f83b37 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/messaging_attributes.ex @@ -73,6 +73,43 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.client.id" end + @doc """ + The name of the consumer group with which a consumer is associated. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + Semantic conventions for individual messaging systems **SHOULD** document whether `messaging.consumer.group.name` is applicable and what it means in the context of that system. + + ### Examples + + ``` + ["my-group", "indexer"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_consumer_group_name() + :"messaging.consumer.group.name" + + ### Erlang + + ```erlang + ?MESSAGING_CONSUMER_GROUP_NAME. + 'messaging.consumer.group.name' + ``` + + + """ + @spec messaging_consumer_group_name :: :"messaging.consumer.group.name" + def messaging_consumer_group_name do + :"messaging.consumer.group.name" + end + @doc """ A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name). ### Value type @@ -170,6 +207,42 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.destination.partition.id" end + @doc """ + The name of the destination subscription from which a message is consumed. + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + Semantic conventions for individual messaging systems **SHOULD** document whether `messaging.destination.subscription.name` is applicable and what it means in the context of that system. + + ### Examples + + ``` + ["subscription-a"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_subscription_name() + :"messaging.destination.subscription.name" + + ### Erlang + + ```erlang + ?MESSAGING_DESTINATION_SUBSCRIPTION_NAME. + 'messaging.destination.subscription.name' + ``` + + + """ + @spec messaging_destination_subscription_name :: :"messaging.destination.subscription.name" + def messaging_destination_subscription_name do + :"messaging.destination.subscription.name" + end + @doc """ Low cardinality representation of the messaging destination name ### Value type @@ -233,97 +306,25 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.destination.temporary" end - @doc """ - A boolean that is true if the publish message destination is anonymous (could be unnamed or have auto-generated name). - ### Value type - - Value must be of type `boolean()`. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_publish_anonymous() - :"messaging.destination_publish.anonymous" - - ### Erlang - - ```erlang - ?MESSAGING_DESTINATION_PUBLISH_ANONYMOUS. - 'messaging.destination_publish.anonymous' - ``` - - + @deprecated """ + No replacement at this time. """ @spec messaging_destination_publish_anonymous :: :"messaging.destination_publish.anonymous" def messaging_destination_publish_anonymous do :"messaging.destination_publish.anonymous" end - @doc """ - The name of the original destination the message was published to - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - The name **SHOULD** uniquely identify a specific queue, topic, or other entity within the broker. If - the broker doesn't have such notion, the original destination name **SHOULD** uniquely identify the broker. - - ### Examples - - ``` - ["MyQueue", "MyTopic"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_destination_publish_name() - :"messaging.destination_publish.name" - - ### Erlang - - ```erlang - ?MESSAGING_DESTINATION_PUBLISH_NAME. - 'messaging.destination_publish.name' - ``` - - + @deprecated """ + No replacement at this time. """ @spec messaging_destination_publish_name :: :"messaging.destination_publish.name" def messaging_destination_publish_name do :"messaging.destination_publish.name" end - @doc """ - The name of the consumer group the event consumer is associated with. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - indexer - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_eventhubs_consumer_group() - :"messaging.eventhubs.consumer.group" - - ### Erlang - - ```erlang - ?MESSAGING_EVENTHUBS_CONSUMER_GROUP. - 'messaging.eventhubs.consumer.group' - ``` + @deprecated """ + Replaced by `messaging.consumer.group.name`. - """ @spec messaging_eventhubs_consumer_group :: :"messaging.eventhubs.consumer.group" def messaging_eventhubs_consumer_group do @@ -496,33 +497,9 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.gcp_pubsub.message.ordering_key" end - @doc """ - Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - my-group - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_consumer_group() - :"messaging.kafka.consumer.group" - - ### Erlang - - ```erlang - ?MESSAGING_KAFKA_CONSUMER_GROUP. - 'messaging.kafka.consumer.group' - ``` + @deprecated """ + Replaced by `messaging.consumer.group.name`. - """ @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer.group" def messaging_kafka_consumer_group do @@ -574,64 +551,73 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.kafka.message.key" end - @doc """ - The offset of a record in the corresponding Kafka partition. + @deprecated """ + Replaced by `messaging.kafka.offset`. - ### Value type + """ + @spec messaging_kafka_message_offset :: :"messaging.kafka.message.offset" + def messaging_kafka_message_offset do + :"messaging.kafka.message.offset" + end - Value must be of type `integer()`. - ### Examples + @doc """ + A boolean that is true if the message is a tombstone. + ### Value type - ``` - 42 - ``` + Value must be of type `boolean()`. ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_message_offset() - :"messaging.kafka.message.offset" + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_message_tombstone() + :"messaging.kafka.message.tombstone" ### Erlang ```erlang - ?MESSAGING_KAFKA_MESSAGE_OFFSET. - 'messaging.kafka.message.offset' + ?MESSAGING_KAFKA_MESSAGE_TOMBSTONE. + 'messaging.kafka.message.tombstone' ``` """ - @spec messaging_kafka_message_offset :: :"messaging.kafka.message.offset" - def messaging_kafka_message_offset do - :"messaging.kafka.message.offset" + @spec messaging_kafka_message_tombstone :: :"messaging.kafka.message.tombstone" + def messaging_kafka_message_tombstone do + :"messaging.kafka.message.tombstone" end @doc """ - A boolean that is true if the message is a tombstone. + The offset of a record in the corresponding Kafka partition. + ### Value type - Value must be of type `boolean()`. + Value must be of type `integer()`. + ### Examples + + ``` + 42 + ``` ### Elixir - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_message_tombstone() - :"messaging.kafka.message.tombstone" + iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_kafka_offset() + :"messaging.kafka.offset" ### Erlang ```erlang - ?MESSAGING_KAFKA_MESSAGE_TOMBSTONE. - 'messaging.kafka.message.tombstone' + ?MESSAGING_KAFKA_OFFSET. + 'messaging.kafka.offset' ``` """ - @spec messaging_kafka_message_tombstone :: :"messaging.kafka.message.tombstone" - def messaging_kafka_message_tombstone do - :"messaging.kafka.message.tombstone" + @spec messaging_kafka_offset :: :"messaging.kafka.offset" + def messaging_kafka_offset do + :"messaging.kafka.offset" end @doc """ @@ -827,17 +813,19 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:receive` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are requested by a consumer. This operation refers to pull-based scenarios, where consumers explicitly call methods of messaging SDKs to receive messages. - * `:deliver` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are delivered to or processed by a consumer. + * `:process` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are processed by a consumer. * `:settle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - One or more messages are settled. + * `:deliver` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - **deprecated** ~~Deprecated. Use `process` instead.~~ """ @type messaging_operation_type_values() :: %{ :publish => :publish, :create => :create, :receive => :receive, - :deliver => :process, - :settle => :settle + :process => :process, + :settle => :settle, + :deliver => :deliver } @doc """ A string identifying the type of the messaging operation. @@ -886,8 +874,9 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :publish => :publish, :create => :create, :receive => :receive, - :deliver => :process, - :settle => :settle + :process => :process, + :settle => :settle, + :deliver => :deliver } end @@ -958,33 +947,9 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.rabbitmq.message.delivery_tag" end - @doc """ - Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - myConsumerGroup - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_rocketmq_client_group() - :"messaging.rocketmq.client_group" - - ### Erlang - - ```erlang - ?MESSAGING_ROCKETMQ_CLIENT_GROUP. - 'messaging.rocketmq.client_group' - ``` + @deprecated """ + Replaced by `messaging.consumer.group.name` on the consumer spans. No replacement for producer spans. - """ @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" def messaging_rocketmq_client_group do @@ -1314,33 +1279,9 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :"messaging.rocketmq.namespace" end - @doc """ - The name of the subscription in the topic messages are received from. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - mySubscription - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.MessagingAttributes.messaging_servicebus_destination_subscription_name() - :"messaging.servicebus.destination.subscription_name" - - ### Erlang - - ```erlang - ?MESSAGING_SERVICEBUS_DESTINATION_SUBSCRIPTION_NAME. - 'messaging.servicebus.destination.subscription_name' - ``` + @deprecated """ + Replaced by `messaging.servicebus.destination.subscription_name`. - """ @spec messaging_servicebus_destination_subscription_name :: :"messaging.servicebus.destination.subscription_name" @@ -1495,6 +1436,7 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do * `:kafka` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Kafka * `:rabbitmq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - RabbitMQ * `:rocketmq` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache RocketMQ + * `:pulsar` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Apache Pulsar """ @type messaging_system_values() :: %{ :activemq => :activemq, @@ -1506,7 +1448,8 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :jms => :jms, :kafka => :kafka, :rabbitmq => :rabbitmq, - :rocketmq => :rocketmq + :rocketmq => :rocketmq, + :pulsar => :pulsar } @doc """ The messaging system as identified by the client instrumentation. @@ -1561,7 +1504,8 @@ defmodule OpenTelemetry.SemConv.Incubating.MessagingAttributes do :jms => :jms, :kafka => :kafka, :rabbitmq => :rabbitmq, - :rocketmq => :rocketmq + :rocketmq => :rocketmq, + :pulsar => :pulsar } end end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex index 1dccfbb6..a05d0e91 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/process_attributes.ex @@ -160,8 +160,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do end @typedoc """ - The CPU state of the process. - + Deprecated, use `cpu.mode` instead. ### Enum Values * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ @@ -173,38 +172,8 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do :user => :user, :wait => :wait } - @doc """ - The CPU state of the process. - - - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() - :"process.cpu.state" - - iex> OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system - :system - - iex> %{OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state() => OpenTelemetry.SemConv.Incubating.ProcessAttributes.process_cpu_state_values().system} - %{:"process.cpu.state" => :system} - - ### Erlang - - ```erlang - ?PROCESS_CPU_STATE. - 'process.cpu.state' - - ?PROCESS_CPU_STATE_VALUES_SYSTEM. - 'system' - - \#{?PROCESS_CPU_STATE => ?PROCESS_CPU_STATE_VALUES_SYSTEM}. - \#{'process.cpu.state' => 'system'} - ``` - - + @deprecated """ + Replaced by `cpu.mode` """ @spec process_cpu_state :: :"process.cpu.state" def process_cpu_state do @@ -703,7 +672,7 @@ defmodule OpenTelemetry.SemConv.Incubating.ProcessAttributes do end @doc """ - The name of the runtime of this process. For compiled native binaries, this **SHOULD** be the name of the compiler. + The name of the runtime of this process. ### Value type diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex index 5e54cccf..07fcfbdb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex @@ -37,7 +37,7 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do end @typedoc """ - The state of the CPU + Deprecated, use `cpu.mode` instead. ### Enum Values * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ @@ -57,42 +57,8 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do :interrupt => :interrupt, :steal => :steal } - @doc """ - The state of the CPU - - ### Examples - - ``` - ["idle", "interrupt"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() - :"system.cpu.state" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user - :user - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_state_values().user} - %{:"system.cpu.state" => :user} - - ### Erlang - - ```erlang - ?SYSTEM_CPU_STATE. - 'system.cpu.state' - - ?SYSTEM_CPU_STATE_VALUES_USER. - 'user' - - \#{?SYSTEM_CPU_STATE => ?SYSTEM_CPU_STATE_VALUES_USER}. - \#{'system.cpu.state' => 'user'} - ``` - - + @deprecated """ + Replaced by `cpu.mode` """ @spec system_cpu_state :: :"system.cpu.state" def system_cpu_state do @@ -319,10 +285,10 @@ defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do ?SYSTEM_FILESYSTEM_TYPE. 'system.filesystem.type' - ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32. + ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32. 'fat32' - \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT_32}. + \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32}. \#{'system.filesystem.type' => 'fat32'} ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex index 568089d4..2f171b6c 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/tls_attributes.ex @@ -334,32 +334,8 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do :"tls.client.not_before" end - @doc """ - Also called an SNI, this tells the server which hostname to which the client is attempting to connect to. - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["opentelemetry.io"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.TLSAttributes.tls_client_server_name() - :"tls.client.server_name" - - ### Erlang - - ```erlang - ?TLS_CLIENT_SERVER_NAME. - 'tls.client.server_name' - ``` - - + @deprecated """ + Replaced by `server.address. """ @spec tls_client_server_name :: :"tls.client.server_name" def tls_client_server_name do @@ -406,7 +382,7 @@ defmodule OpenTelemetry.SemConv.Incubating.TLSAttributes do ### Examples ``` - ["\"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\", \"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\", \"...\""] + ["TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "..."] ``` diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_attributes.ex new file mode 100644 index 00000000..94b0ad1a --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/user_attributes.ex @@ -0,0 +1,208 @@ +defmodule OpenTelemetry.SemConv.Incubating.UserAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for User attributes. + """ + + @doc """ + User email address. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["a.einstein@example.com"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAttributes.user_email() + :"user.email" + + ### Erlang + + ```erlang + ?USER_EMAIL. + 'user.email' + ``` + + + """ + @spec user_email :: :"user.email" + def user_email do + :"user.email" + end + + @doc """ + User's full name + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Albert Einstein"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAttributes.user_full_name() + :"user.full_name" + + ### Erlang + + ```erlang + ?USER_FULL_NAME. + 'user.full_name' + ``` + + + """ + @spec user_full_name :: :"user.full_name" + def user_full_name do + :"user.full_name" + end + + @doc """ + Unique user hash to correlate information for a user in anonymized form. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + Useful if `user.id` or `user.name` contain confidential information and cannot be used. + + ### Examples + + ``` + ["364fc68eaf4c8acec74a4e52d7d1feaa"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAttributes.user_hash() + :"user.hash" + + ### Erlang + + ```erlang + ?USER_HASH. + 'user.hash' + ``` + + + """ + @spec user_hash :: :"user.hash" + def user_hash do + :"user.hash" + end + + @doc """ + Unique identifier of the user. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["S-1-5-21-202424912787-2692429404-2351956786-1000"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAttributes.user_id() + :"user.id" + + ### Erlang + + ```erlang + ?USER_ID. + 'user.id' + ``` + + + """ + @spec user_id :: :"user.id" + def user_id do + :"user.id" + end + + @doc """ + Short name or login/username of the user. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["a.einstein"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAttributes.user_name() + :"user.name" + + ### Erlang + + ```erlang + ?USER_NAME. + 'user.name' + ``` + + + """ + @spec user_name :: :"user.name" + def user_name do + :"user.name" + end + + @doc """ + Array of user roles at the time of the event. + + ### Value type + + Value must be of type `[atom() | String.t()]`. + ### Examples + + ``` + ["admin", "reporting_user"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.UserAttributes.user_roles() + :"user.roles" + + ### Erlang + + ```erlang + ?USER_ROLES. + 'user.roles' + ``` + + + """ + @spec user_roles :: :"user.roles" + def user_roles do + :"user.roles" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex index c0a2e122..e8b1e665 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/db_metrics.ex @@ -332,6 +332,10 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.DBMetrics do Instrument: `histogram` Unit: `s` + ### Notes + + Batch operations **SHOULD** be recorded as a single operation. + ### Elixir diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/gen_ai_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/gen_ai_metrics.ex new file mode 100644 index 00000000..2a2d8b9b --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/gen_ai_metrics.ex @@ -0,0 +1,140 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.GenAiMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Gen_Ai metrics. + """ + @doc """ + GenAI operation duration + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.GenAiMetrics.gen_ai_client_operation_duration() + :"gen_ai.client.operation.duration" + + ### Erlang + + ```erlang + ?GEN_AI_CLIENT_OPERATION_DURATION. + 'gen_ai.client.operation.duration' + ``` + + + """ + + @spec gen_ai_client_operation_duration :: :"gen_ai.client.operation.duration" + def gen_ai_client_operation_duration do + :"gen_ai.client.operation.duration" + end + + @doc """ + Measures number of input and output tokens used + + Instrument: `histogram` + Unit: `{token}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.GenAiMetrics.gen_ai_client_token_usage() + :"gen_ai.client.token.usage" + + ### Erlang + + ```erlang + ?GEN_AI_CLIENT_TOKEN_USAGE. + 'gen_ai.client.token.usage' + ``` + + + """ + + @spec gen_ai_client_token_usage :: :"gen_ai.client.token.usage" + def gen_ai_client_token_usage do + :"gen_ai.client.token.usage" + end + + @doc """ + Generative AI server request duration such as time-to-last byte or last output token + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.GenAiMetrics.gen_ai_server_request_duration() + :"gen_ai.server.request.duration" + + ### Erlang + + ```erlang + ?GEN_AI_SERVER_REQUEST_DURATION. + 'gen_ai.server.request.duration' + ``` + + + """ + + @spec gen_ai_server_request_duration :: :"gen_ai.server.request.duration" + def gen_ai_server_request_duration do + :"gen_ai.server.request.duration" + end + + @doc """ + Time per output token generated after the first token for successful responses + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.GenAiMetrics.gen_ai_server_time_per_output_token() + :"gen_ai.server.time_per_output_token" + + ### Erlang + + ```erlang + ?GEN_AI_SERVER_TIME_PER_OUTPUT_TOKEN. + 'gen_ai.server.time_per_output_token' + ``` + + + """ + + @spec gen_ai_server_time_per_output_token :: :"gen_ai.server.time_per_output_token" + def gen_ai_server_time_per_output_token do + :"gen_ai.server.time_per_output_token" + end + + @doc """ + Time to generate first token for successful responses + + Instrument: `histogram` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.GenAiMetrics.gen_ai_server_time_to_first_token() + :"gen_ai.server.time_to_first_token" + + ### Erlang + + ```erlang + ?GEN_AI_SERVER_TIME_TO_FIRST_TOKEN. + 'gen_ai.server.time_to_first_token' + ``` + + + """ + + @spec gen_ai_server_time_to_first_token :: :"gen_ai.server.time_to_first_token" + def gen_ai_server_time_to_first_token do + :"gen_ai.server.time_to_first_token" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex index f1380483..e672e67e 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/messaging_metrics.ex @@ -4,160 +4,168 @@ defmodule OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics do OpenTelemetry Semantic Conventions for Messaging metrics. """ @doc """ - Measures the duration of process operation. - - Instrument: `histogram` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_duration() - :"messaging.process.duration" - - ### Erlang - - ```erlang - ?MESSAGING_PROCESS_DURATION. - 'messaging.process.duration' - ``` - - - """ - - @spec messaging_process_duration :: :"messaging.process.duration" - def messaging_process_duration do - :"messaging.process.duration" - end - - @doc """ - Measures the number of processed messages. + Number of messages that were delivered to the application. Instrument: `counter` Unit: `{message}` + ### Notes + + Records the number of messages pulled from the broker or number of messages dispatched to the application in push-based scenarios. + The metric **SHOULD** be reported once per message delivery. For example, if receiving and processing operations are both instrumented for a single message delivery, this counter is incremented when the message is received and not reported when it is processed. + ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_messages() - :"messaging.process.messages" + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_client_consumed_messages() + :"messaging.client.consumed.messages" ### Erlang ```erlang - ?MESSAGING_PROCESS_MESSAGES. - 'messaging.process.messages' + ?MESSAGING_CLIENT_CONSUMED_MESSAGES. + 'messaging.client.consumed.messages' ``` """ - @spec messaging_process_messages :: :"messaging.process.messages" - def messaging_process_messages do - :"messaging.process.messages" + @spec messaging_client_consumed_messages :: :"messaging.client.consumed.messages" + def messaging_client_consumed_messages do + :"messaging.client.consumed.messages" end @doc """ - Measures the duration of publish operation. + Duration of messaging operation initiated by a producer or consumer client. Instrument: `histogram` Unit: `s` + ### Notes + + This metric **SHOULD** **NOT** be used to report processing duration - processing duration is reported in `messaging.process.duration` metric. + ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_duration() - :"messaging.publish.duration" + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_client_operation_duration() + :"messaging.client.operation.duration" ### Erlang ```erlang - ?MESSAGING_PUBLISH_DURATION. - 'messaging.publish.duration' + ?MESSAGING_CLIENT_OPERATION_DURATION. + 'messaging.client.operation.duration' ``` """ - @spec messaging_publish_duration :: :"messaging.publish.duration" - def messaging_publish_duration do - :"messaging.publish.duration" + @spec messaging_client_operation_duration :: :"messaging.client.operation.duration" + def messaging_client_operation_duration do + :"messaging.client.operation.duration" end @doc """ - Measures the number of published messages. + Number of messages producer attempted to publish to the broker. Instrument: `counter` Unit: `{message}` + ### Notes + + This metric **MUST** **NOT** count messages that were created haven't yet been attempted to be published. + ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_publish_messages() - :"messaging.publish.messages" + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_client_published_messages() + :"messaging.client.published.messages" ### Erlang ```erlang - ?MESSAGING_PUBLISH_MESSAGES. - 'messaging.publish.messages' + ?MESSAGING_CLIENT_PUBLISHED_MESSAGES. + 'messaging.client.published.messages' ``` """ - @spec messaging_publish_messages :: :"messaging.publish.messages" - def messaging_publish_messages do - :"messaging.publish.messages" + @spec messaging_client_published_messages :: :"messaging.client.published.messages" + def messaging_client_published_messages do + :"messaging.client.published.messages" end @doc """ - Measures the duration of receive operation. + Duration of processing operation. Instrument: `histogram` Unit: `s` + ### Notes + + This metric **MUST** be reported for operations with `messaging.operation.type` that matches `process`. + ### Elixir - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_duration() - :"messaging.receive.duration" + iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_process_duration() + :"messaging.process.duration" ### Erlang ```erlang - ?MESSAGING_RECEIVE_DURATION. - 'messaging.receive.duration' + ?MESSAGING_PROCESS_DURATION. + 'messaging.process.duration' ``` """ - @spec messaging_receive_duration :: :"messaging.receive.duration" - def messaging_receive_duration do - :"messaging.receive.duration" + @spec messaging_process_duration :: :"messaging.process.duration" + def messaging_process_duration do + :"messaging.process.duration" end - @doc """ - Measures the number of received messages. + @deprecated """ + Replaced by `messaging.client.consumed.messages`. + """ - Instrument: `counter` - Unit: `{message}` + @spec messaging_process_messages :: :"messaging.process.messages" + def messaging_process_messages do + :"messaging.process.messages" + end - - ### Elixir + @deprecated """ + Replaced by `messaging.client.operation.duration`. + """ - iex> OpenTelemetry.SemConv.Incubating.Metrics.MessagingMetrics.messaging_receive_messages() - :"messaging.receive.messages" + @spec messaging_publish_duration :: :"messaging.publish.duration" + def messaging_publish_duration do + :"messaging.publish.duration" + end - ### Erlang + @deprecated """ + Replaced by `messaging.client.produced.messages`. + """ - ```erlang - ?MESSAGING_RECEIVE_MESSAGES. - 'messaging.receive.messages' - ``` + @spec messaging_publish_messages :: :"messaging.publish.messages" + def messaging_publish_messages do + :"messaging.publish.messages" + end - + @deprecated """ + Replaced by `messaging.client.operation.duration`. + """ + + @spec messaging_receive_duration :: :"messaging.receive.duration" + def messaging_receive_duration do + :"messaging.receive.duration" + end + + @deprecated """ + Replaced by `messaging.client.consumed.messages`. """ @spec messaging_receive_messages :: :"messaging.receive.messages" diff --git a/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex b/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex index 41c8b7fd..dbe6e128 100644 --- a/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex +++ b/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex @@ -1,3 +1,4 @@ defmodule OpenTelemetry.SemConv.Schemas do def v1_26_0, do: "https://opentelemetry.io/schemas/1.26.0" + def v1_27_0, do: "https://opentelemetry.io/schemas/1.27.0" end diff --git a/apps/opentelemetry_semantic_conventions/makefile b/apps/opentelemetry_semantic_conventions/makefile index 674e2963..70563e32 100644 --- a/apps/opentelemetry_semantic_conventions/makefile +++ b/apps/opentelemetry_semantic_conventions/makefile @@ -1,4 +1,4 @@ -SEMCON_VERSION = 1.26.0 +SEMCON_VERSION = 1.27.0 .PHONY: setup clean-all checkout generate @@ -19,7 +19,7 @@ clean-erlang: rm -rf include/metrics setup: - curl --proto '=https' --tlsv1.2 -LsSf https://github.com/open-telemetry/weaver/releases/download/v0.7.0/weaver-installer.sh | sh + curl --proto '=https' --tlsv1.2 -LsSf https://github.com/open-telemetry/weaver/releases/download/v0.9.2/weaver-installer.sh | sh checkout: mkdir semtmp diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 index bed5a9ad..d22fc609 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/semantic_metrics.ex.j2 @@ -42,7 +42,7 @@ defmodule {{ module_namespace }}.{{ module_name }} do ### Erlang ```erlang - ?{{ metric.metric_name | snake_case | upper }}. + ?{{ c.erl_attr_name(metric.metric_name) }}. '{{ metric.metric_name }}' ``` diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index f845f370..0b986bad 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -1,6 +1,6 @@ params: stability: "stable" - excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js"] + excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "test", "vcs", "veightjs", "v8js"] excluded_attrs: ["messaging.client_id"] templates: diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index 28c90ebb..8b05109a 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -1,6 +1,6 @@ params: stability: "stable" - excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js"] + excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "test", "vcs", "veigthjs", "v8js"] excluded_attrs: ["messaging.client_id"] templates: From 3a2dd82e84a4e100a20debf9832eabe5c8212361 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 13 Sep 2024 20:16:30 -0600 Subject: [PATCH 55/57] Remove more unrelated namespaces --- .../incubating/attributes/cpu_attributes.hrl | 35 - .../attributes/device_attributes.hrl | 34 - .../incubating/attributes/disk_attributes.hrl | 23 - .../attributes/system_attributes.hrl | 175 ---- .../attributes/webengine_attributes.hrl | 29 - .../incubating/metrics/system_metrics.hrl | 130 --- .../attributes/device_attributes.ex | 154 ---- .../incubating/attributes/disk_attributes.ex | 67 -- .../incubating/attributes/event_attributes.ex | 2 +- .../attributes/system_attributes.ex | 759 ---------------- .../attributes/webengine_attributes.ex | 105 --- .../lib/incubating/metrics/system_metrics.ex | 815 ------------------ .../templates/registry/elixir/weaver.yaml | 2 +- .../templates/registry/erlang/weaver.yaml | 2 +- 14 files changed, 3 insertions(+), 2329 deletions(-) delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex delete mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl deleted file mode 100644 index 9ed41c80..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl +++ /dev/null @@ -1,35 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% The mode of the CPU --define(CPU_MODE, 'cpu.mode'). - --define(CPU_MODE_VALUES_USER, 'user'). - --define(CPU_MODE_VALUES_SYSTEM, 'system'). - --define(CPU_MODE_VALUES_NICE, 'nice'). - --define(CPU_MODE_VALUES_IDLE, 'idle'). - --define(CPU_MODE_VALUES_IOWAIT, 'iowait'). - --define(CPU_MODE_VALUES_INTERRUPT, 'interrupt'). - --define(CPU_MODE_VALUES_STEAL, 'steal'). - --define(CPU_MODE_VALUES_KERNEL, 'kernel'). - diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl deleted file mode 100644 index 8b75ec21..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl +++ /dev/null @@ -1,34 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% A unique identifier representing the device -%% --define(DEVICE_ID, 'device.id'). - - -%% The name of the device manufacturer -%% --define(DEVICE_MANUFACTURER, 'device.manufacturer'). - - -%% The model identifier for the device -%% --define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). - - -%% The marketing name for the device model -%% --define(DEVICE_MODEL_NAME, 'device.model.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl deleted file mode 100644 index 7d6d8d96..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl +++ /dev/null @@ -1,23 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% The disk IO operation direction. --define(DISK_IO_DIRECTION, 'disk.io.direction'). - --define(DISK_IO_DIRECTION_VALUES_READ, 'read'). - --define(DISK_IO_DIRECTION_VALUES_WRITE, 'write'). - diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl deleted file mode 100644 index 0b874cc0..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl +++ /dev/null @@ -1,175 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% The logical CPU number [0..n-1] --define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). - -%% @deprecated Replaced by `cpu.mode` -%% Deprecated, use `cpu.mode` instead. --define(SYSTEM_CPU_STATE, 'system.cpu.state'). - --define(SYSTEM_CPU_STATE_VALUES_USER, 'user'). - --define(SYSTEM_CPU_STATE_VALUES_SYSTEM, 'system'). - --define(SYSTEM_CPU_STATE_VALUES_NICE, 'nice'). - --define(SYSTEM_CPU_STATE_VALUES_IDLE, 'idle'). - --define(SYSTEM_CPU_STATE_VALUES_IOWAIT, 'iowait'). - --define(SYSTEM_CPU_STATE_VALUES_INTERRUPT, 'interrupt'). - --define(SYSTEM_CPU_STATE_VALUES_STEAL, 'steal'). - - - -%% The device identifier --define(SYSTEM_DEVICE, 'system.device'). - - -%% The filesystem mode --define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). - - -%% The filesystem mount path --define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). - - -%% The filesystem state --define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). - --define(SYSTEM_FILESYSTEM_STATE_VALUES_USED, 'used'). - --define(SYSTEM_FILESYSTEM_STATE_VALUES_FREE, 'free'). - --define(SYSTEM_FILESYSTEM_STATE_VALUES_RESERVED, 'reserved'). - - - -%% The filesystem type --define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). - --define(SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32, 'fat32'). - --define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXFAT, 'exfat'). - --define(SYSTEM_FILESYSTEM_TYPE_VALUES_NTFS, 'ntfs'). - --define(SYSTEM_FILESYSTEM_TYPE_VALUES_REFS, 'refs'). - --define(SYSTEM_FILESYSTEM_TYPE_VALUES_HFSPLUS, 'hfsplus'). - --define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXT4, 'ext4'). - - - -%% The memory state --define(SYSTEM_MEMORY_STATE, 'system.memory.state'). - --define(SYSTEM_MEMORY_STATE_VALUES_USED, 'used'). - --define(SYSTEM_MEMORY_STATE_VALUES_FREE, 'free'). - --define(SYSTEM_MEMORY_STATE_VALUES_SHARED, 'shared'). - --define(SYSTEM_MEMORY_STATE_VALUES_BUFFERS, 'buffers'). - --define(SYSTEM_MEMORY_STATE_VALUES_CACHED, 'cached'). - - - -%% A stateless protocol MUST NOT set this attribute --define(SYSTEM_NETWORK_STATE, 'system.network.state'). - --define(SYSTEM_NETWORK_STATE_VALUES_CLOSE, 'close'). - --define(SYSTEM_NETWORK_STATE_VALUES_CLOSE_WAIT, 'close_wait'). - --define(SYSTEM_NETWORK_STATE_VALUES_CLOSING, 'closing'). - --define(SYSTEM_NETWORK_STATE_VALUES_DELETE, 'delete'). - --define(SYSTEM_NETWORK_STATE_VALUES_ESTABLISHED, 'established'). - --define(SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_1, 'fin_wait_1'). - --define(SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_2, 'fin_wait_2'). - --define(SYSTEM_NETWORK_STATE_VALUES_LAST_ACK, 'last_ack'). - --define(SYSTEM_NETWORK_STATE_VALUES_LISTEN, 'listen'). - --define(SYSTEM_NETWORK_STATE_VALUES_SYN_RECV, 'syn_recv'). - --define(SYSTEM_NETWORK_STATE_VALUES_SYN_SENT, 'syn_sent'). - --define(SYSTEM_NETWORK_STATE_VALUES_TIME_WAIT, 'time_wait'). - - - -%% The paging access direction --define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). - --define(SYSTEM_PAGING_DIRECTION_VALUES_IN, 'in'). - --define(SYSTEM_PAGING_DIRECTION_VALUES_OUT, 'out'). - - - -%% The memory paging state --define(SYSTEM_PAGING_STATE, 'system.paging.state'). - --define(SYSTEM_PAGING_STATE_VALUES_USED, 'used'). - --define(SYSTEM_PAGING_STATE_VALUES_FREE, 'free'). - - - -%% The memory paging type --define(SYSTEM_PAGING_TYPE, 'system.paging.type'). - --define(SYSTEM_PAGING_TYPE_VALUES_MAJOR, 'major'). - --define(SYSTEM_PAGING_TYPE_VALUES_MINOR, 'minor'). - - - -%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) -%% --define(SYSTEM_PROCESS_STATUS, 'system.process.status'). - --define(SYSTEM_PROCESS_STATUS_VALUES_RUNNING, 'running'). - --define(SYSTEM_PROCESS_STATUS_VALUES_SLEEPING, 'sleeping'). - --define(SYSTEM_PROCESS_STATUS_VALUES_STOPPED, 'stopped'). - --define(SYSTEM_PROCESS_STATUS_VALUES_DEFUNCT, 'defunct'). - - -%% @deprecated Replaced by `system.process.status`. -%% Deprecated, use `system.process.status` instead. --define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). - --define(SYSTEM_PROCESSES_STATUS_VALUES_RUNNING, 'running'). - --define(SYSTEM_PROCESSES_STATUS_VALUES_SLEEPING, 'sleeping'). - --define(SYSTEM_PROCESSES_STATUS_VALUES_STOPPED, 'stopped'). - --define(SYSTEM_PROCESSES_STATUS_VALUES_DEFUNCT, 'defunct'). - diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl deleted file mode 100644 index fe6cd563..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/webengine_attributes.hrl +++ /dev/null @@ -1,29 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% Additional description of the web engine (e.g. detailed version and edition information). -%% --define(WEBENGINE_DESCRIPTION, 'webengine.description'). - - -%% The name of the web engine. -%% --define(WEBENGINE_NAME, 'webengine.name'). - - -%% The version of the web engine. -%% --define(WEBENGINE_VERSION, 'webengine.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl deleted file mode 100644 index 5e38b8d6..00000000 --- a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl +++ /dev/null @@ -1,130 +0,0 @@ - -%%%------------------------------------------------------------------------ -%% 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 -%% -%% http://www.apache.org/licenses/LICENSE-2.0 -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%%%------------------------------------------------------------------------- - -%% Reports the current frequency of the CPU in Hz --define(SYSTEM_CPU_FREQUENCY, 'system.cpu.frequency'). - - -%% Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking --define(SYSTEM_CPU_LOGICAL_COUNT, 'system.cpu.logical.count'). - - -%% Reports the number of actual physical processor cores on the hardware --define(SYSTEM_CPU_PHYSICAL_COUNT, 'system.cpu.physical.count'). - - -%% Seconds each logical CPU spent on each mode --define(SYSTEM_CPU_TIME, 'system.cpu.time'). - - -%% Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs --define(SYSTEM_CPU_UTILIZATION, 'system.cpu.utilization'). - - -%% none --define(SYSTEM_DISK_IO, 'system.disk.io'). - - -%% Time disk spent activated --define(SYSTEM_DISK_IO_TIME, 'system.disk.io_time'). - - -%% none --define(SYSTEM_DISK_MERGED, 'system.disk.merged'). - - -%% Sum of the time each operation took to complete --define(SYSTEM_DISK_OPERATION_TIME, 'system.disk.operation_time'). - - -%% none --define(SYSTEM_DISK_OPERATIONS, 'system.disk.operations'). - - -%% none --define(SYSTEM_FILESYSTEM_USAGE, 'system.filesystem.usage'). - - -%% none --define(SYSTEM_FILESYSTEM_UTILIZATION, 'system.filesystem.utilization'). - - -%% An estimate of how much memory is available for starting new applications, without causing swapping --define(SYSTEM_LINUX_MEMORY_AVAILABLE, 'system.linux.memory.available'). - - -%% Reports the memory used by the Linux kernel for managing caches of frequently used objects. --define(SYSTEM_LINUX_MEMORY_SLAB_USAGE, 'system.linux.memory.slab.usage'). - - -%% Total memory available in the system. --define(SYSTEM_MEMORY_LIMIT, 'system.memory.limit'). - - -%% Shared memory used (mostly by tmpfs). --define(SYSTEM_MEMORY_SHARED, 'system.memory.shared'). - - -%% Reports memory in use by state. --define(SYSTEM_MEMORY_USAGE, 'system.memory.usage'). - - -%% none --define(SYSTEM_MEMORY_UTILIZATION, 'system.memory.utilization'). - - -%% none --define(SYSTEM_NETWORK_CONNECTIONS, 'system.network.connections'). - - -%% Count of packets that are dropped or discarded even though there was no error --define(SYSTEM_NETWORK_DROPPED, 'system.network.dropped'). - - -%% Count of network errors detected --define(SYSTEM_NETWORK_ERRORS, 'system.network.errors'). - - -%% none --define(SYSTEM_NETWORK_IO, 'system.network.io'). - - -%% none --define(SYSTEM_NETWORK_PACKETS, 'system.network.packets'). - - -%% none --define(SYSTEM_PAGING_FAULTS, 'system.paging.faults'). - - -%% none --define(SYSTEM_PAGING_OPERATIONS, 'system.paging.operations'). - - -%% Unix swap or windows pagefile usage --define(SYSTEM_PAGING_USAGE, 'system.paging.usage'). - - -%% none --define(SYSTEM_PAGING_UTILIZATION, 'system.paging.utilization'). - - -%% Total number of processes in each state --define(SYSTEM_PROCESS_COUNT, 'system.process.count'). - - -%% Total number of processes created over uptime of the host --define(SYSTEM_PROCESS_CREATED, 'system.process.created'). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex deleted file mode 100644 index 3e77f70f..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex +++ /dev/null @@ -1,154 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Device attributes. - """ - - @doc """ - A unique identifier representing the device - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST** **NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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. - - ### Examples - - ``` - ["2ab2916d-a51f-4ac8-80ee-45ac31a28092"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_id() - :"device.id" - - ### Erlang - - ```erlang - ?DEVICE_ID. - 'device.id' - ``` - - - """ - @spec device_id :: :"device.id" - def device_id do - :"device.id" - end - - @doc """ - The name of the device manufacturer - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple`. - - ### Examples - - ``` - ["Apple", "Samsung"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_manufacturer() - :"device.manufacturer" - - ### Erlang - - ```erlang - ?DEVICE_MANUFACTURER. - 'device.manufacturer' - ``` - - - """ - @spec device_manufacturer :: :"device.manufacturer" - def device_manufacturer do - :"device.manufacturer" - end - - @doc """ - The model identifier for the device - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - 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. - - ### Examples - - ``` - ["iPhone3,4", "SM-G920F"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_model_identifier() - :"device.model.identifier" - - ### Erlang - - ```erlang - ?DEVICE_MODEL_IDENTIFIER. - 'device.model.identifier' - ``` - - - """ - @spec device_model_identifier :: :"device.model.identifier" - def device_model_identifier do - :"device.model.identifier" - end - - @doc """ - The marketing name for the device model - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Notes - - It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. - - ### Examples - - ``` - ["iPhone 6s Plus", "Samsung Galaxy S6"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_model_name() - :"device.model.name" - - ### Erlang - - ```erlang - ?DEVICE_MODEL_NAME. - 'device.model.name' - ``` - - - """ - @spec device_model_name :: :"device.model.name" - def device_model_name do - :"device.model.name" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex deleted file mode 100644 index cc70bbd1..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex +++ /dev/null @@ -1,67 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Disk attributes. - """ - - @typedoc """ - The disk IO operation direction. - - ### Enum Values - * `:read` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:write` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type disk_io_direction_values() :: %{ - :read => :read, - :write => :write - } - @doc """ - The disk IO operation direction. - - ### Examples - - ``` - ["read"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() - :"disk.io.direction" - - iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read - :read - - iex> %{OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() => OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read} - %{:"disk.io.direction" => :read} - - ### Erlang - - ```erlang - ?DISK_IO_DIRECTION. - 'disk.io.direction' - - ?DISK_IO_DIRECTION_VALUES_READ. - 'read' - - \#{?DISK_IO_DIRECTION => ?DISK_IO_DIRECTION_VALUES_READ}. - \#{'disk.io.direction' => 'read'} - ``` - - - """ - @spec disk_io_direction :: :"disk.io.direction" - def disk_io_direction do - :"disk.io.direction" - end - - @spec disk_io_direction_values() :: disk_io_direction_values() - def disk_io_direction_values() do - %{ - :read => :read, - :write => :write - } - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex index 77309279..521f4aeb 100644 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/event_attributes.ex @@ -12,7 +12,7 @@ defmodule OpenTelemetry.SemConv.Incubating.EventAttributes do Value must be of type `atom() | String.t()`. ### Notes - Event names are subject to the same rules as [attribute names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.33.0/specification/common/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes. + Event names are subject to the same rules as [attribute names](/docs/general/attribute-naming.md). Notably, event names are namespaced to avoid collisions and provide a clean separation of semantics for events in separate domains like browser, mobile, and kubernetes. ### Examples diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex deleted file mode 100644 index 07fcfbdb..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex +++ /dev/null @@ -1,759 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for System attributes. - """ - - @doc """ - The logical CPU number [0..n-1] - ### Value type - - Value must be of type `integer()`. - ### Examples - - ``` - [1] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_logical_number() - :"system.cpu.logical_number" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_LOGICAL_NUMBER. - 'system.cpu.logical_number' - ``` - - - """ - @spec system_cpu_logical_number :: :"system.cpu.logical_number" - def system_cpu_logical_number do - :"system.cpu.logical_number" - end - - @typedoc """ - Deprecated, use `cpu.mode` instead. - - ### Enum Values - * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:nice` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:iowait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:interrupt` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:steal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_cpu_state_values() :: %{ - :user => :user, - :system => :system, - :nice => :nice, - :idle => :idle, - :iowait => :iowait, - :interrupt => :interrupt, - :steal => :steal - } - @deprecated """ - Replaced by `cpu.mode` - """ - @spec system_cpu_state :: :"system.cpu.state" - def system_cpu_state do - :"system.cpu.state" - end - - @spec system_cpu_state_values() :: system_cpu_state_values() - def system_cpu_state_values() do - %{ - :user => :user, - :system => :system, - :nice => :nice, - :idle => :idle, - :iowait => :iowait, - :interrupt => :interrupt, - :steal => :steal - } - end - - @doc """ - The device identifier - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["(identifier)"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_device() - :"system.device" - - ### Erlang - - ```erlang - ?SYSTEM_DEVICE. - 'system.device' - ``` - - - """ - @spec system_device :: :"system.device" - def system_device do - :"system.device" - end - - @doc """ - The filesystem mode - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["rw, ro"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_mode() - :"system.filesystem.mode" - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_MODE. - 'system.filesystem.mode' - ``` - - - """ - @spec system_filesystem_mode :: :"system.filesystem.mode" - def system_filesystem_mode do - :"system.filesystem.mode" - end - - @doc """ - The filesystem mount path - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["/mnt/data"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_mountpoint() - :"system.filesystem.mountpoint" - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_MOUNTPOINT. - 'system.filesystem.mountpoint' - ``` - - - """ - @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" - def system_filesystem_mountpoint do - :"system.filesystem.mountpoint" - end - - @typedoc """ - The filesystem state - - ### Enum Values - * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:reserved` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_filesystem_state_values() :: %{ - :used => :used, - :free => :free, - :reserved => :reserved - } - @doc """ - The filesystem state - - ### Examples - - ``` - ["used"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() - :"system.filesystem.state" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used - :used - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used} - %{:"system.filesystem.state" => :used} - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_STATE. - 'system.filesystem.state' - - ?SYSTEM_FILESYSTEM_STATE_VALUES_USED. - 'used' - - \#{?SYSTEM_FILESYSTEM_STATE => ?SYSTEM_FILESYSTEM_STATE_VALUES_USED}. - \#{'system.filesystem.state' => 'used'} - ``` - - - """ - @spec system_filesystem_state :: :"system.filesystem.state" - def system_filesystem_state do - :"system.filesystem.state" - end - - @spec system_filesystem_state_values() :: system_filesystem_state_values() - def system_filesystem_state_values() do - %{ - :used => :used, - :free => :free, - :reserved => :reserved - } - end - - @typedoc """ - The filesystem type - - ### Enum Values - * `:fat32` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:exfat` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:ntfs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:refs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:hfsplus` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:ext4` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_filesystem_type_values() :: %{ - :fat32 => :fat32, - :exfat => :exfat, - :ntfs => :ntfs, - :refs => :refs, - :hfsplus => :hfsplus, - :ext4 => :ext4 - } - @doc """ - The filesystem type - - ### Examples - - ``` - ["ext4"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() - :"system.filesystem.type" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32 - :fat32 - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32} - %{:"system.filesystem.type" => :fat32} - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_TYPE. - 'system.filesystem.type' - - ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32. - 'fat32' - - \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32}. - \#{'system.filesystem.type' => 'fat32'} - ``` - - - """ - @spec system_filesystem_type :: :"system.filesystem.type" - def system_filesystem_type do - :"system.filesystem.type" - end - - @spec system_filesystem_type_values() :: system_filesystem_type_values() - def system_filesystem_type_values() do - %{ - :fat32 => :fat32, - :exfat => :exfat, - :ntfs => :ntfs, - :refs => :refs, - :hfsplus => :hfsplus, - :ext4 => :ext4 - } - end - - @typedoc """ - The memory state - - ### Enum Values - * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:shared` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:buffers` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:cached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_memory_state_values() :: %{ - :used => :used, - :free => :free, - :shared => :shared, - :buffers => :buffers, - :cached => :cached - } - @doc """ - The memory state - - ### Examples - - ``` - ["free", "cached"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() - :"system.memory.state" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used - :used - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used} - %{:"system.memory.state" => :used} - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_STATE. - 'system.memory.state' - - ?SYSTEM_MEMORY_STATE_VALUES_USED. - 'used' - - \#{?SYSTEM_MEMORY_STATE => ?SYSTEM_MEMORY_STATE_VALUES_USED}. - \#{'system.memory.state' => 'used'} - ``` - - - """ - @spec system_memory_state :: :"system.memory.state" - def system_memory_state do - :"system.memory.state" - end - - @spec system_memory_state_values() :: system_memory_state_values() - def system_memory_state_values() do - %{ - :used => :used, - :free => :free, - :shared => :shared, - :buffers => :buffers, - :cached => :cached - } - end - - @typedoc """ - A stateless protocol **MUST** **NOT** set this attribute - - ### Enum Values - * `:close` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:close_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:closing` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:delete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:established` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:fin_wait_1` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:fin_wait_2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:last_ack` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:listen` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:syn_recv` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:syn_sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:time_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_network_state_values() :: %{ - :close => :close, - :close_wait => :close_wait, - :closing => :closing, - :delete => :delete, - :established => :established, - :fin_wait_1 => :fin_wait_1, - :fin_wait_2 => :fin_wait_2, - :last_ack => :last_ack, - :listen => :listen, - :syn_recv => :syn_recv, - :syn_sent => :syn_sent, - :time_wait => :time_wait - } - @doc """ - A stateless protocol **MUST** **NOT** set this attribute - - ### Examples - - ``` - ["close_wait"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() - :"system.network.state" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close - :close - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close} - %{:"system.network.state" => :close} - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_STATE. - 'system.network.state' - - ?SYSTEM_NETWORK_STATE_VALUES_CLOSE. - 'close' - - \#{?SYSTEM_NETWORK_STATE => ?SYSTEM_NETWORK_STATE_VALUES_CLOSE}. - \#{'system.network.state' => 'close'} - ``` - - - """ - @spec system_network_state :: :"system.network.state" - def system_network_state do - :"system.network.state" - end - - @spec system_network_state_values() :: system_network_state_values() - def system_network_state_values() do - %{ - :close => :close, - :close_wait => :close_wait, - :closing => :closing, - :delete => :delete, - :established => :established, - :fin_wait_1 => :fin_wait_1, - :fin_wait_2 => :fin_wait_2, - :last_ack => :last_ack, - :listen => :listen, - :syn_recv => :syn_recv, - :syn_sent => :syn_sent, - :time_wait => :time_wait - } - end - - @typedoc """ - The paging access direction - - ### Enum Values - * `:in` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:out` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_paging_direction_values() :: %{ - :in => :in, - :out => :out - } - @doc """ - The paging access direction - - ### Examples - - ``` - ["in"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() - :"system.paging.direction" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in - :in - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in} - %{:"system.paging.direction" => :in} - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_DIRECTION. - 'system.paging.direction' - - ?SYSTEM_PAGING_DIRECTION_VALUES_IN. - 'in' - - \#{?SYSTEM_PAGING_DIRECTION => ?SYSTEM_PAGING_DIRECTION_VALUES_IN}. - \#{'system.paging.direction' => 'in'} - ``` - - - """ - @spec system_paging_direction :: :"system.paging.direction" - def system_paging_direction do - :"system.paging.direction" - end - - @spec system_paging_direction_values() :: system_paging_direction_values() - def system_paging_direction_values() do - %{ - :in => :in, - :out => :out - } - end - - @typedoc """ - The memory paging state - - ### Enum Values - * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_paging_state_values() :: %{ - :used => :used, - :free => :free - } - @doc """ - The memory paging state - - ### Examples - - ``` - ["free"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() - :"system.paging.state" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used - :used - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used} - %{:"system.paging.state" => :used} - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_STATE. - 'system.paging.state' - - ?SYSTEM_PAGING_STATE_VALUES_USED. - 'used' - - \#{?SYSTEM_PAGING_STATE => ?SYSTEM_PAGING_STATE_VALUES_USED}. - \#{'system.paging.state' => 'used'} - ``` - - - """ - @spec system_paging_state :: :"system.paging.state" - def system_paging_state do - :"system.paging.state" - end - - @spec system_paging_state_values() :: system_paging_state_values() - def system_paging_state_values() do - %{ - :used => :used, - :free => :free - } - end - - @typedoc """ - The memory paging type - - ### Enum Values - * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_paging_type_values() :: %{ - :major => :major, - :minor => :minor - } - @doc """ - The memory paging type - - ### Examples - - ``` - ["minor"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() - :"system.paging.type" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major - :major - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major} - %{:"system.paging.type" => :major} - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_TYPE. - 'system.paging.type' - - ?SYSTEM_PAGING_TYPE_VALUES_MAJOR. - 'major' - - \#{?SYSTEM_PAGING_TYPE => ?SYSTEM_PAGING_TYPE_VALUES_MAJOR}. - \#{'system.paging.type' => 'major'} - ``` - - - """ - @spec system_paging_type :: :"system.paging.type" - def system_paging_type do - :"system.paging.type" - end - - @spec system_paging_type_values() :: system_paging_type_values() - def system_paging_type_values() do - %{ - :major => :major, - :minor => :minor - } - end - - @typedoc """ - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - - - ### Enum Values - * `:running` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:sleeping` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_process_status_values() :: %{ - :running => :running, - :sleeping => :sleeping, - :stopped => :stopped, - :defunct => :defunct - } - @doc """ - The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) - - - ### Examples - - ``` - ["running"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() - :"system.process.status" - - iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running - :running - - iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running} - %{:"system.process.status" => :running} - - ### Erlang - - ```erlang - ?SYSTEM_PROCESS_STATUS. - 'system.process.status' - - ?SYSTEM_PROCESS_STATUS_VALUES_RUNNING. - 'running' - - \#{?SYSTEM_PROCESS_STATUS => ?SYSTEM_PROCESS_STATUS_VALUES_RUNNING}. - \#{'system.process.status' => 'running'} - ``` - - - """ - @spec system_process_status :: :"system.process.status" - def system_process_status do - :"system.process.status" - end - - @spec system_process_status_values() :: system_process_status_values() - def system_process_status_values() do - %{ - :running => :running, - :sleeping => :sleeping, - :stopped => :stopped, - :defunct => :defunct - } - end - - @typedoc """ - Deprecated, use `system.process.status` instead. - - ### Enum Values - * `:running` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:sleeping` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - """ - @type system_processes_status_values() :: %{ - :running => :running, - :sleeping => :sleeping, - :stopped => :stopped, - :defunct => :defunct - } - @deprecated """ - Replaced by `system.process.status`. - """ - @spec system_processes_status :: :"system.processes.status" - def system_processes_status do - :"system.processes.status" - end - - @spec system_processes_status_values() :: system_processes_status_values() - def system_processes_status_values() do - %{ - :running => :running, - :sleeping => :sleeping, - :stopped => :stopped, - :defunct => :defunct - } - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex deleted file mode 100644 index c6824610..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/webengine_attributes.ex +++ /dev/null @@ -1,105 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.WebengineAttributes do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for Webengine attributes. - """ - - @doc """ - Additional description of the web engine (e.g. detailed version and edition information). - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.WebengineAttributes.webengine_description() - :"webengine.description" - - ### Erlang - - ```erlang - ?WEBENGINE_DESCRIPTION. - 'webengine.description' - ``` - - - """ - @spec webengine_description :: :"webengine.description" - def webengine_description do - :"webengine.description" - end - - @doc """ - The name of the web engine. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["WildFly"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.WebengineAttributes.webengine_name() - :"webengine.name" - - ### Erlang - - ```erlang - ?WEBENGINE_NAME. - 'webengine.name' - ``` - - - """ - @spec webengine_name :: :"webengine.name" - def webengine_name do - :"webengine.name" - end - - @doc """ - The version of the web engine. - - ### Value type - - Value must be of type `atom() | String.t()`. - ### Examples - - ``` - ["21.0.0"] - ``` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.WebengineAttributes.webengine_version() - :"webengine.version" - - ### Erlang - - ```erlang - ?WEBENGINE_VERSION. - 'webengine.version' - ``` - - - """ - @spec webengine_version :: :"webengine.version" - def webengine_version do - :"webengine.version" - end -end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex deleted file mode 100644 index bc379bf4..00000000 --- a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex +++ /dev/null @@ -1,815 +0,0 @@ -defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do - # This is an auto-generated file - @moduledoc """ - OpenTelemetry Semantic Conventions for System metrics. - """ - @doc """ - Reports the current frequency of the CPU in Hz - - Instrument: `gauge` - Unit: `{Hz}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_frequency() - :"system.cpu.frequency" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_FREQUENCY. - 'system.cpu.frequency' - ``` - - - """ - - @spec system_cpu_frequency :: :"system.cpu.frequency" - def system_cpu_frequency do - :"system.cpu.frequency" - end - - @doc """ - Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking - - Instrument: `updowncounter` - Unit: `{cpu}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_logical_count() - :"system.cpu.logical.count" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_LOGICAL_COUNT. - 'system.cpu.logical.count' - ``` - - - """ - - @spec system_cpu_logical_count :: :"system.cpu.logical.count" - def system_cpu_logical_count do - :"system.cpu.logical.count" - end - - @doc """ - Reports the number of actual physical processor cores on the hardware - - Instrument: `updowncounter` - Unit: `{cpu}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_physical_count() - :"system.cpu.physical.count" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_PHYSICAL_COUNT. - 'system.cpu.physical.count' - ``` - - - """ - - @spec system_cpu_physical_count :: :"system.cpu.physical.count" - def system_cpu_physical_count do - :"system.cpu.physical.count" - end - - @doc """ - Seconds each logical CPU spent on each mode - - Instrument: `counter` - Unit: `s` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_time() - :"system.cpu.time" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_TIME. - 'system.cpu.time' - ``` - - - """ - - @spec system_cpu_time :: :"system.cpu.time" - def system_cpu_time do - :"system.cpu.time" - end - - @doc """ - Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_utilization() - :"system.cpu.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_CPU_UTILIZATION. - 'system.cpu.utilization' - ``` - - - """ - - @spec system_cpu_utilization :: :"system.cpu.utilization" - def system_cpu_utilization do - :"system.cpu.utilization" - end - - @doc """ - none - - Instrument: `counter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io() - :"system.disk.io" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_IO. - 'system.disk.io' - ``` - - - """ - - @spec system_disk_io :: :"system.disk.io" - def system_disk_io do - :"system.disk.io" - end - - @doc """ - Time disk spent activated - - Instrument: `counter` - Unit: `s` - ### Notes - - The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as: - - - Linux: Field 13 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) - - Windows: The complement of - ["Disk\% Idle Time"](https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained) - performance counter: `uptime * (100 - "Disk\% Idle Time") / 100` - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io_time() - :"system.disk.io_time" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_IO_TIME. - 'system.disk.io_time' - ``` - - - """ - - @spec system_disk_io_time :: :"system.disk.io_time" - def system_disk_io_time do - :"system.disk.io_time" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{operation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_merged() - :"system.disk.merged" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_MERGED. - 'system.disk.merged' - ``` - - - """ - - @spec system_disk_merged :: :"system.disk.merged" - def system_disk_merged do - :"system.disk.merged" - end - - @doc """ - Sum of the time each operation took to complete - - Instrument: `counter` - Unit: `s` - ### Notes - - Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as: - - - Linux: Fields 7 & 11 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) - - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec" perf counter (similar for Writes) - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operation_time() - :"system.disk.operation_time" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_OPERATION_TIME. - 'system.disk.operation_time' - ``` - - - """ - - @spec system_disk_operation_time :: :"system.disk.operation_time" - def system_disk_operation_time do - :"system.disk.operation_time" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{operation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operations() - :"system.disk.operations" - - ### Erlang - - ```erlang - ?SYSTEM_DISK_OPERATIONS. - 'system.disk.operations' - ``` - - - """ - - @spec system_disk_operations :: :"system.disk.operations" - def system_disk_operations do - :"system.disk.operations" - end - - @doc """ - none - - Instrument: `updowncounter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_usage() - :"system.filesystem.usage" - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_USAGE. - 'system.filesystem.usage' - ``` - - - """ - - @spec system_filesystem_usage :: :"system.filesystem.usage" - def system_filesystem_usage do - :"system.filesystem.usage" - end - - @doc """ - none - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_utilization() - :"system.filesystem.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_FILESYSTEM_UTILIZATION. - 'system.filesystem.utilization' - ``` - - - """ - - @spec system_filesystem_utilization :: :"system.filesystem.utilization" - def system_filesystem_utilization do - :"system.filesystem.utilization" - end - - @doc """ - An estimate of how much memory is available for starting new applications, without causing swapping - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - 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. - This is supposed to be more accurate than just "free" memory. - For reference, see the calculations [here](https://superuser.com/a/980821). - See also `MemAvailable` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_linux_memory_available() - :"system.linux.memory.available" - - ### Erlang - - ```erlang - ?SYSTEM_LINUX_MEMORY_AVAILABLE. - 'system.linux.memory.available' - ``` - - - """ - - @spec system_linux_memory_available :: :"system.linux.memory.available" - def system_linux_memory_available do - :"system.linux.memory.available" - end - - @doc """ - Total memory available in the system. - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - Its value **SHOULD** equal the sum of `system.memory.state` over all states. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_limit() - :"system.memory.limit" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_LIMIT. - 'system.memory.limit' - ``` - - - """ - - @spec system_memory_limit :: :"system.memory.limit" - def system_memory_limit do - :"system.memory.limit" - end - - @doc """ - Shared memory used (mostly by tmpfs). - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - Equivalent of `shared` from [`free` command](https://man7.org/linux/man-pages/man1/free.1.html) or - `Shmem` from [`/proc/meminfo`](https://man7.org/linux/man-pages/man5/proc.5.html)" - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_shared() - :"system.memory.shared" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_SHARED. - 'system.memory.shared' - ``` - - - """ - - @spec system_memory_shared :: :"system.memory.shared" - def system_memory_shared do - :"system.memory.shared" - end - - @doc """ - Reports memory in use by state. - - Instrument: `updowncounter` - Unit: `By` - ### Notes - - The sum over all `system.memory.state` values **SHOULD** equal the total memory - available on the system, that is `system.memory.limit`. - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_usage() - :"system.memory.usage" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_USAGE. - 'system.memory.usage' - ``` - - - """ - - @spec system_memory_usage :: :"system.memory.usage" - def system_memory_usage do - :"system.memory.usage" - end - - @doc """ - none - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_utilization() - :"system.memory.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_MEMORY_UTILIZATION. - 'system.memory.utilization' - ``` - - - """ - - @spec system_memory_utilization :: :"system.memory.utilization" - def system_memory_utilization do - :"system.memory.utilization" - end - - @doc """ - none - - Instrument: `updowncounter` - Unit: `{connection}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_connections() - :"system.network.connections" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_CONNECTIONS. - 'system.network.connections' - ``` - - - """ - - @spec system_network_connections :: :"system.network.connections" - def system_network_connections do - :"system.network.connections" - end - - @doc """ - Count of packets that are dropped or discarded even though there was no error - - Instrument: `counter` - Unit: `{packet}` - ### Notes - - 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) - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_dropped() - :"system.network.dropped" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_DROPPED. - 'system.network.dropped' - ``` - - - """ - - @spec system_network_dropped :: :"system.network.dropped" - def system_network_dropped do - :"system.network.dropped" - end - - @doc """ - Count of network errors detected - - Instrument: `counter` - Unit: `{error}` - ### Notes - - 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). - - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_errors() - :"system.network.errors" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_ERRORS. - 'system.network.errors' - ``` - - - """ - - @spec system_network_errors :: :"system.network.errors" - def system_network_errors do - :"system.network.errors" - end - - @doc """ - none - - Instrument: `counter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_io() - :"system.network.io" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_IO. - 'system.network.io' - ``` - - - """ - - @spec system_network_io :: :"system.network.io" - def system_network_io do - :"system.network.io" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{packet}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_packets() - :"system.network.packets" - - ### Erlang - - ```erlang - ?SYSTEM_NETWORK_PACKETS. - 'system.network.packets' - ``` - - - """ - - @spec system_network_packets :: :"system.network.packets" - def system_network_packets do - :"system.network.packets" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{fault}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_faults() - :"system.paging.faults" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_FAULTS. - 'system.paging.faults' - ``` - - - """ - - @spec system_paging_faults :: :"system.paging.faults" - def system_paging_faults do - :"system.paging.faults" - end - - @doc """ - none - - Instrument: `counter` - Unit: `{operation}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_operations() - :"system.paging.operations" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_OPERATIONS. - 'system.paging.operations' - ``` - - - """ - - @spec system_paging_operations :: :"system.paging.operations" - def system_paging_operations do - :"system.paging.operations" - end - - @doc """ - Unix swap or windows pagefile usage - - Instrument: `updowncounter` - Unit: `By` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_usage() - :"system.paging.usage" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_USAGE. - 'system.paging.usage' - ``` - - - """ - - @spec system_paging_usage :: :"system.paging.usage" - def system_paging_usage do - :"system.paging.usage" - end - - @doc """ - none - - Instrument: `gauge` - Unit: `1` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_utilization() - :"system.paging.utilization" - - ### Erlang - - ```erlang - ?SYSTEM_PAGING_UTILIZATION. - 'system.paging.utilization' - ``` - - - """ - - @spec system_paging_utilization :: :"system.paging.utilization" - def system_paging_utilization do - :"system.paging.utilization" - end - - @doc """ - Total number of processes in each state - - Instrument: `updowncounter` - Unit: `{process}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_count() - :"system.process.count" - - ### Erlang - - ```erlang - ?SYSTEM_PROCESS_COUNT. - 'system.process.count' - ``` - - - """ - - @spec system_process_count :: :"system.process.count" - def system_process_count do - :"system.process.count" - end - - @doc """ - Total number of processes created over uptime of the host - - Instrument: `counter` - Unit: `{process}` - - - ### Elixir - - iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_created() - :"system.process.created" - - ### Erlang - - ```erlang - ?SYSTEM_PROCESS_CREATED. - 'system.process.created' - ``` - - - """ - - @spec system_process_created :: :"system.process.created" - def system_process_created do - :"system.process.created" - end -end diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index 0b986bad..bd78dc52 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -1,6 +1,6 @@ params: stability: "stable" - excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "test", "vcs", "veightjs", "v8js"] + excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "device", "disk", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "system", "test", "vcs", "veightjs", "v8js", "webengine"] excluded_attrs: ["messaging.client_id"] templates: diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index 8b05109a..89e00dcb 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -1,6 +1,6 @@ params: stability: "stable" - excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "test", "vcs", "veigthjs", "v8js"] + excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "device", "disk", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "system", "test", "vcs", "veightjs", "v8js", "webengine"] excluded_attrs: ["messaging.client_id"] templates: From a38fba2d364eef39afcc66c4a396c2e0d700a206 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Fri, 13 Sep 2024 20:36:11 -0600 Subject: [PATCH 56/57] Update versioning --- .../include/logs.hrl | 14 +- .../include/resource.hrl | 354 +++++------ .../include/schema_urls.hrl | 1 - .../include/trace.hrl | 586 +++++++++--------- .../semantic_conventions/logs.ex | 8 +- .../semantic_conventions/resource.ex | 178 +++--- .../semantic_conventions/trace.ex | 294 ++++----- .../lib/schema_urls.ex | 1 - ...opentelemetry_semantic_conventions.app.src | 2 +- 9 files changed, 718 insertions(+), 720 deletions(-) diff --git a/apps/opentelemetry_semantic_conventions/include/logs.hrl b/apps/opentelemetry_semantic_conventions/include/logs.hrl index 34c6176a..b187b111 100644 --- a/apps/opentelemetry_semantic_conventions/include/logs.hrl +++ b/apps/opentelemetry_semantic_conventions/include/logs.hrl @@ -1,14 +1,14 @@ %% WARNING: These macros are deprecated and will be removed in a future release. -%% Migrate to >= v1.26.0 semantic conventions +%% Migrate to >= v1.27.0 semantic conventions -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(LOGS_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(EVENT_NAME, 'event.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(EVENT_DOMAIN, 'event.domain'). diff --git a/apps/opentelemetry_semantic_conventions/include/resource.hrl b/apps/opentelemetry_semantic_conventions/include/resource.hrl index 88754a4c..744f5a9a 100644 --- a/apps/opentelemetry_semantic_conventions/include/resource.hrl +++ b/apps/opentelemetry_semantic_conventions/include/resource.hrl @@ -1,354 +1,354 @@ %% WARNING: These macros are deprecated and will be removed in a future release. -%% Migrate to >= v1.26.0 semantic conventions +%% Migrate to >= v1.27.0 semantic conventions -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RESOURCE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(BROWSER_BRANDS, 'browser.brands'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(BROWSER_PLATFORM, 'browser.platform'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(BROWSER_USER_AGENT, 'browser.user_agent'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUD_PROVIDER, 'cloud.provider'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUD_ACCOUNT_ID, 'cloud.account.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUD_REGION, 'cloud.region'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUD_AVAILABILITY_ZONE, 'cloud.availability_zone'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUD_PLATFORM, 'cloud.platform'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_ECS_CONTAINER_ARN, 'aws.ecs.container.arn'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_ECS_CLUSTER_ARN, 'aws.ecs.cluster.arn'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_ECS_LAUNCHTYPE, 'aws.ecs.launchtype'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_ECS_TASK_ARN, 'aws.ecs.task.arn'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_ECS_TASK_FAMILY, 'aws.ecs.task.family'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_ECS_TASK_REVISION, 'aws.ecs.task.revision'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_EKS_CLUSTER_ARN, 'aws.eks.cluster.arn'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_LOG_GROUP_NAMES, 'aws.log.group.names'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_LOG_GROUP_ARNS, 'aws.log.group.arns'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_LOG_STREAM_NAMES, 'aws.log.stream.names'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_LOG_STREAM_ARNS, 'aws.log.stream.arns'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CONTAINER_NAME, 'container.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CONTAINER_ID, 'container.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CONTAINER_RUNTIME, 'container.runtime'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CONTAINER_IMAGE_NAME, 'container.image.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CONTAINER_IMAGE_TAG, 'container.image.tag'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DEPLOYMENT_ENVIRONMENT, 'deployment.environment'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DEVICE_ID, 'device.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DEVICE_MODEL_NAME, 'device.model.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DEVICE_MANUFACTURER, 'device.manufacturer'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_NAME, 'faas.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_ID, 'faas.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_VERSION, 'faas.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_INSTANCE, 'faas.instance'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_MAX_MEMORY, 'faas.max_memory'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_ID, 'host.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_NAME, 'host.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_TYPE, 'host.type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_ARCH, 'host.arch'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_IMAGE_NAME, 'host.image.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_IMAGE_ID, 'host.image.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HOST_IMAGE_VERSION, 'host.image.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_CLUSTER_NAME, 'k8s.cluster.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_NODE_NAME, 'k8s.node.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_NODE_UID, 'k8s.node.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_NAMESPACE_NAME, 'k8s.namespace.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_POD_UID, 'k8s.pod.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_POD_NAME, 'k8s.pod.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_CONTAINER_NAME, 'k8s.container.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_CONTAINER_RESTART_COUNT, 'k8s.container.restart_count'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_REPLICASET_UID, 'k8s.replicaset.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_REPLICASET_NAME, 'k8s.replicaset.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_DEPLOYMENT_UID, 'k8s.deployment.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_DEPLOYMENT_NAME, 'k8s.deployment.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_STATEFULSET_UID, 'k8s.statefulset.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_STATEFULSET_NAME, 'k8s.statefulset.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_DAEMONSET_UID, 'k8s.daemonset.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_DAEMONSET_NAME, 'k8s.daemonset.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_JOB_UID, 'k8s.job.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_JOB_NAME, 'k8s.job.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_CRONJOB_UID, 'k8s.cronjob.uid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(K8S_CRONJOB_NAME, 'k8s.cronjob.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(OS_TYPE, 'os.type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(OS_DESCRIPTION, 'os.description'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(OS_NAME, 'os.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(OS_VERSION, 'os.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_PID, 'process.pid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_PARENT_PID, 'process.parent_pid'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_EXECUTABLE_NAME, 'process.executable.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_EXECUTABLE_PATH, 'process.executable.path'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_COMMAND, 'process.command'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_COMMAND_LINE, 'process.command_line'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_COMMAND_ARGS, 'process.command_args'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_OWNER, 'process.owner'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_RUNTIME_NAME, 'process.runtime.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_RUNTIME_VERSION, 'process.runtime.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PROCESS_RUNTIME_DESCRIPTION, 'process.runtime.description'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(SERVICE_NAME, 'service.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(SERVICE_NAMESPACE, 'service.namespace'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(SERVICE_INSTANCE_ID, 'service.instance.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(SERVICE_VERSION, 'service.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(TELEMETRY_SDK_NAME, 'telemetry.sdk.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(TELEMETRY_SDK_LANGUAGE, 'telemetry.sdk.language'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(TELEMETRY_SDK_VERSION, 'telemetry.sdk.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(TELEMETRY_AUTO_VERSION, 'telemetry.auto.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(WEBENGINE_NAME, 'webengine.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(WEBENGINE_VERSION, 'webengine.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(WEBENGINE_DESCRIPTION, 'webengine.description'). diff --git a/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl b/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl index 5561e1c8..d8db8125 100644 --- a/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl +++ b/apps/opentelemetry_semantic_conventions/include/schema_urls.hrl @@ -1,2 +1 @@ --define('V1_26_0', <<"https://opentelemetry.io/schemas/1.26.0">>). -define('V1_27_0', <<"https://opentelemetry.io/schemas/1.27.0">>). diff --git a/apps/opentelemetry_semantic_conventions/include/trace.hrl b/apps/opentelemetry_semantic_conventions/include/trace.hrl index 77f0400c..841c414f 100644 --- a/apps/opentelemetry_semantic_conventions/include/trace.hrl +++ b/apps/opentelemetry_semantic_conventions/include/trace.hrl @@ -1,586 +1,586 @@ %% WARNING: These macros are deprecated and will be removed in a future release. -%% Migrate to >= v1.26.0 semantic conventions +%% Migrate to >= v1.27.0 semantic conventions -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(TRACE_SCHEMA_URL, <<"https://opentelemetry.io/schemas/1.13.0">>). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_LAMBDA_INVOKED_ARN, 'aws.lambda.invoked_arn'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUDEVENTS_EVENT_ID, 'cloudevents.event_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUDEVENTS_EVENT_SOURCE, 'cloudevents.event_source'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUDEVENTS_EVENT_SPEC_VERSION, 'cloudevents.event_spec_version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUDEVENTS_EVENT_TYPE, 'cloudevents.event_type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CLOUDEVENTS_EVENT_SUBJECT, 'cloudevents.event_subject'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(OPENTRACING_REF_TYPE, 'opentracing.ref_type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_SYSTEM, 'db.system'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CONNECTION_STRING, 'db.connection_string'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_USER, 'db.user'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_JDBC_DRIVER_CLASSNAME, 'db.jdbc.driver_classname'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_NAME, 'db.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_STATEMENT, 'db.statement'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_OPERATION, 'db.operation'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_PEER_NAME, 'net.peer.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_PEER_PORT, 'net.peer.port'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_SOCK_PEER_ADDR, 'net.sock.peer.addr'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_SOCK_PEER_PORT, 'net.sock.peer.port'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_SOCK_FAMILY, 'net.sock.family'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_SOCK_PEER_NAME, 'net.sock.peer.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_TRANSPORT, 'net.transport'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_MSSQL_INSTANCE_NAME, 'db.mssql.instance_name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_PAGE_SIZE, 'db.cassandra.page_size'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_CONSISTENCY_LEVEL, 'db.cassandra.consistency_level'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_TABLE, 'db.cassandra.table'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_IDEMPOTENCE, 'db.cassandra.idempotence'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, 'db.cassandra.speculative_execution_count'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_COORDINATOR_ID, 'db.cassandra.coordinator.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_CASSANDRA_COORDINATOR_DC, 'db.cassandra.coordinator.dc'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_REDIS_DATABASE_INDEX, 'db.redis.database_index'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_MONGODB_COLLECTION, 'db.mongodb.collection'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(DB_SQL_TABLE, 'db.sql.table'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(EXCEPTION_TYPE, 'exception.type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(EXCEPTION_MESSAGE, 'exception.message'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(EXCEPTION_STACKTRACE, 'exception.stacktrace'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(EXCEPTION_ESCAPED, 'exception.escaped'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_TRIGGER, 'faas.trigger'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_EXECUTION, 'faas.execution'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_DOCUMENT_COLLECTION, 'faas.document.collection'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_DOCUMENT_OPERATION, 'faas.document.operation'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_DOCUMENT_TIME, 'faas.document.time'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_DOCUMENT_NAME, 'faas.document.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_METHOD, 'http.method'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_STATUS_CODE, 'http.status_code'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_FLAVOR, 'http.flavor'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_USER_AGENT, 'http.user_agent'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_REQUEST_CONTENT_LENGTH, 'http.request_content_length'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_RESPONSE_CONTENT_LENGTH, 'http.response_content_length'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_SCHEME, 'http.scheme'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_TARGET, 'http.target'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_ROUTE, 'http.route'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_CLIENT_IP, 'http.client_ip'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_NAME, 'net.host.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_PORT, 'net.host.port'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_SOCK_HOST_ADDR, 'net.sock.host.addr'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_SOCK_HOST_PORT, 'net.sock.host.port'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_APP_PROTOCOL_NAME, 'net.app.protocol.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_APP_PROTOCOL_VERSION, 'net.app.protocol.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_CONNECTION_TYPE, 'net.host.connection.type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_CONNECTION_SUBTYPE, 'net.host.connection.subtype'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_CARRIER_NAME, 'net.host.carrier.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_CARRIER_MCC, 'net.host.carrier.mcc'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_CARRIER_MNC, 'net.host.carrier.mnc'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(NET_HOST_CARRIER_ICC, 'net.host.carrier.icc'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_SYSTEM, 'messaging.system'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_DESTINATION, 'messaging.destination'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_DESTINATION_KIND, 'messaging.destination_kind'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_TEMP_DESTINATION, 'messaging.temp_destination'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_PROTOCOL, 'messaging.protocol'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_PROTOCOL_VERSION, 'messaging.protocol_version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_URL, 'messaging.url'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_MESSAGE_ID, 'messaging.message_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_CONVERSATION_ID, 'messaging.conversation_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES, 'messaging.message_payload_size_bytes'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES, 'messaging.message_payload_compressed_size_bytes'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_TIME, 'faas.time'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_CRON, 'faas.cron'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_COLDSTART, 'faas.coldstart'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_INVOKED_NAME, 'faas.invoked_name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_INVOKED_PROVIDER, 'faas.invoked_provider'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(FAAS_INVOKED_REGION, 'faas.invoked_region'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(PEER_SERVICE, 'peer.service'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(ENDUSER_ID, 'enduser.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(ENDUSER_ROLE, 'enduser.role'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(ENDUSER_SCOPE, 'enduser.scope'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(THREAD_ID, 'thread.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(THREAD_NAME, 'thread.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CODE_FUNCTION, 'code.function'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CODE_NAMESPACE, 'code.namespace'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CODE_FILEPATH, 'code.filepath'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(CODE_LINENO, 'code.lineno'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_URL, 'http.url'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(HTTP_RETRY_COUNT, 'http.retry_count'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_SYSTEM, 'rpc.system'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_SERVICE, 'rpc.service'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_METHOD, 'rpc.method'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_TABLE_NAMES, 'aws.dynamodb.table_names'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_CONSUMED_CAPACITY, 'aws.dynamodb.consumed_capacity'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_ITEM_COLLECTION_METRICS, 'aws.dynamodb.item_collection_metrics'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, 'aws.dynamodb.provisioned_read_capacity'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, 'aws.dynamodb.provisioned_write_capacity'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_CONSISTENT_READ, 'aws.dynamodb.consistent_read'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_PROJECTION, 'aws.dynamodb.projection'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_LIMIT, 'aws.dynamodb.limit'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_ATTRIBUTES_TO_GET, 'aws.dynamodb.attributes_to_get'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_INDEX_NAME, 'aws.dynamodb.index_name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_SELECT, 'aws.dynamodb.select'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, 'aws.dynamodb.global_secondary_indexes'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, 'aws.dynamodb.local_secondary_indexes'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_EXCLUSIVE_START_TABLE, 'aws.dynamodb.exclusive_start_table'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_TABLE_COUNT, 'aws.dynamodb.table_count'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_SCAN_FORWARD, 'aws.dynamodb.scan_forward'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_SEGMENT, 'aws.dynamodb.segment'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_TOTAL_SEGMENTS, 'aws.dynamodb.total_segments'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_COUNT, 'aws.dynamodb.count'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_SCANNED_COUNT, 'aws.dynamodb.scanned_count'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, 'aws.dynamodb.attribute_definitions'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, 'aws.dynamodb.global_secondary_index_updates'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(GRAPHQL_OPERATION_NAME, 'graphql.operation.name'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(GRAPHQL_OPERATION_TYPE, 'graphql.operation.type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(GRAPHQL_DOCUMENT, 'graphql.document'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_OPERATION, 'messaging.operation'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_CONSUMER_ID, 'messaging.consumer_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_RABBITMQ_ROUTING_KEY, 'messaging.rabbitmq.routing_key'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_KAFKA_MESSAGE_KEY, 'messaging.kafka.message_key'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_KAFKA_CONSUMER_GROUP, 'messaging.kafka.consumer_group'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_KAFKA_CLIENT_ID, 'messaging.kafka.client_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_KAFKA_PARTITION, 'messaging.kafka.partition'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_KAFKA_TOMBSTONE, 'messaging.kafka.tombstone'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_NAMESPACE, 'messaging.rocketmq.namespace'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_CLIENT_GROUP, 'messaging.rocketmq.client_group'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_CLIENT_ID, 'messaging.rocketmq.client_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_MESSAGE_TYPE, 'messaging.rocketmq.message_type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_MESSAGE_TAG, 'messaging.rocketmq.message_tag'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_MESSAGE_KEYS, 'messaging.rocketmq.message_keys'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGING_ROCKETMQ_CONSUMPTION_MODEL, 'messaging.rocketmq.consumption_model'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_GRPC_STATUS_CODE, 'rpc.grpc.status_code'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_JSONRPC_VERSION, 'rpc.jsonrpc.version'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_JSONRPC_REQUEST_ID, 'rpc.jsonrpc.request_id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_JSONRPC_ERROR_CODE, 'rpc.jsonrpc.error_code'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(RPC_JSONRPC_ERROR_MESSAGE, 'rpc.jsonrpc.error_message'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGE_TYPE, 'message.type'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGE_ID, 'message.id'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGE_COMPRESSED_SIZE, 'message.compressed_size'). -%% @deprecated Migrate to >= v1.26.0 semantic conventions -%% Deprecated Migrate to >= v1.26.0 semantic conventions +%% @deprecated Migrate to >= v1.27.0 semantic conventions +%% Deprecated Migrate to >= v1.27.0 semantic conventions -define(MESSAGE_UNCOMPRESSED_SIZE, 'message.uncompressed_size'). diff --git a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex index 7913b288..bf3c4f36 100644 --- a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex +++ b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/logs.ex @@ -1,22 +1,22 @@ defmodule OpenTelemetry.SemanticConventions.Logs do @moduledoc """ WARNING: This module is deprecated and will be removed in a future release. - Migrate to >= v1.26.0 semantic conventions. + Migrate to >= v1.27.0 semantic conventions. """ - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec logs_schema_url :: String.t() def logs_schema_url do "https://opentelemetry.io/schemas/1.13.0" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec event_name :: :"event.name" def event_name do :"event.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec event_domain :: :"event.domain" def event_domain do :"event.domain" diff --git a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex index 7bf5247b..e150f1e5 100644 --- a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex +++ b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/resource.ex @@ -1,532 +1,532 @@ defmodule OpenTelemetry.SemanticConventions.Resource do @moduledoc """ WARNING: This module is deprecated and will be removed in a future release. - Migrate to >= v1.26.0 semantic conventions. + Migrate to >= v1.27.0 semantic conventions. """ - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec resource_schema_url :: String.t() def resource_schema_url do "https://opentelemetry.io/schemas/1.13.0" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec browser_brands :: :"browser.brands" def browser_brands do :"browser.brands" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec browser_platform :: :"browser.platform" def browser_platform do :"browser.platform" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec browser_user_agent :: :"browser.user_agent" def browser_user_agent do :"browser.user_agent" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloud_provider :: :"cloud.provider" def cloud_provider do :"cloud.provider" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloud_account_id :: :"cloud.account.id" def cloud_account_id do :"cloud.account.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloud_region :: :"cloud.region" def cloud_region do :"cloud.region" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloud_availability_zone :: :"cloud.availability_zone" def cloud_availability_zone do :"cloud.availability_zone" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloud_platform :: :"cloud.platform" def cloud_platform do :"cloud.platform" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_ecs_container_arn :: :"aws.ecs.container.arn" def aws_ecs_container_arn do :"aws.ecs.container.arn" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_ecs_cluster_arn :: :"aws.ecs.cluster.arn" def aws_ecs_cluster_arn do :"aws.ecs.cluster.arn" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_ecs_launchtype :: :"aws.ecs.launchtype" def aws_ecs_launchtype do :"aws.ecs.launchtype" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_ecs_task_arn :: :"aws.ecs.task.arn" def aws_ecs_task_arn do :"aws.ecs.task.arn" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_ecs_task_family :: :"aws.ecs.task.family" def aws_ecs_task_family do :"aws.ecs.task.family" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_ecs_task_revision :: :"aws.ecs.task.revision" def aws_ecs_task_revision do :"aws.ecs.task.revision" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_eks_cluster_arn :: :"aws.eks.cluster.arn" def aws_eks_cluster_arn do :"aws.eks.cluster.arn" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_log_group_names :: :"aws.log.group.names" def aws_log_group_names do :"aws.log.group.names" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_log_group_arns :: :"aws.log.group.arns" def aws_log_group_arns do :"aws.log.group.arns" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_log_stream_names :: :"aws.log.stream.names" def aws_log_stream_names do :"aws.log.stream.names" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_log_stream_arns :: :"aws.log.stream.arns" def aws_log_stream_arns do :"aws.log.stream.arns" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec container_name :: :"container.name" def container_name do :"container.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec container_id :: :"container.id" def container_id do :"container.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec container_runtime :: :"container.runtime" def container_runtime do :"container.runtime" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec container_image_name :: :"container.image.name" def container_image_name do :"container.image.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec container_image_tag :: :"container.image.tag" def container_image_tag do :"container.image.tag" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec deployment_environment :: :"deployment.environment" def deployment_environment do :"deployment.environment" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec device_id :: :"device.id" def device_id do :"device.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec device_model_identifier :: :"device.model.identifier" def device_model_identifier do :"device.model.identifier" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec device_model_name :: :"device.model.name" def device_model_name do :"device.model.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec device_manufacturer :: :"device.manufacturer" def device_manufacturer do :"device.manufacturer" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_name :: :"faas.name" def faas_name do :"faas.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_id :: :"faas.id" def faas_id do :"faas.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_version :: :"faas.version" def faas_version do :"faas.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_instance :: :"faas.instance" def faas_instance do :"faas.instance" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_max_memory :: :"faas.max_memory" def faas_max_memory do :"faas.max_memory" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_id :: :"host.id" def host_id do :"host.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_name :: :"host.name" def host_name do :"host.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_type :: :"host.type" def host_type do :"host.type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_arch :: :"host.arch" def host_arch do :"host.arch" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_image_name :: :"host.image.name" def host_image_name do :"host.image.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_image_id :: :"host.image.id" def host_image_id do :"host.image.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec host_image_version :: :"host.image.version" def host_image_version do :"host.image.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_cluster_name :: :"k8s.cluster.name" def k8s_cluster_name do :"k8s.cluster.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_node_name :: :"k8s.node.name" def k8s_node_name do :"k8s.node.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_node_uid :: :"k8s.node.uid" def k8s_node_uid do :"k8s.node.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_namespace_name :: :"k8s.namespace.name" def k8s_namespace_name do :"k8s.namespace.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_pod_uid :: :"k8s.pod.uid" def k8s_pod_uid do :"k8s.pod.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_pod_name :: :"k8s.pod.name" def k8s_pod_name do :"k8s.pod.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_container_name :: :"k8s.container.name" def k8s_container_name do :"k8s.container.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_container_restart_count :: :"k8s.container.restart_count" def k8s_container_restart_count do :"k8s.container.restart_count" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_replicaset_uid :: :"k8s.replicaset.uid" def k8s_replicaset_uid do :"k8s.replicaset.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_replicaset_name :: :"k8s.replicaset.name" def k8s_replicaset_name do :"k8s.replicaset.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_deployment_uid :: :"k8s.deployment.uid" def k8s_deployment_uid do :"k8s.deployment.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_deployment_name :: :"k8s.deployment.name" def k8s_deployment_name do :"k8s.deployment.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_statefulset_uid :: :"k8s.statefulset.uid" def k8s_statefulset_uid do :"k8s.statefulset.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_statefulset_name :: :"k8s.statefulset.name" def k8s_statefulset_name do :"k8s.statefulset.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_daemonset_uid :: :"k8s.daemonset.uid" def k8s_daemonset_uid do :"k8s.daemonset.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_daemonset_name :: :"k8s.daemonset.name" def k8s_daemonset_name do :"k8s.daemonset.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_job_uid :: :"k8s.job.uid" def k8s_job_uid do :"k8s.job.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_job_name :: :"k8s.job.name" def k8s_job_name do :"k8s.job.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_cronjob_uid :: :"k8s.cronjob.uid" def k8s_cronjob_uid do :"k8s.cronjob.uid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec k8s_cronjob_name :: :"k8s.cronjob.name" def k8s_cronjob_name do :"k8s.cronjob.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec os_type :: :"os.type" def os_type do :"os.type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec os_description :: :"os.description" def os_description do :"os.description" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec os_name :: :"os.name" def os_name do :"os.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec os_version :: :"os.version" def os_version do :"os.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_pid :: :"process.pid" def process_pid do :"process.pid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_parent_pid :: :"process.parent_pid" def process_parent_pid do :"process.parent_pid" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_executable_name :: :"process.executable.name" def process_executable_name do :"process.executable.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_executable_path :: :"process.executable.path" def process_executable_path do :"process.executable.path" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_command :: :"process.command" def process_command do :"process.command" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_command_line :: :"process.command_line" def process_command_line do :"process.command_line" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_command_args :: :"process.command_args" def process_command_args do :"process.command_args" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_owner :: :"process.owner" def process_owner do :"process.owner" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_runtime_name :: :"process.runtime.name" def process_runtime_name do :"process.runtime.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_runtime_version :: :"process.runtime.version" def process_runtime_version do :"process.runtime.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec process_runtime_description :: :"process.runtime.description" def process_runtime_description do :"process.runtime.description" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec service_name :: :"service.name" def service_name do :"service.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec service_namespace :: :"service.namespace" def service_namespace do :"service.namespace" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec service_instance_id :: :"service.instance.id" def service_instance_id do :"service.instance.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec service_version :: :"service.version" def service_version do :"service.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec telemetry_sdk_name :: :"telemetry.sdk.name" def telemetry_sdk_name do :"telemetry.sdk.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec telemetry_sdk_language :: :"telemetry.sdk.language" def telemetry_sdk_language do :"telemetry.sdk.language" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec telemetry_sdk_version :: :"telemetry.sdk.version" def telemetry_sdk_version do :"telemetry.sdk.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec telemetry_auto_version :: :"telemetry.auto.version" def telemetry_auto_version do :"telemetry.auto.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec webengine_name :: :"webengine.name" def webengine_name do :"webengine.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec webengine_version :: :"webengine.version" def webengine_version do :"webengine.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec webengine_description :: :"webengine.description" def webengine_description do :"webengine.description" diff --git a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex index 0df7a486..e2542108 100644 --- a/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex +++ b/apps/opentelemetry_semantic_conventions/lib/open_telemetry/semantic_conventions/trace.ex @@ -1,882 +1,882 @@ defmodule OpenTelemetry.SemanticConventions.Trace do @moduledoc """ WARNING: This module is deprecated and will be removed in a future release. - Migrate to >= v1.26.0 semantic conventions. + Migrate to >= v1.27.0 semantic conventions. """ - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec trace_schema_url :: String.t() def trace_schema_url do "https://opentelemetry.io/schemas/1.13.0" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_lambda_invoked_arn :: :"aws.lambda.invoked_arn" def aws_lambda_invoked_arn do :"aws.lambda.invoked_arn" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloudevents_event_id :: :"cloudevents.event_id" def cloudevents_event_id do :"cloudevents.event_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloudevents_event_source :: :"cloudevents.event_source" def cloudevents_event_source do :"cloudevents.event_source" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloudevents_event_spec_version :: :"cloudevents.event_spec_version" def cloudevents_event_spec_version do :"cloudevents.event_spec_version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloudevents_event_type :: :"cloudevents.event_type" def cloudevents_event_type do :"cloudevents.event_type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec cloudevents_event_subject :: :"cloudevents.event_subject" def cloudevents_event_subject do :"cloudevents.event_subject" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec opentracing_ref_type :: :"opentracing.ref_type" def opentracing_ref_type do :"opentracing.ref_type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_system :: :"db.system" def db_system do :"db.system" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_connection_string :: :"db.connection_string" def db_connection_string do :"db.connection_string" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_user :: :"db.user" def db_user do :"db.user" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_jdbc_driver_classname :: :"db.jdbc.driver_classname" def db_jdbc_driver_classname do :"db.jdbc.driver_classname" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_name :: :"db.name" def db_name do :"db.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_statement :: :"db.statement" def db_statement do :"db.statement" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_operation :: :"db.operation" def db_operation do :"db.operation" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_peer_name :: :"net.peer.name" def net_peer_name do :"net.peer.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_peer_port :: :"net.peer.port" def net_peer_port do :"net.peer.port" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_sock_peer_addr :: :"net.sock.peer.addr" def net_sock_peer_addr do :"net.sock.peer.addr" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_sock_peer_port :: :"net.sock.peer.port" def net_sock_peer_port do :"net.sock.peer.port" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_sock_family :: :"net.sock.family" def net_sock_family do :"net.sock.family" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_sock_peer_name :: :"net.sock.peer.name" def net_sock_peer_name do :"net.sock.peer.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_transport :: :"net.transport" def net_transport do :"net.transport" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_mssql_instance_name :: :"db.mssql.instance_name" def db_mssql_instance_name do :"db.mssql.instance_name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_page_size :: :"db.cassandra.page_size" def db_cassandra_page_size do :"db.cassandra.page_size" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_consistency_level :: :"db.cassandra.consistency_level" def db_cassandra_consistency_level do :"db.cassandra.consistency_level" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_table :: :"db.cassandra.table" def db_cassandra_table do :"db.cassandra.table" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_idempotence :: :"db.cassandra.idempotence" def db_cassandra_idempotence do :"db.cassandra.idempotence" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_speculative_execution_count :: :"db.cassandra.speculative_execution_count" def db_cassandra_speculative_execution_count do :"db.cassandra.speculative_execution_count" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_coordinator_id :: :"db.cassandra.coordinator.id" def db_cassandra_coordinator_id do :"db.cassandra.coordinator.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_cassandra_coordinator_dc :: :"db.cassandra.coordinator.dc" def db_cassandra_coordinator_dc do :"db.cassandra.coordinator.dc" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_redis_database_index :: :"db.redis.database_index" def db_redis_database_index do :"db.redis.database_index" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_mongodb_collection :: :"db.mongodb.collection" def db_mongodb_collection do :"db.mongodb.collection" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec db_sql_table :: :"db.sql.table" def db_sql_table do :"db.sql.table" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec exception_type :: :"exception.type" def exception_type do :"exception.type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec exception_message :: :"exception.message" def exception_message do :"exception.message" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec exception_stacktrace :: :"exception.stacktrace" def exception_stacktrace do :"exception.stacktrace" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec exception_escaped :: :"exception.escaped" def exception_escaped do :"exception.escaped" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_trigger :: :"faas.trigger" def faas_trigger do :"faas.trigger" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_execution :: :"faas.execution" def faas_execution do :"faas.execution" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_document_collection :: :"faas.document.collection" def faas_document_collection do :"faas.document.collection" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_document_operation :: :"faas.document.operation" def faas_document_operation do :"faas.document.operation" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_document_time :: :"faas.document.time" def faas_document_time do :"faas.document.time" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_document_name :: :"faas.document.name" def faas_document_name do :"faas.document.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_method :: :"http.method" def http_method do :"http.method" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_status_code :: :"http.status_code" def http_status_code do :"http.status_code" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_flavor :: :"http.flavor" def http_flavor do :"http.flavor" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_user_agent :: :"http.user_agent" def http_user_agent do :"http.user_agent" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_request_content_length :: :"http.request_content_length" def http_request_content_length do :"http.request_content_length" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_response_content_length :: :"http.response_content_length" def http_response_content_length do :"http.response_content_length" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_scheme :: :"http.scheme" def http_scheme do :"http.scheme" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_target :: :"http.target" def http_target do :"http.target" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_route :: :"http.route" def http_route do :"http.route" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_client_ip :: :"http.client_ip" def http_client_ip do :"http.client_ip" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_name :: :"net.host.name" def net_host_name do :"net.host.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_port :: :"net.host.port" def net_host_port do :"net.host.port" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_sock_host_addr :: :"net.sock.host.addr" def net_sock_host_addr do :"net.sock.host.addr" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_sock_host_port :: :"net.sock.host.port" def net_sock_host_port do :"net.sock.host.port" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_app_protocol_name :: :"net.app.protocol.name" def net_app_protocol_name do :"net.app.protocol.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_app_protocol_version :: :"net.app.protocol.version" def net_app_protocol_version do :"net.app.protocol.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_connection_type :: :"net.host.connection.type" def net_host_connection_type do :"net.host.connection.type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_connection_subtype :: :"net.host.connection.subtype" def net_host_connection_subtype do :"net.host.connection.subtype" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_carrier_name :: :"net.host.carrier.name" def net_host_carrier_name do :"net.host.carrier.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_carrier_mcc :: :"net.host.carrier.mcc" def net_host_carrier_mcc do :"net.host.carrier.mcc" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_carrier_mnc :: :"net.host.carrier.mnc" def net_host_carrier_mnc do :"net.host.carrier.mnc" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec net_host_carrier_icc :: :"net.host.carrier.icc" def net_host_carrier_icc do :"net.host.carrier.icc" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_system :: :"messaging.system" def messaging_system do :"messaging.system" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_destination :: :"messaging.destination" def messaging_destination do :"messaging.destination" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_destination_kind :: :"messaging.destination_kind" def messaging_destination_kind do :"messaging.destination_kind" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_temp_destination :: :"messaging.temp_destination" def messaging_temp_destination do :"messaging.temp_destination" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_protocol :: :"messaging.protocol" def messaging_protocol do :"messaging.protocol" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_protocol_version :: :"messaging.protocol_version" def messaging_protocol_version do :"messaging.protocol_version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_url :: :"messaging.url" def messaging_url do :"messaging.url" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_message_id :: :"messaging.message_id" def messaging_message_id do :"messaging.message_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_conversation_id :: :"messaging.conversation_id" def messaging_conversation_id do :"messaging.conversation_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_message_payload_size_bytes :: :"messaging.message_payload_size_bytes" def messaging_message_payload_size_bytes do :"messaging.message_payload_size_bytes" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_message_payload_compressed_size_bytes :: :"messaging.message_payload_compressed_size_bytes" def messaging_message_payload_compressed_size_bytes do :"messaging.message_payload_compressed_size_bytes" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_time :: :"faas.time" def faas_time do :"faas.time" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_cron :: :"faas.cron" def faas_cron do :"faas.cron" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_coldstart :: :"faas.coldstart" def faas_coldstart do :"faas.coldstart" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_invoked_name :: :"faas.invoked_name" def faas_invoked_name do :"faas.invoked_name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_invoked_provider :: :"faas.invoked_provider" def faas_invoked_provider do :"faas.invoked_provider" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec faas_invoked_region :: :"faas.invoked_region" def faas_invoked_region do :"faas.invoked_region" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec peer_service :: :"peer.service" def peer_service do :"peer.service" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec enduser_id :: :"enduser.id" def enduser_id do :"enduser.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec enduser_role :: :"enduser.role" def enduser_role do :"enduser.role" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec enduser_scope :: :"enduser.scope" def enduser_scope do :"enduser.scope" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec thread_id :: :"thread.id" def thread_id do :"thread.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec thread_name :: :"thread.name" def thread_name do :"thread.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec code_function :: :"code.function" def code_function do :"code.function" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec code_namespace :: :"code.namespace" def code_namespace do :"code.namespace" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec code_filepath :: :"code.filepath" def code_filepath do :"code.filepath" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec code_lineno :: :"code.lineno" def code_lineno do :"code.lineno" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_url :: :"http.url" def http_url do :"http.url" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec http_retry_count :: :"http.retry_count" def http_retry_count do :"http.retry_count" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_system :: :"rpc.system" def rpc_system do :"rpc.system" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_service :: :"rpc.service" def rpc_service do :"rpc.service" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_method :: :"rpc.method" def rpc_method do :"rpc.method" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_table_names :: :"aws.dynamodb.table_names" def aws_dynamodb_table_names do :"aws.dynamodb.table_names" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_consumed_capacity :: :"aws.dynamodb.consumed_capacity" def aws_dynamodb_consumed_capacity do :"aws.dynamodb.consumed_capacity" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_item_collection_metrics :: :"aws.dynamodb.item_collection_metrics" def aws_dynamodb_item_collection_metrics do :"aws.dynamodb.item_collection_metrics" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_provisioned_read_capacity :: :"aws.dynamodb.provisioned_read_capacity" def aws_dynamodb_provisioned_read_capacity do :"aws.dynamodb.provisioned_read_capacity" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_provisioned_write_capacity :: :"aws.dynamodb.provisioned_write_capacity" def aws_dynamodb_provisioned_write_capacity do :"aws.dynamodb.provisioned_write_capacity" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_consistent_read :: :"aws.dynamodb.consistent_read" def aws_dynamodb_consistent_read do :"aws.dynamodb.consistent_read" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_projection :: :"aws.dynamodb.projection" def aws_dynamodb_projection do :"aws.dynamodb.projection" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_limit :: :"aws.dynamodb.limit" def aws_dynamodb_limit do :"aws.dynamodb.limit" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_attributes_to_get :: :"aws.dynamodb.attributes_to_get" def aws_dynamodb_attributes_to_get do :"aws.dynamodb.attributes_to_get" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_index_name :: :"aws.dynamodb.index_name" def aws_dynamodb_index_name do :"aws.dynamodb.index_name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_select :: :"aws.dynamodb.select" def aws_dynamodb_select do :"aws.dynamodb.select" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_global_secondary_indexes :: :"aws.dynamodb.global_secondary_indexes" def aws_dynamodb_global_secondary_indexes do :"aws.dynamodb.global_secondary_indexes" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_local_secondary_indexes :: :"aws.dynamodb.local_secondary_indexes" def aws_dynamodb_local_secondary_indexes do :"aws.dynamodb.local_secondary_indexes" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_exclusive_start_table :: :"aws.dynamodb.exclusive_start_table" def aws_dynamodb_exclusive_start_table do :"aws.dynamodb.exclusive_start_table" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_table_count :: :"aws.dynamodb.table_count" def aws_dynamodb_table_count do :"aws.dynamodb.table_count" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_scan_forward :: :"aws.dynamodb.scan_forward" def aws_dynamodb_scan_forward do :"aws.dynamodb.scan_forward" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_segment :: :"aws.dynamodb.segment" def aws_dynamodb_segment do :"aws.dynamodb.segment" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_total_segments :: :"aws.dynamodb.total_segments" def aws_dynamodb_total_segments do :"aws.dynamodb.total_segments" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_count :: :"aws.dynamodb.count" def aws_dynamodb_count do :"aws.dynamodb.count" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_scanned_count :: :"aws.dynamodb.scanned_count" def aws_dynamodb_scanned_count do :"aws.dynamodb.scanned_count" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_attribute_definitions :: :"aws.dynamodb.attribute_definitions" def aws_dynamodb_attribute_definitions do :"aws.dynamodb.attribute_definitions" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec aws_dynamodb_global_secondary_index_updates :: :"aws.dynamodb.global_secondary_index_updates" def aws_dynamodb_global_secondary_index_updates do :"aws.dynamodb.global_secondary_index_updates" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec graphql_operation_name :: :"graphql.operation.name" def graphql_operation_name do :"graphql.operation.name" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec graphql_operation_type :: :"graphql.operation.type" def graphql_operation_type do :"graphql.operation.type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec graphql_document :: :"graphql.document" def graphql_document do :"graphql.document" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_operation :: :"messaging.operation" def messaging_operation do :"messaging.operation" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_consumer_id :: :"messaging.consumer_id" def messaging_consumer_id do :"messaging.consumer_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rabbitmq_routing_key :: :"messaging.rabbitmq.routing_key" def messaging_rabbitmq_routing_key do :"messaging.rabbitmq.routing_key" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_kafka_message_key :: :"messaging.kafka.message_key" def messaging_kafka_message_key do :"messaging.kafka.message_key" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_kafka_consumer_group :: :"messaging.kafka.consumer_group" def messaging_kafka_consumer_group do :"messaging.kafka.consumer_group" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_kafka_client_id :: :"messaging.kafka.client_id" def messaging_kafka_client_id do :"messaging.kafka.client_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_kafka_partition :: :"messaging.kafka.partition" def messaging_kafka_partition do :"messaging.kafka.partition" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_kafka_tombstone :: :"messaging.kafka.tombstone" def messaging_kafka_tombstone do :"messaging.kafka.tombstone" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_namespace :: :"messaging.rocketmq.namespace" def messaging_rocketmq_namespace do :"messaging.rocketmq.namespace" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_client_group :: :"messaging.rocketmq.client_group" def messaging_rocketmq_client_group do :"messaging.rocketmq.client_group" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_client_id :: :"messaging.rocketmq.client_id" def messaging_rocketmq_client_id do :"messaging.rocketmq.client_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_message_type :: :"messaging.rocketmq.message_type" def messaging_rocketmq_message_type do :"messaging.rocketmq.message_type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_message_tag :: :"messaging.rocketmq.message_tag" def messaging_rocketmq_message_tag do :"messaging.rocketmq.message_tag" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_message_keys :: :"messaging.rocketmq.message_keys" def messaging_rocketmq_message_keys do :"messaging.rocketmq.message_keys" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec messaging_rocketmq_consumption_model :: :"messaging.rocketmq.consumption_model" def messaging_rocketmq_consumption_model do :"messaging.rocketmq.consumption_model" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_grpc_status_code :: :"rpc.grpc.status_code" def rpc_grpc_status_code do :"rpc.grpc.status_code" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_jsonrpc_version :: :"rpc.jsonrpc.version" def rpc_jsonrpc_version do :"rpc.jsonrpc.version" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_jsonrpc_request_id :: :"rpc.jsonrpc.request_id" def rpc_jsonrpc_request_id do :"rpc.jsonrpc.request_id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_jsonrpc_error_code :: :"rpc.jsonrpc.error_code" def rpc_jsonrpc_error_code do :"rpc.jsonrpc.error_code" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec rpc_jsonrpc_error_message :: :"rpc.jsonrpc.error_message" def rpc_jsonrpc_error_message do :"rpc.jsonrpc.error_message" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec message_type :: :"message.type" def message_type do :"message.type" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec message_id :: :"message.id" def message_id do :"message.id" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec message_compressed_size :: :"message.compressed_size" def message_compressed_size do :"message.compressed_size" end - @deprecated "Upgrade to >= v1.26.0 semantic conventions" + @deprecated "Upgrade to >= v1.27.0 semantic conventions" @spec message_uncompressed_size :: :"message.uncompressed_size" def message_uncompressed_size do :"message.uncompressed_size" diff --git a/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex b/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex index dbe6e128..16b1e0b7 100644 --- a/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex +++ b/apps/opentelemetry_semantic_conventions/lib/schema_urls.ex @@ -1,4 +1,3 @@ defmodule OpenTelemetry.SemConv.Schemas do - def v1_26_0, do: "https://opentelemetry.io/schemas/1.26.0" def v1_27_0, do: "https://opentelemetry.io/schemas/1.27.0" end diff --git a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src index 8075b3f9..58a5779b 100644 --- a/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src +++ b/apps/opentelemetry_semantic_conventions/src/opentelemetry_semantic_conventions.app.src @@ -1,6 +1,6 @@ {application, opentelemetry_semantic_conventions, [{description, "Macros defining the keys of OpenTelemetry semantic conventions"}, - {vsn, "1.26.0"}, + {vsn, "1.27.0"}, {registered, []}, {applications, [kernel, From 69b41af3c07d935407fed948fa145d2dbb484db4 Mon Sep 17 00:00:00 2001 From: Bryan Naegele Date: Mon, 16 Sep 2024 10:43:34 -0600 Subject: [PATCH 57/57] Remove non-lang excludes and clean up doc guides --- .../attributes/artifact_attributes.hrl | 49 + .../incubating/attributes/cicd_attributes.hrl | 51 ++ .../incubating/attributes/cpu_attributes.hrl | 35 + .../attributes/device_attributes.hrl | 34 + .../incubating/attributes/disk_attributes.hrl | 23 + .../attributes/linux_attributes.hrl | 23 + .../attributes/system_attributes.hrl | 175 ++++ .../incubating/attributes/test_attributes.hrl | 52 ++ .../incubating/attributes/vcs_attributes.hrl | 49 + .../incubating/metrics/system_metrics.hrl | 130 +++ .../attributes/android_attributes.ex | 107 +++ .../attributes/artifact_attributes.ex | 255 ++++++ .../incubating/attributes/cicd_attributes.ex | 237 +++++ .../incubating/attributes/cpu_attributes.ex | 85 ++ .../attributes/device_attributes.ex | 154 ++++ .../incubating/attributes/disk_attributes.ex | 67 ++ .../incubating/attributes/linux_attributes.ex | 67 ++ .../attributes/system_attributes.ex | 759 ++++++++++++++++ .../incubating/attributes/test_attributes.ex | 210 +++++ .../incubating/attributes/vcs_attributes.ex | 246 +++++ .../lib/incubating/metrics/system_metrics.ex | 848 ++++++++++++++++++ .../makefile | 2 + .../templates/registry/elixir/weaver.yaml | 2 +- .../templates/registry/erlang/weaver.yaml | 2 +- 24 files changed, 3660 insertions(+), 2 deletions(-) create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/artifact_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/cicd_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/linux_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/test_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/attributes/vcs_attributes.hrl create mode 100644 apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/android_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/artifact_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cicd_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cpu_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/linux_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/test_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/attributes/vcs_attributes.ex create mode 100644 apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/artifact_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/artifact_attributes.hrl new file mode 100644 index 00000000..ca4cc4d1 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/artifact_attributes.hrl @@ -0,0 +1,49 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The provenance filename of the built attestation which directly relates to the build artifact filename. This filename SHOULD accompany the artifact at publish time. See the [SLSA Relationship](https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations) specification for more information. +%% +-define(ARTIFACT_ATTESTATION_FILENAME, 'artifact.attestation.filename'). + + +%% The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest](https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec). +%% +-define(ARTIFACT_ATTESTATION_HASH, 'artifact.attestation.hash'). + + +%% The id of the build [software attestation](https://slsa.dev/attestation-model). +%% +-define(ARTIFACT_ATTESTATION_ID, 'artifact.attestation.id'). + + +%% The human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. +%% +-define(ARTIFACT_FILENAME, 'artifact.filename'). + + +%% The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), often found in checksum.txt on a release of the artifact and used to verify package integrity. +%% +-define(ARTIFACT_HASH, 'artifact.hash'). + + +%% The [Package URL](https://github.com/package-url/purl-spec) of the [package artifact](https://slsa.dev/spec/v1.0/terminology#package-model) provides a standard way to identify and locate the packaged artifact. +%% +-define(ARTIFACT_PURL, 'artifact.purl'). + + +%% The version of the artifact. +%% +-define(ARTIFACT_VERSION, 'artifact.version'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cicd_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cicd_attributes.hrl new file mode 100644 index 00000000..76a45ed4 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cicd_attributes.hrl @@ -0,0 +1,51 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The human readable name of the pipeline within a CI/CD system. +%% +-define(CICD_PIPELINE_NAME, 'cicd.pipeline.name'). + + +%% The unique identifier of a pipeline run within a CI/CD system. +%% +-define(CICD_PIPELINE_RUN_ID, 'cicd.pipeline.run.id'). + + +%% The human readable name of a task within a pipeline. Task here most closely aligns with a [computing process](https://en.wikipedia.org/wiki/Pipeline_(computing)) in a pipeline. Other terms for tasks include commands, steps, and procedures. +%% +-define(CICD_PIPELINE_TASK_NAME, 'cicd.pipeline.task.name'). + + +%% The unique identifier of a task run within a pipeline. +%% +-define(CICD_PIPELINE_TASK_RUN_ID, 'cicd.pipeline.task.run.id'). + + +%% The [URL](https://en.wikipedia.org/wiki/URL) of the pipeline run providing the complete address in order to locate and identify the pipeline run. +%% +-define(CICD_PIPELINE_TASK_RUN_URL_FULL, 'cicd.pipeline.task.run.url.full'). + + +%% The type of the task within a pipeline. +%% +-define(CICD_PIPELINE_TASK_TYPE, 'cicd.pipeline.task.type'). + +-define(CICD_PIPELINE_TASK_TYPE_VALUES_BUILD, 'build'). + +-define(CICD_PIPELINE_TASK_TYPE_VALUES_TEST, 'test'). + +-define(CICD_PIPELINE_TASK_TYPE_VALUES_DEPLOY, 'deploy'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl new file mode 100644 index 00000000..9ed41c80 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/cpu_attributes.hrl @@ -0,0 +1,35 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The mode of the CPU +-define(CPU_MODE, 'cpu.mode'). + +-define(CPU_MODE_VALUES_USER, 'user'). + +-define(CPU_MODE_VALUES_SYSTEM, 'system'). + +-define(CPU_MODE_VALUES_NICE, 'nice'). + +-define(CPU_MODE_VALUES_IDLE, 'idle'). + +-define(CPU_MODE_VALUES_IOWAIT, 'iowait'). + +-define(CPU_MODE_VALUES_INTERRUPT, 'interrupt'). + +-define(CPU_MODE_VALUES_STEAL, 'steal'). + +-define(CPU_MODE_VALUES_KERNEL, 'kernel'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl new file mode 100644 index 00000000..8b75ec21 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/device_attributes.hrl @@ -0,0 +1,34 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% A unique identifier representing the device +%% +-define(DEVICE_ID, 'device.id'). + + +%% The name of the device manufacturer +%% +-define(DEVICE_MANUFACTURER, 'device.manufacturer'). + + +%% The model identifier for the device +%% +-define(DEVICE_MODEL_IDENTIFIER, 'device.model.identifier'). + + +%% The marketing name for the device model +%% +-define(DEVICE_MODEL_NAME, 'device.model.name'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl new file mode 100644 index 00000000..7d6d8d96 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/disk_attributes.hrl @@ -0,0 +1,23 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The disk IO operation direction. +-define(DISK_IO_DIRECTION, 'disk.io.direction'). + +-define(DISK_IO_DIRECTION_VALUES_READ, 'read'). + +-define(DISK_IO_DIRECTION_VALUES_WRITE, 'write'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/linux_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/linux_attributes.hrl new file mode 100644 index 00000000..ca82508e --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/linux_attributes.hrl @@ -0,0 +1,23 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The Linux Slab memory state +-define(LINUX_MEMORY_SLAB_STATE, 'linux.memory.slab.state'). + +-define(LINUX_MEMORY_SLAB_STATE_VALUES_RECLAIMABLE, 'reclaimable'). + +-define(LINUX_MEMORY_SLAB_STATE_VALUES_UNRECLAIMABLE, 'unreclaimable'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl new file mode 100644 index 00000000..0b874cc0 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/system_attributes.hrl @@ -0,0 +1,175 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The logical CPU number [0..n-1] +-define(SYSTEM_CPU_LOGICAL_NUMBER, 'system.cpu.logical_number'). + +%% @deprecated Replaced by `cpu.mode` +%% Deprecated, use `cpu.mode` instead. +-define(SYSTEM_CPU_STATE, 'system.cpu.state'). + +-define(SYSTEM_CPU_STATE_VALUES_USER, 'user'). + +-define(SYSTEM_CPU_STATE_VALUES_SYSTEM, 'system'). + +-define(SYSTEM_CPU_STATE_VALUES_NICE, 'nice'). + +-define(SYSTEM_CPU_STATE_VALUES_IDLE, 'idle'). + +-define(SYSTEM_CPU_STATE_VALUES_IOWAIT, 'iowait'). + +-define(SYSTEM_CPU_STATE_VALUES_INTERRUPT, 'interrupt'). + +-define(SYSTEM_CPU_STATE_VALUES_STEAL, 'steal'). + + + +%% The device identifier +-define(SYSTEM_DEVICE, 'system.device'). + + +%% The filesystem mode +-define(SYSTEM_FILESYSTEM_MODE, 'system.filesystem.mode'). + + +%% The filesystem mount path +-define(SYSTEM_FILESYSTEM_MOUNTPOINT, 'system.filesystem.mountpoint'). + + +%% The filesystem state +-define(SYSTEM_FILESYSTEM_STATE, 'system.filesystem.state'). + +-define(SYSTEM_FILESYSTEM_STATE_VALUES_USED, 'used'). + +-define(SYSTEM_FILESYSTEM_STATE_VALUES_FREE, 'free'). + +-define(SYSTEM_FILESYSTEM_STATE_VALUES_RESERVED, 'reserved'). + + + +%% The filesystem type +-define(SYSTEM_FILESYSTEM_TYPE, 'system.filesystem.type'). + +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32, 'fat32'). + +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXFAT, 'exfat'). + +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_NTFS, 'ntfs'). + +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_REFS, 'refs'). + +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_HFSPLUS, 'hfsplus'). + +-define(SYSTEM_FILESYSTEM_TYPE_VALUES_EXT4, 'ext4'). + + + +%% The memory state +-define(SYSTEM_MEMORY_STATE, 'system.memory.state'). + +-define(SYSTEM_MEMORY_STATE_VALUES_USED, 'used'). + +-define(SYSTEM_MEMORY_STATE_VALUES_FREE, 'free'). + +-define(SYSTEM_MEMORY_STATE_VALUES_SHARED, 'shared'). + +-define(SYSTEM_MEMORY_STATE_VALUES_BUFFERS, 'buffers'). + +-define(SYSTEM_MEMORY_STATE_VALUES_CACHED, 'cached'). + + + +%% A stateless protocol MUST NOT set this attribute +-define(SYSTEM_NETWORK_STATE, 'system.network.state'). + +-define(SYSTEM_NETWORK_STATE_VALUES_CLOSE, 'close'). + +-define(SYSTEM_NETWORK_STATE_VALUES_CLOSE_WAIT, 'close_wait'). + +-define(SYSTEM_NETWORK_STATE_VALUES_CLOSING, 'closing'). + +-define(SYSTEM_NETWORK_STATE_VALUES_DELETE, 'delete'). + +-define(SYSTEM_NETWORK_STATE_VALUES_ESTABLISHED, 'established'). + +-define(SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_1, 'fin_wait_1'). + +-define(SYSTEM_NETWORK_STATE_VALUES_FIN_WAIT_2, 'fin_wait_2'). + +-define(SYSTEM_NETWORK_STATE_VALUES_LAST_ACK, 'last_ack'). + +-define(SYSTEM_NETWORK_STATE_VALUES_LISTEN, 'listen'). + +-define(SYSTEM_NETWORK_STATE_VALUES_SYN_RECV, 'syn_recv'). + +-define(SYSTEM_NETWORK_STATE_VALUES_SYN_SENT, 'syn_sent'). + +-define(SYSTEM_NETWORK_STATE_VALUES_TIME_WAIT, 'time_wait'). + + + +%% The paging access direction +-define(SYSTEM_PAGING_DIRECTION, 'system.paging.direction'). + +-define(SYSTEM_PAGING_DIRECTION_VALUES_IN, 'in'). + +-define(SYSTEM_PAGING_DIRECTION_VALUES_OUT, 'out'). + + + +%% The memory paging state +-define(SYSTEM_PAGING_STATE, 'system.paging.state'). + +-define(SYSTEM_PAGING_STATE_VALUES_USED, 'used'). + +-define(SYSTEM_PAGING_STATE_VALUES_FREE, 'free'). + + + +%% The memory paging type +-define(SYSTEM_PAGING_TYPE, 'system.paging.type'). + +-define(SYSTEM_PAGING_TYPE_VALUES_MAJOR, 'major'). + +-define(SYSTEM_PAGING_TYPE_VALUES_MINOR, 'minor'). + + + +%% The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) +%% +-define(SYSTEM_PROCESS_STATUS, 'system.process.status'). + +-define(SYSTEM_PROCESS_STATUS_VALUES_RUNNING, 'running'). + +-define(SYSTEM_PROCESS_STATUS_VALUES_SLEEPING, 'sleeping'). + +-define(SYSTEM_PROCESS_STATUS_VALUES_STOPPED, 'stopped'). + +-define(SYSTEM_PROCESS_STATUS_VALUES_DEFUNCT, 'defunct'). + + +%% @deprecated Replaced by `system.process.status`. +%% Deprecated, use `system.process.status` instead. +-define(SYSTEM_PROCESSES_STATUS, 'system.processes.status'). + +-define(SYSTEM_PROCESSES_STATUS_VALUES_RUNNING, 'running'). + +-define(SYSTEM_PROCESSES_STATUS_VALUES_SLEEPING, 'sleeping'). + +-define(SYSTEM_PROCESSES_STATUS_VALUES_STOPPED, 'stopped'). + +-define(SYSTEM_PROCESSES_STATUS_VALUES_DEFUNCT, 'defunct'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/test_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/test_attributes.hrl new file mode 100644 index 00000000..4b308f77 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/test_attributes.hrl @@ -0,0 +1,52 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The fully qualified human readable name of the [test case](https://en.wikipedia.org/wiki/Test_case). +%% +-define(TEST_CASE_NAME, 'test.case.name'). + + +%% The status of the actual test case result from test execution. +%% +-define(TEST_CASE_RESULT_STATUS, 'test.case.result.status'). + +-define(TEST_CASE_RESULT_STATUS_VALUES_PASS, 'pass'). + +-define(TEST_CASE_RESULT_STATUS_VALUES_FAIL, 'fail'). + + + +%% The human readable name of a [test suite](https://en.wikipedia.org/wiki/Test_suite). +%% +-define(TEST_SUITE_NAME, 'test.suite.name'). + + +%% The status of the test suite run. +%% +-define(TEST_SUITE_RUN_STATUS, 'test.suite.run.status'). + +-define(TEST_SUITE_RUN_STATUS_VALUES_SUCCESS, 'success'). + +-define(TEST_SUITE_RUN_STATUS_VALUES_FAILURE, 'failure'). + +-define(TEST_SUITE_RUN_STATUS_VALUES_SKIPPED, 'skipped'). + +-define(TEST_SUITE_RUN_STATUS_VALUES_ABORTED, 'aborted'). + +-define(TEST_SUITE_RUN_STATUS_VALUES_TIMED_OUT, 'timed_out'). + +-define(TEST_SUITE_RUN_STATUS_VALUES_IN_PROGRESS, 'in_progress'). + diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/attributes/vcs_attributes.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/vcs_attributes.hrl new file mode 100644 index 00000000..b3a3b83c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/attributes/vcs_attributes.hrl @@ -0,0 +1,49 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% The ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. +%% +-define(VCS_REPOSITORY_CHANGE_ID, 'vcs.repository.change.id'). + + +%% The human readable title of the change (pull request/merge request). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. +%% +-define(VCS_REPOSITORY_CHANGE_TITLE, 'vcs.repository.change.title'). + + +%% The name of the [reference](https://git-scm.com/docs/gitglossary#def_ref) such as **branch** or **tag** in the repository. +%% +-define(VCS_REPOSITORY_REF_NAME, 'vcs.repository.ref.name'). + + +%% The revision, literally [revised version](https://www.merriam-webster.com/dictionary/revision), The revision most often refers to a commit object in Git, or a revision number in SVN. +%% +-define(VCS_REPOSITORY_REF_REVISION, 'vcs.repository.ref.revision'). + + +%% The type of the [reference](https://git-scm.com/docs/gitglossary#def_ref) in the repository. +%% +-define(VCS_REPOSITORY_REF_TYPE, 'vcs.repository.ref.type'). + +-define(VCS_REPOSITORY_REF_TYPE_VALUES_BRANCH, 'branch'). + +-define(VCS_REPOSITORY_REF_TYPE_VALUES_TAG, 'tag'). + + + +%% The [URL](https://en.wikipedia.org/wiki/URL) of the repository providing the complete address in order to locate and identify the repository. +%% +-define(VCS_REPOSITORY_URL_FULL, 'vcs.repository.url.full'). diff --git a/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl new file mode 100644 index 00000000..5e38b8d6 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/include/incubating/metrics/system_metrics.hrl @@ -0,0 +1,130 @@ + +%%%------------------------------------------------------------------------ +%% 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 +%% +%% http://www.apache.org/licenses/LICENSE-2.0 +%% +%% Unless required by applicable law or agreed to in writing, software +%% distributed under the License is distributed on an "AS IS" BASIS, +%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +%% See the License for the specific language governing permissions and +%% limitations under the License. +%%%------------------------------------------------------------------------- + +%% Reports the current frequency of the CPU in Hz +-define(SYSTEM_CPU_FREQUENCY, 'system.cpu.frequency'). + + +%% Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking +-define(SYSTEM_CPU_LOGICAL_COUNT, 'system.cpu.logical.count'). + + +%% Reports the number of actual physical processor cores on the hardware +-define(SYSTEM_CPU_PHYSICAL_COUNT, 'system.cpu.physical.count'). + + +%% Seconds each logical CPU spent on each mode +-define(SYSTEM_CPU_TIME, 'system.cpu.time'). + + +%% Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs +-define(SYSTEM_CPU_UTILIZATION, 'system.cpu.utilization'). + + +%% none +-define(SYSTEM_DISK_IO, 'system.disk.io'). + + +%% Time disk spent activated +-define(SYSTEM_DISK_IO_TIME, 'system.disk.io_time'). + + +%% none +-define(SYSTEM_DISK_MERGED, 'system.disk.merged'). + + +%% Sum of the time each operation took to complete +-define(SYSTEM_DISK_OPERATION_TIME, 'system.disk.operation_time'). + + +%% none +-define(SYSTEM_DISK_OPERATIONS, 'system.disk.operations'). + + +%% none +-define(SYSTEM_FILESYSTEM_USAGE, 'system.filesystem.usage'). + + +%% none +-define(SYSTEM_FILESYSTEM_UTILIZATION, 'system.filesystem.utilization'). + + +%% An estimate of how much memory is available for starting new applications, without causing swapping +-define(SYSTEM_LINUX_MEMORY_AVAILABLE, 'system.linux.memory.available'). + + +%% Reports the memory used by the Linux kernel for managing caches of frequently used objects. +-define(SYSTEM_LINUX_MEMORY_SLAB_USAGE, 'system.linux.memory.slab.usage'). + + +%% Total memory available in the system. +-define(SYSTEM_MEMORY_LIMIT, 'system.memory.limit'). + + +%% Shared memory used (mostly by tmpfs). +-define(SYSTEM_MEMORY_SHARED, 'system.memory.shared'). + + +%% Reports memory in use by state. +-define(SYSTEM_MEMORY_USAGE, 'system.memory.usage'). + + +%% none +-define(SYSTEM_MEMORY_UTILIZATION, 'system.memory.utilization'). + + +%% none +-define(SYSTEM_NETWORK_CONNECTIONS, 'system.network.connections'). + + +%% Count of packets that are dropped or discarded even though there was no error +-define(SYSTEM_NETWORK_DROPPED, 'system.network.dropped'). + + +%% Count of network errors detected +-define(SYSTEM_NETWORK_ERRORS, 'system.network.errors'). + + +%% none +-define(SYSTEM_NETWORK_IO, 'system.network.io'). + + +%% none +-define(SYSTEM_NETWORK_PACKETS, 'system.network.packets'). + + +%% none +-define(SYSTEM_PAGING_FAULTS, 'system.paging.faults'). + + +%% none +-define(SYSTEM_PAGING_OPERATIONS, 'system.paging.operations'). + + +%% Unix swap or windows pagefile usage +-define(SYSTEM_PAGING_USAGE, 'system.paging.usage'). + + +%% none +-define(SYSTEM_PAGING_UTILIZATION, 'system.paging.utilization'). + + +%% Total number of processes in each state +-define(SYSTEM_PROCESS_COUNT, 'system.process.count'). + + +%% Total number of processes created over uptime of the host +-define(SYSTEM_PROCESS_CREATED, 'system.process.created'). diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/android_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/android_attributes.ex new file mode 100644 index 00000000..e7b7ce2c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/android_attributes.ex @@ -0,0 +1,107 @@ +defmodule OpenTelemetry.SemConv.Incubating.AndroidAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Android attributes. + """ + + @doc """ + 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). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["33", "32"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AndroidAttributes.android_os_api_level() + :"android.os.api_level" + + ### Erlang + + ```erlang + ?ANDROID_OS_API_LEVEL. + 'android.os.api_level' + ``` + + + """ + @spec android_os_api_level :: :"android.os.api_level" + def android_os_api_level do + :"android.os.api_level" + end + + @typedoc """ + Deprecated use the `device.app.lifecycle` event definition including `android.state` as a payload field instead. + + + ### Enum Values + * `:created` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time. + + * `:background` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has been called when the app was in the foreground state. + + * `:foreground` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has been called when the app was in either the created or background states. + + """ + @type android_state_values() :: %{ + :created => :created, + :background => :background, + :foreground => :foreground + } + @doc """ + Deprecated use the `device.app.lifecycle` event definition including `android.state` as a payload field instead. + + + ### Notes + + The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), and from which the `OS identifiers` are derived. + + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.AndroidAttributes.android_state() + :"android.state" + + iex> OpenTelemetry.SemConv.Incubating.AndroidAttributes.android_state_values().created + :created + + iex> %{OpenTelemetry.SemConv.Incubating.AndroidAttributes.android_state() => OpenTelemetry.SemConv.Incubating.AndroidAttributes.android_state_values().created} + %{:"android.state" => :created} + + ### Erlang + + ```erlang + ?ANDROID_STATE. + 'android.state' + + ?ANDROID_STATE_VALUES_CREATED. + 'created' + + \#{?ANDROID_STATE => ?ANDROID_STATE_VALUES_CREATED}. + \#{'android.state' => 'created'} + ``` + + + """ + @spec android_state :: :"android.state" + def android_state do + :"android.state" + end + + @spec android_state_values() :: android_state_values() + def android_state_values() do + %{ + :created => :created, + :background => :background, + :foreground => :foreground + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/artifact_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/artifact_attributes.ex new file mode 100644 index 00000000..dcabd888 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/artifact_attributes.ex @@ -0,0 +1,255 @@ +defmodule OpenTelemetry.SemConv.Incubating.ArtifactAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Artifact attributes. + """ + + @doc """ + The provenance filename of the built attestation which directly relates to the build artifact filename. This filename **SHOULD** accompany the artifact at publish time. See the [SLSA Relationship](https://slsa.dev/spec/v1.0/distributing-provenance#relationship-between-artifacts-and-attestations) specification for more information. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["golang-binary-amd64-v0.1.0.attestation", "docker-image-amd64-v0.1.0.intoto.json1", "release-1.tar.gz.attestation", "file-name-package.tar.gz.intoto.json1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_attestation_filename() + :"artifact.attestation.filename" + + ### Erlang + + ```erlang + ?ARTIFACT_ATTESTATION_FILENAME. + 'artifact.attestation.filename' + ``` + + + """ + @spec artifact_attestation_filename :: :"artifact.attestation.filename" + def artifact_attestation_filename do + :"artifact.attestation.filename" + end + + @doc """ + The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), of the built attestation. Some envelopes in the software attestation space also refer to this as the [digest](https://github.com/in-toto/attestation/blob/main/spec/README.md#in-toto-attestation-framework-spec). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["1b31dfcd5b7f9267bf2ff47651df1cfb9147b9e4df1f335accf65b4cda498408"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_attestation_hash() + :"artifact.attestation.hash" + + ### Erlang + + ```erlang + ?ARTIFACT_ATTESTATION_HASH. + 'artifact.attestation.hash' + ``` + + + """ + @spec artifact_attestation_hash :: :"artifact.attestation.hash" + def artifact_attestation_hash do + :"artifact.attestation.hash" + end + + @doc """ + The id of the build [software attestation](https://slsa.dev/attestation-model). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["123"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_attestation_id() + :"artifact.attestation.id" + + ### Erlang + + ```erlang + ?ARTIFACT_ATTESTATION_ID. + 'artifact.attestation.id' + ``` + + + """ + @spec artifact_attestation_id :: :"artifact.attestation.id" + def artifact_attestation_id do + :"artifact.attestation.id" + end + + @doc """ + The human readable file name of the artifact, typically generated during build and release processes. Often includes the package name and version in the file name. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + This file name can also act as the [Package Name](https://slsa.dev/spec/v1.0/terminology#package-model) + in cases where the package ecosystem maps accordingly. + Additionally, the artifact [can be published](https://slsa.dev/spec/v1.0/terminology#software-supply-chain) + for others, but that is not a guarantee. + + ### Examples + + ``` + ["golang-binary-amd64-v0.1.0", "docker-image-amd64-v0.1.0", "release-1.tar.gz", "file-name-package.tar.gz"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_filename() + :"artifact.filename" + + ### Erlang + + ```erlang + ?ARTIFACT_FILENAME. + 'artifact.filename' + ``` + + + """ + @spec artifact_filename :: :"artifact.filename" + def artifact_filename do + :"artifact.filename" + end + + @doc """ + The full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), often found in checksum.txt on a release of the artifact and used to verify package integrity. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The specific algorithm used to create the cryptographic hash value is + not defined. In situations where an artifact has multiple + cryptographic hashes, it is up to the implementer to choose which + hash value to set here; this should be the most secure hash algorithm + that is suitable for the situation and consistent with the + corresponding attestation. The implementer can then provide the other + hash values through an additional set of attribute extensions as they + deem necessary. + + ### Examples + + ``` + ["9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_hash() + :"artifact.hash" + + ### Erlang + + ```erlang + ?ARTIFACT_HASH. + 'artifact.hash' + ``` + + + """ + @spec artifact_hash :: :"artifact.hash" + def artifact_hash do + :"artifact.hash" + end + + @doc """ + The [Package URL](https://github.com/package-url/purl-spec) of the [package artifact](https://slsa.dev/spec/v1.0/terminology#package-model) provides a standard way to identify and locate the packaged artifact. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["pkg:github/package-url/purl-spec@1209109710924", "pkg:npm/foo@12.12.3"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_purl() + :"artifact.purl" + + ### Erlang + + ```erlang + ?ARTIFACT_PURL. + 'artifact.purl' + ``` + + + """ + @spec artifact_purl :: :"artifact.purl" + def artifact_purl do + :"artifact.purl" + end + + @doc """ + The version of the artifact. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["v0.1.0", "1.2.1", "122691-build"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.ArtifactAttributes.artifact_version() + :"artifact.version" + + ### Erlang + + ```erlang + ?ARTIFACT_VERSION. + 'artifact.version' + ``` + + + """ + @spec artifact_version :: :"artifact.version" + def artifact_version do + :"artifact.version" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cicd_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cicd_attributes.ex new file mode 100644 index 00000000..af727996 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cicd_attributes.ex @@ -0,0 +1,237 @@ +defmodule OpenTelemetry.SemConv.Incubating.CicdAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Cicd attributes. + """ + + @doc """ + The human readable name of the pipeline within a CI/CD system. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Build and Test", "Lint", "Deploy Go Project", "deploy_to_environment"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_name() + :"cicd.pipeline.name" + + ### Erlang + + ```erlang + ?CICD_PIPELINE_NAME. + 'cicd.pipeline.name' + ``` + + + """ + @spec cicd_pipeline_name :: :"cicd.pipeline.name" + def cicd_pipeline_name do + :"cicd.pipeline.name" + end + + @doc """ + The unique identifier of a pipeline run within a CI/CD system. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["120912"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_run_id() + :"cicd.pipeline.run.id" + + ### Erlang + + ```erlang + ?CICD_PIPELINE_RUN_ID. + 'cicd.pipeline.run.id' + ``` + + + """ + @spec cicd_pipeline_run_id :: :"cicd.pipeline.run.id" + def cicd_pipeline_run_id do + :"cicd.pipeline.run.id" + end + + @doc """ + The human readable name of a task within a pipeline. Task here most closely aligns with a [computing process](https://en.wikipedia.org/wiki/Pipeline_(computing)) in a pipeline. Other terms for tasks include commands, steps, and procedures. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Run GoLang Linter", "Go Build", "go-test", "deploy_binary"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_name() + :"cicd.pipeline.task.name" + + ### Erlang + + ```erlang + ?CICD_PIPELINE_TASK_NAME. + 'cicd.pipeline.task.name' + ``` + + + """ + @spec cicd_pipeline_task_name :: :"cicd.pipeline.task.name" + def cicd_pipeline_task_name do + :"cicd.pipeline.task.name" + end + + @doc """ + The unique identifier of a task run within a pipeline. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["12097"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_run_id() + :"cicd.pipeline.task.run.id" + + ### Erlang + + ```erlang + ?CICD_PIPELINE_TASK_RUN_ID. + 'cicd.pipeline.task.run.id' + ``` + + + """ + @spec cicd_pipeline_task_run_id :: :"cicd.pipeline.task.run.id" + def cicd_pipeline_task_run_id do + :"cicd.pipeline.task.run.id" + end + + @doc """ + The [URL](https://en.wikipedia.org/wiki/URL) of the pipeline run providing the complete address in order to locate and identify the pipeline run. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_run_url_full() + :"cicd.pipeline.task.run.url.full" + + ### Erlang + + ```erlang + ?CICD_PIPELINE_TASK_RUN_URL_FULL. + 'cicd.pipeline.task.run.url.full' + ``` + + + """ + @spec cicd_pipeline_task_run_url_full :: :"cicd.pipeline.task.run.url.full" + def cicd_pipeline_task_run_url_full do + :"cicd.pipeline.task.run.url.full" + end + + @typedoc """ + The type of the task within a pipeline. + + + ### Enum Values + * `:build` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - build + * `:test` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - test + * `:deploy` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - deploy + """ + @type cicd_pipeline_task_type_values() :: %{ + :build => :build, + :test => :test, + :deploy => :deploy + } + @doc """ + The type of the task within a pipeline. + + + ### Examples + + ``` + ["build", "test", "deploy"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_type() + :"cicd.pipeline.task.type" + + iex> OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_type_values().build + :build + + iex> %{OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_type() => OpenTelemetry.SemConv.Incubating.CicdAttributes.cicd_pipeline_task_type_values().build} + %{:"cicd.pipeline.task.type" => :build} + + ### Erlang + + ```erlang + ?CICD_PIPELINE_TASK_TYPE. + 'cicd.pipeline.task.type' + + ?CICD_PIPELINE_TASK_TYPE_VALUES_BUILD. + 'build' + + \#{?CICD_PIPELINE_TASK_TYPE => ?CICD_PIPELINE_TASK_TYPE_VALUES_BUILD}. + \#{'cicd.pipeline.task.type' => 'build'} + ``` + + + """ + @spec cicd_pipeline_task_type :: :"cicd.pipeline.task.type" + def cicd_pipeline_task_type do + :"cicd.pipeline.task.type" + end + + @spec cicd_pipeline_task_type_values() :: cicd_pipeline_task_type_values() + def cicd_pipeline_task_type_values() do + %{ + :build => :build, + :test => :test, + :deploy => :deploy + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cpu_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cpu_attributes.ex new file mode 100644 index 00000000..b953cb15 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/cpu_attributes.ex @@ -0,0 +1,85 @@ +defmodule OpenTelemetry.SemConv.Incubating.CpuAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Cpu attributes. + """ + + @typedoc """ + The mode of the CPU + + ### Enum Values + * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:nice` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:iowait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:interrupt` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:steal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:kernel` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type cpu_mode_values() :: %{ + :user => :user, + :system => :system, + :nice => :nice, + :idle => :idle, + :iowait => :iowait, + :interrupt => :interrupt, + :steal => :steal, + :kernel => :kernel + } + @doc """ + The mode of the CPU + + ### Examples + + ``` + ["user", "system"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode() + :"cpu.mode" + + iex> OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode_values().user + :user + + iex> %{OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode() => OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode_values().user} + %{:"cpu.mode" => :user} + + ### Erlang + + ```erlang + ?CPU_MODE. + 'cpu.mode' + + ?CPU_MODE_VALUES_USER. + 'user' + + \#{?CPU_MODE => ?CPU_MODE_VALUES_USER}. + \#{'cpu.mode' => 'user'} + ``` + + + """ + @spec cpu_mode :: :"cpu.mode" + def cpu_mode do + :"cpu.mode" + end + + @spec cpu_mode_values() :: cpu_mode_values() + def cpu_mode_values() do + %{ + :user => :user, + :system => :system, + :nice => :nice, + :idle => :idle, + :iowait => :iowait, + :interrupt => :interrupt, + :steal => :steal, + :kernel => :kernel + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex new file mode 100644 index 00000000..3e77f70f --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/device_attributes.ex @@ -0,0 +1,154 @@ +defmodule OpenTelemetry.SemConv.Incubating.DeviceAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Device attributes. + """ + + @doc """ + A unique identifier representing the device + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The device identifier **MUST** only be defined using the values outlined below. This value is not an advertising identifier and **MUST** **NOT** be used as such. On iOS (Swift or Objective-C), this value **MUST** be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value **MUST** be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. 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. + + ### Examples + + ``` + ["2ab2916d-a51f-4ac8-80ee-45ac31a28092"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_id() + :"device.id" + + ### Erlang + + ```erlang + ?DEVICE_ID. + 'device.id' + ``` + + + """ + @spec device_id :: :"device.id" + def device_id do + :"device.id" + end + + @doc """ + The name of the device manufacturer + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps **SHOULD** hardcode the value `Apple`. + + ### Examples + + ``` + ["Apple", "Samsung"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_manufacturer() + :"device.manufacturer" + + ### Erlang + + ```erlang + ?DEVICE_MANUFACTURER. + 'device.manufacturer' + ``` + + + """ + @spec device_manufacturer :: :"device.manufacturer" + def device_manufacturer do + :"device.manufacturer" + end + + @doc """ + The model identifier for the device + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + 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. + + ### Examples + + ``` + ["iPhone3,4", "SM-G920F"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_model_identifier() + :"device.model.identifier" + + ### Erlang + + ```erlang + ?DEVICE_MODEL_IDENTIFIER. + 'device.model.identifier' + ``` + + + """ + @spec device_model_identifier :: :"device.model.identifier" + def device_model_identifier do + :"device.model.identifier" + end + + @doc """ + The marketing name for the device model + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative. + + ### Examples + + ``` + ["iPhone 6s Plus", "Samsung Galaxy S6"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DeviceAttributes.device_model_name() + :"device.model.name" + + ### Erlang + + ```erlang + ?DEVICE_MODEL_NAME. + 'device.model.name' + ``` + + + """ + @spec device_model_name :: :"device.model.name" + def device_model_name do + :"device.model.name" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex new file mode 100644 index 00000000..cc70bbd1 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/disk_attributes.ex @@ -0,0 +1,67 @@ +defmodule OpenTelemetry.SemConv.Incubating.DiskAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Disk attributes. + """ + + @typedoc """ + The disk IO operation direction. + + ### Enum Values + * `:read` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:write` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type disk_io_direction_values() :: %{ + :read => :read, + :write => :write + } + @doc """ + The disk IO operation direction. + + ### Examples + + ``` + ["read"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() + :"disk.io.direction" + + iex> OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read + :read + + iex> %{OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction() => OpenTelemetry.SemConv.Incubating.DiskAttributes.disk_io_direction_values().read} + %{:"disk.io.direction" => :read} + + ### Erlang + + ```erlang + ?DISK_IO_DIRECTION. + 'disk.io.direction' + + ?DISK_IO_DIRECTION_VALUES_READ. + 'read' + + \#{?DISK_IO_DIRECTION => ?DISK_IO_DIRECTION_VALUES_READ}. + \#{'disk.io.direction' => 'read'} + ``` + + + """ + @spec disk_io_direction :: :"disk.io.direction" + def disk_io_direction do + :"disk.io.direction" + end + + @spec disk_io_direction_values() :: disk_io_direction_values() + def disk_io_direction_values() do + %{ + :read => :read, + :write => :write + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/linux_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/linux_attributes.ex new file mode 100644 index 00000000..c2e6e35c --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/linux_attributes.ex @@ -0,0 +1,67 @@ +defmodule OpenTelemetry.SemConv.Incubating.LinuxAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Linux attributes. + """ + + @typedoc """ + The Linux Slab memory state + + ### Enum Values + * `:reclaimable` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:unreclaimable` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type linux_memory_slab_state_values() :: %{ + :reclaimable => :reclaimable, + :unreclaimable => :unreclaimable + } + @doc """ + The Linux Slab memory state + + ### Examples + + ``` + ["reclaimable", "unreclaimable"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.LinuxAttributes.linux_memory_slab_state() + :"linux.memory.slab.state" + + iex> OpenTelemetry.SemConv.Incubating.LinuxAttributes.linux_memory_slab_state_values().reclaimable + :reclaimable + + iex> %{OpenTelemetry.SemConv.Incubating.LinuxAttributes.linux_memory_slab_state() => OpenTelemetry.SemConv.Incubating.LinuxAttributes.linux_memory_slab_state_values().reclaimable} + %{:"linux.memory.slab.state" => :reclaimable} + + ### Erlang + + ```erlang + ?LINUX_MEMORY_SLAB_STATE. + 'linux.memory.slab.state' + + ?LINUX_MEMORY_SLAB_STATE_VALUES_RECLAIMABLE. + 'reclaimable' + + \#{?LINUX_MEMORY_SLAB_STATE => ?LINUX_MEMORY_SLAB_STATE_VALUES_RECLAIMABLE}. + \#{'linux.memory.slab.state' => 'reclaimable'} + ``` + + + """ + @spec linux_memory_slab_state :: :"linux.memory.slab.state" + def linux_memory_slab_state do + :"linux.memory.slab.state" + end + + @spec linux_memory_slab_state_values() :: linux_memory_slab_state_values() + def linux_memory_slab_state_values() do + %{ + :reclaimable => :reclaimable, + :unreclaimable => :unreclaimable + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex new file mode 100644 index 00000000..07fcfbdb --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/system_attributes.ex @@ -0,0 +1,759 @@ +defmodule OpenTelemetry.SemConv.Incubating.SystemAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for System attributes. + """ + + @doc """ + The logical CPU number [0..n-1] + ### Value type + + Value must be of type `integer()`. + ### Examples + + ``` + [1] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_cpu_logical_number() + :"system.cpu.logical_number" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_LOGICAL_NUMBER. + 'system.cpu.logical_number' + ``` + + + """ + @spec system_cpu_logical_number :: :"system.cpu.logical_number" + def system_cpu_logical_number do + :"system.cpu.logical_number" + end + + @typedoc """ + Deprecated, use `cpu.mode` instead. + + ### Enum Values + * `:user` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:system` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:nice` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:idle` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:iowait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:interrupt` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:steal` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_cpu_state_values() :: %{ + :user => :user, + :system => :system, + :nice => :nice, + :idle => :idle, + :iowait => :iowait, + :interrupt => :interrupt, + :steal => :steal + } + @deprecated """ + Replaced by `cpu.mode` + """ + @spec system_cpu_state :: :"system.cpu.state" + def system_cpu_state do + :"system.cpu.state" + end + + @spec system_cpu_state_values() :: system_cpu_state_values() + def system_cpu_state_values() do + %{ + :user => :user, + :system => :system, + :nice => :nice, + :idle => :idle, + :iowait => :iowait, + :interrupt => :interrupt, + :steal => :steal + } + end + + @doc """ + The device identifier + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["(identifier)"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_device() + :"system.device" + + ### Erlang + + ```erlang + ?SYSTEM_DEVICE. + 'system.device' + ``` + + + """ + @spec system_device :: :"system.device" + def system_device do + :"system.device" + end + + @doc """ + The filesystem mode + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["rw, ro"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_mode() + :"system.filesystem.mode" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_MODE. + 'system.filesystem.mode' + ``` + + + """ + @spec system_filesystem_mode :: :"system.filesystem.mode" + def system_filesystem_mode do + :"system.filesystem.mode" + end + + @doc """ + The filesystem mount path + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["/mnt/data"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_mountpoint() + :"system.filesystem.mountpoint" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_MOUNTPOINT. + 'system.filesystem.mountpoint' + ``` + + + """ + @spec system_filesystem_mountpoint :: :"system.filesystem.mountpoint" + def system_filesystem_mountpoint do + :"system.filesystem.mountpoint" + end + + @typedoc """ + The filesystem state + + ### Enum Values + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:reserved` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_filesystem_state_values() :: %{ + :used => :used, + :free => :free, + :reserved => :reserved + } + @doc """ + The filesystem state + + ### Examples + + ``` + ["used"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() + :"system.filesystem.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used + :used + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_state_values().used} + %{:"system.filesystem.state" => :used} + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_STATE. + 'system.filesystem.state' + + ?SYSTEM_FILESYSTEM_STATE_VALUES_USED. + 'used' + + \#{?SYSTEM_FILESYSTEM_STATE => ?SYSTEM_FILESYSTEM_STATE_VALUES_USED}. + \#{'system.filesystem.state' => 'used'} + ``` + + + """ + @spec system_filesystem_state :: :"system.filesystem.state" + def system_filesystem_state do + :"system.filesystem.state" + end + + @spec system_filesystem_state_values() :: system_filesystem_state_values() + def system_filesystem_state_values() do + %{ + :used => :used, + :free => :free, + :reserved => :reserved + } + end + + @typedoc """ + The filesystem type + + ### Enum Values + * `:fat32` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:exfat` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:ntfs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:refs` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:hfsplus` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:ext4` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_filesystem_type_values() :: %{ + :fat32 => :fat32, + :exfat => :exfat, + :ntfs => :ntfs, + :refs => :refs, + :hfsplus => :hfsplus, + :ext4 => :ext4 + } + @doc """ + The filesystem type + + ### Examples + + ``` + ["ext4"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() + :"system.filesystem.type" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32 + :fat32 + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_filesystem_type_values().fat32} + %{:"system.filesystem.type" => :fat32} + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_TYPE. + 'system.filesystem.type' + + ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32. + 'fat32' + + \#{?SYSTEM_FILESYSTEM_TYPE => ?SYSTEM_FILESYSTEM_TYPE_VALUES_FAT32}. + \#{'system.filesystem.type' => 'fat32'} + ``` + + + """ + @spec system_filesystem_type :: :"system.filesystem.type" + def system_filesystem_type do + :"system.filesystem.type" + end + + @spec system_filesystem_type_values() :: system_filesystem_type_values() + def system_filesystem_type_values() do + %{ + :fat32 => :fat32, + :exfat => :exfat, + :ntfs => :ntfs, + :refs => :refs, + :hfsplus => :hfsplus, + :ext4 => :ext4 + } + end + + @typedoc """ + The memory state + + ### Enum Values + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:shared` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:buffers` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:cached` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_memory_state_values() :: %{ + :used => :used, + :free => :free, + :shared => :shared, + :buffers => :buffers, + :cached => :cached + } + @doc """ + The memory state + + ### Examples + + ``` + ["free", "cached"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() + :"system.memory.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used + :used + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_memory_state_values().used} + %{:"system.memory.state" => :used} + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_STATE. + 'system.memory.state' + + ?SYSTEM_MEMORY_STATE_VALUES_USED. + 'used' + + \#{?SYSTEM_MEMORY_STATE => ?SYSTEM_MEMORY_STATE_VALUES_USED}. + \#{'system.memory.state' => 'used'} + ``` + + + """ + @spec system_memory_state :: :"system.memory.state" + def system_memory_state do + :"system.memory.state" + end + + @spec system_memory_state_values() :: system_memory_state_values() + def system_memory_state_values() do + %{ + :used => :used, + :free => :free, + :shared => :shared, + :buffers => :buffers, + :cached => :cached + } + end + + @typedoc """ + A stateless protocol **MUST** **NOT** set this attribute + + ### Enum Values + * `:close` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:close_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:closing` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:delete` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:established` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:fin_wait_1` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:fin_wait_2` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:last_ack` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:listen` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:syn_recv` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:syn_sent` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:time_wait` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_network_state_values() :: %{ + :close => :close, + :close_wait => :close_wait, + :closing => :closing, + :delete => :delete, + :established => :established, + :fin_wait_1 => :fin_wait_1, + :fin_wait_2 => :fin_wait_2, + :last_ack => :last_ack, + :listen => :listen, + :syn_recv => :syn_recv, + :syn_sent => :syn_sent, + :time_wait => :time_wait + } + @doc """ + A stateless protocol **MUST** **NOT** set this attribute + + ### Examples + + ``` + ["close_wait"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() + :"system.network.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close + :close + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_network_state_values().close} + %{:"system.network.state" => :close} + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_STATE. + 'system.network.state' + + ?SYSTEM_NETWORK_STATE_VALUES_CLOSE. + 'close' + + \#{?SYSTEM_NETWORK_STATE => ?SYSTEM_NETWORK_STATE_VALUES_CLOSE}. + \#{'system.network.state' => 'close'} + ``` + + + """ + @spec system_network_state :: :"system.network.state" + def system_network_state do + :"system.network.state" + end + + @spec system_network_state_values() :: system_network_state_values() + def system_network_state_values() do + %{ + :close => :close, + :close_wait => :close_wait, + :closing => :closing, + :delete => :delete, + :established => :established, + :fin_wait_1 => :fin_wait_1, + :fin_wait_2 => :fin_wait_2, + :last_ack => :last_ack, + :listen => :listen, + :syn_recv => :syn_recv, + :syn_sent => :syn_sent, + :time_wait => :time_wait + } + end + + @typedoc """ + The paging access direction + + ### Enum Values + * `:in` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:out` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_paging_direction_values() :: %{ + :in => :in, + :out => :out + } + @doc """ + The paging access direction + + ### Examples + + ``` + ["in"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() + :"system.paging.direction" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in + :in + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_direction_values().in} + %{:"system.paging.direction" => :in} + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_DIRECTION. + 'system.paging.direction' + + ?SYSTEM_PAGING_DIRECTION_VALUES_IN. + 'in' + + \#{?SYSTEM_PAGING_DIRECTION => ?SYSTEM_PAGING_DIRECTION_VALUES_IN}. + \#{'system.paging.direction' => 'in'} + ``` + + + """ + @spec system_paging_direction :: :"system.paging.direction" + def system_paging_direction do + :"system.paging.direction" + end + + @spec system_paging_direction_values() :: system_paging_direction_values() + def system_paging_direction_values() do + %{ + :in => :in, + :out => :out + } + end + + @typedoc """ + The memory paging state + + ### Enum Values + * `:used` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:free` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_paging_state_values() :: %{ + :used => :used, + :free => :free + } + @doc """ + The memory paging state + + ### Examples + + ``` + ["free"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() + :"system.paging.state" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used + :used + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_state_values().used} + %{:"system.paging.state" => :used} + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_STATE. + 'system.paging.state' + + ?SYSTEM_PAGING_STATE_VALUES_USED. + 'used' + + \#{?SYSTEM_PAGING_STATE => ?SYSTEM_PAGING_STATE_VALUES_USED}. + \#{'system.paging.state' => 'used'} + ``` + + + """ + @spec system_paging_state :: :"system.paging.state" + def system_paging_state do + :"system.paging.state" + end + + @spec system_paging_state_values() :: system_paging_state_values() + def system_paging_state_values() do + %{ + :used => :used, + :free => :free + } + end + + @typedoc """ + The memory paging type + + ### Enum Values + * `:major` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:minor` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_paging_type_values() :: %{ + :major => :major, + :minor => :minor + } + @doc """ + The memory paging type + + ### Examples + + ``` + ["minor"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() + :"system.paging.type" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major + :major + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_paging_type_values().major} + %{:"system.paging.type" => :major} + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_TYPE. + 'system.paging.type' + + ?SYSTEM_PAGING_TYPE_VALUES_MAJOR. + 'major' + + \#{?SYSTEM_PAGING_TYPE => ?SYSTEM_PAGING_TYPE_VALUES_MAJOR}. + \#{'system.paging.type' => 'major'} + ``` + + + """ + @spec system_paging_type :: :"system.paging.type" + def system_paging_type do + :"system.paging.type" + end + + @spec system_paging_type_values() :: system_paging_type_values() + def system_paging_type_values() do + %{ + :major => :major, + :minor => :minor + } + end + + @typedoc """ + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + + ### Enum Values + * `:running` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:sleeping` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_process_status_values() :: %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } + @doc """ + The process state, e.g., [Linux Process State Codes](https://man7.org/linux/man-pages/man1/ps.1.html#PROCESS_STATE_CODES) + + + ### Examples + + ``` + ["running"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() + :"system.process.status" + + iex> OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running + :running + + iex> %{OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status() => OpenTelemetry.SemConv.Incubating.SystemAttributes.system_process_status_values().running} + %{:"system.process.status" => :running} + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_STATUS. + 'system.process.status' + + ?SYSTEM_PROCESS_STATUS_VALUES_RUNNING. + 'running' + + \#{?SYSTEM_PROCESS_STATUS => ?SYSTEM_PROCESS_STATUS_VALUES_RUNNING}. + \#{'system.process.status' => 'running'} + ``` + + + """ + @spec system_process_status :: :"system.process.status" + def system_process_status do + :"system.process.status" + end + + @spec system_process_status_values() :: system_process_status_values() + def system_process_status_values() do + %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } + end + + @typedoc """ + Deprecated, use `system.process.status` instead. + + ### Enum Values + * `:running` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:sleeping` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:stopped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + * `:defunct` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ + """ + @type system_processes_status_values() :: %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } + @deprecated """ + Replaced by `system.process.status`. + """ + @spec system_processes_status :: :"system.processes.status" + def system_processes_status do + :"system.processes.status" + end + + @spec system_processes_status_values() :: system_processes_status_values() + def system_processes_status_values() do + %{ + :running => :running, + :sleeping => :sleeping, + :stopped => :stopped, + :defunct => :defunct + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/test_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/test_attributes.ex new file mode 100644 index 00000000..4360c506 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/test_attributes.ex @@ -0,0 +1,210 @@ +defmodule OpenTelemetry.SemConv.Incubating.TestAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Test attributes. + """ + + @doc """ + The fully qualified human readable name of the [test case](https://en.wikipedia.org/wiki/Test_case). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["org.example.TestCase1.test1", "example/tests/TestCase1.test1", "ExampleTestCase1_test1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_name() + :"test.case.name" + + ### Erlang + + ```erlang + ?TEST_CASE_NAME. + 'test.case.name' + ``` + + + """ + @spec test_case_name :: :"test.case.name" + def test_case_name do + :"test.case.name" + end + + @typedoc """ + The status of the actual test case result from test execution. + + + ### Enum Values + * `:pass` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - pass + * `:fail` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - fail + """ + @type test_case_result_status_values() :: %{ + :pass => :pass, + :fail => :fail + } + @doc """ + The status of the actual test case result from test execution. + + + ### Examples + + ``` + ["pass", "fail"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status() + :"test.case.result.status" + + iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status_values().pass + :pass + + iex> %{OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status() => OpenTelemetry.SemConv.Incubating.TestAttributes.test_case_result_status_values().pass} + %{:"test.case.result.status" => :pass} + + ### Erlang + + ```erlang + ?TEST_CASE_RESULT_STATUS. + 'test.case.result.status' + + ?TEST_CASE_RESULT_STATUS_VALUES_PASS. + 'pass' + + \#{?TEST_CASE_RESULT_STATUS => ?TEST_CASE_RESULT_STATUS_VALUES_PASS}. + \#{'test.case.result.status' => 'pass'} + ``` + + + """ + @spec test_case_result_status :: :"test.case.result.status" + def test_case_result_status do + :"test.case.result.status" + end + + @spec test_case_result_status_values() :: test_case_result_status_values() + def test_case_result_status_values() do + %{ + :pass => :pass, + :fail => :fail + } + end + + @doc """ + The human readable name of a [test suite](https://en.wikipedia.org/wiki/Test_suite). + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["TestSuite1"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_name() + :"test.suite.name" + + ### Erlang + + ```erlang + ?TEST_SUITE_NAME. + 'test.suite.name' + ``` + + + """ + @spec test_suite_name :: :"test.suite.name" + def test_suite_name do + :"test.suite.name" + end + + @typedoc """ + The status of the test suite run. + + + ### Enum Values + * `:success` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - success + * `:failure` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - failure + * `:skipped` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - skipped + * `:aborted` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - aborted + * `:timed_out` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - timed_out + * `:in_progress` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - in_progress + """ + @type test_suite_run_status_values() :: %{ + :success => :success, + :failure => :failure, + :skipped => :skipped, + :aborted => :aborted, + :timed_out => :timed_out, + :in_progress => :in_progress + } + @doc """ + The status of the test suite run. + + + ### Examples + + ``` + ["success", "failure", "skipped", "aborted", "timed_out", "in_progress"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status() + :"test.suite.run.status" + + iex> OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status_values().success + :success + + iex> %{OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status() => OpenTelemetry.SemConv.Incubating.TestAttributes.test_suite_run_status_values().success} + %{:"test.suite.run.status" => :success} + + ### Erlang + + ```erlang + ?TEST_SUITE_RUN_STATUS. + 'test.suite.run.status' + + ?TEST_SUITE_RUN_STATUS_VALUES_SUCCESS. + 'success' + + \#{?TEST_SUITE_RUN_STATUS => ?TEST_SUITE_RUN_STATUS_VALUES_SUCCESS}. + \#{'test.suite.run.status' => 'success'} + ``` + + + """ + @spec test_suite_run_status :: :"test.suite.run.status" + def test_suite_run_status do + :"test.suite.run.status" + end + + @spec test_suite_run_status_values() :: test_suite_run_status_values() + def test_suite_run_status_values() do + %{ + :success => :success, + :failure => :failure, + :skipped => :skipped, + :aborted => :aborted, + :timed_out => :timed_out, + :in_progress => :in_progress + } + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/vcs_attributes.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/vcs_attributes.ex new file mode 100644 index 00000000..a339fa71 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/attributes/vcs_attributes.ex @@ -0,0 +1,246 @@ +defmodule OpenTelemetry.SemConv.Incubating.VcsAttributes do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for Vcs attributes. + """ + + @doc """ + The ID of the change (pull request/merge request) if applicable. This is usually a unique (within repository) identifier generated by the VCS system. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["123"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_change_id() + :"vcs.repository.change.id" + + ### Erlang + + ```erlang + ?VCS_REPOSITORY_CHANGE_ID. + 'vcs.repository.change.id' + ``` + + + """ + @spec vcs_repository_change_id :: :"vcs.repository.change.id" + def vcs_repository_change_id do + :"vcs.repository.change.id" + end + + @doc """ + The human readable title of the change (pull request/merge request). This title is often a brief summary of the change and may get merged in to a ref as the commit summary. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["Fixes broken thing", "feat: add my new feature", "[chore] update dependency"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_change_title() + :"vcs.repository.change.title" + + ### Erlang + + ```erlang + ?VCS_REPOSITORY_CHANGE_TITLE. + 'vcs.repository.change.title' + ``` + + + """ + @spec vcs_repository_change_title :: :"vcs.repository.change.title" + def vcs_repository_change_title do + :"vcs.repository.change.title" + end + + @doc """ + The name of the [reference](https://git-scm.com/docs/gitglossary#def_ref) such as **branch** or **tag** in the repository. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["my-feature-branch", "tag-1-test"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_ref_name() + :"vcs.repository.ref.name" + + ### Erlang + + ```erlang + ?VCS_REPOSITORY_REF_NAME. + 'vcs.repository.ref.name' + ``` + + + """ + @spec vcs_repository_ref_name :: :"vcs.repository.ref.name" + def vcs_repository_ref_name do + :"vcs.repository.ref.name" + end + + @doc """ + The revision, literally [revised version](https://www.merriam-webster.com/dictionary/revision), The revision most often refers to a commit object in Git, or a revision number in SVN. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Notes + + The revision can be a full [hash value (see glossary)](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf), + of the recorded change to a ref within a repository pointing to a + commit [commit](https://git-scm.com/docs/git-commit) object. It does + not necessarily have to be a hash; it can simply define a + [revision number](https://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html) + which is an integer that is monotonically increasing. In cases where + it is identical to the `ref.name`, it **SHOULD** still be included. It is + up to the implementer to decide which value to set as the revision + based on the VCS system and situational context. + + ### Examples + + ``` + ["9d59409acf479dfa0df1aa568182e43e43df8bbe28d60fcf2bc52e30068802cc", "main", "123", "HEAD"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_ref_revision() + :"vcs.repository.ref.revision" + + ### Erlang + + ```erlang + ?VCS_REPOSITORY_REF_REVISION. + 'vcs.repository.ref.revision' + ``` + + + """ + @spec vcs_repository_ref_revision :: :"vcs.repository.ref.revision" + def vcs_repository_ref_revision do + :"vcs.repository.ref.revision" + end + + @typedoc """ + The type of the [reference](https://git-scm.com/docs/gitglossary#def_ref) in the repository. + + + ### Enum Values + * `:branch` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - [branch](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefbranchabranch) + * `:tag` ^[e](`m:OpenTelemetry.SemConv#experimental`)^ - [tag](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddeftagatag) + """ + @type vcs_repository_ref_type_values() :: %{ + :branch => :branch, + :tag => :tag + } + @doc """ + The type of the [reference](https://git-scm.com/docs/gitglossary#def_ref) in the repository. + + + ### Examples + + ``` + ["branch", "tag"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_ref_type() + :"vcs.repository.ref.type" + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_ref_type_values().branch + :branch + + iex> %{OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_ref_type() => OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_ref_type_values().branch} + %{:"vcs.repository.ref.type" => :branch} + + ### Erlang + + ```erlang + ?VCS_REPOSITORY_REF_TYPE. + 'vcs.repository.ref.type' + + ?VCS_REPOSITORY_REF_TYPE_VALUES_BRANCH. + 'branch' + + \#{?VCS_REPOSITORY_REF_TYPE => ?VCS_REPOSITORY_REF_TYPE_VALUES_BRANCH}. + \#{'vcs.repository.ref.type' => 'branch'} + ``` + + + """ + @spec vcs_repository_ref_type :: :"vcs.repository.ref.type" + def vcs_repository_ref_type do + :"vcs.repository.ref.type" + end + + @spec vcs_repository_ref_type_values() :: vcs_repository_ref_type_values() + def vcs_repository_ref_type_values() do + %{ + :branch => :branch, + :tag => :tag + } + end + + @doc """ + The [URL](https://en.wikipedia.org/wiki/URL) of the repository providing the complete address in order to locate and identify the repository. + + ### Value type + + Value must be of type `atom() | String.t()`. + ### Examples + + ``` + ["https://github.com/opentelemetry/open-telemetry-collector-contrib", "https://gitlab.com/my-org/my-project/my-projects-project/repo"] + ``` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.VcsAttributes.vcs_repository_url_full() + :"vcs.repository.url.full" + + ### Erlang + + ```erlang + ?VCS_REPOSITORY_URL_FULL. + 'vcs.repository.url.full' + ``` + + + """ + @spec vcs_repository_url_full :: :"vcs.repository.url.full" + def vcs_repository_url_full do + :"vcs.repository.url.full" + end +end diff --git a/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex new file mode 100644 index 00000000..0c5f0336 --- /dev/null +++ b/apps/opentelemetry_semantic_conventions/lib/incubating/metrics/system_metrics.ex @@ -0,0 +1,848 @@ +defmodule OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics do + # This is an auto-generated file + @moduledoc """ + OpenTelemetry Semantic Conventions for System metrics. + """ + @doc """ + Reports the current frequency of the CPU in Hz + + Instrument: `gauge` + Unit: `{Hz}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_frequency() + :"system.cpu.frequency" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_FREQUENCY. + 'system.cpu.frequency' + ``` + + + """ + + @spec system_cpu_frequency :: :"system.cpu.frequency" + def system_cpu_frequency do + :"system.cpu.frequency" + end + + @doc """ + Reports the number of logical (virtual) processor cores created by the operating system to manage multitasking + + Instrument: `updowncounter` + Unit: `{cpu}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_logical_count() + :"system.cpu.logical.count" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_LOGICAL_COUNT. + 'system.cpu.logical.count' + ``` + + + """ + + @spec system_cpu_logical_count :: :"system.cpu.logical.count" + def system_cpu_logical_count do + :"system.cpu.logical.count" + end + + @doc """ + Reports the number of actual physical processor cores on the hardware + + Instrument: `updowncounter` + Unit: `{cpu}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_physical_count() + :"system.cpu.physical.count" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_PHYSICAL_COUNT. + 'system.cpu.physical.count' + ``` + + + """ + + @spec system_cpu_physical_count :: :"system.cpu.physical.count" + def system_cpu_physical_count do + :"system.cpu.physical.count" + end + + @doc """ + Seconds each logical CPU spent on each mode + + Instrument: `counter` + Unit: `s` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_time() + :"system.cpu.time" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_TIME. + 'system.cpu.time' + ``` + + + """ + + @spec system_cpu_time :: :"system.cpu.time" + def system_cpu_time do + :"system.cpu.time" + end + + @doc """ + Difference in system.cpu.time since the last measurement, divided by the elapsed time and number of logical CPUs + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_cpu_utilization() + :"system.cpu.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_CPU_UTILIZATION. + 'system.cpu.utilization' + ``` + + + """ + + @spec system_cpu_utilization :: :"system.cpu.utilization" + def system_cpu_utilization do + :"system.cpu.utilization" + end + + @doc """ + none + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io() + :"system.disk.io" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_IO. + 'system.disk.io' + ``` + + + """ + + @spec system_disk_io :: :"system.disk.io" + def system_disk_io do + :"system.disk.io" + end + + @doc """ + Time disk spent activated + + Instrument: `counter` + Unit: `s` + ### Notes + + The real elapsed time ("wall clock") used in the I/O path (time from operations running in parallel are not counted). Measured as: + + - Linux: Field 13 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) + - Windows: The complement of + ["Disk\% Idle Time"](https://learn.microsoft.com/archive/blogs/askcore/windows-performance-monitor-disk-counters-explained#windows-performance-monitor-disk-counters-explained) + performance counter: `uptime * (100 - "Disk\% Idle Time") / 100` + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_io_time() + :"system.disk.io_time" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_IO_TIME. + 'system.disk.io_time' + ``` + + + """ + + @spec system_disk_io_time :: :"system.disk.io_time" + def system_disk_io_time do + :"system.disk.io_time" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_merged() + :"system.disk.merged" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_MERGED. + 'system.disk.merged' + ``` + + + """ + + @spec system_disk_merged :: :"system.disk.merged" + def system_disk_merged do + :"system.disk.merged" + end + + @doc """ + Sum of the time each operation took to complete + + Instrument: `counter` + Unit: `s` + ### Notes + + Because it is the sum of time each request took, parallel-issued requests each contribute to make the count grow. Measured as: + + - Linux: Fields 7 & 11 from [procfs-diskstats](https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats) + - Windows: "Avg. Disk sec/Read" perf counter multiplied by "Disk Reads/sec" perf counter (similar for Writes) + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operation_time() + :"system.disk.operation_time" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_OPERATION_TIME. + 'system.disk.operation_time' + ``` + + + """ + + @spec system_disk_operation_time :: :"system.disk.operation_time" + def system_disk_operation_time do + :"system.disk.operation_time" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_disk_operations() + :"system.disk.operations" + + ### Erlang + + ```erlang + ?SYSTEM_DISK_OPERATIONS. + 'system.disk.operations' + ``` + + + """ + + @spec system_disk_operations :: :"system.disk.operations" + def system_disk_operations do + :"system.disk.operations" + end + + @doc """ + none + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_usage() + :"system.filesystem.usage" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_USAGE. + 'system.filesystem.usage' + ``` + + + """ + + @spec system_filesystem_usage :: :"system.filesystem.usage" + def system_filesystem_usage do + :"system.filesystem.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_filesystem_utilization() + :"system.filesystem.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_FILESYSTEM_UTILIZATION. + 'system.filesystem.utilization' + ``` + + + """ + + @spec system_filesystem_utilization :: :"system.filesystem.utilization" + def system_filesystem_utilization do + :"system.filesystem.utilization" + end + + @doc """ + An estimate of how much memory is available for starting new applications, without causing swapping + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + 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. + This is supposed to be more accurate than just "free" memory. + For reference, see the calculations [here](https://superuser.com/a/980821). + See also `MemAvailable` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_linux_memory_available() + :"system.linux.memory.available" + + ### Erlang + + ```erlang + ?SYSTEM_LINUX_MEMORY_AVAILABLE. + 'system.linux.memory.available' + ``` + + + """ + + @spec system_linux_memory_available :: :"system.linux.memory.available" + def system_linux_memory_available do + :"system.linux.memory.available" + end + + @doc """ + Reports the memory used by the Linux kernel for managing caches of frequently used objects. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + The sum over the `reclaimable` and `unreclaimable` state values in `linux.memory.slab.usage` **SHOULD** be equal to the total slab memory available on the system. + Note that the total slab memory is not constant and may vary over time. + See also the [Slab allocator](https://blogs.oracle.com/linux/post/understanding-linux-kernel-memory-statistics) and `Slab` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_linux_memory_slab_usage() + :"system.linux.memory.slab.usage" + + ### Erlang + + ```erlang + ?SYSTEM_LINUX_MEMORY_SLAB_USAGE. + 'system.linux.memory.slab.usage' + ``` + + + """ + + @spec system_linux_memory_slab_usage :: :"system.linux.memory.slab.usage" + def system_linux_memory_slab_usage do + :"system.linux.memory.slab.usage" + end + + @doc """ + Total memory available in the system. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + Its value **SHOULD** equal the sum of `system.memory.state` over all states. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_limit() + :"system.memory.limit" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_LIMIT. + 'system.memory.limit' + ``` + + + """ + + @spec system_memory_limit :: :"system.memory.limit" + def system_memory_limit do + :"system.memory.limit" + end + + @doc """ + Shared memory used (mostly by tmpfs). + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + Equivalent of `shared` from [`free` command](https://man7.org/linux/man-pages/man1/free.1.html) or + `Shmem` from [`/proc/meminfo`](https://man7.org/linux/man-pages/man5/proc.5.html)" + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_shared() + :"system.memory.shared" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_SHARED. + 'system.memory.shared' + ``` + + + """ + + @spec system_memory_shared :: :"system.memory.shared" + def system_memory_shared do + :"system.memory.shared" + end + + @doc """ + Reports memory in use by state. + + Instrument: `updowncounter` + Unit: `By` + ### Notes + + The sum over all `system.memory.state` values **SHOULD** equal the total memory + available on the system, that is `system.memory.limit`. + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_usage() + :"system.memory.usage" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_USAGE. + 'system.memory.usage' + ``` + + + """ + + @spec system_memory_usage :: :"system.memory.usage" + def system_memory_usage do + :"system.memory.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_memory_utilization() + :"system.memory.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_MEMORY_UTILIZATION. + 'system.memory.utilization' + ``` + + + """ + + @spec system_memory_utilization :: :"system.memory.utilization" + def system_memory_utilization do + :"system.memory.utilization" + end + + @doc """ + none + + Instrument: `updowncounter` + Unit: `{connection}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_connections() + :"system.network.connections" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_CONNECTIONS. + 'system.network.connections' + ``` + + + """ + + @spec system_network_connections :: :"system.network.connections" + def system_network_connections do + :"system.network.connections" + end + + @doc """ + Count of packets that are dropped or discarded even though there was no error + + Instrument: `counter` + Unit: `{packet}` + ### Notes + + 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) + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_dropped() + :"system.network.dropped" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_DROPPED. + 'system.network.dropped' + ``` + + + """ + + @spec system_network_dropped :: :"system.network.dropped" + def system_network_dropped do + :"system.network.dropped" + end + + @doc """ + Count of network errors detected + + Instrument: `counter` + Unit: `{error}` + ### Notes + + 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). + + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_errors() + :"system.network.errors" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_ERRORS. + 'system.network.errors' + ``` + + + """ + + @spec system_network_errors :: :"system.network.errors" + def system_network_errors do + :"system.network.errors" + end + + @doc """ + none + + Instrument: `counter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_io() + :"system.network.io" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_IO. + 'system.network.io' + ``` + + + """ + + @spec system_network_io :: :"system.network.io" + def system_network_io do + :"system.network.io" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{packet}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_network_packets() + :"system.network.packets" + + ### Erlang + + ```erlang + ?SYSTEM_NETWORK_PACKETS. + 'system.network.packets' + ``` + + + """ + + @spec system_network_packets :: :"system.network.packets" + def system_network_packets do + :"system.network.packets" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{fault}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_faults() + :"system.paging.faults" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_FAULTS. + 'system.paging.faults' + ``` + + + """ + + @spec system_paging_faults :: :"system.paging.faults" + def system_paging_faults do + :"system.paging.faults" + end + + @doc """ + none + + Instrument: `counter` + Unit: `{operation}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_operations() + :"system.paging.operations" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_OPERATIONS. + 'system.paging.operations' + ``` + + + """ + + @spec system_paging_operations :: :"system.paging.operations" + def system_paging_operations do + :"system.paging.operations" + end + + @doc """ + Unix swap or windows pagefile usage + + Instrument: `updowncounter` + Unit: `By` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_usage() + :"system.paging.usage" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_USAGE. + 'system.paging.usage' + ``` + + + """ + + @spec system_paging_usage :: :"system.paging.usage" + def system_paging_usage do + :"system.paging.usage" + end + + @doc """ + none + + Instrument: `gauge` + Unit: `1` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_paging_utilization() + :"system.paging.utilization" + + ### Erlang + + ```erlang + ?SYSTEM_PAGING_UTILIZATION. + 'system.paging.utilization' + ``` + + + """ + + @spec system_paging_utilization :: :"system.paging.utilization" + def system_paging_utilization do + :"system.paging.utilization" + end + + @doc """ + Total number of processes in each state + + Instrument: `updowncounter` + Unit: `{process}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_count() + :"system.process.count" + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_COUNT. + 'system.process.count' + ``` + + + """ + + @spec system_process_count :: :"system.process.count" + def system_process_count do + :"system.process.count" + end + + @doc """ + Total number of processes created over uptime of the host + + Instrument: `counter` + Unit: `{process}` + + + ### Elixir + + iex> OpenTelemetry.SemConv.Incubating.Metrics.SystemMetrics.system_process_created() + :"system.process.created" + + ### Erlang + + ```erlang + ?SYSTEM_PROCESS_CREATED. + 'system.process.created' + ``` + + + """ + + @spec system_process_created :: :"system.process.created" + def system_process_created do + :"system.process.created" + end +end diff --git a/apps/opentelemetry_semantic_conventions/makefile b/apps/opentelemetry_semantic_conventions/makefile index 70563e32..27cbddfb 100644 --- a/apps/opentelemetry_semantic_conventions/makefile +++ b/apps/opentelemetry_semantic_conventions/makefile @@ -12,6 +12,7 @@ clean-elixir: rm -rf lib/attributes rm -rf lib/incubating rm -rf lib/metrics + rm -rf doc clean-erlang: rm -rf include/attributes @@ -28,6 +29,7 @@ checkout: git checkout v$(SEMCON_VERSION) && \ cp -r docs ../guides rm -rf guides/docs + rm -f $(addprefix guides/attributes-registry/, android.md aspnetcore.md dotnet.md go.md ios.md jvm.md kestrel.md nodejs.md signalr.md v8js.md veightjs.md webengine.md) generate: generate-elixir generate-erlang format-and-test diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml index bd78dc52..4e437050 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/elixir/weaver.yaml @@ -1,6 +1,6 @@ params: stability: "stable" - excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "device", "disk", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "system", "test", "vcs", "veightjs", "v8js", "webengine"] + excluded: ["aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js", "veightjs", "webengine"] excluded_attrs: ["messaging.client_id"] templates: diff --git a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml index 89e00dcb..a82e13ec 100644 --- a/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml +++ b/apps/opentelemetry_semantic_conventions/templates/registry/erlang/weaver.yaml @@ -1,6 +1,6 @@ params: stability: "stable" - excluded: ["android", "artifact", "aspnetcore", "cicd", "cpu", "device", "disk", "dotnet", "go", "ios", "jvm", "kestrel", "linux", "nodejs", "signalr", "system", "test", "vcs", "veightjs", "v8js", "webengine"] + excluded: ["android", "aspnetcore", "dotnet", "go", "ios", "jvm", "kestrel", "nodejs", "signalr", "v8js", "veightjs", "webengine"] excluded_attrs: ["messaging.client_id"] templates: