Skip to content

fix(tracing): Update warm/cold start span ops #2487

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

Merged
merged 4 commits into from
Sep 22, 2022
Merged

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Sep 21, 2022

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Update from app_start_warm -> app.start.warm and app_start_cold -> app.start.cold

💡 Motivation and Context

To be more consistent with Cocoa and Android, update the span ops to use . instead of _ seperators. This matches the pattern we use for the rest of the span ops also.

Cocoa: https://github.com/getsentry/sentry-cocoa/blob/91fc76f19bce100895028b52f642469698cd90ae/Sources/Sentry/SentryTracer.m#L635

Android: https://github.com/getsentry/sentry-java/blob/e2ea31c73c93aa587941cb7ea9254f853786db26/sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java#L42

See: https://www.notion.so/sentry/Set-up-an-audit-for-SDK-consistency-for-span-operations-to-enable-performance-issues-addf02a8fa234dda8acf48d4ff9b8efb

💚 How did you test it?

Updated tests

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing
  • No breaking changes

🔮 Next steps

To be more consistent with Cocoa and Android, update the span ops to use `.` instead of `_` seperators. This matches the pattern we use for the rest of the span ops also
@AbhiPrasad AbhiPrasad marked this pull request as ready for review September 21, 2022 09:33
Copy link
Contributor

@marandaneto marandaneto left a comment

Choose a reason for hiding this comment

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

Thanks @AbhiPrasad

@marandaneto marandaneto enabled auto-merge (squash) September 22, 2022 09:33
@marandaneto marandaneto merged commit a9273a0 into main Sep 22, 2022
@marandaneto marandaneto deleted the abhi-tracing-span-ops branch September 22, 2022 09:35
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.

2 participants