/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ /* * DO NOT EDIT, this is an Auto-generated file from: * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2 */ #pragma once #include "opentelemetry/common/macros.h" #include "opentelemetry/version.h" OPENTELEMETRY_BEGIN_NAMESPACE namespace semconv { namespace browser { /** Array of brand name and version separated by a space
This value is intended to be taken from the UA client hints API (@code navigator.userAgentData.brands @endcode). */ static constexpr const char *kBrowserBrands = "browser.brands"; /** Preferred language of the user using the browser
This value is intended to be taken from the Navigator API @code navigator.language @endcode. */ static constexpr const char *kBrowserLanguage = "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 (@code navigator.userAgentData.mobile @endcode). If unavailable, this attribute SHOULD be left unset. */ static constexpr const char *kBrowserMobile = "browser.mobile"; /** The platform on which the browser is running
This value is intended to be taken from the UA client hints API (@code navigator.userAgentData.platform @endcode). If unavailable, the legacy @code navigator.platform @endcode 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. Note that some (but not all) of these values can overlap with values in the @code os.type @endcode and @code os.name @endcode attributes. However, for consistency, the values in the @code browser.platform @endcode attribute should capture the exact value that the user agent provides. */ static constexpr const char *kBrowserPlatform = "browser.platform"; } // namespace browser } // namespace semconv OPENTELEMETRY_END_NAMESPACE