Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/include/opentelemetry/semconv/client_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace client

/**
Client address - domain name if available without reverse DNS lookup; otherwise, IP address or
Unix domain socket name. <p> When observed from the server side, and when communicating through an
UNIX domain socket name. <p> When observed from the server side, and when communicating through an
intermediary, @code client.address @endcode SHOULD represent the client address behind any
intermediaries, for example proxies, if it's available.
*/
Expand Down
2 changes: 1 addition & 1 deletion api/include/opentelemetry/semconv/code_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace code
static constexpr const char *kCodeColumnNumber = "code.column.number";

/**
The source code file name that identifies the code unit as uniquely as possible (preferably an
The source code filename that identifies the code unit as uniquely as possible (preferably an
absolute file path). This attribute MUST NOT be used on the Profile signal since the data is
already captured in 'message Function'. This constraint is imposed to prevent redundancy and
maintain data integrity.
Expand Down
2 changes: 1 addition & 1 deletion api/include/opentelemetry/semconv/container_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static constexpr const char *kContainerId = "container.id";
static constexpr const char *kContainerImageName = "container.image.name";

/**
Repo digests of the container image as provided by the container runtime.
Repository digests of the container image as provided by the container runtime.
<p>
<a
href="https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect">Docker</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace app
static constexpr const char *kAppBuildId = "app.build_id";

/**
A unique identifier representing an instance of an end-user facing app crash.
A unique identifier representing an instance of an end user facing app crash.
<p>
Its value MAY be meaningful and be used as a reference for telemetry and metadata recorded by
the same instrumentation (e.g. it is an ID generated by an external source that captured the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ static constexpr const char *kArtifactAttestationFilename = "artifact.attestatio
static constexpr const char *kArtifactAttestationHash = "artifact.attestation.hash";

/**
The id of the build <a href="https://slsa.dev/attestation-model">software attestation</a>.
The ID of the build <a href="https://slsa.dev/attestation-model">software attestation</a>.
*/
static constexpr const char *kArtifactAttestationId = "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. <p> This file name can
also act as the <a href="https://slsa.dev/spec/v1.0/terminology#package-model">Package Name</a> in
The human readable filename of the artifact, typically generated during build and release
processes. Often includes the package name and version in the filename. <p> This filename can also
act as the <a href="https://slsa.dev/spec/v1.0/terminology#package-model">Package Name</a> in
cases where the package ecosystem maps accordingly. Additionally, the artifact <a
href="https://slsa.dev/spec/v1.0/terminology#software-supply-chain">can be published</a> for
others, but that is not a guarantee.
Expand Down
125 changes: 125 additions & 0 deletions api/include/opentelemetry/semconv/incubating/browser_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,131 @@ static constexpr const char *kBrowserMobile = "browser.mobile";
*/
static constexpr const char *kBrowserPlatform = "browser.platform";

/**
The delta between the current value and the last-reported value. See <a
href="https://github.com/GoogleChrome/web-vitals?tab=readme-ov-file#report-only-the-delta-of-changes">delta</a>.
*/
static constexpr const char *kBrowserWebVitalDelta = "browser.web_vital.delta";

/**
A unique ID representing this particular metric instance.
*/
static constexpr const char *kBrowserWebVitalId = "browser.web_vital.id";

/**
Name of the web vital.
*/
static constexpr const char *kBrowserWebVitalName = "browser.web_vital.name";

/**
The type of navigation, as reported by the <a
href="https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type">Navigation
Timing API</a>, with additional values reported by the web-vitals library.
*/
static constexpr const char *kBrowserWebVitalNavigationType = "browser.web_vital.navigation_type";

/**
The rating of the web vital value against the "good", "needs improvement", and "poor" thresholds
defined for the metric.
*/
static constexpr const char *kBrowserWebVitalRating = "browser.web_vital.rating";

/**
Value of the web vital.
*/
static constexpr const char *kBrowserWebVitalValue = "browser.web_vital.value";

namespace BrowserWebVitalNameValues
{
/**
Cumulative Layout Shift. See <a href="https://web.dev/articles/cls">cls</a>.
*/
static constexpr const char *kCls = "cls";

/**
Largest Contentful Paint. See <a href="https://web.dev/articles/lcp">lcp</a>.
*/
static constexpr const char *kLcp = "lcp";

/**
First Contentful Paint. See <a href="https://web.dev/articles/fcp">fcp</a>.
*/
static constexpr const char *kFcp = "fcp";

/**
Interaction to Next Paint. See <a href="https://web.dev/articles/inp">inp</a>.
*/
static constexpr const char *kInp = "inp";

/**
Time to First Byte. See <a href="https://web.dev/articles/ttfb">ttfb</a>.
*/
static constexpr const char *kTtfb = "ttfb";

/**
First Input Delay. See <a href="https://web.dev/articles/fid">fid</a>.

@deprecated
{"note": "Replaced by Interaction to Next Paint (@code inp @endcode), which became a Core Web
Vital in March 2024. See <a href="https://web.dev/articles/inp">inp</a>.", "reason": "obsoleted"}
*/
OPENTELEMETRY_DEPRECATED static constexpr const char *kFid = "fid";

} // namespace BrowserWebVitalNameValues

namespace BrowserWebVitalNavigationTypeValues
{
/**
Navigation started by clicking a link, entering a URL, form submission, or a script operation.
*/
static constexpr const char *kNavigate = "navigate";

/**
Navigation through a reload operation or a @code Location.reload() @endcode call.
*/
static constexpr const char *kReload = "reload";

/**
Navigation through the browser's history traversal (e.g. back/forward buttons).
*/
static constexpr const char *kBackForward = "back-forward";

/**
Navigation restoring a page from the back/forward cache (bfcache).
*/
static constexpr const char *kBackForwardCache = "back-forward-cache";

/**
Navigation to a page that was prerendered.
*/
static constexpr const char *kPrerender = "prerender";

/**
Navigation restoring a page that was previously discarded by the browser.
*/
static constexpr const char *kRestore = "restore";

} // namespace BrowserWebVitalNavigationTypeValues

namespace BrowserWebVitalRatingValues
{
/**
The metric value is within the "good" threshold.
*/
static constexpr const char *kGood = "good";

/**
The metric value is within the "needs improvement" threshold.
*/
static constexpr const char *kNeedsImprovement = "needs-improvement";

/**
The metric value is within the "poor" threshold.
*/
static constexpr const char *kPoor = "poor";

} // namespace BrowserWebVitalRatingValues

} // namespace browser
} // namespace semconv
OPENTELEMETRY_END_NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace client

/**
Client address - domain name if available without reverse DNS lookup; otherwise, IP address or
Unix domain socket name. <p> When observed from the server side, and when communicating through an
UNIX domain socket name. <p> When observed from the server side, and when communicating through an
intermediary, @code client.address @endcode SHOULD represent the client address behind any
intermediaries, for example proxies, if it's available.
*/
Expand Down
10 changes: 10 additions & 0 deletions api/include/opentelemetry/semconv/incubating/cloud_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ static constexpr const char *kOracleCloudCompute = "oracle_cloud_compute";
*/
static constexpr const char *kOracleCloudOke = "oracle_cloud_oke";

/**
Compute on Scaleway Cloud
*/
static constexpr const char *kScalewayCloudCompute = "scaleway_cloud_compute";

/**
Tencent Cloud Cloud Virtual Machine (CVM)
*/
Expand Down Expand Up @@ -307,6 +312,11 @@ static constexpr const char *kIbmCloud = "ibm_cloud";
*/
static constexpr const char *kOracleCloud = "oracle_cloud";

/**
Scaleway Cloud
*/
static constexpr const char *kScalewayCloud = "scaleway_cloud";

/**
Tencent Cloud
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static constexpr const char *kCloudfoundrySystemId = "cloudfoundry.system.id";
<p>
CloudFoundry defines the @code instance_id @endcode in the <a
href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>. It
is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the vm id for
is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the vm ID for
CloudFoundry components. <p> When system components are instrumented, values from the <a
href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a> should be used. The @code
system.instance.id @endcode should be set to @code spec.id @endcode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OPENTELEMETRY_DEPRECATED static constexpr const char *kCodeColumn = "code.column
static constexpr const char *kCodeColumnNumber = "code.column.number";

/**
The source code file name that identifies the code unit as uniquely as possible (preferably an
The source code filename that identifies the code unit as uniquely as possible (preferably an
absolute file path). This attribute MUST NOT be used on the Profile signal since the data is
already captured in 'message Function'. This constraint is imposed to prevent redundancy and
maintain data integrity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static constexpr const char *kContainerId = "container.id";
/**
Runtime specific image identifier. Usually a hash algorithm followed by a UUID.
<p>
Docker defines a sha256 of the image id; @code container.image.id @endcode corresponds to the
Docker defines a sha256 of the image ID; @code container.image.id @endcode corresponds to the
@code Image @endcode field from the Docker container inspect <a
href="https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Container/operation/ContainerInspect">API</a>
endpoint. K8s defines a link to the container registry repository with digest @code "imageID":
Expand All @@ -89,7 +89,7 @@ static constexpr const char *kContainerImageId = "container.image.id";
static constexpr const char *kContainerImageName = "container.image.name";

/**
Repo digests of the container image as provided by the container runtime.
Repository digests of the container image as provided by the container runtime.
<p>
<a
href="https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect">Docker</a>
Expand All @@ -110,7 +110,7 @@ static constexpr const char *kContainerImageTags = "container.image.tags";
/**
Container labels, @code <key> @endcode being the label name, the value being the label value.
<p>
For example, a docker container label @code app @endcode with value @code nginx @endcode SHOULD be
For example, a Docker container label @code app @endcode with value @code nginx @endcode SHOULD be
recorded as the @code container.label.app @endcode attribute with value @code "nginx" @endcode.
*/
static constexpr const char *kContainerLabel = "container.label";
Expand Down
Loading
Loading