Package com.azure.core.util
Class LibraryTelemetryOptions
java.lang.Object
com.azure.core.util.LibraryTelemetryOptions
The options to configure library-specific information on
TracerProvider
and MeterProvider.-
Constructor Summary
ConstructorsConstructorDescriptionLibraryTelemetryOptions(String libraryName) Creates an instance ofLibraryTelemetryOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the client library name.Gets the client library version.Gets the Azure Resource Provider namespace.Gets the schema URL describing specific schema and version of the telemetry the library emits.setLibraryVersion(String libraryVersion) Sets the client library version.setResourceProviderNamespace(String rpNamespace) Sets the Azure namespace.setSchemaUrl(String schemaUrl) Sets the schema URL describing specific schema and version of the telemetry the library emits.
-
Constructor Details
-
LibraryTelemetryOptions
Creates an instance ofLibraryTelemetryOptions.- Parameters:
libraryName- The client library name.
-
-
Method Details
-
setLibraryVersion
Sets the client library version.- Parameters:
libraryVersion- The client library version.- Returns:
- The updated
LibraryTelemetryOptionsobject.
-
setResourceProviderNamespace
Sets the Azure namespace.- Parameters:
rpNamespace- The Azure Resource Provider namespace client library communicates with.- Returns:
- The updated
LibraryTelemetryOptionsobject.
-
setSchemaUrl
Sets the schema URL describing specific schema and version of the telemetry the library emits.- Parameters:
schemaUrl- The schema URL.- Returns:
- The updated
LibraryTelemetryOptionsobject.
-
getLibraryName
Gets the client library name.- Returns:
- The client library name.
-
getLibraryVersion
Gets the client library version.- Returns:
- The client library version.
-
getResourceProviderNamespace
Gets the Azure Resource Provider namespace.- Returns:
- The Azure Resource Provider namespace.
-
getSchemaUrl
Gets the schema URL describing specific schema and version of the telemetry the library emits.- Returns:
- The schema URL.
-