Documentation ¶
Overview ¶
Package cwlogs provides a plugin for Amazon CloudWatch Logs. The plugin associates segments with log groups, and allows you to view the log of a trace using CloudWatch ServiceLens.
The following is an example for associating a log group named "/your-application/log-group-name".
plugin := cwlogs.New(&cwlogs.Config{ LogReferences: []*schema.LogReference{ { LogGroup: "/your-application/log-group-name" }, }, }) xray.AddPlugin(plugin)
And then, you need to add X-Ray Trace ID into your log.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
LogReferences []*schema.LogReference
}
Config is configure of Amazon CloudWatch Logs plugin.
Click to show internal directories.
Click to hide internal directories.