Skip to content
Open
Changes from 1 commit
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
23 changes: 11 additions & 12 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,18 +421,17 @@ func NewClient(options ClientOptions) (*Client, error) {

client.setupTransport()

// noop Telemetry Buffers and Processor fow now
// if !options.DisableTelemetryBuffer {
// client.setupTelemetryProcessor()
// } else
if options.EnableLogs {
client.batchLogger = newLogBatchProcessor(&client)
client.batchLogger.Start()
}

if !options.DisableMetrics {
client.batchMeter = newMetricBatchProcessor(&client)
client.batchMeter.Start()
if !options.DisableTelemetryBuffer {
client.setupTelemetryProcessor()
Comment thread
sentry[bot] marked this conversation as resolved.
} else {
if options.EnableLogs {
client.batchLogger = newLogBatchProcessor(&client)
client.batchLogger.Start()
}
if !options.DisableMetrics {
client.batchMeter = newMetricBatchProcessor(&client)
client.batchMeter.Start()
}
}
if options.OrgID != 0 && client.dsn != nil {
client.dsn.SetOrgID(options.OrgID)
Expand Down
Loading