getTracer abstract method

Tracer getTracer(
  1. String name, {
  2. String? version,
})

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

api.Tracer getTracer(String name, {String? version});