Documentation
¶
Overview ¶
Package awss3exporter stores OpenTelemetry data as an AWS S3 exporter.
Index ¶
Constants ¶
View Source
const ( DefaultRetryMode = "standard" DefaultRetryMaxAttempts = 3 DefaultRetryMaxBackoff = 20 * time.Second )
View Source
const ( SourceCategoryKey = "_sourceCategory" SourceHostKey = "_sourceHost" SourceNameKey = "_sourceName" )
Variables ¶
View Source
var ErrUnknownMarshaler = errors.New("unknown marshaler")
Functions ¶
Types ¶
type Config ¶
type Config struct { QueueSettings exporterhelper.QueueBatchConfig `mapstructure:"sending_queue"` TimeoutSettings exporterhelper.TimeoutConfig `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. S3Uploader S3UploaderConfig `mapstructure:"s3uploader"` MarshalerName MarshalerType `mapstructure:"marshaler"` // Encoding to apply. If present, overrides the marshaler configuration option. Encoding *component.ID `mapstructure:"encoding"` EncodingFileExtension string `mapstructure:"encoding_file_extension"` ResourceAttrsToS3 ResourceAttrsToS3 `mapstructure:"resource_attrs_to_s3"` }
Config contains the main configuration options for the s3 exporter
type MarshalerType ¶ added in v0.76.1
type MarshalerType string
const ( OtlpProtobuf MarshalerType = "otlp_proto" OtlpJSON MarshalerType = "otlp_json" SumoIC MarshalerType = "sumo_ic" Body MarshalerType = "body" )
type ResourceAttrsToS3 ¶ added in v0.125.0
type ResourceAttrsToS3 struct { // S3Prefix indicates the mapping of the key (directory) prefix used for writing into the bucket to a specific resource attribute value. S3Prefix string `mapstructure:"s3_prefix"` // contains filtered or unexported fields }
ResourceAttrsToS3 defines the mapping of S3 uploading configuration values to resource attribute values.
type S3UploaderConfig ¶
type S3UploaderConfig struct { Region string `mapstructure:"region"` // S3Bucket is the bucket name to be uploaded to. S3Bucket string `mapstructure:"s3_bucket"` // S3Prefix is the key (directory) prefix to written to inside the bucket S3Prefix string `mapstructure:"s3_prefix"` // S3PartitionFormat is used to provide the rollup on how data is written. Uses [strftime](https://www.man7.org/linux/man-pages/man3/strftime.3.html) formatting. S3PartitionFormat string `mapstructure:"s3_partition_format"` // FilePrefix is the filename prefix used for the file to avoid any potential collisions. FilePrefix string `mapstructure:"file_prefix"` // Endpoint is the URL used for communicated with S3. Endpoint string `mapstructure:"endpoint"` // RoleArn is the role policy to use when interacting with S3 RoleArn string `mapstructure:"role_arn"` // S3ForcePathStyle sets the value for force path style. S3ForcePathStyle bool `mapstructure:"s3_force_path_style"` // DisableSLL forces communication to happen via HTTP instead of HTTPS. DisableSSL bool `mapstructure:"disable_ssl"` // ACL is the canned ACL to use when uploading objects. ACL string `mapstructure:"acl"` StorageClass string `mapstructure:"storage_class"` // Compression sets the algorithm used to process the payload // before uploading to S3. // Valid values are: `gzip` or no value set. Compression configcompression.Type `mapstructure:"compression"` // RetryMode specifies the retry mode for S3 client, default is "standard". // Valid values are: "standard", "adaptive", or "nop". // "nop" will disable retry by setting the retryer to aws.NopRetryer. RetryMode string `mapstructure:"retry_mode"` // RetryMaxAttempts specifies the maximum number of attempts for S3 client. // Default is 3 (SDK default). RetryMaxAttempts int `mapstructure:"retry_max_attempts"` // RetryMaxBackoff specifies the maximum backoff delay for S3 client. // Default is 20 seconds (SDK default). RetryMaxBackoff time.Duration `mapstructure:"retry_max_backoff"` }
S3UploaderConfig contains aws s3 uploader related config to controls things like bucket, prefix, batching, connections, retries, etc.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.