Skip to content

Use package name source identifier in sdk interface to identify different installation methods #43427

Closed

Description

@AbhiPrasad

We need to easily see how the SDK was installed. For example, did a JavaScript browser event come from the CDN, npm or the loader? Did an iOS event come from carthage, spm or cocaopods?

We first decided to make source a new top level field in the event payload sdk interface, but ended up reverting this decision in getsentry/develop#819.

#43427 (comment)

Now we're going to take advantage of the packages field in the SDK interface instead.

A list of packages that were installed as part of this SDK or the activated integrations. Each package consists of a name in the format source:identifier and version. If the source is a Git repository, the source should be git, the identifier should be a checkout link and the version should be a Git reference (branch, tag or SHA).

Here then we can update the source to accomplish this.

#43427 (comment)

Activity

  1. self-assigned this
    on Jan 19, 2023
  2. changed the title [-]Add `source` field to SDK metadata in event payload[/-] [+]Use package name `source` identifier in sdk interface to indentify different package manager use[/+] on Jan 19, 2023
  3. changed the title [-]Use package name `source` identifier in sdk interface to indentify different package manager use[/-] [+]Use package name `source` identifier in sdk interface to identify different installation methods[/+] on Jan 19, 2023
  4. AbhiPrasad commented on Jan 23, 2023

    @AbhiPrasad
    ContributorAuthor
  5. AbhiPrasad commented on Feb 13, 2023

    @AbhiPrasad
    ContributorAuthor

    Closing this ticket for now, rest of all work is tracked in internal JIRA and with getsentry/sentry-cocoa#2625

  6. locked and limited conversation to collaborators on Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions