mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 07:32:57 +08:00
Auth: Add tracing to auth clients and AuthToken service (#107878)
* Add tracing to auth clients + authtoken svc * Fix span names * Fix ext_jwt.go * Fix idimpl/service * Update wire_gen.go * Add tracing to JWT client * Lint
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/grafana/grafana/pkg/infra/log"
|
||||
"github.com/grafana/grafana/pkg/infra/tracing"
|
||||
"github.com/grafana/grafana/pkg/services/authn"
|
||||
"github.com/grafana/grafana/pkg/services/ldap"
|
||||
"github.com/grafana/grafana/pkg/services/ldap/multildap"
|
||||
@ -197,13 +197,13 @@ func setupLDAPTestCase(tt *ldapTestCase) *LDAP {
|
||||
ExpectedError: tt.expectedAuthInfoErr,
|
||||
}
|
||||
|
||||
c := &LDAP{
|
||||
cfg: setting.NewCfg(),
|
||||
logger: log.New("authn.ldap.test"),
|
||||
service: &service.LDAPFakeService{ExpectedUser: tt.expectedLDAPInfo, ExpectedError: tt.expectedLDAPErr},
|
||||
userService: userService,
|
||||
authInfoService: authInfoService,
|
||||
}
|
||||
c := ProvideLDAP(
|
||||
setting.NewCfg(),
|
||||
&service.LDAPFakeService{ExpectedUser: tt.expectedLDAPInfo, ExpectedError: tt.expectedLDAPErr},
|
||||
userService,
|
||||
authInfoService,
|
||||
tracing.InitializeTracerForTest(),
|
||||
)
|
||||
|
||||
return c
|
||||
}
|
||||
|
Reference in New Issue
Block a user