A continuation of HomeBox the inventory and organization system built for the Home User
chore: re-organize structs for best memory size
Matthew Kilgore935ad8351443
diff --git a/backend/app/api/handlers/v1/controller.go b/backend/app/api/handlers/v1/controller.goindex 33d0dc39..a0a22b44 100644--- a/backend/app/api/handlers/v1/controller.go+++ b/backend/app/api/handlers/v1/controller.go@@ -95,18 +95,18 @@ func WithURL(url string) func(*V1Controller) {}type V1Controller struct {- cookieSecure boolrepo *repo.AllRepossvc *services.AllServices+ bus *eventbus.EventBus+ config *config.Config+ oidcProvider *providers.OIDCProvider+ url stringmaxUploadSize int64maxImportSize int64maxParseMemory int64+ cookieSecure boolisDemo boolallowRegistration bool- bus *eventbus.EventBus- url string- config *config.Config- oidcProvider *providers.OIDCProvider}type (@@ -133,8 +133,8 @@ type (}OIDCStatus struct {- Enabled bool `json:"enabled"`ButtonText string `json:"buttonText,omitempty"`+ Enabled bool `json:"enabled"`AutoRedirect bool `json:"autoRedirect,omitempty"`AllowLocal bool `json:"allowLocal"`}diff --git a/backend/internal/core/services/reporting/io_row.go b/backend/internal/core/services/reporting/io_row.goindex 7e239e43..5a18b39a 100644--- a/backend/internal/core/services/reporting/io_row.go+++ b/backend/internal/core/services/reporting/io_row.go@@ -14,38 +14,32 @@ type ExportItemFields struct {}type ExportCSVRow struct {- ImportRef string `csv:"HB.import_ref"`- ParentImportRef string `csv:"HB.parent_import_ref"`- Location LocationString `csv:"HB.location"`- TagStr TagString `csv:"HB.tags|HB.labels"`- AssetID repo.AssetID `csv:"HB.asset_id"`- Archived bool `csv:"HB.archived"`- URL string `csv:"HB.url"`-- Name string `csv:"HB.name"`- Quantity float64 `csv:"HB.quantity"`- Description string `csv:"HB.description"`- Insured bool `csv:"HB.insured"`- Notes string `csv:"HB.notes"`-- PurchasePrice float64 `csv:"HB.purchase_price"`- PurchaseFrom string `csv:"HB.purchase_from"`- PurchaseDate types.Date `csv:"HB.purchase_date|HB.purchase_time"`-- Manufacturer string `csv:"HB.manufacturer"`- ModelNumber string `csv:"HB.model_number"`- SerialNumber string `csv:"HB.serial_number"`-- LifetimeWarranty bool `csv:"HB.lifetime_warranty"`- WarrantyExpires types.Date `csv:"HB.warranty_expires"`- WarrantyDetails string `csv:"HB.warranty_details"`-- SoldTo string `csv:"HB.sold_to"`- SoldPrice float64 `csv:"HB.sold_price"`- SoldDate types.Date `csv:"HB.sold_date|HB.sold_time"`- SoldNotes string `csv:"HB.sold_notes"`-- Fields []ExportItemFields `csv:"-"`+ PurchaseDate types.Date `csv:"HB.purchase_date|HB.purchase_time"`+ WarrantyExpires types.Date `csv:"HB.warranty_expires"`+ SoldDate types.Date `csv:"HB.sold_date|HB.sold_time"`+ ImportRef string `csv:"HB.import_ref"`+ ParentImportRef string `csv:"HB.parent_import_ref"`+ URL string `csv:"HB.url"`+ Name string `csv:"HB.name"`+ Description string `csv:"HB.description"`+ Notes string `csv:"HB.notes"`+ PurchaseFrom string `csv:"HB.purchase_from"`+ Manufacturer string `csv:"HB.manufacturer"`+ ModelNumber string `csv:"HB.model_number"`+ SerialNumber string `csv:"HB.serial_number"`+ WarrantyDetails string `csv:"HB.warranty_details"`+ SoldTo string `csv:"HB.sold_to"`+ SoldNotes string `csv:"HB.sold_notes"`+ Location LocationString `csv:"HB.location"`+ TagStr TagString `csv:"HB.tags|HB.labels"`+ Fields []ExportItemFields `csv:"-"`+ AssetID repo.AssetID `csv:"HB.asset_id"`+ Quantity float64 `csv:"HB.quantity"`+ PurchasePrice float64 `csv:"HB.purchase_price"`+ SoldPrice float64 `csv:"HB.sold_price"`+ Archived bool `csv:"HB.archived"`+ Insured bool `csv:"HB.insured"`+ LifetimeWarranty bool `csv:"HB.lifetime_warranty"`}// ============================================================================diff --git a/backend/internal/data/ent/schema/group.go b/backend/internal/data/ent/schema/group.goindex 9089bcc3..e6a70a24 100644--- a/backend/internal/data/ent/schema/group.go+++ b/backend/internal/data/ent/schema/group.go@@ -60,9 +60,9 @@ func (Group) Edges() []ent.Edge {// GroupMixin when embedded in an ent.Schema, adds a reference to// the Group entity.type GroupMixin struct {+ mixin.Schemaref stringfield string- mixin.Schema}func (g GroupMixin) Fields() []ent.Field {diff --git a/backend/internal/data/ent/schema/user.go b/backend/internal/data/ent/schema/user.goindex 7b059a59..d3be657c 100644--- a/backend/internal/data/ent/schema/user.go+++ b/backend/internal/data/ent/schema/user.go@@ -92,9 +92,9 @@ func (User) Edges() []ent.Edge {// UserMixin when embedded in an ent.Schema, adds a reference to// the Group entity.type UserMixin struct {+ mixin.Schemaref stringfield string- mixin.Schema}func (g UserMixin) Fields() []ent.Field {diff --git a/backend/internal/data/repo/repo_entities.go b/backend/internal/data/repo/repo_entities.goindex e7c5b92e..2429c5bb 100644--- a/backend/internal/data/repo/repo_entities.go+++ b/backend/internal/data/repo/repo_entities.go@@ -53,22 +53,22 @@ type (}EntityQuery struct {- Page int- PageSize int+ IsLocation *bool `json:"isLocation"` // nil=all, true=locations only, false=items onlySearch string `json:"search"`- AssetID AssetID `json:"assetId"`+ SortBy string `json:"sortBy"`+ OrderBy string `json:"orderBy"`ParentIDs []uuid.UUID `json:"parentIds"`TagIDs []uuid.UUID `json:"tagIds"`- NegateTags bool `json:"negateTags"`- OnlyWithoutPhoto bool `json:"onlyWithoutPhoto"`- OnlyWithPhoto bool `json:"onlyWithPhoto"`ParentItemIDs []uuid.UUID `json:"parentItemIds"`- SortBy string `json:"sortBy"`- IncludeArchived bool `json:"includeArchived"`- IsLocation *bool `json:"isLocation"` // nil=all, true=locations only, false=items only- FilterChildren bool `json:"filterChildren"` // when true, only return root entities (no parent)Fields []FieldQuery `json:"fields"`- OrderBy string `json:"orderBy"`+ Page int+ PageSize int+ AssetID AssetID `json:"assetId"`+ NegateTags bool `json:"negateTags"`+ OnlyWithoutPhoto bool `json:"onlyWithoutPhoto"`+ OnlyWithPhoto bool `json:"onlyWithPhoto"`+ IncludeArchived bool `json:"includeArchived"`+ FilterChildren bool `json:"filterChildren"` // when true, only return root entities (no parent)}DuplicateOptions struct {@@ -106,44 +106,38 @@ type (}EntityUpdate struct {- ParentID uuid.UUID `json:"parentId" extensions:"x-nullable,x-omitempty"`- ID uuid.UUID `json:"id"`- AssetID AssetID `json:"assetId" swaggertype:"string"`- Name string `json:"name" validate:"required,min=1,max=255"`- Description string `json:"description" validate:"max=1000"`- Quantity float64 `json:"quantity"`- Insured bool `json:"insured"`- Archived bool `json:"archived"`- SyncChildEntityLocations bool `json:"syncChildEntityLocations"`- EntityTypeID uuid.UUID `json:"entityTypeId"`-- // Edges- TagIDs []uuid.UUID `json:"tagIds"`-- // Identifications- SerialNumber string `json:"serialNumber"`- ModelNumber string `json:"modelNumber"`- Manufacturer string `json:"manufacturer"`-- // Warranty- LifetimeWarranty bool `json:"lifetimeWarranty"`- WarrantyExpires types.Date `json:"warrantyExpires"`- WarrantyDetails string `json:"warrantyDetails"`-+ WarrantyExpires types.Date `json:"warrantyExpires"`// Purchase- PurchaseDate types.Date `json:"purchaseDate"`- PurchaseFrom string `json:"purchaseFrom" validate:"max=255"`- PurchasePrice float64 `json:"purchasePrice" extensions:"x-nullable,x-omitempty"`-+ PurchaseDate types.Date `json:"purchaseDate"`// Sold- SoldDate types.Date `json:"soldDate"`- SoldTo string `json:"soldTo" validate:"max=255"`- SoldPrice float64 `json:"soldPrice" extensions:"x-nullable,x-omitempty"`- SoldNotes string `json:"soldNotes"`-+ SoldDate types.Date `json:"soldDate"`+ Name string `json:"name" validate:"required,min=1,max=255"`+ Description string `json:"description" validate:"max=1000"`+ // Identifications+ SerialNumber string `json:"serialNumber"`+ ModelNumber string `json:"modelNumber"`+ Manufacturer string `json:"manufacturer"`+ WarrantyDetails string `json:"warrantyDetails"`+ PurchaseFrom string `json:"purchaseFrom" validate:"max=255"`+ SoldTo string `json:"soldTo" validate:"max=255"`+ SoldNotes string `json:"soldNotes"`// Extras- Notes string `json:"notes"`- Fields []EntityFieldData `json:"fields"`+ Notes string `json:"notes"`+ // Edges+ TagIDs []uuid.UUID `json:"tagIds"`+ Fields []EntityFieldData `json:"fields"`+ AssetID AssetID `json:"assetId" swaggertype:"string"`+ Quantity float64 `json:"quantity"`+ PurchasePrice float64 `json:"purchasePrice" extensions:"x-nullable,x-omitempty"`+ SoldPrice float64 `json:"soldPrice" extensions:"x-nullable,x-omitempty"`+ ParentID uuid.UUID `json:"parentId" extensions:"x-nullable,x-omitempty"`+ ID uuid.UUID `json:"id"`+ EntityTypeID uuid.UUID `json:"entityTypeId"`+ Insured bool `json:"insured"`+ Archived bool `json:"archived"`+ SyncChildEntityLocations bool `json:"syncChildEntityLocations"`+ // Warranty+ LifetimeWarranty bool `json:"lifetimeWarranty"`}EntityPatch struct {@@ -1117,16 +1111,16 @@ func (r *EntityRepository) Create(ctx context.Context, gid uuid.UUID, data Entittype EntityCreateFromTemplate struct {Name stringDescription string+ Manufacturer string+ ModelNumber string+ WarrantyDetails string+ TagIDs []uuid.UUID+ Fields []EntityFieldDataQuantity float64ParentID uuid.UUIDEntityTypeID uuid.UUID- TagIDs []uuid.UUIDInsured bool- Manufacturer string- ModelNumber stringLifetimeWarranty bool- WarrantyDetails string- Fields []EntityFieldData}// CreateFromTemplate creates an entity with all template data in a single transaction.diff --git a/backend/internal/data/repo/repo_entity_templates.go b/backend/internal/data/repo/repo_entity_templates.goindex 2c9268b3..8a344f6d 100644--- a/backend/internal/data/repo/repo_entity_templates.go+++ b/backend/internal/data/repo/repo_entity_templates.go@@ -42,60 +42,52 @@ type (}EntityTemplateCreate struct {- Name string `json:"name" validate:"required,min=1,max=255"`- Description string `json:"description" validate:"max=1000"`- Notes string `json:"notes" validate:"max=1000"`-// Default values for entities- DefaultQuantity *float64 `json:"defaultQuantity,omitempty" extensions:"x-nullable"`- DefaultInsured bool `json:"defaultInsured"`- DefaultName *string `json:"defaultName,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`- DefaultDescription *string `json:"defaultDescription,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`- DefaultManufacturer *string `json:"defaultManufacturer,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`- DefaultModelNumber *string `json:"defaultModelNumber,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`- DefaultLifetimeWarranty bool `json:"defaultLifetimeWarranty"`- DefaultWarrantyDetails *string `json:"defaultWarrantyDetails,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`-+ DefaultQuantity *float64 `json:"defaultQuantity,omitempty" extensions:"x-nullable"`+ DefaultName *string `json:"defaultName,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`+ DefaultDescription *string `json:"defaultDescription,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`+ DefaultManufacturer *string `json:"defaultManufacturer,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`+ DefaultModelNumber *string `json:"defaultModelNumber,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`+ DefaultWarrantyDetails *string `json:"defaultWarrantyDetails,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`+ DefaultTagIDs *[]uuid.UUID `json:"defaultTagIds,omitempty" extensions:"x-nullable"`+ Name string `json:"name" validate:"required,min=1,max=255"`+ Description string `json:"description" validate:"max=1000"`+ Notes string `json:"notes" validate:"max=1000"`+ // Custom fields+ Fields []TemplateField `json:"fields"`// Default location and tags- DefaultLocationID uuid.UUID `json:"defaultLocationId,omitempty" extensions:"x-nullable"`- DefaultTagIDs *[]uuid.UUID `json:"defaultTagIds,omitempty" extensions:"x-nullable"`-+ DefaultLocationID uuid.UUID `json:"defaultLocationId,omitempty" extensions:"x-nullable"`+ DefaultInsured bool `json:"defaultInsured"`+ DefaultLifetimeWarranty bool `json:"defaultLifetimeWarranty"`// Metadata flagsIncludeWarrantyFields bool `json:"includeWarrantyFields"`IncludePurchaseFields bool `json:"includePurchaseFields"`IncludeSoldFields bool `json:"includeSoldFields"`-- // Custom fields- Fields []TemplateField `json:"fields"`}EntityTemplateUpdate struct {- ID uuid.UUID `json:"id"`- Name string `json:"name" validate:"required,min=1,max=255"`- Description string `json:"description" validate:"max=1000"`- Notes string `json:"notes" validate:"max=1000"`-// Default values for entities- DefaultQuantity *float64 `json:"defaultQuantity,omitempty" extensions:"x-nullable"`- DefaultInsured bool `json:"defaultInsured"`- DefaultName *string `json:"defaultName,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`- DefaultDescription *string `json:"defaultDescription,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`- DefaultManufacturer *string `json:"defaultManufacturer,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`- DefaultModelNumber *string `json:"defaultModelNumber,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`- DefaultLifetimeWarranty bool `json:"defaultLifetimeWarranty"`- DefaultWarrantyDetails *string `json:"defaultWarrantyDetails,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`-+ DefaultQuantity *float64 `json:"defaultQuantity,omitempty" extensions:"x-nullable"`+ DefaultName *string `json:"defaultName,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`+ DefaultDescription *string `json:"defaultDescription,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`+ DefaultManufacturer *string `json:"defaultManufacturer,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`+ DefaultModelNumber *string `json:"defaultModelNumber,omitempty" validate:"omitempty,max=255" extensions:"x-nullable"`+ DefaultWarrantyDetails *string `json:"defaultWarrantyDetails,omitempty" validate:"omitempty,max=1000" extensions:"x-nullable"`+ DefaultTagIDs *[]uuid.UUID `json:"defaultTagIds,omitempty" extensions:"x-nullable"`+ Name string `json:"name" validate:"required,min=1,max=255"`+ Description string `json:"description" validate:"max=1000"`+ Notes string `json:"notes" validate:"max=1000"`+ // Custom fields+ Fields []TemplateField `json:"fields"`+ ID uuid.UUID `json:"id"`// Default location and tags- DefaultLocationID uuid.UUID `json:"defaultLocationId,omitempty" extensions:"x-nullable"`- DefaultTagIDs *[]uuid.UUID `json:"defaultTagIds,omitempty" extensions:"x-nullable"`-+ DefaultLocationID uuid.UUID `json:"defaultLocationId,omitempty" extensions:"x-nullable"`+ DefaultInsured bool `json:"defaultInsured"`+ DefaultLifetimeWarranty bool `json:"defaultLifetimeWarranty"`// Metadata flagsIncludeWarrantyFields bool `json:"includeWarrantyFields"`IncludePurchaseFields bool `json:"includePurchaseFields"`IncludeSoldFields bool `json:"includeSoldFields"`-- // Custom fields- Fields []TemplateField `json:"fields"`}EntityTemplateSummary struct {@@ -107,34 +99,30 @@ type (}EntityTemplateOut struct {- ID uuid.UUID `json:"id"`- Name string `json:"name"`- Description string `json:"description"`- Notes string `json:"notes"`- CreatedAt time.Time `json:"createdAt"`- UpdatedAt time.Time `json:"updatedAt"`-- // Default values for entities- DefaultQuantity float64 `json:"defaultQuantity"`- DefaultInsured bool `json:"defaultInsured"`- DefaultName string `json:"defaultName"`- DefaultDescription string `json:"defaultDescription"`- DefaultManufacturer string `json:"defaultManufacturer"`- DefaultModelNumber string `json:"defaultModelNumber"`- DefaultLifetimeWarranty bool `json:"defaultLifetimeWarranty"`- DefaultWarrantyDetails string `json:"defaultWarrantyDetails"`-+ CreatedAt time.Time `json:"createdAt"`+ UpdatedAt time.Time `json:"updatedAt"`// Default location and tags- DefaultLocation *TemplateLocationSummary `json:"defaultLocation"`- DefaultTags []TemplateTagSummary `json:"defaultTags"`-+ DefaultLocation *TemplateLocationSummary `json:"defaultLocation"`+ Name string `json:"name"`+ Description string `json:"description"`+ Notes string `json:"notes"`+ DefaultName string `json:"defaultName"`+ DefaultDescription string `json:"defaultDescription"`+ DefaultManufacturer string `json:"defaultManufacturer"`+ DefaultModelNumber string `json:"defaultModelNumber"`+ DefaultWarrantyDetails string `json:"defaultWarrantyDetails"`+ DefaultTags []TemplateTagSummary `json:"defaultTags"`+ // Custom fields+ Fields []TemplateField `json:"fields"`+ // Default values for entities+ DefaultQuantity float64 `json:"defaultQuantity"`+ ID uuid.UUID `json:"id"`+ DefaultInsured bool `json:"defaultInsured"`+ DefaultLifetimeWarranty bool `json:"defaultLifetimeWarranty"`// Metadata flagsIncludeWarrantyFields bool `json:"includeWarrantyFields"`IncludePurchaseFields bool `json:"includePurchaseFields"`IncludeSoldFields bool `json:"includeSoldFields"`-- // Custom fields- Fields []TemplateField `json:"fields"`})diff --git a/backend/internal/sys/config/conf.go b/backend/internal/sys/config/conf.goindex 1195c178..fb98f2dc 100644--- a/backend/internal/sys/config/conf.go+++ b/backend/internal/sys/config/conf.go@@ -65,14 +65,14 @@ type Config struct {}type Options struct {+ CurrencyConfig string `yaml:"currencies"`+ Hostname string `yaml:"hostname"`AllowRegistration bool `yaml:"disable_registration" conf:"default:true"`AutoIncrementAssetID bool `yaml:"auto_increment_asset_id" conf:"default:true"`- CurrencyConfig string `yaml:"currencies"`GithubReleaseCheck bool `yaml:"check_github_release" conf:"default:true"`AllowAnalytics bool `yaml:"allow_analytics" conf:"default:false"`AllowLocalLogin bool `yaml:"allow_local_login" conf:"default:true"`TrustProxy bool `yaml:"trust_proxy" conf:"default:false"`- Hostname string `yaml:"hostname"`}type Thumbnail struct {@@ -122,14 +122,11 @@ type LabelMakerConf struct {}type OIDCConf struct {- Enabled bool `yaml:"enabled" conf:"default:false"`IssuerURL string `yaml:"issuer_url"`ClientID string `yaml:"client_id"`ClientSecret string `yaml:"client_secret"`Scope string `yaml:"scope" conf:"default:openid profile email"`AllowedGroups string `yaml:"allowed_groups"`- AutoRedirect bool `yaml:"auto_redirect" conf:"default:false"`- VerifyEmail bool `yaml:"verify_email" conf:"default:false"`GroupClaim string `yaml:"group_claim" conf:"default:groups"`EmailClaim string `yaml:"email_claim" conf:"default:email"`NameClaim string `yaml:"name_claim" conf:"default:name"`@@ -137,6 +134,9 @@ type OIDCConf struct {ButtonText string `yaml:"button_text" conf:"default:Sign in with OIDC"`StateExpiry time.Duration `yaml:"state_expiry" conf:"default:10m"`RequestTimeout time.Duration `yaml:"request_timeout" conf:"default:30s"`+ Enabled bool `yaml:"enabled" conf:"default:false"`+ AutoRedirect bool `yaml:"auto_redirect" conf:"default:false"`+ VerifyEmail bool `yaml:"verify_email" conf:"default:false"`}func (c OIDCConf) MarshalJSON() ([]byte, error) {diff --git a/backend/internal/sys/config/conf_otel.go b/backend/internal/sys/config/conf_otel.goindex bba33976..93970953 100644--- a/backend/internal/sys/config/conf_otel.go+++ b/backend/internal/sys/config/conf_otel.go@@ -5,51 +5,36 @@ import "encoding/json"// OTelConfig contains OpenTelemetry configuration options.// All standard OpenTelemetry environment variables are also supported via the SDK.type OTelConfig struct {- // Enabled enables OpenTelemetry tracing when set to true- Enabled bool `yaml:"enabled" conf:"default:false"`-// ServiceName is the name of the service reported to the telemetry backendServiceName string `yaml:"service_name" conf:"default:homebox"`-// ServiceVersion is the version of the service (defaults to build version)ServiceVersion string `yaml:"service_version"`-// Exporter specifies the exporter type: "otlp", "stdout", or "none"Exporter string `yaml:"exporter" conf:"default:otlp"`-// Endpoint is the OTLP exporter endpoint (e.g., "localhost:4317" for gRPC or "http://localhost:4318" for HTTP)// The full address including port should be specified- Endpoint string `yaml:"endpoint"`-+ Endpoint string `yaml:"endpoint"`PathPrefix string `yaml:"path_prefix"`-// Protocol specifies the OTLP protocol: "grpc" or "http"Protocol string `yaml:"protocol" conf:"default:grpc"`-- // Insecure disables TLS for the exporter connection- Insecure bool `yaml:"insecure" conf:"default:false"`-// Headers are additional headers to send with OTLP requests (comma-separated key=value pairs)Headers string `yaml:"headers"`-+ // MetricsInterval is the interval at which metrics are exported (e.g., "15s", "1m")+ MetricsInterval string `yaml:"metrics_interval" conf:"default:15s"`// SampleRate is the sampling rate for traces (0.0 to 1.0, where 1.0 means all traces)SampleRate float64 `yaml:"sample_rate" conf:"default:1.0"`-+ // Enabled enables OpenTelemetry tracing when set to true+ Enabled bool `yaml:"enabled" conf:"default:false"`+ // Insecure disables TLS for the exporter connection+ Insecure bool `yaml:"insecure" conf:"default:false"`// EnableMetrics enables OpenTelemetry metrics collectionEnableMetrics bool `yaml:"enable_metrics" conf:"default:true"`-- // MetricsInterval is the interval at which metrics are exported (e.g., "15s", "1m")- MetricsInterval string `yaml:"metrics_interval" conf:"default:15s"`-// EnableLogging enables OpenTelemetry loggingEnableLogging bool `yaml:"enable_logging" conf:"default:true"`-// EnableDatabaseTracing enables tracing for database operationsEnableDatabaseTracing bool `yaml:"enable_database_tracing" conf:"default:true"`-// EnableHTTPTracing enables tracing for HTTP requestsEnableHTTPTracing bool `yaml:"enable_http_tracing" conf:"default:true"`-// ProxyEnabled enables the telemetry proxy endpoint for frontend tracingProxyEnabled bool `yaml:"proxy_enabled" conf:"default:true"`}