cwlogs

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 2 Imported by: 0

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

func New

func New(config *Config) xray.Plugin

New creates new Amazon CloudWatch Logs plugin.

Types

type Config

type Config struct {
	LogReferences []*schema.LogReference
}

Config is configure of Amazon CloudWatch Logs plugin.

Jump to

Keyboard shortcuts

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