Skip to content

Commit 946041f

Browse files
authored
Remove support for Profiling (#915)
1 parent eca033c commit 946041f

16 files changed

+1
-2388
lines changed

_examples/profiling/main.go

-80
This file was deleted.

client.go

-7
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ type ClientOptions struct {
133133
TracesSampleRate float64
134134
// Used to customize the sampling of traces, overrides TracesSampleRate.
135135
TracesSampler TracesSampler
136-
// The sample rate for profiling traces in the range [0.0, 1.0].
137-
// This is relative to TracesSampleRate - it is a ratio of profiled traces out of all sampled traces.
138-
ProfilesSampleRate float64
139136
// List of regexp strings that will be used to match against event's message
140137
// and if applicable, caught errors type and value.
141138
// If the match is found, then a whole event will be dropped.
@@ -701,10 +698,6 @@ func (client *Client) prepareEvent(event *Event, hint *EventHint, scope EventMod
701698
}
702699
}
703700

704-
if event.sdkMetaData.transactionProfile != nil {
705-
event.sdkMetaData.transactionProfile.UpdateFromEvent(event)
706-
}
707-
708701
return event
709702
}
710703

interfaces.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ const eventType = "event"
1919
// transactionType is the type of a transaction event.
2020
const transactionType = "transaction"
2121

22-
// profileType is the type of a profile event.
23-
// currently, profiles are always sent as part of a transaction event.
24-
const profileType = "profile"
25-
2622
// checkInType is the type of a check in event.
2723
const checkInType = "check_in"
2824

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

259254
// Contains information about how the name of the transaction was determined.

internal/traceparser/README.md

-15
This file was deleted.

internal/traceparser/parser.go

-217
This file was deleted.

0 commit comments

Comments
 (0)