func SetTag(ctx context.Context, key, value string) {
	hub := getHubFromContext(ctx)
	if hub == nil {
		return
	}
	hub.Scope().SetTag(key, value)
}
SetTag sets a tag for the hub associated with the given context. If Sentry is not enabled or the
context has no associated hub, this function will have no effect.
package sentry
import (
	"context"
	"fmt"
	"github.com/getsentry/sentry-go"
	"k8s.io/klog/v2"
)
var initialized bool
func Initialize(dsn, environment, release string) error {
	if initialized {
		return fmt.Errorf("sentry Initialize called after initialization")
	}
	var clientOptions sentry.ClientOptions
	clientOptions.Dsn = dsn
	clientOptions.Environment = environment
	clientOptions.Release = release
	if err := sentry.Init(clientOptions); err != nil {
		return err
	}
	initialized = true
	return nil
}
func SetHubOnContext(ctx context.Context) context.Context {
	hub := sentry.CurrentHub().Clone()
	return sentry.SetHubOnContext(ctx, hub)
}
func getHubFromContext(ctx context.Context) *sentry.Hub {
	if !initialized {
		klog.V(5).Info("getHubFromContext: Sentry not initialized")
		return nil
	}
	if !sentry.HasHubOnContext(ctx) {
		klog.Error("getHubFromContext: context is missing Sentry hub")
		return nil
	}
	return sentry.GetHubFromContext(ctx)
}