public UnaryCallSettings<Span, Span> createSpanSettings() {
    return ((TraceServiceStubSettings) getStubSettings()).createSpanSettings();
  }
Returns the object with the settings used for calls to createSpan.
java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceSettings.java