Skip to content

Commit 82a00ab

Browse files
vaindcleptric
andauthored
Single profiler goroutine (#655)
Co-authored-by: Michi Hoffmann <[email protected]>
1 parent 8b3833f commit 82a00ab

9 files changed

+691
-236
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Features
6+
7+
- Run single profiler even when profiling from multiple parallel goroutines ([#655](https://github.com/getsentry/sentry-go/pull/655))
8+
59
### Bug fixes
610

711
- Fix trace function name parsing in profiler on go1.21+ ([#695](https://github.com/getsentry/sentry-go/pull/695))
@@ -11,6 +15,7 @@
1115
The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.23.0.
1216

1317
### Features
18+
1419
- Initial support for [Cron Monitoring](https://docs.sentry.io/product/crons/) ([#661](https://github.com/getsentry/sentry-go/pull/661))
1520

1621
This is how the basic usage of the feature looks like:
@@ -62,6 +67,7 @@ The Sentry SDK team is happy to announce the immediate availability of Sentry Go
6267
- Expose SpanFromContext function ([#672](https://github.com/getsentry/sentry-go/pull/672))
6368

6469
### Bug fixes
70+
6571
- Make `Span.Finish` a no-op when the span is already finished ([#660](https://github.com/getsentry/sentry-go/pull/660))
6672

6773
## 0.22.0

profile_sample.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ type (
2828

2929
profileSample struct {
3030
ElapsedSinceStartNS uint64 `json:"elapsed_since_start_ns"`
31-
QueueAddress string `json:"queue_address,omitempty"`
3231
StackID int `json:"stack_id"`
3332
ThreadID uint64 `json:"thread_id"`
3433
}
@@ -41,10 +40,10 @@ type (
4140
profileStack []int
4241

4342
profileTrace struct {
44-
Frames []*Frame `json:"frames"`
45-
Samples []*profileSample `json:"samples"`
46-
Stacks []profileStack `json:"stacks"`
47-
ThreadMetadata map[string]profileThreadMetadata `json:"thread_metadata"`
43+
Frames []*Frame `json:"frames"`
44+
Samples []profileSample `json:"samples"`
45+
Stacks []profileStack `json:"stacks"`
46+
ThreadMetadata map[uint64]*profileThreadMetadata `json:"thread_metadata"`
4847
}
4948

5049
profileInfo struct {

0 commit comments

Comments
 (0)