Interface ExperimentTarget.Builder

  • Method Details

    • name

      A display name for the target.

      Parameters:
      name - A display name for the target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceName

      ExperimentTarget.Builder serviceName(String serviceName)

      The service.name of the target's spans. Copied, with environment, into every case and run record. Control characters, apostrophes and backslashes are not allowed, because this value and environment are matched against span attributes and interpolated into telemetry query filters.

      Parameters:
      serviceName - The service.name of the target's spans. Copied, with environment, into every case and run record. Control characters, apostrophes and backslashes are not allowed, because this value and environment are matched against span attributes and interpolated into telemetry query filters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environment

      ExperimentTarget.Builder environment(String environment)

      The environment the target runs in, for example beta or prod. Copied, with serviceName, into every case and run record.

      Parameters:
      environment - The environment the target runs in, for example beta or prod. Copied, with serviceName, into every case and run record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The kind of target and its identity. Cannot be changed after the experiment is created.

      Parameters:
      definition - The kind of target and its identity. Cannot be changed after the experiment is created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The kind of target and its identity. Cannot be changed after the experiment is created.

      This is a convenience method that creates an instance of the TargetDefinition.Builder avoiding the need to create one manually via TargetDefinition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to definition(TargetDefinition).

      Parameters:
      definition - a consumer that will call methods on TargetDefinition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: