Documentation ¶
Overview ¶
Package awsxrayexporter implements an OpenTelemetry Collector exporter that sends trace data to AWS X-Ray in the region the collector is running in using the PutTraceSegments API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTimeoutError ¶
IsTimeoutError checks whether error is timeout error.
func NewFactory ¶ added in v0.7.0
func NewFactory() component.ExporterFactory
NewFactory creates a factory for AWS-Xray exporter.
Types ¶
type Config ¶
type Config struct { *config.ExporterSettings `mapstructure:"-"` // AWSSessionSettings contains the common configuration options // for creating AWS session to communicate with backend awsutil.AWSSessionSettings `mapstructure:",squash"` // By default, OpenTelemetry attributes are converted to X-Ray metadata, which are not indexed. // Specify a list of attribute names to be converted to X-Ray annotations instead, which will be indexed. // See annotation vs. metadata: https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-annotations IndexedAttributes []string `mapstructure:"indexed_attributes"` // Set to true to convert all OpenTelemetry attributes to X-Ray annotation (indexed) ignoring the IndexedAttributes option. // Default value: false IndexAllAttributes bool `mapstructure:"index_all_attributes"` }
Config defines configuration for AWS X-Ray exporter.
type XRay ¶
type XRay interface { PutTraceSegments(input *xray.PutTraceSegmentsInput) (*xray.PutTraceSegmentsOutput, error) PutTelemetryRecords(input *xray.PutTelemetryRecordsInput) (*xray.PutTelemetryRecordsOutput, error) }
XRay defines X-Ray api call structure.
type XRayClient ¶
type XRayClient struct {
// contains filtered or unexported fields
}
XRayClient represents X-Ray client.
func (*XRayClient) PutTelemetryRecords ¶
func (c *XRayClient) PutTelemetryRecords(input *xray.PutTelemetryRecordsInput) (*xray.PutTelemetryRecordsOutput, error)
PutTelemetryRecords makes PutTelemetryRecords api call on X-Ray client.
func (*XRayClient) PutTraceSegments ¶
func (c *XRayClient) PutTraceSegments(input *xray.PutTraceSegmentsInput) (*xray.PutTraceSegmentsOutput, error)
PutTraceSegments makes PutTraceSegments api call on X-Ray client.
Click to show internal directories.
Click to hide internal directories.