File tree 2 files changed +10
-3
lines changed
src/opentelemetry/sdk/trace
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -997,7 +997,7 @@ def get_tracer(
997
997
instrumenting_library_version : str = "" ,
998
998
) -> "trace_api.Tracer" :
999
999
if not instrumenting_module_name : # Reject empty strings too.
1000
- instrumenting_module_name = "ERROR:MISSING MODULE NAME "
1000
+ instrumenting_module_name = ""
1001
1001
logger .error ("get_tracer called with missing module name." )
1002
1002
return Tracer (
1003
1003
self .sampler ,
Original file line number Diff line number Diff line change @@ -260,15 +260,22 @@ def test_invalid_instrumentation_info(self):
260
260
self .assertEqual (
261
261
tracer1 .instrumentation_info , tracer2 .instrumentation_info
262
262
)
263
+
263
264
self .assertIsInstance (
264
265
tracer1 .instrumentation_info , InstrumentationInfo
265
266
)
266
267
span1 = tracer1 .start_span ("foo" )
267
268
self .assertTrue (span1 .is_recording ())
268
269
self .assertEqual (tracer1 .instrumentation_info .version , "" )
269
- self .assertEqual (
270
- tracer1 .instrumentation_info .name , "ERROR:MISSING MODULE NAME"
270
+ self .assertEqual (tracer1 .instrumentation_info .name , "" )
271
+
272
+ self .assertIsInstance (
273
+ tracer2 .instrumentation_info , InstrumentationInfo
271
274
)
275
+ span2 = tracer2 .start_span ("bar" )
276
+ self .assertTrue (span2 .is_recording ())
277
+ self .assertEqual (tracer2 .instrumentation_info .version , "" )
278
+ self .assertEqual (tracer2 .instrumentation_info .name , "" )
272
279
273
280
def test_span_processor_for_source (self ):
274
281
tracer_provider = trace .TracerProvider ()
You can’t perform that action at this time.
0 commit comments