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" )
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"` }
Config defines the 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 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.
Click to show internal directories.
Click to hide internal directories.