Skip to content

Commit

Permalink
fix: don't panic on iface conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Apr 23, 2024
1 parent 8f824aa commit 9f8807f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/bunconf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,15 @@ type Config struct {
}

SMTPMailer struct {
Enabled bool `yaml:"enabled"`
Enabled bool `yaml:"enabled"`
From string `yaml:"from"`

Host string `yaml:"host"`
Port int `yaml:"port"`
AuthType mail.SMTPAuthType `yaml:"auth_type"`
Username string `yaml:"username"`
Password string `yaml:"password"`
TLS *TLSClient `yaml:"tls"`

From string `yaml:"from"`
} `yaml:"smtp_mailer"`

UptraceGo struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/tracing/span_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (p *spanProcessorThread) forceSpanName(ctx context.Context, span *Span) boo
return false
}

if libName := span.Attrs[attrkey.OtelLibraryName].(string); libName != "" {
if libName, _ := span.Attrs[attrkey.OtelLibraryName].(string); libName != "" {
return slices.Contains(project.ForceSpanName, libName)
}
return false
Expand Down

0 comments on commit 9f8807f

Please sign in to comment.