Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f2114556
Commit
f2114556
authored
Sep 15, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logwrapper for jaeger
parent
f37a595f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
pkg/tracing/tracing.go
+13
-2
No files found.
pkg/tracing/tracing.go
View file @
f2114556
...
...
@@ -11,7 +11,6 @@ import (
opentracing
"github.com/opentracing/opentracing-go"
jaeger
"github.com/uber/jaeger-client-go"
jaegercfg
"github.com/uber/jaeger-client-go/config"
jaegerlog
"github.com/uber/jaeger-client-go/log"
ini
"gopkg.in/ini.v1"
)
...
...
@@ -67,7 +66,7 @@ func internalInit(settings *TracingSettings) (io.Closer, error) {
},
}
jLogger
:=
jaegerlog
.
StdLogger
jLogger
:=
&
jaegerLogWrapper
{
logger
:
log
.
New
(
"jaeger"
)}
options
:=
[]
jaegercfg
.
Option
{}
options
=
append
(
options
,
jaegercfg
.
Logger
(
jLogger
))
...
...
@@ -99,3 +98,15 @@ func splitTagSettings(input string) map[string]string {
return
res
}
type
jaegerLogWrapper
struct
{
logger
log
.
Logger
}
func
(
jlw
*
jaegerLogWrapper
)
Error
(
msg
string
)
{
jlw
.
logger
.
Error
(
msg
)
}
func
(
jlw
*
jaegerLogWrapper
)
Infof
(
msg
string
,
args
...
interface
{})
{
jlw
.
logger
.
Info
(
msg
,
args
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment