Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add customerType tag #149

Merged
merged 1 commit into from
Aug 27, 2024
Merged

add customerType tag #149

merged 1 commit into from
Aug 27, 2024

Conversation

sdzhong
Copy link
Contributor

@sdzhong sdzhong commented Aug 27, 2024

resolves #129

@sdzhong sdzhong requested a review from ndmanvar as a code owner August 27, 2024 19:37
@@ -29,7 +29,6 @@ protected void onCreate(Bundle savedInstanceState) {
// SENTRY Tag and Breadcrumb
String activity = this.getClass().getSimpleName();
Sentry.setTag("activity", activity);
Sentry.setTag("customerType", "enterprise");
Copy link
Contributor Author

@sdzhong sdzhong Aug 27, 2024

Choose a reason for hiding this comment

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

Removed explicit customerType = enterprise tag from MainActivity transaction only

@@ -111,6 +111,9 @@ public void onCreate() {
});
});

String[] allCustomerTypes = {"medium-plan", "large-plan", "small-plan", "enterprise"};
String customerType = allCustomerTypes[(int) (Math.random() * 4)];
Sentry.setTag("customerType", customerType);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

customerType added to SentryAndroid.init()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: other events also have their associated customerType
image

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (bda28e9) to head (42dda60).
Report is 1 commits behind head on main.

Files Patch % Lines
...ain/java/com/example/vu/android/MyApplication.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #149   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         15      15           
  Lines        777     771    -6     
  Branches      43      43           
=====================================
+ Misses       777     771    -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@realkosty realkosty left a comment

Choose a reason for hiding this comment

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

nice

@sdzhong sdzhong merged commit 8fb9ca1 into main Aug 27, 2024
4 checks passed
@sdzhong sdzhong deleted the customerType branch August 27, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Custom Tag (customerType)
2 participants