loggingutil

package
v0.0.0-...-a70aae3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package loggingutil contains utility functions for logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAnalysisID

func SetAnalysisID(c context.Context, analysisID int64) context.Context

SetAnalysisID returns a context with the logging field analysis_id set

func SetAnalyzedBBID

func SetAnalyzedBBID(c context.Context, bbid int64) context.Context

SetAnalyzedBBID returns a context with the logging field analyzed_bbid set

func SetProject

func SetProject(c context.Context, project string) context.Context

SetProject returns a context with the logging field project set

func SetQueryBBID

func SetQueryBBID(c context.Context, bbid int64) context.Context

SetQueryBBID returns a context with the logging field query_bbid set

func SetRerunBBID

func SetRerunBBID(c context.Context, rerunBBID int64) context.Context

SetRerunBBID returns a context with the logging field rerun_bbid set

func UpdateLoggingWithAnalysisID

func UpdateLoggingWithAnalysisID(c context.Context, analysisID int64) (context.Context, error)

UpdateLoggingWithAnalysisID returns a context with logging field analysis_id and the corresponding analyzed_bbid set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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