pkg

package module
v0.0.0-...-5f7612c Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogtailContextMeta

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

LogtailContextMeta is used to store metadata in Logtail context and would be propagated within context.Context.

func NewLogtailContextMeta

func NewLogtailContextMeta(project, logstore, configName string) (context.Context, *LogtailContextMeta)

NewLogtailContextMeta create a LogtailContextMeta instance.

func NewLogtailContextMetaWithoutAlarm

func NewLogtailContextMetaWithoutAlarm(project, logstore, configName string) (context.Context, *LogtailContextMeta)

NewLogtailContextMetaWithoutAlarm create a LogtailContextMeta without alarm instance.

func (*LogtailContextMeta) GetAlarm

func (c *LogtailContextMeta) GetAlarm() *util.Alarm

func (*LogtailContextMeta) GetConfigName

func (c *LogtailContextMeta) GetConfigName() string

func (*LogtailContextMeta) GetLogStore

func (c *LogtailContextMeta) GetLogStore() string

func (*LogtailContextMeta) GetProject

func (c *LogtailContextMeta) GetProject() string

func (*LogtailContextMeta) LoggerHeader

func (c *LogtailContextMeta) LoggerHeader() string

func (*LogtailContextMeta) RecordAlarm

func (c *LogtailContextMeta) RecordAlarm(alarmType, msg string)

type LogtailMetaKey

type LogtailMetaKey string
const LogTailMeta LogtailMetaKey = "LogtailContextMeta"

Jump to

Keyboard shortcuts

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