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

New Performance API Wishlist #4215

Open
adinauer opened this issue Feb 28, 2025 · 0 comments
Open

New Performance API Wishlist #4215

adinauer opened this issue Feb 28, 2025 · 0 comments

Comments

@adinauer
Copy link
Member

adinauer commented Feb 28, 2025

Description

This issue shall serve as a sort of wishlist where we can collect ideas for the new Performance API.

If you have anything you'd like us to improve when reworking our Performance API in the Java SDK, please do leave a comment.

Here's some ideas:

  • Get rid of transaction, only have spans in the API (note, depending on when we rewrite the API, the Sentry UI in product will likely still have transactions but the Java SDK API will not have those anymore)
  • Have spans added to the scope by default (this may not apply to Android due to globalHubMode)
  • Make it easier to continue a trace (Sentry.continueTrace -> Sentry.startTransaction is more complicated than it needs to be)
  • Consider moving to something like a Propagator design that OpenTelemetry has for extracting and injecting tracing information
  • Merge different objects used for tracing information (PropagationContext, TransactionContext/SpanContext, Baggage, TraceContext)
  • Have the span implement AutoClosable so it can be used in try with resources statements and have the span finished automatically
  • Align attributes / data closer to OpenTelemetry (this may mean limited support for data types)

NOTE: A reworked Performance API will likely be a breaking change where we completely remove the old API as it will likely be very hard (if not impossible) to make them coexist. So we can use this as an opportunity to clean up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants