Documentation
¶
Index ¶
Constants ¶
View Source
const ( AzureCloudType = "AzureCloud" AzureGovernmentCloudType = "AzureUSGovernment" )
View Source
const ( // EncodingOTLPJSON denotes OTLP/JSON-encoded blob payloads. EncodingOTLPJSON = "otlp_json" // EncodingOTLPProto denotes OTLP/Protobuf-encoded blob payloads. EncodingOTLPProto = "otlp_proto" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory returns a factory for Azure Blob receiver.
Types ¶
type AuthType ¶ added in v0.101.0
type AuthType string
func (*AuthType) UnmarshalText ¶ added in v0.101.0
type CloudType ¶ added in v0.101.0
type CloudType string
func (*CloudType) UnmarshalText ¶ added in v0.101.0
type Config ¶
type Config struct {
// Type of authentication to use
Authentication AuthType `mapstructure:"auth"`
// Azure Blob Storage connection key,
// which can be found in the Azure Blob Storage resource on the Azure Portal. (no default)
ConnectionString string `mapstructure:"connection_string"`
// Storage Account URL, used with Service Principal authentication
StorageAccountURL string `mapstructure:"storage_account_url"`
// Configuration for the Service Principal credentials
ServicePrincipal ServicePrincipalConfig `mapstructure:"service_principal"`
// Azure Cloud to authenticate against, used with Service Principal authentication
Cloud CloudType `mapstructure:"cloud"`
// Configurations of Azure Event Hub triggering on the `Blob Create` event
EventHub EventHubConfig `mapstructure:"event_hub"`
// Logs related configurations
Logs LogsConfig `mapstructure:"logs"`
// Traces related configurations
Traces TracesConfig `mapstructure:"traces"`
// contains filtered or unexported fields
}
type EventHubConfig ¶
type EventHubConfig struct {
// Azure Event Hub endpoint triggering on the `Blob Create` event
EndPoint string `mapstructure:"endpoint"`
// contains filtered or unexported fields
}
type LogsConfig ¶
type LogsConfig struct {
// Name of the blob container with the logs (default = "logs")
ContainerName string `mapstructure:"container_name"`
// Encoding of log blobs in this container (default = "otlp_json").
// Either one of the built-in values "otlp_json" or "otlp_proto", or the
// ID of an encoding extension that implements plog.Unmarshaler.
Encoding string `mapstructure:"encoding"`
// contains filtered or unexported fields
}
type ServicePrincipalConfig ¶ added in v0.101.0
type ServicePrincipalConfig struct {
// Tenant ID, used with Service Principal authentication
TenantID string `mapstructure:"tenant_id"`
// Client ID, used with Service Principal authentication
ClientID string `mapstructure:"client_id"`
// Client secret, used with Service Principal authentication
ClientSecret configopaque.String `mapstructure:"client_secret"`
// contains filtered or unexported fields
}
type TracesConfig ¶
type TracesConfig struct {
// Name of the blob container with the traces (default = "traces")
ContainerName string `mapstructure:"container_name"`
// Encoding of trace blobs in this container (default = "otlp_json").
// Either one of the built-in values "otlp_json" or "otlp_proto", or the
// ID of an encoding extension that implements ptrace.Unmarshaler.
Encoding string `mapstructure:"encoding"`
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.