Documentation ¶
Index ¶
- func Artifacts(ctx context.Context) belt.Artifactsdeprecated
- func Belt(ctx context.Context) *belt.Beltdeprecated
- func Fields(ctx context.Context) field.AbstractFieldsdeprecated
- func Flush(ctx context.Context)deprecated
- func Tools(ctx context.Context) belt.Toolsdeprecated
- func TraceIDs(ctx context.Context) belt.TraceIDsdeprecated
- func WithArtifact(ctx context.Context, artifactID belt.ArtifactID, artifact belt.Artifact) context.Contextdeprecated
- func WithBelt(ctx context.Context, belt *belt.Belt) context.Contextdeprecated
- func WithField(ctx context.Context, key string, value interface{}, props ...field.Property) context.Contextdeprecated
- func WithFields(ctx context.Context, fields field.AbstractFields) context.Contextdeprecated
- func WithMap(ctx context.Context, m map[string]interface{}, props ...field.Property) context.Contextdeprecated
- func WithTool(ctx context.Context, toolID belt.ToolID, tool belt.Tool) context.Contextdeprecated
- func WithTraceID(ctx context.Context, traceIDs ...belt.TraceID) context.Contextdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fields
deprecated
func Fields(ctx context.Context) field.AbstractFields
Fields returns returns the set of fields set in the scope of this Belt.
Do not modify the output of this function! It is for reading only.
Deprecated: use belt.GetFields, instead.
func WithArtifact
deprecated
func WithField
deprecated
func WithField(ctx context.Context, key string, value interface{}, props ...field.Property) context.Context
WithField returns a context with a clone/derivative of the Belt which includes the passed value.
The value is used by observability tooling. For example a Logger derived from the resulting Belt may add this value to the structured fields of each log entry.
Deprecated: use belt.WithField, instead.
func WithFields
deprecated
func WithMap
deprecated
func WithTool
deprecated
WithTool returns a context with an Belt clone/derivative, but the provided tool added to the collection of tools.
Special case: to remove a specific tool, just passed an untyped nil as `tool`.
Deprecated: use belt.WithTool, instead.
func WithTraceID
deprecated
Types ¶
This section is empty.