tag

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LoggingCallAtKey = "logging-call-at"

LoggingCallAtKey is reserved tag

Variables

View Source
var (
	// WorkflowActionWorkflowStarted is for workflow start / finish
	WorkflowActionWorkflowStarted = workflowAction("add-workflow-started-event")
)

Pre-defined values for TagWorkflowAction

Functions

This section is empty.

Types

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

Tag is the interface for logging system

func Address

func Address(ad string) Tag

Address return tag for Address

func Bool

func Bool(b bool) Tag

Bool returns tag for Bool

func Counter

func Counter(c int) Tag

Counter returns tag for Counter

func DefaultValue

func DefaultValue(v interface{}) Tag

DefaultValue returns tag for DefaultValue

func Env

func Env(env string) Tag

Env return tag for runtime environment

func Error

func Error(err error) Tag

Error returns tag for Error

func Key

func Key(k string) Tag

Key returns tag for Key

func Name

func Name(k string) Tag

Name returns tag for Name

func NextNumber

func NextNumber(n int64) Tag

NextNumber returns tag for NextNumber

func Number

func Number(n int64) Tag

Number returns tag for Number

func OperationName

func OperationName(operationName string) Tag

OperationName returns tag for OperationName

func Port

func Port(p int) Tag

Port returns tag for Port

func Service

func Service(sv string) Tag

Service returns tag for Service

func SysStackTrace

func SysStackTrace(stackTrace string) Tag

SysStackTrace returns tag for SysStackTrace

func Timestamp

func Timestamp(timestamp time.Time) Tag

Timestamp returns tag for Timestamp

func Value

func Value(v interface{}) Tag

Value returns tag for Value

func ValueType

func ValueType(v interface{}) Tag

ValueType returns tag for ValueType

func WorkflowActivityID

func WorkflowActivityID(id string) Tag

WorkflowActivityID returns tag for WorkflowActivityID

func WorkflowBinaryChecksum

func WorkflowBinaryChecksum(cs string) Tag

WorkflowBinaryChecksum returns tag for WorkflowBinaryChecksum

func WorkflowError

func WorkflowError(error error) Tag

WorkflowError returns tag for WorkflowError

func WorkflowEventID

func WorkflowEventID(eventID int64) Tag

WorkflowEventID returns tag for WorkflowEventID

func WorkflowID

func WorkflowID(workflowID string) Tag

WorkflowID returns tag for WorkflowID

func WorkflowResetBaseRunID

func WorkflowResetBaseRunID(runID string) Tag

WorkflowResetBaseRunID returns tag for WorkflowResetBaseRunID

func WorkflowResetNewRunID

func WorkflowResetNewRunID(runID string) Tag

WorkflowResetNewRunID returns tag for WorkflowResetNewRunID

func WorkflowRunID

func WorkflowRunID(runID string) Tag

WorkflowRunID returns tag for WorkflowRunID

func WorkflowState

func WorkflowState(s int) Tag

WorkflowState returns tag for WorkflowState

func WorkflowTimeoutType

func WorkflowTimeoutType(timeoutType int64) Tag

WorkflowTimeoutType returns tag for WorkflowTimeoutType

func WorkflowType

func WorkflowType(wfType string) Tag

WorkflowType returns tag for WorkflowType

func (*Tag) Field

func (t *Tag) Field() zap.Field

Field returns a zap field

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL