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

Remove support for Profiling #915

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 0 additions & 80 deletions _examples/profiling/main.go

This file was deleted.

7 changes: 0 additions & 7 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ type ClientOptions struct {
TracesSampleRate float64
// Used to customize the sampling of traces, overrides TracesSampleRate.
TracesSampler TracesSampler
// The sample rate for profiling traces in the range [0.0, 1.0].
// This is relative to TracesSampleRate - it is a ratio of profiled traces out of all sampled traces.
ProfilesSampleRate float64
// List of regexp strings that will be used to match against event's message
// and if applicable, caught errors type and value.
// If the match is found, then a whole event will be dropped.
Expand Down Expand Up @@ -701,10 +698,6 @@ func (client *Client) prepareEvent(event *Event, hint *EventHint, scope EventMod
}
}

if event.sdkMetaData.transactionProfile != nil {
event.sdkMetaData.transactionProfile.UpdateFromEvent(event)
}

return event
}

Expand Down
7 changes: 1 addition & 6 deletions interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ const eventType = "event"
// transactionType is the type of a transaction event.
const transactionType = "transaction"

// profileType is the type of a profile event.
// currently, profiles are always sent as part of a transaction event.
const profileType = "profile"

// checkInType is the type of a check in event.
const checkInType = "check_in"

Expand Down Expand Up @@ -252,8 +248,7 @@ type Exception struct {
// SDKMetaData is a struct to stash data which is needed at some point in the SDK's event processing pipeline
// but which shouldn't get send to Sentry.
type SDKMetaData struct {
dsc DynamicSamplingContext
transactionProfile *profileInfo
dsc DynamicSamplingContext
}

// Contains information about how the name of the transaction was determined.
Expand Down
15 changes: 0 additions & 15 deletions internal/traceparser/README.md

This file was deleted.

217 changes: 0 additions & 217 deletions internal/traceparser/parser.go

This file was deleted.

Loading
Loading