Class DeviceIncubatingAttributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String>A unique identifier representing the devicestatic final io.opentelemetry.api.common.AttributeKey<String>The name of the device manufacturerstatic final io.opentelemetry.api.common.AttributeKey<String>The model identifier for the devicestatic final io.opentelemetry.api.common.AttributeKey<String>The marketing name for the device model -
Method Summary
-
Field Details
-
DEVICE_ID
A unique identifier representing the deviceNotes:
Its value SHOULD be identical for all apps on a device and it SHOULD NOT change if an app is uninstalled and re-installed. However, it might be resettable by the user for all apps on a device. Hardware IDs (e.g. vendor-specific serial number, IMEI or MAC address) MAY be used as values.
More information about Android identifier best practices can be found in the Android user data IDs guide.
[!WARNING]
This attribute may contain sensitive (PII) information. 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.
Due to these reasons, this identifier is not recommended for consumer applications and will likely result in rejection from both Google Play and App Store. However, it may be appropriate for specific enterprise scenarios, such as kiosk devices or enterprise-managed devices, with appropriate compliance clearance. Any instrumentation providing this identifier MUST implement it as an opt-in feature.
See
app.installation.idfor a more privacy-preserving alternative. -
DEVICE_MANUFACTURER
The name of the device manufacturerNotes:
The Android OS provides this field via Build. iOS apps SHOULD hardcode the value
Apple. -
DEVICE_MODEL_IDENTIFIER
The model identifier for the deviceNotes:
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.
-
DEVICE_MODEL_NAME
The marketing name for the device modelNotes:
It's recommended this value represents a human-readable version of the device model rather than a machine-readable alternative.
-