Skip to content

Implement app.installation.id resource attribute #922

Open
@bencehornak

Description

@bencehornak

The experimental semconv app.installation.id got accepted recently (open-telemetry/semantic-conventions#1897), I think it would be a useful addition to the existing attributes provided by the SDK.

What makes its implementation a bit tricky, is that there are multiple ways you can implement this resource attribute on Android. In the specs we have listed these four options:

As @bidetofevil pointed out the most practical choice for this SDK is probably number two (UUID), however, I could imaging exposing a setter for each of the options, as they all have pros and cons.

OpenTelemetryRum.builder(this, config)
  .appInstallationIdProvider(UuidAppInstallationIdProvider()) // default behavior, if nothing is specified
  // or
  .appInstallationIdProvider(FirebaseAppInstallationIdProvider())
  // or
  .appInstallationIdProvider(AppSetIdAppInstallationIdProvider())
  // or
  .appInstallationIdProvider(AndroidIdAppInstallationIdProvider())
  // or
  .appInstallationIdProvider(object : AppInstallationIdProvider() { ... })
  // ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions