Interface TracerBuilder


  • public interface TracerBuilder
    Builder class for creating Tracer instances.
    Since:
    1.4.0
    • Method Detail

      • setSchemaUrl

        TracerBuilder setSchemaUrl​(String schemaUrl)
        Assign an OpenTelemetry schema URL to the resulting Tracer.
        Parameters:
        schemaUrl - The URL of the OpenTelemetry schema being used by this instrumentation library.
        Returns:
        this
      • setInstrumentationVersion

        TracerBuilder setInstrumentationVersion​(String instrumentationVersion)
        Assign a version to the instrumentation library that is using the resulting Tracer.
        Parameters:
        instrumentationVersion - The version of the instrumentation library.
        Returns:
        this
      • build

        Tracer build()
        Gets or creates a Tracer instance.
        Returns:
        a Tracer instance configured with the provided options.