Documentation ¶
Index ¶
- type LogtailContextMeta
- func (c *LogtailContextMeta) GetAlarm() *util.Alarm
- func (c *LogtailContextMeta) GetConfigName() string
- func (c *LogtailContextMeta) GetLogStore() string
- func (c *LogtailContextMeta) GetProject() string
- func (c *LogtailContextMeta) LoggerHeader() string
- func (c *LogtailContextMeta) RecordAlarm(alarmType, msg string)
- type LogtailMetaKey
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"
Click to show internal directories.
Click to hide internal directories.