Documentation ¶
Index ¶
- Constants
- func AddSpanContextToLogger(ctx context.Context) context.Context
- func AddSpanToLogger(ctx context.Context, span trace.Span) (context.Context, trace.Span)
- func Init(ctx context.Context, isUserService bool, ...) error
- func NewOtelLogger(logger *log.Logger, level log.Level) logr.Logger
- func OpenDBAndInstrument(dsn string) (*sql.DB, error)
- func SuccessOrFailureStatusAttr(succeeded bool) attribute.KeyValue
- type Config
- type ExportOTELFlag
Constants ¶
View Source
const ( ModuleNameAttribute = "ftl.module.name" OutcomeStatusNameAttribute = "ftl.outcome.status" RunnerDeploymentKeyAttribute = "ftl.deployment.key" SuccessStatus = "success" FailureStatus = "failure" )
Variables ¶
This section is empty.
Functions ¶
func AddSpanContextToLogger ¶ added in v0.383.0
func AddSpanToLogger ¶ added in v0.383.0
func SuccessOrFailureStatusAttr ¶ added in v0.324.0
Types ¶
type Config ¶
type Config struct { LogLevel log.Level `default:"error" help:"OTEL log level." env:"FTL_O11Y_LOG_LEVEL"` ExportOTEL ExportOTELFlag `help:"Export observability data to OTEL." env:"OTEL_EXPORTER_OTLP_ENDPOINT"` }
type ExportOTELFlag ¶ added in v0.138.0
type ExportOTELFlag bool
func (*ExportOTELFlag) UnmarshalText ¶ added in v0.138.0
func (e *ExportOTELFlag) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.