Class BrowserIncubatingAttributes

java.lang.Object
io.opentelemetry.semconv.incubating.BrowserIncubatingAttributes

public final class BrowserIncubatingAttributes extends Object
  • Field Details

    • BROWSER_BRANDS

      public static final io.opentelemetry.api.common.AttributeKey<List<String>> BROWSER_BRANDS
      Array of brand name and version separated by a space

      Notes:

      This value is intended to be taken from the UA client hints API ( navigator.userAgentData.brands).

    • BROWSER_LANGUAGE

      public static final io.opentelemetry.api.common.AttributeKey<String> BROWSER_LANGUAGE
      Preferred language of the user using the browser

      Notes:

      This value is intended to be taken from the Navigator API navigator.language.

    • BROWSER_MOBILE

      public static final io.opentelemetry.api.common.AttributeKey<Boolean> BROWSER_MOBILE
      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 ( navigator.userAgentData.mobile). If unavailable, this attribute SHOULD be left unset.

    • BROWSER_PLATFORM

      public static final io.opentelemetry.api.common.AttributeKey<String> BROWSER_PLATFORM
      The platform on which the browser is running

      Notes:

      This value is intended to be taken from the UA client hints API ( 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. Note that some (but not all) of these values can overlap with values in the os.type and os.name attributes. However, for consistency, the values in the browser.platform attribute should capture the exact value that the user agent provides.