Documentation
¶
Index ¶
- Variables
- func SetupOtelSDK(ctx context.Context) (shutdown func(context.Context) error, err error)
- func WithChallengeID(ctx context.Context, id string) context.Context
- func WithIdentity(ctx context.Context, id string) context.Context
- func WithSourceID(ctx context.Context, id string) context.Context
- func WithoutChallengeID(ctx context.Context) context.Context
- func WithoutIdentity(ctx context.Context) context.Context
- func WithoutSourceID(ctx context.Context) context.Context
- type Configuration
- type Logger
- func (log *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)
- func (log *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)
- func (log *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)
- func (log *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Tracer trace.Tracer = tracenoop.NewTracerProvider().Tracer("") Meter metric.Meter = metricnoop.NewMeterProvider().Meter("") )
View Source
var (
PulumiRuntimes = []string{"go"}
)
View Source
var (
Version = ""
)
Functions ¶
func SetupOtelSDK ¶
SetupOtelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.
func WithChallengeID ¶ added in v0.1.4
func WithIdentity ¶ added in v0.4.0
func WithSourceID ¶ added in v0.1.4
func WithoutChallengeID ¶ added in v0.4.3
Types ¶
type Configuration ¶
type Configuration struct { Directory string Otel struct { Tracing bool ServiceName string } Lock struct { Kind string EtcdEndpoints []string EtcdUsername string EtcdPassword string } OCI struct { RegistryURL *string Username *string Password *string } }
Configuration holds the parameters that are shared across submodules.
var (
Conf Configuration
)
Click to show internal directories.
Click to hide internal directories.