Usage
Typescript Import Format
//This namespace exports multiple static methods or members. To import
import * as ojtracer from "ojs/ojtracer";
//Now you can access the methods as ojtracer.methodName and so on
For additional information visit:
Contains telemetry utility functions
Methods
-
getDescriptiveText(element) : {string}
-
Return some descriptive text to help identify this element for the Tracer
Parameters:
Name Type Description element
HTMLElement element for which to return descriptive text Returns:
descriptive text
- Type
- string
-
getTracerProvider : {unknown}
-
Return the user-set opentelemetry-compatible TracerProvider object, or an internal no-op version if nothing has been set Please see the opentelemetry documentation
Returns:
opentelemetry-compatible TracerProvider
- Type
- unknown
-
setTracerProvider(provider)
-
Allow user to set an opentelemetry-compatible TracerProvider object Please see the opentelemetry documentation
Parameters:
Name Type Description provider
unknown