Skip to content

feat(profiling) add global profile context while profiler is running#12394

Merged
JonasBa merged 9 commits intodevelopfrom
jb/profiling/profile-context
Jun 12, 2024
Merged

feat(profiling) add global profile context while profiler is running#12394
JonasBa merged 9 commits intodevelopfrom
jb/profiling/profile-context

Conversation

@JonasBa
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

@JonasBa could you also add a PR description?

@JonasBa
Copy link
Copy Markdown
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.

2 participants