getTracer method
Returns a Tracer, creating one if one with the given name
and version
is not already created.
name
should be the name of the tracer or instrumentation library.
version
should be the version of the tracer or instrumentation library.
Implementation
@override
api.Tracer getTracer(String name, {String? version = ''}) {
return _tracers.putIfAbsent(
'$name@$version',
() => Tracer(_processors, _resource, _sampler, _timeProvider,
_idGenerator, sdk.InstrumentationLibrary(name, version),
spanLimits: _spanLimits));
}