Class LibraryTelemetryOptions

java.lang.Object
com.azure.core.util.LibraryTelemetryOptions

public final class LibraryTelemetryOptions extends Object
The options to configure library-specific information on TracerProvider and MeterProvider.
  • Constructor Details

    • LibraryTelemetryOptions

      public LibraryTelemetryOptions(String libraryName)
      Creates an instance of LibraryTelemetryOptions.
      Parameters:
      libraryName - The client library name.
  • Method Details

    • setLibraryVersion

      public LibraryTelemetryOptions setLibraryVersion(String libraryVersion)
      Sets the client library version.
      Parameters:
      libraryVersion - The client library version.
      Returns:
      The updated LibraryTelemetryOptions object.
    • setResourceProviderNamespace

      public LibraryTelemetryOptions setResourceProviderNamespace(String rpNamespace)
      Sets the Azure namespace.
      Parameters:
      rpNamespace - The Azure Resource Provider namespace client library communicates with.
      Returns:
      The updated LibraryTelemetryOptions object.
    • setSchemaUrl

      public LibraryTelemetryOptions setSchemaUrl(String schemaUrl)
      Sets the schema URL describing specific schema and version of the telemetry the library emits.
      Parameters:
      schemaUrl - The schema URL.
      Returns:
      The updated LibraryTelemetryOptions object.
    • getLibraryName

      public String getLibraryName()
      Gets the client library name.
      Returns:
      The client library name.
    • getLibraryVersion

      public String getLibraryVersion()
      Gets the client library version.
      Returns:
      The client library version.
    • getResourceProviderNamespace

      public String getResourceProviderNamespace()
      Gets the Azure Resource Provider namespace.
      Returns:
      The Azure Resource Provider namespace.
    • getSchemaUrl

      public String getSchemaUrl()
      Gets the schema URL describing specific schema and version of the telemetry the library emits.
      Returns:
      The schema URL.