Documentation
¶
Overview ¶
Package awss3receiver implements a receiver that can be used by the OpenTelemetry collector to retrieve traces previously stored in S3 by the AWS S3 Exporter.
Index ¶
Constants ¶
View Source
const ( S3PartitionMinute = "minute" S3PartitionHour = "hour" )
View Source
const ( IngestStatusCompleted = "completed" IngestStatusFailed = "failed" IngestStatusIngesting = "ingesting" CustomCapability = "org.opentelemetry.collector.receiver.awss3" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct {
S3Downloader S3DownloaderConfig `mapstructure:"s3downloader"`
StartTime string `mapstructure:"starttime"`
EndTime string `mapstructure:"endtime"`
Encodings []Encoding `mapstructure:"encodings"`
Notifications Notifications `mapstructure:"notifications"`
// SQS configures receiving S3 object change notifications via an SQS queue.
SQS *SQSConfig `mapstructure:"sqs"`
}
Config defines the configuration for the file receiver.
type Encoding ¶ added in v0.103.0
type Encoding struct {
Extension component.ID `mapstructure:"extension"`
Suffix string `mapstructure:"suffix"`
// contains filtered or unexported fields
}
Encoding defines the encoding configuration for the file receiver.
type GetObjectAPI ¶ added in v0.101.0
type GetObjectAPI interface {
GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}
type ListObjectsAPI ¶ added in v0.101.0
type ListObjectsAPI interface {
NewListObjectsV2Paginator(params *s3.ListObjectsV2Input) ListObjectsV2Pager
}
type ListObjectsV2Pager ¶ added in v0.101.0
type Notifications ¶ added in v0.112.0
type Notifications struct {
OpAMP *component.ID `mapstructure:"opampextension"`
// contains filtered or unexported fields
}
Notifications groups optional notification sources.
type S3DownloaderConfig ¶
type S3DownloaderConfig struct {
Region string `mapstructure:"region"`
S3Bucket string `mapstructure:"s3_bucket"`
S3Prefix string `mapstructure:"s3_prefix"`
S3Partition string `mapstructure:"s3_partition"`
FilePrefix string `mapstructure:"file_prefix"`
Endpoint string `mapstructure:"endpoint"`
EndpointPartitionID string `mapstructure:"endpoint_partition_id"`
S3ForcePathStyle bool `mapstructure:"s3_force_path_style"`
}
S3DownloaderConfig contains aws s3 downloader related config to controls things like bucket, prefix, batching, connections, retries, etc.
type SQSConfig ¶ added in v0.127.0
type SQSConfig struct {
// QueueURL is the URL of the SQS queue to receive S3 notifications.
QueueURL string `mapstructure:"queue_url"`
// Region specifies the AWS region of the SQS queue.
Region string `mapstructure:"region"`
// Endpoint is the optional custom endpoint for SQS (useful for testing).
Endpoint string `mapstructure:"endpoint"`
// WaitTimeSeconds specifies the duration (in seconds) for long polling SQS messages.
// Maximum is 20 seconds. Default is 20 seconds.
WaitTimeSeconds *int64 `mapstructure:"wait_time_seconds"`
// MaxNumberOfMessages specifies the maximum number of messages to receive in a single poll.
// Valid values: 1-10. Default is 10.
MaxNumberOfMessages *int64 `mapstructure:"max_number_of_messages"`
}
SQSConfig holds SQS queue configuration for receiving object change notifications.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.