Documentation
¶
Overview ¶
Package googlecloudexporter contains the wrapper for OpenTelemetry-GoogleCloud exporter to be used in opentelemetry-collector.
Package spandata defines translators from Trace proto spans to OpenCensus Go spanData.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory creates a factory for the googlecloud exporter
Types ¶
type Config ¶
type Config struct { config.ExporterSettings `mapstructure:",squash"` ProjectID string `mapstructure:"project"` UserAgent string `mapstructure:"user_agent"` Endpoint string `mapstructure:"endpoint"` // Only has effect if Endpoint is not "" UseInsecure bool `mapstructure:"use_insecure"` // Timeout for all API calls. If not set, defaults to 12 seconds. exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` ResourceMappings []ResourceMapping `mapstructure:"resource_mappings"` // GetClientOptions returns additional options to be passed // to the underlying Google Cloud API client. // Must be set programmatically (no support via declarative config). // Optional. GetClientOptions func() []option.ClientOption MetricConfig MetricConfig `mapstructure:"metric"` }
Config defines configuration for Google Cloud exporter.
type LabelMapping ¶
type LabelMapping struct { SourceKey string `mapstructure:"source_key"` TargetKey string `mapstructure:"target_key"` // Optional flag signals whether we can proceed with transformation if a label is missing in the resource. // When required label is missing, we fallback to default resource mapping. Optional bool `mapstructure:"optional"` }
type MetricConfig ¶
type ResourceMapping ¶
type ResourceMapping struct { SourceType string `mapstructure:"source_type"` TargetType string `mapstructure:"target_type"` LabelMappings []LabelMapping `mapstructure:"label_mappings"` }
ResourceMapping defines mapping of resources from source (OpenCensus) to target (Google Cloud).
Click to show internal directories.
Click to hide internal directories.