File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
opentracing-shim/src/main/java/io/opentelemetry/opentracingshim Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,13 @@ public SpanBuilder buildSpan(String operationName) {
80
80
@ Override
81
81
public <C > void inject (SpanContext context , Format <C > format , C carrier ) {
82
82
if (context == null ) {
83
- logger .log (Level .INFO , "Cannot inject a null span context." );
83
+ logger .log (Level .WARNING , "Cannot inject a null span context." );
84
84
return ;
85
85
}
86
86
87
87
SpanContextShim contextShim = ShimUtil .getContextShim (context );
88
88
if (contextShim == null ) {
89
+ logger .log (Level .WARNING , "Cannot inject a null span context shim." );
89
90
return ;
90
91
}
91
92
@@ -107,7 +108,7 @@ public <C> SpanContext extract(Format<C> format, C carrier) {
107
108
}
108
109
} catch (RuntimeException e ) {
109
110
logger .log (
110
- Level .INFO ,
111
+ Level .WARNING ,
111
112
"Exception caught while extracting span context; returning null. "
112
113
+ "Exception: [{0}] Message: [{1}]" ,
113
114
new String [] {e .getClass ().getName (), e .getMessage ()});
@@ -127,7 +128,7 @@ public void close() {
127
128
try {
128
129
((Closeable ) provider ).close ();
129
130
} catch (RuntimeException | IOException e ) {
130
- logger .log (Level .INFO , "Exception caught while closing TracerProvider." , e );
131
+ logger .log (Level .WARNING , "Exception caught while closing TracerProvider." , e );
131
132
}
132
133
}
133
134
}
You can’t perform that action at this time.
0 commit comments