Skip to content

Add data from transaction root span to trace.context.data#3642

Closed
lbloder wants to merge 3 commits intomainfrom
feat/transaction-data-in-trace-context
Closed

Add data from transaction root span to trace.context.data#3642
lbloder wants to merge 3 commits intomainfrom
feat/transaction-data-in-trace-context

Conversation

@lbloder
Copy link
Copy Markdown
Collaborator

@lbloder lbloder commented Aug 16, 2024

📜 Description

Add root span data to traceContext when SentryTransaction is created

💡 Motivation and Context

Fixes #3626

💚 How did you test it?

Modified existing serialization tests

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 16, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against b5e0691

@lbloder lbloder changed the title add transaction/root-span data to traceContext, adapt tests Add data from transaction root span to trace.context.data Aug 16, 2024
@github-actions
Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 429.10 ms 495.08 ms 65.98 ms
Size 1.70 MiB 2.35 MiB 660.50 KiB

@lbloder lbloder marked this pull request as ready for review August 19, 2024 07:06
}

final Map<String, Object> data = sentryTracer.getData();
// TODO should we remove setExtra here, or do we need it for backwards compat?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd keep it for now

Copy link
Copy Markdown
Collaborator Author

@lbloder lbloder Sep 2, 2024

Choose a reason for hiding this comment

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

@stefanosiano as per the latest discussion here I'll remove it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@stefanosiano still in some discussions about this :) as both not setting the data in extras as well as adding data to trace.context.data might result in breaking changes for users

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Closing this for now, created a PR that targets 8.x which removes this (as both keeping and removing this would constitute a breaking change).

Copy link
Copy Markdown
Contributor

@stefanosiano stefanosiano left a comment

Choose a reason for hiding this comment

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

nice!

@lbloder lbloder changed the base branch from main to 8.x.x September 30, 2024 12:56
@lbloder lbloder changed the base branch from 8.x.x to main September 30, 2024 12:57
@lbloder
Copy link
Copy Markdown
Collaborator Author

lbloder commented Oct 7, 2024

Closed in favor of #3735

@lbloder lbloder closed this Oct 7, 2024
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.

Emit transaction.data inside contexts.trace.data

2 participants