MM-21898: Part 2. Add opentracing (#13904)
* initial implementation of opentracing * app layer * Revert Makefile * . * cleanup * . * . * . * . * . * . * . * . * . * . * . * [ci] * autogenerate interface * . * missed vendor files * updated interfaces * updated store layers * lint fixes * . * finishing layer generators and nested spans * added errors and b3 support * code review * . * . * fixed build error due to misplased flag.Parse() * code review addressed
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5a34ec4793
Коммит
182c29b456
@@ -111,6 +111,7 @@ type SqlSupplier struct {
|
||||
stores SqlSupplierStores
|
||||
settings *model.SqlSettings
|
||||
lockedToMaster bool
|
||||
context context.Context
|
||||
}
|
||||
|
||||
type TraceOnAdapter struct{}
|
||||
@@ -266,6 +267,14 @@ func setupConnection(con_type string, dataSource string, settings *model.SqlSett
|
||||
return dbmap
|
||||
}
|
||||
|
||||
func (ss *SqlSupplier) SetContext(context context.Context) {
|
||||
ss.context = context
|
||||
}
|
||||
|
||||
func (ss *SqlSupplier) Context() context.Context {
|
||||
return ss.context
|
||||
}
|
||||
|
||||
func (ss *SqlSupplier) initConnection() {
|
||||
ss.master = setupConnection("master", *ss.settings.DataSource, ss.settings)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user