Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultAttributeForProject is the default resource attribute used for project routing
DefaultAttributeForProject = "service.name"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for Sentry exporter.
Types ¶
type Config ¶
type Config struct {
// URL is the base URL for the Sentry organization (e.g. https://sentry.io).
URL string `mapstructure:"url"`
// OrgSlug is the target Sentry organization slug.
OrgSlug string `mapstructure:"org_slug"`
// AuthToken is the Sentry auth token used for OTLP ingestion and REST APIs.
AuthToken configopaque.String `mapstructure:"auth_token"`
// AutoCreateProjects enables automatic project creation when a destination
// project is missing in Sentry.
AutoCreateProjects bool `mapstructure:"auto_create_projects"`
// Routing controls how resource attributes map to Sentry projects.
Routing RoutingConfig `mapstructure:"routing"`
// ClientConfig holds HTTP client options for communicating with Sentry.
confighttp.ClientConfig `mapstructure:"http"`
// TimeoutConfig sets the exporter timeout.
TimeoutConfig exporterhelper.TimeoutConfig `mapstructure:",squash"`
// QueueConfig configures the sending queue.
QueueConfig configoptional.Optional[exporterhelper.QueueBatchConfig] `mapstructure:"sending_queue"`
}
Config defines the configuration for the Sentry exporter.
type RoutingConfig ¶ added in v0.145.0
type RoutingConfig struct {
// AttributeToProjectMapping is a user defined map to override the default resource attribute to project mapping
// for the defined key value pairs.
AttributeToProjectMapping map[string]string `mapstructure:"attribute_to_project_mapping"`
// ProjectFromAttribute is the resource attribute name used when mapping a resource attribute to a
// Sentry project (default: service.name).
ProjectFromAttribute string `mapstructure:"project_from_attribute"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
metadata
Package metadata contains the autogenerated telemetry and build information for the exporter/sentry component.
|
Package metadata contains the autogenerated telemetry and build information for the exporter/sentry component. |
|
ratelimit
Package ratelimit provides tools to work with rate limits imposed by Sentry's data ingestion pipeline.
|
Package ratelimit provides tools to work with rate limits imposed by Sentry's data ingestion pipeline. |
Click to show internal directories.
Click to hide internal directories.