(ctx context.Context)
| 196 | } |
| 197 | |
| 198 | func initializeOpenTelemetry(ctx context.Context) (func(context.Context) error, error) { |
| 199 | shutdown, err := trace.SetupOTelSDK(ctx, "LEDGERFORGE") |
| 200 | if err != nil { |
| 201 | return nil, fmt.Errorf("error setting up OTel SDK: %w", err) |
| 202 | } |
| 203 | return shutdown, nil |
| 204 | } |
| 205 | |
| 206 | func initializeTypeSense(ctx context.Context, cfg *config.Configuration) (*search.TypesenseClient, error) { |
| 207 | if cfg.TypeSense.Dns == "" { |
no outgoing calls
no test coverage detected