Class BrowserIncubatingAttributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionArray of brand name and version separated by a spacestatic final io.opentelemetry.api.common.AttributeKey<String>Preferred language of the user using the browserstatic final io.opentelemetry.api.common.AttributeKey<Boolean>A boolean that is true if the browser is running on a mobile devicestatic final io.opentelemetry.api.common.AttributeKey<String>The platform on which the browser is running -
Method Summary
-
Field Details
-
BROWSER_BRANDS
Array of brand name and version separated by a spaceNotes:
This value is intended to be taken from the UA client hints API (
navigator.userAgentData.brands). -
BROWSER_LANGUAGE
Preferred language of the user using the browserNotes:
This value is intended to be taken from the Navigator API
navigator.language. -
BROWSER_MOBILE
A boolean that is true if the browser is running on a mobile deviceNotes:
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
The platform on which the browser is runningNotes:
This value is intended to be taken from the UA client hints API (
navigator.userAgentData.platform). If unavailable, the legacynavigator.platformAPI 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 theos.typeandos.nameattributes. However, for consistency, the values in thebrowser.platformattribute should capture the exact value that the user agent provides.
-