finclip-app-manager/vendor/gitlab.finogeeks.club/finclip-backend/apm/client_mysql.go

19 lines
435 B
Go
Raw Normal View History

2023-11-02 18:36:36 +08:00
package apm
import (
"context"
"github.com/SkyAPM/go2sky"
)
func (client *Client) initMySql(config MySqlConfig) {
}
func (client *Client) CreateMySqlExitSpan(ctx context.Context, action, address, dbName string) go2sky.Span {
_, host, _ := ParseURLWithCache(address)
span := client.CreateExitSpan(ctx, action, host, NoopInjector())
span.Tag(go2sky.TagDBType, DBTypeMySQL)
span.Tag(go2sky.TagDBInstance, dbName)
return span
}