Skip to content

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented Jun 6, 2024

Attach profile context to events while a profiler is active and assign thread id and name to the trace context.

This will be required by the profiling API so that we can figure out the links between spans and profiles. In the future (span streaming), tid and thread name will be assigned to each span

@JonasBa JonasBa requested review from AbhiPrasad and mydea June 6, 2024 19:20
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

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

My comments don't block here, let's go with this

trace: {
data: expect.objectContaining({
['thread.id']: expect.any(String),
['thread.name']: expect.any(String),
Copy link
Member

Choose a reason for hiding this comment

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

we should add a test to validate the isMainThread behaviour

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do

@AbhiPrasad
Copy link
Member

@JonasBa could you also add a PR description?

@JonasBa
Copy link
Member Author

JonasBa commented Jun 10, 2024

@JonasBa could you also add a PR description?

Yup, will clean it up. Sorry about that

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.

3 participants