@ottrelite/interop-otel.useTracer
useTracer(name
, version?
): Tracer
Hook supplying a tracer instance with the given name and (optionally) version.
Name | Type | Description |
---|---|---|
name | string | Name of the tracer unit; must be unique within the application. |
version? | string | Optional version of the tracer unit. |
Tracer
The tracer instance.