Template
fix: make template build, lint and test cleanly out of the box
This commit is contained in:
@@ -17,6 +17,12 @@ func (p *Plugin) uninitTelemetry() error {
|
||||
}
|
||||
|
||||
func (p *Plugin) initTelemetry(enableDiagnostics *bool) error {
|
||||
// Ключи RudderStack задаются при сборке (MM_RUDDER_CALLS_PROD, MM_RUDDER_DATAPLANE_URL).
|
||||
// Без них телеметрия просто выключена.
|
||||
if rudderWriteKey == "" || rudderDataplaneURL == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
p.mut.Lock()
|
||||
defer p.mut.Unlock()
|
||||
if p.telemetry == nil && enableDiagnostics != nil && *enableDiagnostics {
|
||||
|
||||
Reference in New Issue
Block a user