Skip to content

feat(trace-view): Add an event when trace has >1 project#25839

Merged
wmak merged 2 commits intomasterfrom
wmak/feat/add-project-len-event
May 4, 2021
Merged

feat(trace-view): Add an event when trace has >1 project#25839
wmak merged 2 commits intomasterfrom
wmak/feat/add-project-len-event

Conversation

@wmak
Copy link
Copy Markdown
Member

@wmak wmak commented May 3, 2021

  • Also add tags for projects in the trace grouped, this is cause the
    existing num_projects tag is the number of projects in the query

- Also add tags for projects in the trace grouped, this is cause the
  existing num_projects tag is the number of projects in the query
@wmak wmak requested a review from a team May 3, 2021 23:48
Copy link
Copy Markdown
Member

@Zylphrex Zylphrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to be more explicit where we see this analytic that this is the number of traces viewed with more than 1 project rather than the total number of traces.

@wmak
Copy link
Copy Markdown
Member Author

wmak commented May 4, 2021

@Zylphrex good idea, added trace_id so we can count_unique on it


sentry_sdk.set_tag("trace_view.trace", trace_id)
sentry_sdk.set_tag("trace_view.transactions", len_transactions)
sentry_sdk.set_tag("trace_view.transactions.grouped", group_length(len_transactions))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@wmak wmak merged commit 3fdad39 into master May 4, 2021
@wmak wmak deleted the wmak/feat/add-project-len-event branch May 4, 2021 19:27
JoshFerge pushed a commit that referenced this pull request May 4, 2021
* feat(trace-view): Add an event when trace has >1 project

- Also add tags for projects in the trace grouped, this is cause the
  existing num_projects tag is the number of projects in the query
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants